LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
KEYC-PANELS: F8 shows and hides the right panel
Bruno-Alumn7ab5b150f38e
diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rsindex 743bd4600..8515f0c49 100644--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@ -84,6 +84,7 @@ pub const UI_COMMANDS: &[UiCommand] = &[("view.autoAdvance", "Auto Advance", None, "Photo"),("view.filmstrip", "Filmstrip", Some("/"), "View"),("view.leftPanel", "My Photos Panel", Some("Cmd+Shift+L"), "View"),+ ("view.rightPanel", "Right Panel", None, "View"),("view.beforeAfter", "Compare Before and After", Some("Y"), "View"),("view.beforeAfterSplit", "Before/After Split", Some("Shift+Y"), "View"),("view.beforeAfterTopBottom", "Before/After Top/Bottom", Some("Alt+Y"), "View"),@@ -789,6 +790,31 @@ pub fn run_ui_command(app: &mut LightcraftApp, id: &str, p: &Value) -> Option<Reapp.ui.left_panel = !app.ui.left_panel;Ok(Value::Null)}+ "view.rightPanel" => {+ // Classic's F8: hide the right panel, and bring back the same one next time (Edit when+ // none was hidden). Hiding a tool ends it, as closing its panel does.+ if app.ui.right != RightPanel::None && crate::docking::exposed(app, crate::docking::Panel::Tools) {+ app.ui.right_hidden = app.ui.right;+ app.ui.right = RightPanel::None;+ if app.ui.tool != "wbPicker" {+ app.ui.tool.clear();+ }+ let _ = app.session.end_interaction();+ } else {+ let p = match std::mem::take(&mut app.ui.right_hidden) {+ RightPanel::None => RightPanel::Edit,+ p => p,+ };+ app.ui.right = p;+ if p.is_edit_tool() && !matches!(app.ui.view, ViewMode::Detail) {+ app.ui.view = ViewMode::Detail;+ }+ if p == RightPanel::Remove && app.ui.tool.is_empty() {+ app.ui.tool = "remove".into();+ }+ }+ Ok(json!({"open": app.ui.right != RightPanel::None}))+ }"view.beforeAfter" => {app.ui.before_after = if app.ui.before_after == BeforeAfter::SideBySide { BeforeAfter::Off } else { BeforeAfter::SideBySide };Ok(Value::Null)diff --git a/crates/ui-egui/src/shortcuts.rs b/crates/ui-egui/src/shortcuts.rsindex b9d1874a1..fc6bcc461 100644--- a/crates/ui-egui/src/shortcuts.rs+++ b/crates/ui-egui/src/shortcuts.rs@@ -203,6 +203,8 @@ pub const ALIASES: &[(&str, &str, &str)] = &[// Keep existing primary shortcuts and honour custom keymap assignments.("F6", "view.filmstrip", "{}"),("F7", "view.leftPanel", "{}"),+ // and F8 the right panel+ ("F8", "view.rightPanel", "{}"),("Shift+M", "version.create", "{}"),// grid thumbnail size: Classic's key is `=`; `+` (keypad, or Shift+= reported as Plus) agrees("Plus", "view.thumbSizeUp", "{}"),@@ -807,6 +809,27 @@ mod tests {assert_eq!((h.app.ui.filmstrip, h.app.ui.left_panel), (filmstrip, left));}+ /// Classic's F8 hides the right panel and shows the same one again; the other panels stay.+ #[test]+ fn classic_f8_hides_the_right_panel_and_brings_the_same_one_back() {+ use crate::state::RightPanel;+ let mut h = library();+ h.app.ui.view = crate::state::ViewMode::Detail;+ h.app.ui.right = RightPanel::Keywords;+ h.settle(std::time::Duration::from_secs(10));+ let (filmstrip, left) = (h.app.ui.filmstrip, h.app.ui.left_panel);+ key(&mut h, "F8", false);+ assert_eq!(h.app.ui.right, RightPanel::None);+ assert_eq!((h.app.ui.filmstrip, h.app.ui.left_panel), (filmstrip, left));+ key(&mut h, "F8", false);+ assert_eq!(h.app.ui.right, RightPanel::Keywords, "the panel F8 hid comes back");+ // a tool ends when F8 hides it; with nothing hidden before, F8 opens Edit+ h.app.ui.right = RightPanel::None;+ h.app.ui.right_hidden = RightPanel::None;+ key(&mut h, "F8", false);+ assert_eq!(h.app.ui.right, RightPanel::Edit);+ }+#[test]fn shift_culling_keys_advance_exactly_once() {use lightcraft_catalog::{ColorLabel, Flag, PhotoId};diff --git a/crates/ui-egui/src/state.rs b/crates/ui-egui/src/state.rsindex f8c8cc0d4..38557adbe 100644--- a/crates/ui-egui/src/state.rs+++ b/crates/ui-egui/src/state.rs@@ -642,6 +642,9 @@ pub struct UiState {pub view: ViewMode,pub left_panel: bool,pub right: RightPanel,+ /// The right panel F8 (`view.rightPanel`) hid, which the next F8 shows again.+ #[serde(skip)]+ pub right_hidden: RightPanel,/// Widths of the left sidebar and of the right panel in points (dragging their inner edge/// resizes them; within [`LEFT_WIDTH`] / [`RIGHT_WIDTH`]).pub left_width: f32,@@ -1274,6 +1277,7 @@ impl Default for UiState {left_width: LEFT_WIDTH.default,right_width: RIGHT_WIDTH.default,right: RightPanel::Edit,+ right_hidden: RightPanel::None,presets: false,preset_thumbs: false,filmstrip: true,diff --git a/docs/gaps.md b/docs/gaps.mdindex 1b4a385fa..938287e12 100644--- a/docs/gaps.md+++ b/docs/gaps.md@@ -1,6 +1,6 @@# Gaps: where LightCraft falls short of Lightroom-> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-10-15 · **Change:** minor (gap 15: Print Page Options — page numbers, page info, crop marks)+> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-10-21 · **Change:** minor (gap 28: F8 shows / hides the right panel)Every known shortfall, one entry each, ranked by user impact (how many Lightroom users hit it, andhow hard it blocks them), then by effort. **Agents pick work from the top** (the first entry nobody is@@ -43,7 +43,7 @@ Hours are Opus 5.5 agent wall-clock hours (see [target-app-parity.md](target-app| 26 | **Performance at scale**: 85k-photo library opens in 1.7–4.7 s; 100k grid test pending; colour NR at half resolution; at 100k photos stack and album lookups are indexed (an "In a Stack" or "Album" smart album counts in ~14 ms, was 0.6–2.7 s) | ROADMAP log, gpu-pipeline.md | large-catalog users | 15–30 | [target-app-parity](target-app-parity.md#by-dimension) || 27 | **Windows / Linux runtime coverage**: Windows installer UI unverified on Windows (#79); GPU path proven on Apple and on one AMD GPU on Linux (Radeon 8060S, Vulkan); NVIDIA, Intel and DX12 unverified; the Linux riscv64 tarball (new in 0.6.0, #844) is cross-compiled and never run beyond a QEMU smoke test | ROADMAP, issues, `release.yml` | non-Mac users find bugs first | 13–27 | [hardware-parity](hardware-parity.md) || 29 | **HDR merge leftovers** (LR-MERGE-HDR): AI Denoise doesn't run on merged (linear) DNGs; JPEG brackets are treated as linear (no camera response curve); every frame is held as 32-bit float, ~0.86 GB per 67 MP frame (half-float frames would halve it) | tested on Sony A7R VI brackets 2026-10-14 ([merge.md](merge.md)); Lightroom's Denoise supports HDR DNGs | HDR shooters who denoise their merges, merge JPEGs, or merge 7+ frames of high-resolution raws on 16 GB machines | 10–20 (+ denoise linear-RGB contract, gap 11) | [merge](merge.md) |-| 28 | **Small Classic shortcuts and keys**: rating `[` `]`, flag cycling, filter-bar keys, F1 help, panel keys (Tab, F5, F8; F6 and F7 toggle the filmstrip and the left panel) | [ui-parity](ui-parity.md#shortcuts) | Classic muscle memory | 4–8 | [ui-parity](ui-parity.md) |+| 28 | **Small Classic shortcuts and keys**: filter-bar keys, Tab / ⇧Tab (hide the side panels / all panels; Tab moves the keyboard focus here) and F5. Rating `[` `]`, flag cycling (`` ` ``), F1 help, F6 / F7 / F8 (filmstrip, left panel, right panel) are bound | [ui-parity](ui-parity.md#shortcuts) | Classic muscle memory | 2–4 | [ui-parity](ui-parity.md) |Beta-blocking gaps (B) total **~230–430 h**; with the stability and platform work they need around them,**~340–600 h** to beta (incl. 40–80 h for the ~92 open core-path user issues) (see [target-app-parity.md](target-app-parity.md#stage)).@@ -77,6 +77,7 @@ Beta-blocking gaps (B) total **~230–430 h**; with the stability and platform w| Date | Change | Summary ||---|---|---|+| 2026-10-21 | minor | Gap 28 shrinks: F8 shows / hides the right panel (`view.rightPanel`); rating `[` `]`, flag cycling and F1 help were already bound, so the entry lists only filter-bar keys, Tab / ⇧Tab and F5; 2–4 h (was 4–8) || 2026-10-18 | patch | Gap 1: six X-Trans CMOS 4 Fujifilm bodies (X-T30 …) take the X-T3's spectral matrices instead of the neutral matrix || 2026-10-15 | minor | Gap 15 shrinks: the Page panel's Page Options (Page Numbers, Page Info, Crop Marks) print on Single Image and Contact Sheet pages; identity plate, watermark, photo info, Cut Guides, direct printing and JPEG output remain || 2026-10-14 | minor | Gap 26: at 100k photos stack and album lookups are indexed, so an "In a Stack" or "Album" smart album counts in ~14 ms (was 0.6–2.7 s); open time unchanged |diff --git a/docs/parity-checklist.md b/docs/parity-checklist.mdindex 4e0531793..082a9d5c8 100644--- a/docs/parity-checklist.md+++ b/docs/parity-checklist.md@@ -1,6 +1,6 @@# Lightroom parity checklist-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-15 · **Change:** minor (LRC-PRINT-PAGE: Print Page Options) · **Target:** Adobe Lightroom Classic 15.5 / Lightroom 9.6+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-21 · **Change:** minor (KEYC-PANELS: F8 shows / hides the right panel) · **Target:** Adobe Lightroom Classic 15.5 / Lightroom 9.6The measured, row-by-row checklist: one row per Lightroom feature, menu item and shortcut, what wehave and what is missing. It answers *does the feature exist?* (feature breadth). Whether it is good@@ -52,10 +52,10 @@ cited here still exists. Formerly docs/parity.md.| X. Cross-cutting behaviours (BEHAV) | 23 | 6 | 1 | 1 | 8/8 (100%) | 7/10 (70%) || Y. Menus | 84 | 0 | 4 | 8 | 47/47 (100%) | 23/23 (100%) || Z. Keyboard shortcuts (desktop) | 78 | 4 | 2 | 1 | 49/52 (94%) | 24/26 (92%) |-| Lightroom Classic extras | 40 | 23 | 23 | 8 | — | 24/26 (92%) |-| **Total** | 419 | 61 | 59 | 35 | 194/201 (97%) | 148/161 (92%) |+| Lightroom Classic extras | 40 | 24 | 22 | 8 | — | 24/26 (92%) |+| **Total** | 419 | 62 | 58 | 35 | 194/201 (97%) | 148/161 (92%) |-Weighted completion (✅ = 1, 🟡 = ½, 🚫 left out): **83.4%** of 539 in-scope rows — P0 98.3% of 201 · P1 95.0% of 161 · P2 55.7% of 176.+Weighted completion (✅ = 1, 🟡 = ½, 🚫 left out): **83.5%** of 539 in-scope rows — P0 98.3% of 201 · P1 95.0% of 161 · P2 56.0% of 176.<!-- /parity:summary -->## Top gaps and shortcut notes@@ -772,7 +772,7 @@ From `08-lightroom-classic-extras.md` (Classic-only features) and part 2 of `06-| LRC-WEB-IMAGEINFO | Web gallery image info | OOS | 🚫 | | || LRC-WEB-OUTPUT | Web gallery output | OOS | 🚫 | | || LRC-WEB-UPLOAD | Web gallery upload | OOS | 🚫 | | |-| KEYC-PANELS | Classic panel keys (Tab, ⇧Tab, T, F5–F8, solo) | P2 | ⬜ | | solo itself (⌥-click a header, Solo Mode) is done: see LR-EDIT-SECTION-SOLO |+| KEYC-PANELS | Classic panel keys (Tab, ⇧Tab, T, F5–F8, solo) | P2 | 🟡 | `cmd:view.filmstrip`, `cmd:view.leftPanel`, `cmd:view.rightPanel`, `crates/ui-egui/src/shortcuts.rs` | F6 / F7 / F8 show / hide the filmstrip, the left panel and the right panel (F8 brings back the panel it hid); Tab / ⇧Tab not bound (Tab moves the keyboard focus), no F5 or T; solo itself (⌥-click a header, Solo Mode) is done: see LR-EDIT-SECTION-SOLO || KEYC-MODULES | Classic module switching (⌘⌥1–7) | P2 | 🚫 | | no modules in LightCraft || KEYC-VIEWS | Classic view keys (E, G, C, N, L, F, I, ⇧R, ⌘⌥0) | P2 | 🟡 | `cmd:view.photoGrid`, `cmd:view.zoom100` | G works; E opens Edit (not loupe); no compare/survey/lights-out/screen modes || KEYC-SECONDWINDOW | Classic secondary-window keys | P2 | ⬜ | | |@@ -797,6 +797,7 @@ Latin stays upright. Advanced Japanese composition remains open. Regression cove| Date | Change | Summary ||---|---|---|+| 2026-10-21 | minor | KEYC-PANELS: F8 shows / hides the right panel (`view.rightPanel`), with F6 / F7 already bound; ⬜ → 🟡 || 2026-10-14 | patch | LR-EXP-TYPE: opaque 8-bit PNG/TIFF/WebP use RGB; transparent exports retain alpha (#1670). Statuses and feature counts unchanged. || 2026-10-15 | minor | LRC-PRINT-PAGE: Page Options (Page Numbers, Page Info, Crop Marks) on Single Image and Contact Sheet pages, in the Print dialog, `print.set` and templates; still 🟡 (no identity plate, watermark, photo info or Cut Guides) || 2026-10-15 | minor | LR-IMP-FORMATS: Hasselblad 3FR and FFF show their uncompressed RGB preview (no JPEG in these files) in the grid and loupe until developed, and as the stand-in when a file fails to decode; status unchanged (🟡) |diff --git a/docs/ui-parity.md b/docs/ui-parity.mdindex e5e0c6e5f..c4eabf467 100644--- a/docs/ui-parity.md+++ b/docs/ui-parity.md@@ -66,15 +66,15 @@ under the UI command that wraps it (a no-op error); the UI command now wins.| Create Version | ⌘⇧S (+ ⇧M) | ⇧M (Windows: Ctrl+⇧S) | — || Select None | ⌘⇧A (+ ⌘D) | ⌘D | — |-**Library culling (KEYC-RATING):** `0–5`, `6–9` and `P/X/U` reach egui on macOS even when displayed in the native menu (adapted from PR #261; issue #283). `Shift+0–9` applies and advances once; `Shift+P` picks and advances in Photo Grid / Square Grid and retains Presets elsewhere. See [library shortcuts](library-shortcuts.md) for the verified Classic mapping and regression coverage. `` ` `` cycles the flag (unflagged → pick → reject → unflagged) and ⌘↑ / ⌘↓ raise / lower it; the native menu leaves ⌘↑ / ⌘↓ to egui so Compare/Survey act on the active photo. Remaining Classic gaps: filter-bar keys.+**Library culling (KEYC-RATING):** `0–5`, `6–9` and `P/X/U` reach egui on macOS even when displayed in the native menu (adapted from PR #261; issue #283). `Shift+0–9` applies and advances once; `Shift+P` picks and advances in Photo Grid / Square Grid and retains Presets elsewhere. See [library shortcuts](library-shortcuts.md) for the verified Classic mapping and regression coverage. F6, F7 and F8 show / hide the filmstrip, the left panel and the right panel (F8 brings back the panel it hid; `view.rightPanel`). `` ` `` cycles the flag (unflagged → pick → reject → unflagged) and ⌘↑ / ⌘↓ raise / lower it; the native menu leaves ⌘↑ / ⌘↓ to egui so Compare/Survey act on the active photo. Remaining Classic gaps: filter-bar keys.**Grid thumbnail size (KEYC-COMPARE):** Classic's `=` and `-` increase and decrease the Grid thumbnail size (same keys on macOS and Windows; `+` also works for the larger size here, as Shift+`=` or the keypad). They step the bottom-bar slider by 30 pt inside its 90–480 pt range, in Photo Grid, Square Grid and People only; Detail, Compare, Survey and Reference ignore them, and ⌘= / ⌘− stay Zoom In / Out. See [library shortcuts](library-shortcuts.md).**Library navigation keys (KEYC-COMPARE):** in Photo Grid and Square Grid, `Home` / `End` make the first / last photo of the view the active, selected one, and `Shift+Left` / `Shift+Right` add the previous / next photo of the view to the selection (the added photo becomes active; the keys never remove a photo from the selection, and do nothing at either end of the view). They wait in the other views, in the full-screen preview, while a text field or a dialog has the keyboard, and when you gave the key to a command; they are listed under Fixed keys in Help → Keyboard Shortcuts. `Cmd+O` (`Ctrl+O` on Windows and Linux) runs File → Open Library… ; View → Visualize HDR has no default key (`Shift+H` cycles the Tool Overlay, issue #224; `Cmd+Shift+H` stays the Histogram). Covered by `crates/ui-egui/src/tests_keymap.rs`; the macOS native menu path for `Cmd+O` is not exercised by the headless tests.**Still missing / broken:**-- No command yet: F1 help (verify the rest of the old list: full screen, settings, stacks,- visualize spots and merges have commands now).+- Tab / ⇧Tab (hide the side panels / all panels): Tab moves the keyboard focus here (accessibility), so it is+ not bound; F5 (hide the top panel) is not bound either.- ⌘M / ⌘H / ⌘Q / ⌘W rely on the platform window defaults (unverified).