luxe 0.1.4: remembered models, wheel-driven lists, and a steadier phone app

- luxe starts on the model you last chose in this project, then the last one anywhere. Signing in
  opens the model picker instead of choosing for you.
- Every list in a modal takes the mouse wheel and a draggable scrollbar.
- The phone app shows reasoning in full, stays put while you read back through a long session, and
  shows a question's answer on its card.
- On Windows, luxe update replaces the running luxe, and a signed-in install no longer sees setup
  again.
- The file tree no longer shows "engine busy" in a large project, loop output is easier to follow,
  and the name is written lowercase.

The CHANGELOG has the full list.
This commit is contained in:
Evan Whittaker
2026-10-20 13:51:34 -05:00
parent 6184aa21fb
commit a0666d6c81
591 changed files with 4926 additions and 2942 deletions

View File

@@ -134,7 +134,7 @@ const SIGN_IN: [ConfigChoice; 3] =
impl SetupState {
/// Open on the first step, with every answer pre-set to what `config` already says.
///
/// `themes` is every theme by name; `desktop` the one the desktop is wearing, when Luxe can
/// `themes` is every theme by name; `desktop` the one the desktop is wearing, when luxe can
/// follow one; `active` the theme in force right now.
pub fn open(
mode: SetupMode,
@@ -150,7 +150,7 @@ impl SetupState {
offered.extend(themes.into_iter().map(Some));
let theme = match config.theme.as_deref() {
Some(name) => offered.iter().position(|offer| offer.as_deref() == Some(name)),
// Nothing chosen yet: the desktop's when there is one, Luxe's own otherwise
// Nothing chosen yet: the desktop's when there is one, luxe's own otherwise
None if desktop.is_some() => Some(0),
None => offered.iter().position(|offer| offer.as_deref() == Some("luxe")),
}
@@ -269,20 +269,21 @@ impl SetupState {
self.advance(configured)
}
fn step_cursor(&mut self, delta: isize) -> ConfigOutcome {
let (cursor, rows) = match self.step {
Step::Theme => (&mut self.theme, self.themes.len()),
Step::Provider => (&mut self.provider, SIGN_IN.len() + 1),
Step::Tools => (&mut self.tool, self.tools.len()),
Step::Start => (&mut self.start, StartScreen::ALL.len()),
};
*cursor = cursor.saturating_add_signed(delta).min(rows.saturating_sub(1));
/// The cursor and the row count of the step showing.
pub(crate) fn step_list(&self) -> (usize, usize) {
match self.step {
Step::Theme => ConfigOutcome::PreviewTheme(self.previewed_theme()),
_ => ConfigOutcome::Consumed,
Step::Theme => (self.theme, self.themes.len()),
Step::Provider => (self.provider, SIGN_IN.len() + 1),
Step::Tools => (self.tool, self.tools.len()),
Step::Start => (self.start, StartScreen::ALL.len()),
}
}
fn step_cursor(&mut self, delta: isize) -> ConfigOutcome {
let (cursor, rows) = self.step_list();
self.select(cursor.saturating_add_signed(delta).min(rows.saturating_sub(1)))
}
/// Enter: the provider step's sign-in rows open the wizard; everywhere else, on to the next
/// step, and from the last one, done.
fn advance(&mut self, configured: bool) -> ConfigOutcome {
@@ -350,7 +351,7 @@ mod tests {
assert_eq!(setup.choices().theme.as_deref(), Some("nord"));
let plain = fresh(None);
assert_eq!(plain.choices().theme.as_deref(), Some("luxe"), "no desktop: Luxe's own");
assert_eq!(plain.choices().theme.as_deref(), Some("luxe"), "no desktop: luxe's own");
}
#[test]