Files
photocraft/docs
David MannandClaude Opus 5.5 4165c57f92 xtask: check that every panel button routes through a command id (#3495)
`cargo xtask panel-commands` scans crates/ui-egui/src (test code skipped)
for click handlers -- the block of an `if` whose condition calls
.clicked()/.changed()/.dragged() and friends, a local bound from one, or a
widget fn taking a Ui and returning bool -- that change the document or
session directly: active_mut(), Arc::make_mut on a doc,
session.undo/redo/select_layer/add_document/close(), or an assignment to a
session field. Lexical, std-only scanner; reports file:line and function.

Existing violations sit in a commented allowlist (file + function +
reason); stale entries are errors so the list only shrinks. Two today:
panels.rs color_picker and color_field assign the foreground/background
colour instead of dispatching tools.setColors.

Runs from `cargo xtask ci` and as a CI step. Documented in
docs/development.md and the AGENTS.md checklist; AUTO-219-8 is partial.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-11 16:13:40 +02:00
..
2026-10-11 08:20:15 -04:00