xtask: drop the panel-commands allowlist entries main fixed

Main's Color panel rework removed hsb_sliders and rgb_sliders, so their
allowlist entries were stale (the check fails on stale entries). One
allowlisted function is left; the scorecard note and docs/scorecard.md
follow.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
David MannandClaude Opus 5.5 committed 2026-10-24 02:57:09 +02:00
1 parent 74fe5dc853
commit f26bd3e257
3 files changed
+6 -20

No files matched your search

+2 -2
View File
@@ -11,7 +11,7 @@ Generated by `cargo xtask scorecard` from `perf/budgets.toml`, `perf/baseline.js
| [Tools](#tools) | 36 | 8 | 0 | |
| [Workspace and UI](#workspace-and-ui) | 15 | 6 | 2 | settings that do nothing: 20 of 177 (target 0) |
| [Type](#type) | 5 | 5 | 0 | |
| [Automation](#automation) | 5 | 2 | 4 | 631 of 631 menu items live (100.0%) |
| [Automation](#automation) | 5 | 3 | 3 | 631 of 631 menu items live (100.0%) |
| [Reliability](#reliability) | 5 | 2 | 0 | never-crash lints on 30 of 30 crates; panic_hunt present |
| [Distribution](#distribution) | 5 | 5 | 1 | |
| [Open bugs](#open-bugs) | 31 | 1 | 0 | |
@@ -244,7 +244,7 @@ Menu wiring (`docs/parity-checklist.md`): 631 of 631 menu items live (100.0%). T
| AUTO-219-5 | Batch: subfolders, open documents, naming template, progress/cancel, error log, stop | partial | [#219](https://github.com/storytold/photocraft/issues/219) | file_cmds.rs and file_cmds/batch_naming.rs: folder/array input, per-file errors, {name}/{serial}/{date} output templates and starting serial, Include All Subfolders (includeSubfolders: depth/loop/file-count bounded, results keep their subfolder; Batch and Image Processor dialogs, #3753); no open-documents source, cancel or error-log file |
| AUTO-219-6 | Plug-in ABI v2: panel kind, progress/cancel calls, read other layers, Last Filter repeats | missing | [#219](https://github.com/storytold/photocraft/issues/219) | runtime.rs:15 ABI_VERSION = 1; manifest.rs:18 Kind::Filter only |
| AUTO-219-7 | Local ONNX models behind a flag, managed in Preferences; subject select, background removal | missing | [#219](https://github.com/storytold/photocraft/issues/219) | No ONNX runtime dependency |
| AUTO-219-8 | xtask check that every panel button routes through a command id | missing | [#219](https://github.com/storytold/photocraft/issues/219) | No such xtask check |
| AUTO-219-8 | xtask check that every panel button routes through a command id | partial | [#219](https://github.com/storytold/photocraft/issues/219) | cargo xtask panel-commands (run by xtask ci and CI) fails on a shell click handler that changes the document or session directly; 1 allowlisted function left (panels.rs color_field assigns the foreground/background colour instead of tools.setColors) |
| AUTO-219-9 | Headless commands for in-canvas type editing, Liquify/Puppet strokes, transform handles | done | [#219](https://github.com/storytold/photocraft/issues/219) | type.hitTest, type.caret, type.navigate; filter.liquify strokes, edit.puppetWarp pins, type.edit, edit.transform |
| AUTO-219-10 | Agent acceptance suite grown to 30-50 workflows | partial | [#219](https://github.com/storytold/photocraft/issues/219) | automation/tests/it/agent_tasks.rs runs 10 workflows over MCP |
+1 -1
View File
@@ -65,7 +65,7 @@ id = "AUTO-219-8"
target = "xtask check that every panel button routes through a command id"
status = "partial"
issue = 219
note = "cargo xtask panel-commands (run by xtask ci and CI) fails on a shell click handler that changes the document or session directly; 2 allowlisted functions left (panels.rs hsb_sliders, color_field assign the foreground/background colour instead of tools.setColors)"
note = "cargo xtask panel-commands (run by xtask ci and CI) fails on a shell click handler that changes the document or session directly; 1 allowlisted function left (panels.rs color_field assigns the foreground/background colour instead of tools.setColors)"
[[item]]
id = "AUTO-219-9"
+3 -17
View File
@@ -46,23 +46,9 @@ pub struct Allowed {
/// Existing click handlers that change the document directly. Shrink only: each entry is a
/// follow-up (route it through an engine command), never a place to park new code.
pub const ALLOWLIST: &[Allowed] = &[
// Window › Color: the HSB sliders set the foreground colour by assignment, so the change
// never reaches the journal, action recording or the control channel's event log.
// Fix: dispatch `tools.setColors` (it already exists).
Allowed {
file: "crates/ui-egui/src/panels.rs",
func: "hsb_sliders",
reason: "Color panel HSB sliders assign session.tools.foreground; dispatch tools.setColors",
},
// The Color panel's RGB sliders assign the foreground or background colour the same way.
// Fix: dispatch `tools.setColors`.
Allowed {
file: "crates/ui-egui/src/panels.rs",
func: "rgb_sliders",
reason: "Color panel RGB sliders assign session.tools.foreground/background; dispatch tools.setColors",
},
// The Color panel's colour field and hue strip (and their readout) assign the foreground or
// background colour on every drag frame. Fix: dispatch `tools.setColors`.
// Window › Color: the colour field and hue strip (and their readout) assign the foreground or
// background colour on every drag frame, so the change never reaches the journal, action
// recording or the control channel's event log. Fix: dispatch `tools.setColors` (it already exists).
Allowed {
file: "crates/ui-egui/src/panels.rs",
func: "color_field",