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:
@@ -79,6 +79,10 @@ pub(crate) struct GuidedReviewWorkspace {
|
||||
pub(crate) feedback_scroll: u16,
|
||||
/// Rows the reading pane can scroll, as last drawn
|
||||
pub(crate) feedback_room: std::cell::Cell<u16>,
|
||||
/// Rows the pull request's description is scrolled down, while it is open; `None` when shut
|
||||
pub(crate) description_scroll: Option<u16>,
|
||||
/// Rows the description can scroll, as last drawn
|
||||
pub(crate) description_room: std::cell::Cell<u16>,
|
||||
/// Whether the narration band (section prose + this change's sentence) is shown above the diff;
|
||||
/// on by default, since the prose is the point, and `z` folds it for one who wants every row.
|
||||
pub(crate) narration_visible: bool,
|
||||
@@ -189,6 +193,8 @@ impl Default for GuidedReviewWorkspace {
|
||||
drawn: std::cell::Cell::new(preview_guard::Drawn::ALL),
|
||||
feedback_scroll: 0,
|
||||
feedback_room: std::cell::Cell::new(0),
|
||||
description_scroll: None,
|
||||
description_room: std::cell::Cell::new(0),
|
||||
narration_visible: true,
|
||||
fold: Fold::default(),
|
||||
noise_details_visible: false,
|
||||
@@ -278,6 +284,23 @@ impl GuidedReviewWorkspace {
|
||||
self.help_visible = !self.help_visible;
|
||||
}
|
||||
|
||||
/// Opens the pull request's whole description at its top, or shuts it.
|
||||
pub(crate) fn toggle_description(&mut self) {
|
||||
self.description_scroll = match self.description_scroll {
|
||||
Some(_) => None,
|
||||
None => Some(0),
|
||||
};
|
||||
}
|
||||
|
||||
/// Scrolls the open description by `rows`, down when positive, within what it was last drawn
|
||||
/// with, so scrolling past the end and back does not cost presses that move nothing.
|
||||
pub(crate) fn scroll_description(&mut self, rows: i32) {
|
||||
let Some(scroll) = self.description_scroll else { return };
|
||||
let room = i32::from(self.description_room.get());
|
||||
let at = i32::from(scroll).saturating_add(rows).clamp(0, room);
|
||||
self.description_scroll = Some(u16::try_from(at).unwrap_or(0));
|
||||
}
|
||||
|
||||
/// Opens the commit preview so the messages are read before history is written.
|
||||
pub(crate) fn open_commit_preview(&mut self) {
|
||||
self.commit_preview = Some(CommitPreview { squash: false, running: false });
|
||||
|
||||
Reference in New Issue
Block a user