chore(assets): scripted screenshot pipeline

This commit is contained in:
2025-10-25 23:06:00 +02:00
parent 94ef08db6b
commit a4f7a45e56
7 changed files with 501 additions and 1 deletions

View File

@@ -176,3 +176,16 @@ When modifying TUI UX or keybindings:
Keeping these steps in sync ensures Owlens keyboard-first UX remains
predictable, accessible, and discoverable.
## 8. Screenshot Pipeline
Use the scripted pipeline to regenerate gallery assets and documentation
illustrations:
- `cargo xtask screenshots` emits ANSI dumps under `images/generated` and, by
default, converts them to PNG with `chafa`. Pass `--no-png` to skip PNG
rendering or `--chafa /path/to/chafa` to override the binary. Each scene is
deterministic—no network calls—and mirrors the regression snapshots.
- The pipeline reuses the same stub provider harness as the snapshot tests, so
new scenes should be added in tandem with `chat_snapshots.rs` to keep visual
regression coverage and documentation imagery aligned.