app: open the clips grid

The clips screen lists the clips folder: one card per mp4 the user
exported, newest first, with the clip's 16:9 stage, the champion it
stars when its recording is in the loaded history, share, and a menu
whose Delete removes the file. The folder read runs when the screen
opens, and again when an export finishes on it.

Computed highlights were the first plan for the grid, but a real
history parses hundreds of timelines and some run to tens of MB, so
the grid now reads only what the user actually exported.
This commit is contained in:
vhaudiquet committed 2026-11-22 18:36:00 +01:00
1 parent fac1ec00da
commit 3f82f87a81
9 files changed
+577 -9

No files matched your search

+4 -2
View File
@@ -26,6 +26,8 @@ cargo run -- --snap settings.png --scene settings
cargo run -- --snap recording.png --scene recording
cargo run -- --snap audio.png --scene audio
cargo run -- --snap review.png --scene review
cargo run -- --snap clips.png --scene clips
cargo run -- --snap clips-many.png --scene clips-many --at 1 # 36 demo clips, to see the scrollbar
cargo run -- --snap many.png --scene many --at 1 # 60 sample games, to see the scrollbar
```
@@ -64,10 +66,10 @@ reading (`history::tests`), highlight clipping (`highlight::tests`) and formatti
| `src/history.rs` | Timelines from disk and the values the cards show |
| `src/portraits.rs` | Champion portraits: the Data Dragon cache and its downloads |
| `src/highlight.rs` | Highlight clips from kill events |
| `src/export.rs` | ffmpeg clip export |
| `src/export.rs` | ffmpeg clip export, and the clips folder it fills |
| `src/os.rs` | Run key, toasts, tray icon and menu |
| `src/ui.rs` | Colours, cards, switches, sliders, buttons |
| `src/screens/` | Settings, match history, game review |
| `src/screens/` | Settings, match history, clips, game review |
## Where this stands against TODO.txt