Add comprehensive tests for EditSection functionality in the Windows application

- Implement tests for picker behavior, including loading sequences, searching, and handling empty libraries.
- Validate sequence opening via Enter key and double-click actions.
- Ensure proper handling of unsaved edits and sequence deletion scenarios.
- Verify accessibility features for picker rows across different languages.
- Introduce a dialog counting mechanism to manage unsaved edit confirmations.
This commit is contained in:
Alby96 committed 2026-10-19 12:10:42 +02:00
1 parent 4ea44bb917
commit 5aeb6aa787
214 files changed
+6547 -826

No files matched your search

+43 -22
View File
@@ -226,7 +226,7 @@ Project references: `App` → `Core`, `Core.Windows`, `Data`, `Protocol`. `Serve
```
┌────────────────────────────────────────────────────────────────┐
│ Titano (WPF client) │
│ Library · Sequence editor · Import · Archive manager · Jobs │
│ Library · Edit · Import · Archive manager · Jobs │
│ Local mode: SQLite + local/network archive │
│ Server mode: REST/WS client, proxies cache, render node │
└───────┬───────────────────────────────────────┬────────────────┘
@@ -567,7 +567,7 @@ residuals → deflicker window), exposure steps *as actually received* by the pi
star-field detection (small bright point density on night frames), cloud coverage estimate
(sky-region texture), scene-change detection (histogram distance), duplicate/black/white
frames, motion magnitude histogram (for motion-blur recommendation), suggested hero frame.
Results → `analysis.json` + compact summary in DB; charts in the Sequence editor.
Results → `analysis.json` + compact summary in DB; charts in the Edit section (§12.3; amended 2026-10-16, R7).
### 10.3 Recommendations (rules, each with reason and confidence)
@@ -679,7 +679,7 @@ player smoke test on Windows CI.
│ ⬇ │ section content (edge to edge) │
│Imp │ │
│ ✎ │ commands of the section live INSIDE the section, in one row above the │
│Seq │ content they act on; every command has a tooltip │
│Edit│ content they act on; every command has a tooltip │
│ ▣ │ │
│Arch│ │
│ ⚙ │ │
@@ -731,36 +731,56 @@ player smoke test on Windows CI.
- Filters are chips; saved views (e.g. "Night, 4K, not rendered"); search is instant
(indexed columns); everything virtualized (in-house `VirtualizingWrapPanel`).
### 12.3 Sequence editor
### 12.3 Edit (amended 2026-10-16, R7; formerly "Sequence editor")
```
│ ← Harbour sunset · 3,600 frames · Canon EOS R5 · 2 s interval · 2 h 00 m [Analyse] [Optimise all] [Render ▾] │
│ ← Harbour sunset ▾ · 3,600 frames · Canon EOS R5 · 2 s interval · 2 h 00 m [Analyse] [Optimise all] [Render ▾] │
│ ✓ Analysis ── ▲ Frames ── ✓ Exposure ── ✓ Motion ── ✓ Camera ── ✓ Time ── ⑦ Stack ── ⑧ Export │ ← the path
├──────────────────────────────────────────────────────────────────┬──────────────────────────────────┤
│ ┌──────────────────────────────────────────────────────────────┐ │ Exposure │
│ │ │ │ Deflicker [●] Auto 41 ⓘ │
│ │ PREVIEW │ │ Strength ───●──── 0.8 │
│ │ │ │ Regions [●] Auto horizon │
│ │ [◧ compare] [⊹ vectors] [▭ regions] [▦ crop mask] [1:1] [⛶] │ │ Transitions [●] Auto 18 ⓘ │
│ └──────────────────────────────────────────────────────────────┘ │ WB smoothing [●] Auto │
│ ▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏ filmstrip + markers │ │
│ [Frames] [Exposure] [Motion] [Camera] [Time] [Stack] [Export] │ [Optimise section] [Reset] │
│ │ PREVIEW │ │ Deflicker [●] Auto 41 ⓘ │
│ │ [◧ compare] [⊹ vectors] [▭ regions] [▦ crop mask] [1:1] [⛶] │ │ Strength ───●──── 0.8 │
│ └──────────────────────────────────────────────────────────────┘ │ Transitions [●] Auto 18 ⓘ │
│ ▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏▏ filmstrip + markers │ [Optimise section] [Reset] │
│ ┌──────────────────────────────────────────────────────────────┐ │ │
│ │ measured (amber) vs target (accent) luminance chart, │ │ │
│ │ exposure-step markers, region curves; click = seek preview │ │ │
│ │ the step's measuring tool (charts, frame table, curves) │ │ [‹ Previous] 3 / 8 [Next ›] │
│ └──────────────────────────────────────────────────────────────┘ │ │
```
- One sequence at a time. Without an open sequence, or after **Change sequence** (the
title's ▾, Ctrl+O, or Next on the last step), Edit shows a picker: this PC's sequences
and the signed-in server's, newest first, searched by title, camera or tag, the open
sequence (else the one edited last) selected and in view; Enter (on what was typed) or a
double-click opens one, Esc clears the search, then goes back. The next sequence is read
first: the open one stays open behind the picker until another one opens (a server
sequence whose proxies are still coming, or one that cannot open, leaves it open), its
last edit saved first, or discarded on the user's word and then never written. The
Library, Jobs, the Server screen, project files and the command line still open
sequences in Edit; ← goes back to the Library.
- The steps form a guided path, freely navigable: **Analysis** (every finding of the
analyses with the step that deals with it; light, flicker, exposure steps received,
shake and flagged frames; Analyse), **Frames** (virtualized table: index, time,
exposure, ISO, f, size, tier, flags; exclude/include; set hero; the findings about
single frames), **Exposure** (deflicker, regions, holy-grail transitions, WB) with
luminance/waveform charts, **Motion** (blur, flow quality, stabilization) with shake
path chart, **Camera** (crop, aspect, virtual camera keyframes with a spline editor),
**Time** (fps, timing mode, remap curve, fit-to-duration, plan chart), **Stack**
(median/max, trail length; optional), **Export** (preset, values, output name, batch
list, render history, sponsor slot — Phase 9 only).
- Each step shows where it stands, by its own glyph as well as its colour: to do (its
number), done ✓ (nothing is missing: Auto, or Edited once a setting or value of the step
was set by hand), attention ▲ (a saved analysis of other frames or one that cannot be
read now, frames still flagged, data an Auto setting that applies lacks, a render
blocked or none made from the current settings), running ◐ (its analysis or render),
waiting ○ (it needs the deep analysis). Statuses guide; they never block a step.
Previous and Next (Ctrl+PgUp/PgDn), Alt+1…8 and the step bar (←/→) move between steps,
the keyboard following; each step's tooltip starts with its name and ends with its
shortcut, and screen readers hear the step and its state. The editor opens on the step
last shown for that sequence in this run; else on Analysis while the sequence has no
current deep analysis or one waits, runs or is paused; else on Frames.
- Preview always on top with tools: zoom/pan (1:1 shows raw pixels), wipe compare
original/corrected, motion-vector overlay, region boundary, crop mask ("what I lose" vs
"how it will look"), full-screen native-resolution window with collapsible shot data.
- Sections (tabs inside the editor; each with its measuring tool below the filmstrip and
its settings column on the right): **Frames** (virtualized table: index, time, exposure,
ISO, f, size, tier, flags; exclude/include; set hero; warnings list), **Exposure**
(deflicker, regions, holy-grail transitions, WB) with luminance/waveform charts,
**Motion** (blur, flow quality, stabilization) with shake path chart, **Camera** (crop,
aspect, virtual camera keyframes with a spline editor), **Time** (fps, timing mode, remap
curve, fit-to-duration, plan chart), **Stack** (median/max, trail length), **Export**
(preset, values, output name, batch list, render history, sponsor slot — Phase 9 only).
- Every deducible control shows Auto/manual state (§10.4); every control has a tooltip
with the reason and the effect of moving it the wrong way.
- While a job runs on this sequence, settings that would change the rules mid-render are
@@ -1333,6 +1353,7 @@ questions asked and the answers; DECISIONS rows give the reasons.
| 2026-10-16 | Owner review 1, R4 | §8.1, §8.2 | DNG decodes through the managed decoder (WIC only through the Raw Image Extension, never DNG); a GoPro DNG is GPR only when VC-5; analyses and previews take an adequate embedded preview by choice, renders decode natively. |
| 2026-10-16 | Owner review 1, R2 | §12.8, §14.6, §14.8, §14.9 | Jobs run one at a time; the parallelism is photos the running job processes at once; an optional priority queue by job kind pauses lower jobs and resumes them by itself; `TITANO_PARALLELISM` (former `TITANO_WORKERS`) and `TITANO_PRIORITY_QUEUE`. |
| 2026-10-16 | Owner review 1, R1 | §12.1, §14.8 | The rail is 200 px and collapses to 48 px of icons with ≡ or Ctrl+B, their tooltips naming the sections, saved at once; the admin panel's sidebar is 256 px and collapses the same way, kept in the browser. |
| 2026-10-16 | Owner review 1, R7 | §4.1, §10.2, §12.1, §12.3 | The Sequence section is now Edit: one sequence at a time, chosen in a picker inside the section (Change sequence, Ctrl+O); the editor's tabs are the steps of a guided, freely navigable path that starts with a new Analysis step, each step showing where it stands, with Previous and Next. |
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)