Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

docs: sync scorecard with implemented behavior (#348)

Arpit Kumar Jaiswal45d0f4ad933e
diff --git a/docs/scorecard.md b/docs/scorecard.md
index 53290092b..b97750ba4 100644
--- a/docs/scorecard.md
+++ b/docs/scorecard.md
@@ -14,7 +14,7 @@ Generated by `cargo xtask scorecard` from `perf/budgets.toml`, `perf/baseline.js
| [Automation](#automation) | 1 | 3 | 7 | 626 of 626 menu items live (100.0%) |
| [Reliability](#reliability) | 3 | 1 | 3 | never-crash lints on 26 of 26 crates; panic_hunt present |
| [Distribution](#distribution) | 4 | 3 | 4 | |
-| [Open bugs](#open-bugs) | 0 | 3 | 29 | |
+| [Open bugs](#open-bugs) | 6 | 3 | 23 | |
## Performance
@@ -258,8 +258,8 @@ Never-crash attribute on 26 of 26 crate roots.
| BUG-204-1 | Interface prefs (UI scale, font size, channels in colour, sliders, tooltips) wired or hidden | missing | [#204](https://github.com/storytold/photocraft/issues/204) | prefs.rs:196-202; no reader outside prefs.rs (see the prefs audit) |
| BUG-204-2 | workspace.large_tabs, animated_zoom, auto_show_home_screen wired or hidden | missing | [#204](https://github.com/storytold/photocraft/issues/204) | prefs.rs:163,166,229; no reader outside prefs.rs |
| BUG-204-3 | RAW prefs and ask_before_saving_layered_tiff read, or hidden | missing | [#204](https://github.com/storytold/photocraft/issues/204) | raw_defaults (prefs.rs:712), ask_before_saving_layered_tiff (prefs.rs:312) have no readers |
-| BUG-204-4 | Recent files persisted through prefs across restarts | missing | [#204](https://github.com/storytold/photocraft/issues/204) | ui-egui lib.rs:461 push_recent only touches app.ui.recent_files |
-| BUG-204-5 | Recent-files list honours recent_file_count (default 20) | missing | [#204](https://github.com/storytold/photocraft/issues/204) | lib.rs:465 truncate(10) hard-coded; menus.rs:1065 test asserts 'capped at 10' |
+| BUG-204-4 | Recent files persisted through prefs across restarts | done | [#204](https://github.com/storytold/photocraft/issues/204) | crates/ui-egui/src/lib.rs::push_recent stores the list in preferences; prefs_ui::load restores it and recent_files_survive_a_restart_and_honour_the_count verifies reload |
+| BUG-204-5 | Recent-files list honours recent_file_count (default 20) | done | [#204](https://github.com/storytold/photocraft/issues/204) | lib.rs push_recent caps the list with recent_cap (recent_file_count); menus.rs covers default and custom limits |
| BUG-204-6 | Test: every Prefs field is read somewhere or on a hidden allowlist | partial | [#204](https://github.com/storytold/photocraft/issues/204) | The scorecard's prefs audit counts unread fields; no engine test or allowlist yet |
| BUG-205-1 | Free Transform with a selection moves only the selected part of a linked mask | missing | [#205](https://github.com/storytold/photocraft/issues/205) | transform_cmds.rs:127-130 warps the whole linked mask even when the selection split pixels |
| BUG-205-2 | Live transform preview draws the layer with its mask applied | missing | [#205](https://github.com/storytold/photocraft/issues/205) | transform_tool.rs:173 preview_image uses the raw surface |
@@ -276,8 +276,8 @@ Never-crash attribute on 26 of 26 crate roots.
| BUG-207-3 | Smudge mixes premultiplied RGBA (no dark fringe at transparent edges) | missing | [#207](https://github.com/storytold/photocraft/issues/207) | No premultiply in paint/src/retouch.rs |
| BUG-207-4 | edit.transform transforms a targeted alpha channel | missing | [#207](https://github.com/storytold/photocraft/issues/207) | transform_cmds.rs transform() has no target handling |
| BUG-207-5 | Tests: per-tool mask/channel targeting, Sample All Layers, no smudge fringe | missing | [#207](https://github.com/storytold/photocraft/issues/207) | Only smudge_drags_colour_along_the_stroke (retouch.rs:407) |
-| BUG-208-1 | Shift while dragging a Rect/Elliptical Marquee constrains to a square/circle | missing | [#208](https://github.com/storytold/photocraft/issues/208) | canvas.rs:1498 and :1769 pass shift=false to marquee_end |
-| BUG-208-2 | Alt while dragging a marquee draws from the centre | missing | [#208](https://github.com/storytold/photocraft/issues/208) | marquee_end (chrome_ui.rs:157) has no centre mode |
-| BUG-208-3 | W x H px readout beside the cursor while dragging a marquee | missing | [#208](https://github.com/storytold/photocraft/issues/208) | No size readout in canvas.rs or tool_feedback.rs |
+| BUG-208-1 | Shift while dragging a Rect/Elliptical Marquee constrains to a square/circle | done | [#208](https://github.com/storytold/photocraft/issues/208) | canvas.rs marquee_corners applies Shift via Drag::marquee_mods; marquee_tests.rs::shift_during_the_drag_draws_a_square_and_the_readout_follows covers the drag |
+| BUG-208-2 | Alt while dragging a marquee draws from the centre | done | [#208](https://github.com/storytold/photocraft/issues/208) | canvas.rs marquee_corners centres Alt drags; marquee_tests.rs::alt_draws_from_the_centre_and_shift_alt_a_centred_circle verifies rectangles and ellipses |
+| BUG-208-3 | W x H px readout beside the cursor while dragging a marquee | done | [#208](https://github.com/storytold/photocraft/issues/208) | canvas.rs marquee_readout draws the readout; marquee_tests.rs asserts dimensions while dragging and its removal after release |
| BUG-208-4 | Add/subtract/intersect from modifiers pressed before the drag, kept by a test | partial | [#208](https://github.com/storytold/photocraft/issues/208) | Mods captured at press (canvas.rs:1679, used :1779); only a badge test (tool_feedback.rs:195) |
-| BUG-208-5 | Kittest: Shift drag gives a square, Alt drag is centred, readout matches the size | missing | [#208](https://github.com/storytold/photocraft/issues/208) | No marquee drag tests |
+| BUG-208-5 | Kittest: Shift drag gives a square, Alt drag is centred, readout matches the size | done | [#208](https://github.com/storytold/photocraft/issues/208) | crates/ui-egui/src/marquee_tests.rs covers Shift, Alt, selection bounds, W/H readout and drag completion |
diff --git a/scorecard/bugs.toml b/scorecard/bugs.toml
index 54baabb58..696e512c3 100644
--- a/scorecard/bugs.toml
+++ b/scorecard/bugs.toml
@@ -71,16 +71,16 @@ note = "raw_defaults (prefs.rs:712), ask_before_saving_layered_tiff (prefs.rs:31
[[item]]
id = "BUG-204-4"
target = "Recent files persisted through prefs across restarts"
-status = "missing"
+status = "done"
issue = 204
-note = "ui-egui lib.rs:461 push_recent only touches app.ui.recent_files"
+note = "crates/ui-egui/src/lib.rs::push_recent stores the list in preferences; prefs_ui::load restores it and recent_files_survive_a_restart_and_honour_the_count verifies reload"
[[item]]
id = "BUG-204-5"
target = "Recent-files list honours recent_file_count (default 20)"
-status = "missing"
+status = "done"
issue = 204
-note = "lib.rs:465 truncate(10) hard-coded; menus.rs:1065 test asserts 'capped at 10'"
+note = "lib.rs push_recent caps the list with recent_cap (recent_file_count); menus.rs covers default and custom limits"
[[item]]
id = "BUG-204-6"
@@ -197,23 +197,23 @@ note = "Only smudge_drags_colour_along_the_stroke (retouch.rs:407)"
[[item]]
id = "BUG-208-1"
target = "Shift while dragging a Rect/Elliptical Marquee constrains to a square/circle"
-status = "missing"
+status = "done"
issue = 208
-note = "canvas.rs:1498 and :1769 pass shift=false to marquee_end"
+note = "canvas.rs marquee_corners applies Shift via Drag::marquee_mods; marquee_tests.rs::shift_during_the_drag_draws_a_square_and_the_readout_follows covers the drag"
[[item]]
id = "BUG-208-2"
target = "Alt while dragging a marquee draws from the centre"
-status = "missing"
+status = "done"
issue = 208
-note = "marquee_end (chrome_ui.rs:157) has no centre mode"
+note = "canvas.rs marquee_corners centres Alt drags; marquee_tests.rs::alt_draws_from_the_centre_and_shift_alt_a_centred_circle verifies rectangles and ellipses"
[[item]]
id = "BUG-208-3"
target = "W x H px readout beside the cursor while dragging a marquee"
-status = "missing"
+status = "done"
issue = 208
-note = "No size readout in canvas.rs or tool_feedback.rs"
+note = "canvas.rs marquee_readout draws the readout; marquee_tests.rs asserts dimensions while dragging and its removal after release"
[[item]]
id = "BUG-208-4"
@@ -225,6 +225,6 @@ note = "Mods captured at press (canvas.rs:1679, used :1779); only a badge test (
[[item]]
id = "BUG-208-5"
target = "Kittest: Shift drag gives a square, Alt drag is centred, readout matches the size"
-status = "missing"
+status = "done"
issue = 208
-note = "No marquee drag tests"
+note = "crates/ui-egui/src/marquee_tests.rs covers Shift, Alt, selection bounds, W/H readout and drag completion"