PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Document tabs: Reveal in Finder and drag to reorder (#1906)
Reynold Hu3ae44e3911f1
diff --git a/crates/engine/src/file_cmds.rs b/crates/engine/src/file_cmds.rsindex 9c7ac2c47..590f534e4 100644--- a/crates/engine/src/file_cmds.rs+++ b/crates/engine/src/file_cmds.rs@@ -1132,6 +1132,23 @@ pub fn specs() -> Vec<CommandSpec> {has_doc,close_others),+ // The document tab's menu (UI-217-6): the tab's own file in the platform file manager.+ // Not a Photoshop menu-bar item; enabled when the target document has a saved path.+ spec!("file.revealInFinder", "Reveal in Finder", &[], None, r##"{"document":index? (default active),"dryRun":bool=false}"##, native_doc, |s, p| {+ let i = match p.get("document") {+ Some(v) => v+ .as_u64()+ .and_then(|v| usize::try_from(v).ok())+ .ok_or_else(|| EngineError::BadParams { cmd: "file.revealInFinder".into(), msg: "`document` must be an index".into() })?,+ None => s.active_index().ok_or(EngineError::NoDocument)?,+ };+ let path = s+ .documents()+ .get(i)+ .and_then(|d| d.path.clone())+ .ok_or_else(|| EngineError::BadParams { cmd: "file.revealInFinder".into(), msg: format!("document {i} has no saved file") })?;+ crate::layer_menu_cmds::reveal(&path, p.get("dryRun").and_then(Value::as_bool).unwrap_or(false))+ }),spec!("file.revert", "Revert", &["File"], Some("F12"), "{} (reloads the saved file as one undoable step)", can_revert, |s, _| revert(s)),spec!("file.saveACopy",diff --git a/crates/engine/src/file_cmds/tests.rs b/crates/engine/src/file_cmds/tests.rsindex 2b5f8f9ff..00449fcaf 100644--- a/crates/engine/src/file_cmds/tests.rs+++ b/crates/engine/src/file_cmds/tests.rs@@ -468,3 +468,27 @@ fn batch_reports_inputs_that_share_an_output_name() {let px = photocraft_compose::render(&kept, Rect::new(1, 1, 2, 2)).px[0];assert!(px[0] > 0.99 && px[1] < 0.01, "the first input's result is kept: {px:?}");}++/// `file.revealInFinder` (the document tab's Reveal, UI-217-6) reveals the clicked document's+/// saved path — the tab menu passes `document`, not just the active one.+#[test]+fn reveal_in_finder_reveals_the_documents_saved_path() {+ let mut s = session(8, 8, 8);+ assert!(s.is_enabled("file.revealInFinder"));+ // A new document has no file yet.+ let err = s.execute("file.revealInFinder", json!({"dryRun": true})).unwrap_err();+ assert!(err.to_string().contains("no saved file"), "{err}");+ let path = "/tmp/pics/a.psd";+ s.active_mut().unwrap().path = Some(path.into());+ let r = s.execute("file.revealInFinder", json!({"dryRun": true})).unwrap();+ let (program, args) = crate::layer_menu_cmds::reveal_command(path);+ assert_eq!(r["program"], json!(program));+ assert_eq!(r["args"], json!(args));+ // The tab menu names a background tab: the active document is not the one revealed.+ s.execute("file.new", json!({"width": 8, "height": 8, "name": "other"})).unwrap();+ let err = s.execute("file.revealInFinder", json!({"document": 1, "dryRun": true})).unwrap_err();+ assert!(err.to_string().contains("no saved file"), "{err}");+ let r = s.execute("file.revealInFinder", json!({"document": 0, "dryRun": true})).unwrap();+ assert_eq!(r["program"], json!(program));+ assert_eq!(r["args"], json!(args));+}diff --git a/crates/engine/src/layer_menu_cmds.rs b/crates/engine/src/layer_menu_cmds.rsindex 55595ef88..90f682f35 100644--- a/crates/engine/src/layer_menu_cmds.rs+++ b/crates/engine/src/layer_menu_cmds.rs@@ -350,8 +350,15 @@ fn reveal_in_finder(s: &mut Session, p: &Value) -> Result<Value> {let SmartSource::Linked { path } = &sm.source else {return Err(other("embedded smart objects have no file to reveal"));};+ reveal(path, p.get("dryRun").and_then(Value::as_bool).unwrap_or(false))+}++/// Show `path` in the platform file manager ([`reveal_command`] + [`spawn`]); `dry_run` answers+/// the program and arguments instead (tests). Shared by the smart-object command and the document+/// tab's Reveal in Finder (UI-217-6).+pub(crate) fn reveal(path: &str, dry_run: bool) -> Result<Value> {let (program, args) = reveal_command(path);- if p.get("dryRun").and_then(Value::as_bool).unwrap_or(false) {+ if dry_run {return Ok(json!({"program": program, "args": args}));}spawn(program, &args)?;diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rsindex 97ce2f650..ed99557e7 100644--- a/crates/ui-egui/src/canvas.rs+++ b/crates/ui-egui/src/canvas.rs@@ -1440,6 +1440,7 @@ fn tabs(app: &mut PhotocraftApp, ui: &mut egui::Ui) -> TabStrip {let mut activate = None;let mut close = None;let mut tab_action = None;+ let mut tab_move = None;let (mut focus_open, mut cancel_open) = (None, None);let focused_open = app.jobs.focus.is_some();// Layers dragged over a tab show its document (`layer_transfer`).@@ -1494,7 +1495,7 @@ fn tabs(app: &mut PhotocraftApp, ui: &mut egui::Ui) -> TabStrip {let name_g = crate::tab_strip::elided(ui, &name, font.clone(), t.text, name_max);// The title was cut: the tooltip has the rest of it.let cut = name_g.size().x + 0.5 < natural_w - STUDIO_TAB_PAD + STUDIO_TAB_GAP - meta_g.size().x;- let resp = ui.interact(r, ui.id().with(("dtab", i)), Sense::click());+ let resp = ui.interact(r, ui.id().with(("dtab", i)), Sense::click_and_drag());resp.widget_info(|| egui::WidgetInfo::selected(egui::WidgetType::SelectableLabel, true, sel, &st.doc.name));doc_tabs.push((i, r));if sel {@@ -1523,8 +1524,22 @@ fn tabs(app: &mut PhotocraftApp, ui: &mut egui::Ui) -> TabStrip {} else if resp.clicked() {activate = Some(i);}+ // Drag a tab sideways to reorder it (#217); a line shows where it will land.+ if resp.dragged()+ && let Some(p) = resp.interact_pointer_pos()+ {+ tab_drop_line(ui, &placed, p.x, &t);+ }+ if resp.drag_stopped() {+ let x = resp.interact_pointer_pos().or_else(|| ui.input(|i| i.pointer.interact_pos())).map_or(r.center().x, |p| p.x);+ let to = tab_move_target(i, tab_drop_index(&placed, x));+ if to != i {+ tab_move = Some((i, to));+ }+ }+ let has_path = st.path.is_some();resp.context_menu(|ui| {- tab_action = tab_context_menu(ui, i, tab_count);+ tab_action = tab_context_menu(ui, i, tab_count, has_path);});}// Files opening in the background: a tab with a progress underline; × cancels.@@ -1577,6 +1592,12 @@ fn tabs(app: &mut PhotocraftApp, ui: &mut egui::Ui) -> TabStrip {if let Some(i) = close {let _ = crate::menus::invoke(app, ui.ctx(), "file.close", json!({"document": i}));}+ if let Some((from, to)) = tab_move+ && let Err(e) = crate::menus::invoke(app, ui.ctx(), "document.move", json!({"document": from, "to": to}))+ {+ app.ui.status = e;+ app.ui.status_error = true;+ }if let Some((id, params)) = tab_action&& let Err(e) = crate::menus::invoke(app, ui.ctx(), id, params){@@ -1588,18 +1609,19 @@ fn tabs(app: &mut PhotocraftApp, ui: &mut egui::Ui) -> TabStrip {/// All tab actions go through the same guarded File commands as the menu bar, including the/// unsaved-changes prompt. The clicked tab is explicit even when another document is active.-fn tab_context_items(index: usize, count: usize) -> [(&'static str, &'static str, serde_json::Value, bool); 3] {+fn tab_context_items(index: usize, count: usize, has_path: bool) -> [(&'static str, &'static str, serde_json::Value, bool); 4] {[("Close", "file.close", json!({"document": index}), true),("Close Others", "file.closeOthers", json!({"document": index}), count > 1),("Close All", "file.closeAll", json!({}), true),+ ("Reveal in Finder", "file.revealInFinder", json!({"document": index}), has_path),]}-fn tab_context_menu(ui: &mut egui::Ui, index: usize, count: usize) -> Option<(&'static str, serde_json::Value)> {+fn tab_context_menu(ui: &mut egui::Ui, index: usize, count: usize, has_path: bool) -> Option<(&'static str, serde_json::Value)> {crate::widgets::menu_scroll(ui, |ui| {ui.set_min_width(170.0);- for (label, id, params, enabled) in tab_context_items(index, count) {+ for (label, id, params, enabled) in tab_context_items(index, count, has_path) {if ui.add_enabled(enabled, egui::Button::new(tl!(label))).clicked() {ui.close();return Some((id, params));@@ -1609,6 +1631,33 @@ fn tab_context_menu(ui: &mut egui::Ui, index: usize, count: usize) -> Option<(&'})}+/// Where a tab dragged to `x` would land: before the first shown tab whose middle is right of+/// `x`, else after the last shown tab (its document index + 1), like [`TabStrip::slot`].+fn tab_drop_index(placed: &[(usize, Rect)], x: f32) -> usize {+ match placed.iter().find(|(_, r)| r.center().x >= x) {+ Some(&(i, _)) => i,+ None => placed.last().map_or(0, |&(i, _)| i.saturating_add(1)),+ }+}++/// The `document.move` target for dropping the tab at `from` at insertion index `k`: the slot+/// shifts down when the dragged tab itself is removed first; next to itself it stays put.+fn tab_move_target(from: usize, k: usize) -> usize {+ if k > from { k - 1 } else { k }+}++/// The insertion line shown while a tab is dragged to reorder it.+fn tab_drop_line(ui: &egui::Ui, placed: &[(usize, Rect)], x: f32, t: &crate::theme::Tokens) {+ match placed.iter().find(|(_, r)| r.center().x >= x) {+ Some(&(_, r)) => crate::widgets::drop_line(ui, r, false, true, t),+ None => {+ if let Some(&(_, r)) = placed.last() {+ crate::widgets::drop_line(ui, r, true, true, t);+ }+ }+ }+}+/// Apply tab-strip clicks: a document tab shows that document, an opening tab its progress, and/// an opening tab's × cancels the open (closing the half-open tab).fn open_tab_clicks(@@ -1658,6 +1707,7 @@ fn pro_tabs(app: &mut PhotocraftApp, ui: &mut egui::Ui) -> TabStrip {let active = app.session.active_index().filter(|_| app.jobs.focus.is_none());let (mut activate, mut close) = (None, None);let mut tab_action = None;+ let mut tab_move = None;let tab_count = app.session.documents().len();let dragging = crate::layer_transfer::pointer_if_armed(app, ui.ctx());let mut drag_over = None;@@ -1690,7 +1740,7 @@ fn pro_tabs(app: &mut PhotocraftApp, ui: &mut egui::Ui) -> TabStrip {for &(i, r) in placed.iter().filter(|(i, _)| *i < tab_count) {let Some(title) = titles.get(i) else { continue };let g = crate::tab_strip::elided(ui, title, font.clone(), t.text, (r.width() - DOC_TAB_PAD).max(1.0));- let resp = ui.interact(r, ui.id().with(("ptab", i)), Sense::click());+ let resp = ui.interact(r, ui.id().with(("ptab", i)), Sense::click_and_drag());let sel = Some(i) == active;if sel {ui.painter().rect_filled(r, 0.0, t.chrome);@@ -1716,8 +1766,22 @@ fn pro_tabs(app: &mut PhotocraftApp, ui: &mut egui::Ui) -> TabStrip {} else if resp.clicked() {activate = Some(i);}+ // Drag a tab sideways to reorder it (#217); a line shows where it will land.+ if resp.dragged()+ && let Some(p) = resp.interact_pointer_pos()+ {+ tab_drop_line(ui, &placed, p.x, &t);+ }+ if resp.drag_stopped() {+ let x = resp.interact_pointer_pos().or_else(|| ui.input(|i| i.pointer.interact_pos())).map_or(r.center().x, |p| p.x);+ let to = tab_move_target(i, tab_drop_index(&placed, x));+ if to != i {+ tab_move = Some((i, to));+ }+ }+ let has_path = app.session.documents().get(i).is_some_and(|d| d.path.is_some());resp.context_menu(|ui| {- tab_action = tab_context_menu(ui, i, tab_count);+ tab_action = tab_context_menu(ui, i, tab_count, has_path);});doc_tabs.push((i, r));}@@ -1764,6 +1828,12 @@ fn pro_tabs(app: &mut PhotocraftApp, ui: &mut egui::Ui) -> TabStrip {if let Some(i) = close {let _ = crate::menus::invoke(app, ui.ctx(), "file.close", json!({"document": i}));}+ if let Some((from, to)) = tab_move+ && let Err(e) = crate::menus::invoke(app, ui.ctx(), "document.move", json!({"document": from, "to": to}))+ {+ app.ui.status = e;+ app.ui.status_error = true;+ }if let Some((id, params)) = tab_action&& let Err(e) = crate::menus::invoke(app, ui.ctx(), id, params){@@ -4178,12 +4248,15 @@ mod tests {#[test]fn tab_context_uses_clicked_document_and_existing_close_commands() {- let items = tab_context_items(2, 3);- assert_eq!(items.iter().map(|(_, id, _, _)| *id).collect::<Vec<_>>(), ["file.close", "file.closeOthers", "file.closeAll"]);+ let items = tab_context_items(2, 3, true);+ assert_eq!(items.iter().map(|(_, id, _, _)| *id).collect::<Vec<_>>(), ["file.close", "file.closeOthers", "file.closeAll", "file.revealInFinder"]);assert_eq!(items[0].2, json!({"document": 2}));assert_eq!(items[1].2, json!({"document": 2}));assert_eq!(items[2].2, json!({}));- assert!(!tab_context_items(0, 1)[1].3);+ assert_eq!(items[3].2, json!({"document": 2}));+ assert!(items[3].3, "a saved document can be revealed in the file manager");+ assert!(!tab_context_items(2, 3, false)[3].3, "an unsaved document cannot");+ assert!(!tab_context_items(0, 1, false)[1].3);assert!(items.iter().all(|(_, id, _, _)| photocraft_engine::commands::find(id).is_some()));}@@ -4226,12 +4299,64 @@ mod tests {app.run("file.new", json!({"width": 8, "height": 8, "name": "Edited"})).unwrap();app.run("edit.fill", json!({"color": "#ff0000"})).unwrap();assert_eq!(app.session.active_index(), Some(1));- let (_, id, params, _) = tab_context_items(0, 2)[1].clone();+ let (_, id, params, _) = tab_context_items(0, 2, false)[1].clone();crate::menus::invoke(&mut app, &egui::Context::default(), id, params).unwrap();assert!(app.discard.is_some(), "close others must ask before discarding the edited tab");assert_eq!(app.session.documents().len(), 2);}+ /// The pure half of tab drag-to-reorder (UI-217-6): where a drop lands and which+ /// `document.move` target that is.+ #[test]+ fn tab_drop_index_and_move_target_cover_reorder_drops() {+ let r = |x: f32| Rect::from_min_size(egui::pos2(x, 0.0), egui::vec2(100.0, 26.0));+ let placed = vec![(0, r(0.0)), (1, r(100.0)), (2, r(200.0))];+ assert_eq!(tab_drop_index(&placed, 10.0), 0);+ assert_eq!(tab_drop_index(&placed, 160.0), 2);+ assert_eq!(tab_drop_index(&placed, 350.0), 3, "past the end lands after the last shown tab");+ assert_eq!(tab_move_target(0, 3), 2);+ assert_eq!(tab_move_target(2, 0), 0);+ assert_eq!(tab_move_target(1, 1), 1, "before itself: no move");+ assert_eq!(tab_move_target(1, 2), 1, "just after itself: no move");+ assert_eq!(tab_move_target(0, 1), 0);+ }++ /// Dragging a tab onto another's slot reorders the open documents (UI-217-6), in both the+ /// studio and the Photoshop-style strips.+ #[test]+ fn dragging_a_tab_reorders_the_documents() {+ use egui_kittest::kittest::Queryable;+ for kind in [crate::theme::ThemeKind::Studio, crate::theme::ThemeKind::Pro] {+ let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default());+ for name in ["a", "b", "c"] {+ app.run("file.new", json!({"width": 8, "height": 8, "name": name})).unwrap();+ }+ app.sync_views();+ let mut h = egui_kittest::Harness::builder().with_size(egui::vec2(700.0, 40.0)).build_ui_state(+ |ui, (app, ready): &mut (PhotocraftApp, bool)| {+ if *ready {+ tabs(app, ui);+ }+ },+ (app, false),+ );+ PhotocraftApp::setup_context(&h.ctx, kind);+ h.state_mut().1 = true;+ h.run_steps(2);+ let b = h.get_by_label_contains("b").rect();+ let a = h.get_by_label_contains("a").rect();+ let target = egui::pos2(a.left() + 2.0, a.center().y);+ h.drag_at(b.center());+ h.run_steps(1);+ h.hover_at(target);+ h.run_steps(1);+ h.drop_at(target);+ h.run_steps(2);+ let names: Vec<String> = h.state().0.session.documents().iter().map(|d| d.doc.name.clone()).collect();+ assert_eq!(names, ["b", "a", "c"], "{kind:?}: the dragged tab took the dropped slot");+ }+ }+#[test]fn clone_overlay_is_circular_and_respects_visibility() {let ctx = egui::Context::default();diff --git a/docs/context-menu-parity.md b/docs/context-menu-parity.mdindex a55bacf2e..93a0f9a15 100644--- a/docs/context-menu-parity.md+++ b/docs/context-menu-parity.md@@ -1,6 +1,6 @@# Context-menu parity contract-Status: implementation contract, updated 2026-10-07. Scope: canvas, document tabs, and panels. “Right-click” means a secondary pointer click; macOS Control-click should also open the same menu where the platform sends a context-menu gesture. Photoshop changes a context menu with the active tool, selection, and panel item. Adobe documents that principle but does not publish a complete current menu catalog. **Documented** means an Adobe source explicitly names the gesture or action. **Inferred** means a PhotoCraft design target or an item known from a main menu whose presence in a Photoshop context menu still needs a current-product capture. Do not present inferred rows as exact Photoshop menus. [Adobe: panels and menus](https://helpx.adobe.com/photoshop/using/panels-menus.html), [Adobe: shortcuts and context menus](https://helpx.adobe.com/sa_en/photoshop/using/customizing-keyboard-shortcuts.html).+Status: implementation contract, updated 2026-10-09. Scope: canvas, document tabs, and panels. “Right-click” means a secondary pointer click; macOS Control-click should also open the same menu where the platform sends a context-menu gesture. Photoshop changes a context menu with the active tool, selection, and panel item. Adobe documents that principle but does not publish a complete current menu catalog. **Documented** means an Adobe source explicitly names the gesture or action. **Inferred** means a PhotoCraft design target or an item known from a main menu whose presence in a Photoshop context menu still needs a current-product capture. Do not present inferred rows as exact Photoshop menus. [Adobe: panels and menus](https://helpx.adobe.com/photoshop/using/panels-menus.html), [Adobe: shortcuts and context menus](https://helpx.adobe.com/sa_en/photoshop/using/customizing-keyboard-shortcuts.html).## Dispatch contract@@ -79,7 +79,7 @@ Photoshop's Generative Fill and Delete and Fill Selection rows are left out: Pho| Channels panel row | Duplicate/Delete/Rename, channel display and overlay color, spot conversion; new/split/merge | Implemented in channels_panel.rs | PhotoCraft inventory; exact Photoshop order **inferred** || Brushes and preset panels | Rename/Delete brush or group, export selected brushes, view/reset preset choices | Rename/Delete, and preset group/item menus exist | Adobe explicitly documents Export Selected Brushes from brush/group right-click ([brushes](https://helpx.adobe.com/photoshop/desktop/apply-painting-techniques/brushes-presets/create-brush-set-painting-options.html)); Photoshop pop-up-panel rename/delete/reset/view options are [documented](https://helpx.adobe.com/photoshop/using/panels-menus.html), though some are panel-button menus || Paths, History, Actions, Swatches, Gradients, Patterns, Styles, Libraries, Properties | Target-specific duplicate/delete/rename and panel operations where a panel exists | Paths row menu added in this PR; other panels need audit | **Inferred** catalog; record a Photoshop capture before claiming parity |-| Document tab | Close, Close Others, Close All, Reveal in file manager, duplicate/move to window where supported | Close, Close Others, Close All added in this PR; other options remain open | **Inferred** exact list; P1 |+| Document tab | Close, Close Others, Close All, Reveal in file manager, duplicate/move to window where supported | Close, Close Others, Close All, Reveal in Finder, and drag to reorder implemented; duplicate/move to window where supported remains open | **Inferred** exact list; P1 || Empty pasteboard / workspace | Gray, Black, Custom canvas color choices; verify any additional entries in a current Photoshop capture | No menu | Adobe [documents right-clicking outside the image for canvas color](https://helpx.adobe.com/ph_en/photoshop/using/filling-stroking-selections-layers-paths.html); exact current layout still needs a capture || Text field / selected text | Native edit menu and spelling suggestions without routing to active image tool | Missing per docs/scorecard.md UI-217-8 | P1; **inferred** exact spelling list || Tool icon in Options bar | Reset Tool, Reset All Tools | Audit | Explicitly documented in [Adobe Photoshop reference](https://helpx.adobe.com/archive/en/photoshop/cc/2015/photoshop_reference.pdf); historical source, verify modern label |diff --git a/docs/scorecard.md b/docs/scorecard.mdindex 9d43c31e4..612d1993b 100644--- a/docs/scorecard.md+++ b/docs/scorecard.md@@ -9,7 +9,7 @@ Generated by `cargo xtask scorecard` from `perf/budgets.toml`, `perf/baseline.js| [Performance](#performance) | 3 | 22 | 14 | 48 scenarios: 3 within budget, 22 over budget or failing, 9 tracked only, 7 not run, 7 not measurable yet (baseline 2026-10-05) || [File compatibility](#file-compatibility) | 4 | 12 | 11 | io corpus: oracle ≥ 146/170, round trip ≥ 169/170; psd-tools corpus: oracle ≥ 236/309, round trip ≥ 307/309; photoshop oracles: oracle ≥ 133/256, round trip ≥ 258/256 || [Tools](#tools) | 13 | 14 | 8 | |-| [Workspace and UI](#workspace-and-ui) | 4 | 7 | 12 | settings that do nothing: 55 of 141 (target 0) |+| [Workspace and UI](#workspace-and-ui) | 5 | 6 | 12 | settings that do nothing: 55 of 141 (target 0) || [Type](#type) | 0 | 3 | 6 | || [Automation](#automation) | 3 | 2 | 6 | 627 of 627 menu items live (100.0%) || [Reliability](#reliability) | 5 | 0 | 2 | never-crash lints on 28 of 28 crates; panic_hunt present |@@ -171,7 +171,7 @@ Unread: `general.color_picker`, `general.beep_when_done`, `general.export_clipbo| UI-217-3 | File > Open starts in the last-used folder | done | [#217](https://github.com/storytold/photocraft/issues/217) | file_dialog.rs last_used_dir: open dialogs ask with initial_dir (the most recent file's folder) and apps services.rs passes it to rfd set_directory; open_starts_in_the_last_used_folder + last_used_dir_takes_the_most_recent_parent || UI-217-4 | Preferences all take effect; recent files persist and honour recent_file_count (#204) | missing | [#217](https://github.com/storytold/photocraft/issues/217) | See the prefs audit and BUG-204-* || UI-217-5 | Panel groups can float (menu + drag out of the dock) and are restored at launch | missing | [#217](https://github.com/storytold/photocraft/issues/217) | No floating groups in dock.rs/panels.rs |-| UI-217-6 | Document tabs: overflow list, context menu (Close/Others/All/Reveal), drag to reorder | partial | [#217](https://github.com/storytold/photocraft/issues/217) | canvas.rs: Close/Others/All context menu with unsaved prompt; overflow, Reveal, drag reorder still missing |+| UI-217-6 | Document tabs: overflow list, context menu (Close/Others/All/Reveal), drag to reorder | done | [#217](https://github.com/storytold/photocraft/issues/217) | canvas.rs: Close/Others/All menu with unsaved prompt; Reveal reuses file.revealInFinder (engine layer_menu_cmds::reveal); the » chevron (tab_strip) lists overflow; dragging a tab reorders via document.move || UI-217-7 | Command palette shows recently run commands on an empty query | done | [#217](https://github.com/storytold/photocraft/issues/217) | palette.rs: note_recent from menus::invoke keeps the last 8 commands (dedup, newest first); an empty query lists them via recent_hits; the_palette_records_and_replays_recent_commands_on_an_empty_query covers record -> empty query -> replay || UI-217-8 | Tool-specific canvas right-click menu; right-click spelling suggestions in text fields | partial | [#217](https://github.com/storytold/photocraft/issues/217) | paint_mouse.rs brush picker and canvas_tool_menu.rs selection actions; other tools and text spelling menus missing || UI-217-9 | UI scale presets 100/115/125/150/200 % through zoom_factor, remembered | missing | [#217](https://github.com/storytold/photocraft/issues/217) | prefs.rs:61 UiScale unused; input_tests.rs:71 asserts zoom_factor stays 1.0 |diff --git a/scorecard/ui.toml b/scorecard/ui.tomlindex 6ddd33245..8f9dbea0a 100644--- a/scorecard/ui.toml+++ b/scorecard/ui.toml@@ -43,9 +43,9 @@ note = "No floating groups in dock.rs/panels.rs"[[item]]id = "UI-217-6"target = "Document tabs: overflow list, context menu (Close/Others/All/Reveal), drag to reorder"-status = "partial"+status = "done"issue = 217-note = "canvas.rs: Close/Others/All context menu with unsaved prompt; overflow, Reveal, drag reorder still missing"+note = "canvas.rs: Close/Others/All menu with unsaved prompt; Reveal reuses file.revealInFinder (engine layer_menu_cmds::reveal); the » chevron (tab_strip) lists overflow; dragging a tab reorders via document.move"[[item]]id = "UI-217-7"