luxe 0.1.5: a provider picker, model ids, and a guided review that says less
The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark. The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone. luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur. rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
This commit is contained in:
@@ -353,17 +353,19 @@ fn shift_tab_on_the_start_screen_switches_the_mode() {
|
||||
assert!(text.contains("shift+tab build mode"), "and back again:\n{text}");
|
||||
}
|
||||
|
||||
/// The composer's title is the mode switch on the start screen too, since it is the same composer.
|
||||
/// The mode button above the composer is the mode switch on the start screen too, since it is the
|
||||
/// same composer.
|
||||
#[test]
|
||||
fn the_start_screen_composer_title_switches_the_mode() {
|
||||
fn the_start_screen_mode_button_switches_the_mode() {
|
||||
let (tx, mut rx) = mpsc::channel(100);
|
||||
let mut app = App::new(tx, KeyMap::defaults(), Default::default());
|
||||
app.enter_dashboard(crate::dashboard::DashboardState::new(Vec::new()));
|
||||
in_mode(&mut app, "build");
|
||||
let (text, _) = screen(&mut app, 100, 30);
|
||||
let row = text.lines().position(|line| line.contains("build ─")).expect("a titled composer");
|
||||
let line = text.lines().nth(row).expect("the row");
|
||||
let column = line[..line.find("build").expect("the title")].chars().count() as u16;
|
||||
assert!(!text.contains("build ─"), "the frame still carries the mode:\n{text}");
|
||||
let row = text.lines().position(|line| line.contains('╭')).expect("the composer") - 1;
|
||||
let line = text.lines().nth(row).expect("the row above it");
|
||||
let column = line[..line.find("build").expect("the button")].chars().count() as u16;
|
||||
let click = crossterm::event::MouseEvent {
|
||||
kind: crossterm::event::MouseEventKind::Down(crossterm::event::MouseButton::Left),
|
||||
column,
|
||||
@@ -376,6 +378,30 @@ fn the_start_screen_composer_title_switches_the_mode() {
|
||||
assert_eq!(app.current_view, ViewMode::Dashboard);
|
||||
}
|
||||
|
||||
/// The divider under the launcher's input runs between the frame's plain sides, the way the rule
|
||||
/// over the key hints does, rather than teeing into them in a color the rule doesn't share.
|
||||
#[test]
|
||||
fn the_launcher_divider_does_not_tee_into_the_frame() {
|
||||
let (tx, _rx) = mpsc::channel(100);
|
||||
let mut app = App::new(tx, KeyMap::defaults(), Default::default());
|
||||
app.enter_dashboard(crate::dashboard::DashboardState::new(Vec::new()));
|
||||
let (text, buffer) = screen(&mut app, 100, 30);
|
||||
let top = text.lines().position(|line| line.contains('╭')).expect("the composer");
|
||||
let left = text.lines().nth(top).and_then(|line| line.chars().position(|c| c == '╭'));
|
||||
let left = left.expect("the frame's corner");
|
||||
// The first row under the input that is a rule, whatever its sides are drawn with
|
||||
let rows: Vec<Vec<char>> = text.lines().map(|line| line.chars().collect()).collect();
|
||||
let divider = (top + 1..rows.len()).find(|y| rows[*y][left + 1] == '─').expect("a divider");
|
||||
let line = &rows[divider];
|
||||
let right = line.iter().rposition(|cell| *cell != ' ').expect("a side");
|
||||
assert_eq!((line[left], line[right]), ('│', '│'), "{line:?}");
|
||||
assert!(line[left + 1..right].iter().all(|cell| *cell == '─'), "{line:?}");
|
||||
let y = divider as u16;
|
||||
let rule = buffer[(left as u16 + 1, y)].fg;
|
||||
assert_eq!(rule, app.theme_styles.border_muted.fg.expect("a muted rule"));
|
||||
assert_ne!(buffer[(left as u16, y)].fg, rule, "the sides keep the frame's color");
|
||||
}
|
||||
|
||||
/// A command the start screen cannot host gets a session first, then runs in it.
|
||||
#[test]
|
||||
fn a_command_found_on_the_start_screen_runs_in_a_new_session() {
|
||||
|
||||
Reference in New Issue
Block a user