diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..b699e619 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,4 @@ +{ + // The coreclr debugger of launch.json comes with the C# extension. + "recommendations": ["ms-dotnettools.csharp"] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..57fcc9b5 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,188 @@ +{ + // Windows programs under the C# extension's debugger. Each launch configuration builds in Debug first (tasks.json), + // then starts the program's .exe, never "dotnet .dll": the programs read Environment.ProcessPath (the Run + // keys and tray icons of Titano and the Uploader, Setup's payload and the stub of its capture's sample installer). + "version": "0.2.0", + "configurations": [ + { + "name": "Titano", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano", + "program": "${workspaceFolder}/src/Titano.App/bin/Debug/net10.0-windows/Titano.exe", + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "1-programs", + "order": 1 + } + }, + { + "name": "Titano Uploader", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano Uploader", + "program": "${workspaceFolder}/src/Titano.Uploader/bin/Debug/net10.0-windows/Titano.Uploader.exe", + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "1-programs", + "order": 2 + } + }, + { + // SQLite, as on any Windows server, with the data and the archive in out/debug/server instead of + // %ProgramData%\Titano Server and C:\TitanoArchive. The first administrator's temporary password is in + // out/debug/server/data/initial-admin-password.txt. + "name": "Titano Server", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano Server", + "program": "${workspaceFolder}/src/Titano.Server/bin/Debug/net10.0/Titano.Server.exe", + "cwd": "${workspaceFolder}", + "env": { + "TITANO_DATA_PATH": "${workspaceFolder}\\out\\debug\\server\\data", + "TITANO_ARCHIVE_PATH": "${workspaceFolder}\\out\\debug\\server\\archive" + }, + "console": "internalConsole", + "serverReadyAction": { + "action": "openExternally", + "pattern": "Now listening on: https://\\S+:(\\d+)", + "uriFormat": "https://localhost:%s/admin/" + }, + // The server makes its own certificate (data\tls); the ASP.NET Core development certificate plays no part. + "checkForDevCert": false, + "presentation": { + "group": "1-programs", + "order": 3 + } + }, + { + // Every screen with sample data in a throw-away data folder, as the CI screenshots step runs it. + "name": "Titano (screenshots)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano", + "program": "${workspaceFolder}/src/Titano.App/bin/Debug/net10.0-windows/Titano.exe", + "args": ["--capture", "${workspaceFolder}\\out\\screenshots"], + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "2-screenshots", + "order": 1 + } + }, + { + "name": "Titano Uploader (screenshots)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano Uploader", + "program": "${workspaceFolder}/src/Titano.Uploader/bin/Debug/net10.0-windows/Titano.Uploader.exe", + "args": ["--capture", "${workspaceFolder}\\out\\screenshots"], + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "2-screenshots", + "order": 2 + } + }, + { + // Setup has no payload outside a packed installer: the capture builds a sample one and installs nothing. + "name": "Titano Setup (screenshots)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano Setup", + "program": "${workspaceFolder}/src/Titano.Setup/bin/Debug/net10.0-windows/Titano.Setup.exe", + "args": ["--capture", "${workspaceFolder}\\out\\screenshots"], + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "2-screenshots", + "order": 3 + } + }, + { + "name": "Titano.Tools", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build: Titano.Tools", + "program": "${workspaceFolder}/src/Titano.Tools/bin/Debug/net10.0/Titano.Tools.exe", + "args": "${input:toolsArguments}", + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "3-development", + "order": 1 + } + }, + { + "name": "Tests", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + "program": "${workspaceFolder}/tests/${input:testProgram}", + "args": "${input:testArguments}", + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "presentation": { + "group": "3-development", + "order": 2 + } + }, + { + "name": "Attach to process", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}", + "presentation": { + "group": "3-development", + "order": 3 + } + } + ], + "inputs": [ + { + "id": "toolsArguments", + "type": "promptString", + "description": "Titano.Tools command and options (--help lists them; changelog needs --in here)", + "default": "i18n check" + }, + { + "id": "testProgram", + "type": "pickString", + "description": "Test program", + "options": [ + { + "label": "Titano.Core.Tests", + "value": "Titano.Core.Tests/bin/Debug/net10.0/Titano.Core.Tests.exe" + }, + { + "label": "Titano.Core.Windows.Tests", + "value": "Titano.Core.Windows.Tests/bin/Debug/net10.0-windows/Titano.Core.Windows.Tests.exe" + }, + { + "label": "Titano.Data.Tests", + "value": "Titano.Data.Tests/bin/Debug/net10.0/Titano.Data.Tests.exe" + }, + { + "label": "Titano.Server.Tests", + "value": "Titano.Server.Tests/bin/Debug/net10.0/Titano.Server.Tests.exe" + }, + { + "label": "Titano.App.Tests", + "value": "Titano.App.Tests/bin/Debug/net10.0-windows/Titano.App.Tests.exe" + }, + { + "label": "Titano.Tools.Tests", + "value": "Titano.Tools.Tests/bin/Debug/net10.0/Titano.Tools.Tests.exe" + } + ] + }, + { + "id": "testArguments", + "type": "promptString", + "description": "Options: --filter , --exclude , --parallel , --list, --verbose", + "default": "--parallel 1" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..54d69e5b --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,128 @@ +{ + // Debug builds for the configurations in launch.json. The classic console logger (no terminal logger, full paths, + // no wrapping) prints each diagnostic on one line for the $msCompile problem matcher. No reused MSBuild nodes: they + // keep the drive letter's case of earlier builds (VS Code passes it in lower case), and the mixed-case restores + // they caused made every build restore and C# Dev Kit reload. A copy that succeeds on a retry (MSB3026: a file held + // for a moment by an antivirus or another build) does not fail the build; one that never succeeds still does + // (MSB3027). + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "detail": "Titano.slnx, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/Titano.slnx", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": "$msCompile" + }, + { + "label": "build: Titano", + "detail": "src/Titano.App, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/src/Titano.App/Titano.App.csproj", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": "build", + "problemMatcher": "$msCompile" + }, + { + "label": "build: Titano Uploader", + "detail": "src/Titano.Uploader, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/src/Titano.Uploader/Titano.Uploader.csproj", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": "build", + "problemMatcher": "$msCompile" + }, + { + "label": "build: Titano Server", + "detail": "src/Titano.Server, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/src/Titano.Server/Titano.Server.csproj", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": "build", + "problemMatcher": "$msCompile" + }, + { + "label": "build: Titano Setup", + "detail": "src/Titano.Setup, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/src/Titano.Setup/Titano.Setup.csproj", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": "build", + "problemMatcher": "$msCompile" + }, + { + "label": "build: Titano.Tools", + "detail": "src/Titano.Tools, Debug", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/src/Titano.Tools/Titano.Tools.csproj", + "-c", + "Debug", + "-tl:off", + "-nodeReuse:false", + "-p:GenerateFullPaths=true", + "-p:MSBuildWarningsNotAsErrors=MSB3026", + "-consoleLoggerParameters:ForceNoAlign" + ], + "group": "build", + "problemMatcher": "$msCompile" + } + ] +} diff --git a/Directory.Build.props b/Directory.Build.props index c0c906ca..c08b3f1e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -35,6 +35,12 @@ embedded + + + $(MSBuildWarningsAsMessages);MC1000 + + alby96/titano-releases diff --git a/Directory.Build.targets b/Directory.Build.targets index 60f0cca3..6e2913f9 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -27,8 +27,10 @@ GlobalPropertiesToRemove="RuntimeIdentifier;SelfContained;PublishSingleFile;PublishReadyToRun;TargetFramework" Private="false" /> + auto Titano Server + + Information 99 100 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 56855f1e..1320c325 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -29,7 +29,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S | Folder / namespace | Content | |---|---| -| `Imaging` (+ `Decoders`, `Geometry`, `Thumbnails`) | `ImageBuffer` (planar float, linear light), `IImageDecoderProvider`, `DecoderFactory` (decode tiers: native → embedded preview; `ImageDecoder.Probe` names a file's tier without decoding it), `ManagedDecoderProvider`, `FrameWindow` (read-ahead, memory budget, float32 spill), resampler, thumbnail cache | +| `Imaging` (+ `Decoders`, `Geometry`, `Thumbnails`) | `ImageBuffer` (planar float, linear light), `IImageDecoderProvider`, `DecoderFactory` (decode tiers: native → embedded preview; `ImageDecoder.Probe` names a file's tier without decoding it; `DecodeRequest.PreferPreview` takes an adequate RAW preview by choice for analyses and previews, `DecodedImage.ByChoice`), `ManagedDecoderProvider`, `FrameWindow` (read-ahead, memory budget, float32 spill), resampler, thumbnail cache | | `Metadata` (+ `Tiff`, `Jpeg`, `Bmff`, `Raf`, `Riff`, `Png`, `Xmp`, `MakerNotes`) | Signature sniffing, Exif/GPS/XMP/MakerNotes, ISO-BMFF (HEIF, CR3), `MetadataReader`, `MetadataBuilder` (all fallback chains), `ExifWriter` | | `Codecs` (`Jpeg`, `Png`, `Tiff`, `Dng`, `Raw`, `Gif`, `Apng`, `Ico`) | Pure managed codecs; native RAW development (DNG, CR2, NEF, ARW, PEF, RAF) | | `Analysis` (+ `Deep`) | Luminance statistics, deflicker, regions, holy grail, white balance, colour temperature, light analysis, streaming deep analysis with checkpoints | @@ -55,8 +55,8 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S | `Sqlite`, `Postgres` | SQLite P/Invoke binding (winsqlite3 / libsqlite3), in-house PostgreSQL wire protocol v3 client with pool and LISTEN | | `Migrations/{sqlite,postgres}/NNNN_name.sql` | Embedded, applied in one transaction at open (`MigrationRunner`) | | `Repositories` | `TitanoDatabase` facade: archives, sequences, frames, tags, renders, jobs, cards, users, tokens, uploads, render nodes, settings, audit; `DatabaseBackups` (daily `VACUUM INTO` copies of an SQLite index kept ×3, restore staged for the next start and carried out before the index opens, so it also recovers one that no longer opens) | -| `Jobs` | `JobEngine` (its number of workers can change while it runs), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs) | -| `Archiving` | `ArchiveService` (create/adopt/open, archive settings written to `archive.json` then the index), `ArchiveIndexer` (scan, rebuild), `ArchiveIngest` (uploads and imports), `ImportService`, `ArchiveVerifier`, `ArchiveImages`, `FrameTiers` (decode tier, `PreviewOnly`/`Undecodable` flags and preview size of frames, written to sidecar and index by the light analysis, deep analysis, renders and image passes), `GprCompanions` (the JPEG of each GoPro GPR, found in the index when an import kept it in another sequence), `ArchiveMaintenance`, `MassRenamer`, `SequenceTrash` (delete into the archive's hidden trash with a dry run, restore; the folder moves back when the index step fails), job handlers | +| `Jobs` | `JobEngine` (one job at a time; reviews the priority queue and makes a lower running job yield, requeued with its checkpoint), `JobPriorityQueue` (a level per job kind, the claim order, settings round trip), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs that never interrupt their parent), `JobThroughput`/`JobEta` (rate and bounded time left) | +| `Archiving` | `ArchiveService` (create/adopt/open, archive settings written to `archive.json` then the index), `ArchiveIndexer` (scan, rebuild), `ArchiveIngest` (uploads and imports), `ImportService`, `ArchiveVerifier`, `ArchiveImages` (thumbnail and proxy passes, several photos at once through `OrderedWork`, which hands results back in frame order), `FrameTiers` (decode tier, `PreviewOnly`/`Undecodable` flags and preview size of frames, written to sidecar and index by the light analysis, deep analysis, renders and image passes), `GprCompanions` (the JPEG of each GoPro GPR, found in the index when an import kept it in another sequence), `ArchiveMaintenance`, `MassRenamer`, `SequenceTrash` (delete into the archive's hidden trash with a dry run, restore; the folder moves back when the index step fails), job handlers | | `Processing` | `ProcessingService`, `SequenceAnalyser`, `DeepReports` (a saved deep report while it still describes the frames), `SequenceRender`, `ProjectStore`, `ProjectBundles` (a `.titano` file for a sequence, and the sequence a file names), `RenderNodeClient`, job handlers | | `Sync` | `SyncService` (sync table of one server: compare, link by content, settle conflicts, enqueue transfers), `SyncRules` (status, settings merge and differences, no I/O), `SyncPositions` (the settings' frame positions translated by photo to the frames of the copy they go to), `SyncLinkStore` (`sync_links`, `sync_state`), `SyncTransfers` and `SyncJobHandler` (resumable, hash-verified uploads and downloads as jobs; downloads commit through the archive ingest), `SyncAgent` (background comparison, server events, backoff, offline proxies), `ProxyCache` and `RemoteSequence` (server sequences opened with proxies), `ISyncRemote` (the server calls; `TitanoSyncRemote` over `TitanoClient`) | @@ -65,13 +65,13 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S | Folder | Content | |---|---| | `Shell` | `MainWindow` (rail and its shortcuts, taskbar progress), `ShellViewModel` (rail, sections, first run), `OsNotifications` (toasts as Windows notifications while the window is minimised or in the background), dialogs, `ErrorText` (the sentence of an error toast), `ScreenCapture` (`--capture` scenes), `SectionTemplates.xaml` (view model → view) | -| `Sections` | One `XxxView.xaml` + `XxxViewModel` per screen: Welcome, Library, Sequence (editor), Import, Archive, Jobs, Server, Settings, About | +| `Sections` | One `XxxView.xaml` + `XxxViewModel` per screen: Welcome, Library, Sequence (the Edit section: the editor, and `SequencePickerView` choosing the sequence in place), Import, Archive, Jobs, Server, Settings, About | | `Library` | Filter, facets, pager, timeline, saved views, quick and mass actions, remote cards and thumbnails, thumbnail cache, list export | -| `Editor` | `EditorSession` (project, undo/redo, saving, merges), `ISequenceSource` (`LocalSequenceSource`, `RemoteSequenceSource`), tabs (Frames, Exposure, Camera, Motion, Export), `PreviewRenderer`, `ExportPlanner`, `ExportSync`, `SavedCopies`, `SequenceJobs`, `ProjectFiles` (save and open `.titano` project files) | +| `Editor` | `EditorSession` (project, undo/redo, saving, merges), `ISequenceSource` (`LocalSequenceSource`, `RemoteSequenceSource`), the steps of the Edit path (`EditPath`: their order, each step's state, the step of each finding, the memory of the step shown; tabs Analysis, Frames, Exposure, Motion, Camera, Time, Stack, Export), `PreviewRenderer`, `ExportPlanner`, `ExportSync`, `SavedCopies`, `SequenceJobs`, `ProjectFiles` (save and open `.titano` project files) | | `Import` | `CardPool` (inserted cards, remembered cards, folders), camera profiles, plans and choices, destinations (archive, folder, server through `ServerImportSink`), card actions (verified delete, format, eject) | | `Archive` | `CurrentArchive`, `ArchiveTree`, figures for the charts, maintenance reports, mass rename and move, delete and trash dialogs (`SequenceDeletion`, `DeletePlans`), `ArchiveFailures` | | `Server` | `ServerSession`, `ConnectFlow` (trust on first use), `SyncHost` (sync engine, agent, metered hold, editor connections, Export Sync), sync table, `RemoteSequenceApi` | -| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast; `JobEndings` lets a batch speak once); settings rows, encoder and format inventories, `ProcessingTuning` (Settings › Rendering and Analysis applied to each job), `InterfacePriority`, language catalog, naming preview; update check and download | +| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast; `JobEndings` lets a batch speak once); settings rows, encoder and format inventories, `ProcessingTuning` (Settings › Rendering and Analysis applied to each job: parallelism, memory budget, quality), `InterfacePriority`, language catalog, naming preview; update check and download | | `Infrastructure` | `AppServices` (composition root), `AppSettings`, `AppEnvironment` (installed or portable), `AppClock` (today's date, frozen by `--capture`), `StartWithWindows` (this copy's sign-in entry), `UiLanguage`, `LiveRegion`, `RenderNodeHost`, `DiagnosticsBundle`, `ShellActions` (BRIEF §8.6), `SingleInstance` (one Titano per data folder; a later launch hands its file over a named pipe, or waits for a closing one to exit and starts in its place), device monitor | | `DesignTime` | `SampleData`: the archive, jobs and server the screenshots and smoke tests run on, dated from the fixed `SampleData.Now` | @@ -152,7 +152,7 @@ run as server jobs whose progress comes from the events. | To add | Implement / register | |---|---| -| An image format or decoder | `IImageDecoderProvider` (managed in `Core/Imaging/Decoders` or `Codecs`, WIC in `Core.Windows`); chained by `DecoderFactory` | +| An image format or decoder | `IImageDecoderProvider` (managed in `Core/Imaging/Decoders` or `Codecs`, WIC in `Core.Windows`: a RAW only through the Raw Image Extension, checked per file); chained by `DecoderFactory` | | A video encoder | `IVideoEncoderProvider` (`Core/Video/Managed`, `Core.Windows/MediaFoundation`); list it in the host's `ProcessingOptions.Encoders` | | A background operation | a `JobKind`, an `IJobHandler` (in `Data/Archiving/Jobs` or `Data/Processing/Jobs`) returned by the service's `CreateJobHandlers`; the job engine, Jobs screen, admin and API pick it up | | A server feature | a static `XxxEndpoints.Map(api)` in `Server/Api` with `.Requires(Permissions…)`, called from `ServerHost.ConfigurePipeline`; DTOs in `Titano.Protocol` with the JSON context | diff --git a/docs/BRIEF.md b/docs/BRIEF.md index 6a5f2d75..c3fd45b7 100644 --- a/docs/BRIEF.md +++ b/docs/BRIEF.md @@ -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 │ └───────┬───────────────────────────────────────┬────────────────┘ @@ -437,13 +437,13 @@ preview of the first three names. | JPEG | jpg jpeg jpe jfif | APP1 Exif/XMP, MPF | WIC or managed | managed (baseline + progressive) | | PNG | png | eXIf, iTXt XMP | WIC or managed | managed | | TIFF | tif tiff | IFDs | WIC or managed | managed (strips/tiles; none/PackBits/LZW/Deflate/JPEG) | -| DNG (smartphones: Apple ProRAW, Android, Samsung; DJI; Insta360; Leica; Pentax; Ricoh) | dng | IFDs, MakerNote | WIC (if Raw ext.) or managed full decode | managed full decode | +| DNG (smartphones: Apple ProRAW, Android, Samsung; DJI; Insta360; Leica; Pentax; Ricoh; GoPro files converted by Adobe software) | dng | IFDs, MakerNote | managed full decode (amended 2026-10-16, R4) | managed full decode | | Canon | cr2 cr3 | cr2: TIFF; cr3: ISO-BMFF `CMT1..4` | WIC (Raw ext.) → managed CR2 (P1) → embedded preview | managed CR2 (P1) → embedded full-size JPEG (CR3 track 1) | | Nikon | nef nrw | TIFF | WIC → managed NEF (P1) → preview | managed NEF (P1) → preview | | Sony | arw srf sr2 | TIFF | WIC → managed ARW (P1) → preview | idem | | Fujifilm | raf | RAF header + TIFF | WIC → managed RAF uncompressed (P1) → preview | idem | | Olympus/OM, Panasonic, Pentax, Samsung, Hasselblad, Phase One, Leica | orf rw2 raw pef srw 3fr fff iiq rwl | TIFF-like | WIC → managed (P1/P2) → preview | preview (P1: managed decoders as feasible) | -| GoPro | gpr (DNG+VC-5) + jpg sidecar | IFDs | preview/sidecar JPEG; VC-5 out of scope | sidecar JPEG | +| GoPro | gpr (DNG+VC-5; a DNG is GPR only when its raw image is VC-5, amended 2026-10-16, R4) + jpg sidecar | IFDs | preview/sidecar JPEG; VC-5 out of scope | sidecar JPEG | | HEIF/HEIC/AVIF (iPhone, Samsung, DJI) | heic heif hif avif | ISO-BMFF `Exif` item | WIC (HEIF + HEVC/AV1 extensions) | metadata only; pixels via client-made proxies | | WebP | webp | RIFF `EXIF` chunk | WIC (WebP ext.) | metadata only (P2: managed VP8L) | | JPEG XL, JPEG XR, BMP, GIF (single frame) | jxl jxr bmp gif | minimal | WIC if a codec exists | not supported | @@ -465,6 +465,12 @@ which tier will be used on this machine. 3. **Unavailable** → frame flagged `Undecodable`; excluded from render; listed in the sequence warnings. +The tier is what the frame can give. Analyses, thumbnails, proxies and the editor's preview +take an embedded preview that is large enough when a RAW has one, by choice and without +changing the frame's tier; renders always decode natively. WIC counts as a native RAW +decoder only when the decoder it chose for the file is the Raw Image Extension (Windows' +in-box DNG decoder reads only the preview). (Amended 2026-10-16, R4.) + The in-house DNG pipeline (server and client): CFA/linear DNG, `Compression` 1/7 (lossless JPEG SOF3)/8 (Deflate)/34892 (lossy JPEG), `LinearizationTable`, `BlackLevel` (+ repeat dims, delta), `WhiteLevel`, `AsShotNeutral`/`AsShotWhiteXY`, `ColorMatrix1/2` + @@ -561,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) @@ -673,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│ │ │ ⚙ │ │ @@ -688,8 +694,10 @@ player smoke test on Windows CI. └────┴─────────────────────────────────────────────────────────────────────────────┘ ``` -- Left navigation rail (prototype pattern): full names, collapsible to icons (state saved), - badge counts (warnings, running jobs), hover tooltip with section description. +- Left navigation rail (prototype pattern): full names in 200 px, collapsible to 48 px of + icons with ≡ or Ctrl+B (state saved at once; a collapsed icon's tooltip names its section + before describing it; amended 2026-10-16, R1), badge counts (warnings, running jobs), + hover tooltip with section description. - Fluent theme, system/dark/light, system accent; density "comfortable"; 8 px grid; one typeface (Segoe UI Variable, system fallback for CJK/Arabic/etc.). - Window chrome custom (dark title bar), min size 1200×760; per-monitor DPI. @@ -723,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 @@ -832,7 +860,9 @@ Sections (list on the left, controls on the right, no descriptions — tooltips General (language, theme, startup, notifications), Archive (root, templates, proxy policy, thumbnail size, network polling), Import (defaults, session rules, verify, post-actions), Analysis (widths, thresholds, deep analysis auto-run), Rendering (quality profile, memory -budget, spill folder, parallelism, encoders detected, hardware preference), Formats (per +budget, spill folder, parallelism = photos the running job processes at once, priority queue +with a level per job kind, encoders detected, hardware preference; amended 2026-10-16, R2), +Formats (per format tier on this PC, codec install links), Server (last servers, trusted fingerprints, render node), Updates (check on start), Advanced (portable mode, logs, database backup/ restore, reset). Import/export settings as JSON. @@ -946,10 +976,17 @@ it itself (managed formats) or hands it to a render node. ### 14.6 Job engine -Persistent queue in the DB; N worker threads (configurable, default = cores/2); job kinds -in §5; checkpoints every 5 s (progress + resumable cursor); crash-safe restart; priorities +Persistent queue in the DB; jobs run one at a time, and the parallelism (configurable, +default = cores/2) is how many photos the running job processes at once; job kinds in §5; +checkpoints every 5 s (progress + resumable cursor); crash-safe restart; priorities (user-initiated > background analysis); cancellation cooperative; logs per job; retention -of history 90 days. +of history 90 days. By default a new job waits its turn, and pausing the running job lets +the next one start. An optional priority queue (Settings › Rendering on the desktop, the +admin panel's Settings on the server) gives each job kind a level (high, normal, low): +higher kinds are claimed first, and a queued job of a higher level makes the running job +of a lower level yield without asking; that job returns to the queue with its checkpoint +and resumes by itself afterwards. Jobs of the same level never interrupt each other, and a +job's own follow-ups never interrupt it. (Amended 2026-10-16, R2.) ### 14.7 Render nodes @@ -976,9 +1013,12 @@ available and says so in the job log. Pages: Login · Dashboard · Users (table; create/edit/disable/reset/roles/quota) · Archive (path, templates, proxy policy, scan/rebuild/verify, stats) · Jobs (queue/history/nodes, -cancel/retry) · Settings (server name, ports, TLS mode + fingerprint, discovery, limits, -language, retention) · Logs (tail, download) · About. Same UI rules: tooltips only, light/ -dark, localised via `/api/v1/i18n`, keyboard accessible. +cancel/retry) · Settings (server name, ports, TLS mode + fingerprint, discovery, jobs: +parallelism and priority queue, limits, language, retention) · Logs (tail, download) · About. Same UI rules: tooltips only, light/ +dark, localised via `/api/v1/i18n`, keyboard accessible. The sidebar is 256 px and collapses +to its icons with ≡ or Ctrl+B like the desktop rail, the choice kept in the browser and the +links' tooltips then naming their page; on narrow screens it stays the top bar (amended +2026-10-16, R1). ### 14.9 Configuration and Docker @@ -989,7 +1029,9 @@ at first login), `TITANO_ARCHIVE_PATH=/archive`, `TITANO_DATA_PATH=/data`, `TITANO_DB_NAME`, `TITANO_DB_USER`, `TITANO_DB_PASSWORD`, `TITANO_DB_SSLMODE=prefer`, `TITANO_HTTP_PORT=8080`, `TITANO_HTTPS_PORT=8443`, `TITANO_TLS_MODE=auto|pem|proxy`, `TITANO_TLS_CERT`, `TITANO_TLS_KEY`, `TITANO_SERVER_NAME`, `TITANO_LANG=en`, -`TITANO_WORKERS`, `TITANO_DISCOVERY=true` (LAN UDP beacon), `PUID`, `PGID`, `TZ`. +`TITANO_PARALLELISM` (photos the running job processes at once; `TITANO_WORKERS`, its former +name, still sets it), `TITANO_PRIORITY_QUEUE=false`, `TITANO_DISCOVERY=true` (LAN UDP beacon), +`PUID`, `PGID`, `TZ`. (Amended 2026-10-16, R2.) Dockerfile: multi-stage on `mcr.microsoft.com/dotnet/sdk:10.0` → `aspnet:10.0`, non-root user via `PUID/PGID` entrypoint, volumes `/archive` and `/data`, `HEALTHCHECK` on @@ -1300,6 +1342,19 @@ Unraid template validated. --- +## 24. Amendments + +The product owner's change requests amend this brief in place; each amended paragraph says +"(amended , R)". The request files in `docs/requests/` keep the owner's words, the +questions asked and the answers; DECISIONS rows give the reasons. + +| Date | Request | Sections | What changed | +|---|---|---|---| +| 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) ```markdown diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index d2811a80..95af09ba 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -15,6 +15,9 @@ commits follow Conventional Commits (release notes are generated from them by `T - Localization runtime (`Loc`, CLDR plural rules with few/many forms, runtime culture switch, RTL), `en` + `it` catalogs, machine translations with per-language glossaries, `i18n check/export/missing/import`. - Brand mark geometry, SDF rasteriser, PNG encoder, ICO writer and `make-icon` (icons generated at build time). +- VS Code debug configurations for the Windows programs (`.vscode/launch.json`, `tasks.json`): Titano, the Uploader, + the server on SQLite with its data in `out/debug/server`, the screenshot captures, `Titano.Tools` and the test + programs, each built in Debug first. #### Engine (Titano.Core) - Metadata: signature sniffing, TIFF/Exif/GPS/XMP/MakerNotes, JPEG segments, ISO-BMFF (HEIF, CR3), RAF, PNG, @@ -164,7 +167,76 @@ commits follow Conventional Commits (release notes are generated from them by `T sequence's frames changed since the settings' frame positions were written. `GET /api/v1/sequences/{id}/manifest` returns frames, frames version and settings of one frames version. +### Changed +- Owner review 1 (2026-10-16, R2, `docs/requests/2026-10-15-owner-review-1.md`): + - jobs run one at a time, on the desktop and on the server. Settings › Rendering › Parallelism (server: + `TITANO_PARALLELISM`, admin panel › Settings › Jobs) is now how many photos the running job processes at once: + thumbnail and proxy passes draw that many photos together, decode tiers are probed that many at a time, the deep + analysis measures that many frames and a render decodes that many ahead (fewer wherever large originals are + developed whole, within the memory budget); the server's renders get a frame window sized to the host (a quarter + of the memory available) instead of 1 GiB; the running job has the whole memory budget; + - a new job waits its turn, and pausing the running job lets the next one start. An optional priority queue + (Settings › Rendering, admin panel › Settings › Jobs, `TITANO_PRIORITY_QUEUE`) gives each job kind a level; by + default renders, imports and downloads are high and verifies and proxies low. A queued job of a higher level pauses + the running one without asking, and that one resumes by itself afterwards from its checkpoint; + - the Jobs screen shows "8 photos at once", and a Priority queue chip while the queue is on; the admin dashboard + shows the parallelism; + - `Titano.Tools i18n prune` removes from the translations the keys English no longer has. +- Owner review 1 (2026-10-16, R1): the rail is 200 px wide, so section names fit in every language, and collapses to + icons with ≡ or Ctrl+B; collapsed, an icon's tooltip names its section. The choice is saved at once and survives + Settings › *Reset all…* and *Import…*. The admin panel's sidebar is 256 px and collapses to icons the same way (≡ or + Ctrl+B in any keyboard layout, kept in the browser). Beside the wider rail at the 1200 px minimum no action is cut + off in any language: the Jobs table, the Archive tree, the Import plan and result, the trusted certificates, the + cache folder, the editor's header (a server job's Cancel always stays), preview tools (a second line when needed) + and frame table share their width differently; headers, titles and cells that may be shortened end in an ellipsis + and show their text in their tooltip. +- Owner review 1 (2026-10-16, R7): the Sequence section is now **Edit** (Ctrl+3) and edits one sequence at a time. + Without an open sequence, or after *Change sequence* (the title's ▾, Ctrl+O, or *Next sequence* on the last step), + it shows a picker of this PC's and the server's sequences, newest first, with a search; the open sequence (else the + one edited last) is selected and in view. Enter, also right after typing, or a double-click opens one, and Esc goes + back to the open one, which stays open behind the picker until another one has loaded: a server sequence whose + proxies are still coming, or one that cannot open, leaves it open. Its last edit is saved first, or discarded on the + user's word and then never written. The editor's tabs are now the steps of a guided path under the header, freely + navigable: a new first step, **Analysis**, lists every finding of the analyses with a button to the step that deals + with it, five measurements (light, flicker, exposure steps received, shake, flagged frames) and where each other + step stands. Each step shows its status with its own glyph (to do, done, attention, running, waiting); its tooltip + starts with its name, says why and names its shortcut. *Previous* · n / m · *Next* under the settings column, + Alt+1…8, Ctrl+PgUp/PgDn and the arrow keys in the step bar move between steps, the keyboard following. The editor + opens on the step last shown for that sequence in this run, else on Analysis while the sequence is not analysed or + its analysis waits or runs, else on Frames, whose list is now the frame warnings. + +### Deprecated +- `TITANO_WORKERS` and the `Workers` key of `server.json` set the parallelism (photos the running job processes at + once, 1 to 64); the server logs a warning at start when the variable is set. Use `TITANO_PARALLELISM`. + ### Fixed +- Owner review 1 (2026-10-16, `docs/requests/2026-10-15-owner-review-1.md`): + - the App test program could crash on exit after every test had passed (WPF's binding cleanup racing the process's end); + - choosing *Keep editing* when the open sequence's last edit could not be saved left the other sequence as the one + asked for, so every later visit to the section asked again (R7); + - choosing *Discard change* for an edit that could not be saved still wrote it when the archive answered again while + the question was open (R7 review); + - a double-click on a row or card of the Library opened nothing (only one on the empty space under the list opened the + selected sequence): the row took the mouse-down (R7 review); + - thumbnail and proxy jobs over several sequences failed after 10–20 minutes with "TimeSpan overflowed" and then + stayed Running; their progress now counts frames, a stalled job shows no time left, and a job's end is always + recorded (R10); + - the Jobs screen showed the speed of hash verification and card import, which count bytes, in fps; + - choosing presets quickly in the editor made the VS Code debugger stop in `WicDecoderProvider.cs`: a cancelled + preview decode left its background task (R4); + - GoPro DNGs converted by Lightroom or DNG Converter were treated as GPR and read only through their 8-bit embedded + preview, and DNGs Windows' preview-only DNG decoder read were reported as decoded natively. Videos now develop them + natively at 16 bits, analyses and the editor preview use the embedded preview when it is large enough, and the + archive's existing frames are reclassified by the next light analysis (R4); + - an upload or a card import could fail with "Access to the path is denied" (server: 503 `commit_failed`) when a + thumbnail or proxy pass, an analysis or a scan was reading the sequence's sidecar at that moment: the write now + waits a moment for the reader (found while testing phase 2); + - taking a sequence's lease could fail with "Access to the path is denied" when the previous holder had just released + it while another process was reading it (Windows keeps the file pending deletion meanwhile): the lease is now taken + once the reader lets go (found while testing phase 2). +- Opening the repository in VS Code with C# Dev Kit before the first build listed MSB3073 for Titano, the Uploader + and Setup: design-time builds no longer generate the program icons, and log WPF's MC1000 about projects not built + yet as a message. - Server: downloading the current log while it was being written aborted the response (Content-Length mismatch); it now serves the bytes listed at request time. - Mass rename and move: a dry run asked for right after typing was replaced by the pending debounced one, so *Apply* @@ -187,8 +259,8 @@ commits follow Conventional Commits (release notes are generated from them by `T - Release workflow: the server image and its `:latest` tag were pushed before the Windows tests passed, and publishing an older tag again moved `:latest` back; the image now follows the tests and `:latest` the newest stable release. Stable release notes started at the last release candidate instead of the previous stable tag. -- Settings › Rendering quality, parallelism and background priority had no effect on jobs. Parallelism Auto is now the - engine's half of the logical cores, and concurrent jobs share the memory budget. +- Settings › Rendering quality, parallelism and background priority had no effect on jobs. Parallelism Auto is now half + the logical cores (owner review 1 makes it the photos the running job processes at once; see Changed). - A restore staged in Settings › Advanced now runs before the index opens, so it recovers an index that no longer opens. A copy failing quick_check is set aside before any backup is made, and a restored copy is never applied twice. diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index 8df15533..4a5cc5db 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -395,3 +395,26 @@ One line per decision: date · decision · alternative · reason. | 2026-10-12 | Equal frames versions in a sidecar and an index row mean the same frames only when the row's frame ids and order are the sidecar's (`ArchiveIndexer.OtherFramesAsync`). Otherwise the scan treats it as any frames change: it reads the sidecar again under the lease, writes it one version past the row, moves the project's positions and, on a server, clears what covered the frames. Refines 2026-10-12 'The index's frames version never goes back.' | Compare versions only; make the bump unique (a counter kept in the sidecar, a timestamp) | Each index of a shared archive bumps a sidecar put back behind its own row to one past that row. That can be the version another index already holds for other frames, for example a desktop rebuilding a damaged sidecar while the server is one upload ahead. That index then kept its positions, statuses, sync diff and proxy cache, and accepted editors' saves made against frames that had changed. A counter in the sidecar goes back with the sidecar it is put back with. The frame list is read only when the versions match, and the scan writes every frame row in that case anyway. | | 2026-10-13 | `SequenceAdopter.Reconcile` returns null, and the sidecar is left as it was, when the photos it found could not be read and no frame's missing flag changed. | Index the photo without metadata; flag it | A photo held open by another program, without read permission or not downloaded yet is read at the next scan or fix. Treating its folder as changed rewrote the sidecar, cleared the covering flags and queued the analyses (with a deep analysis, hours) again at every orphans fix. | | 2026-10-13 | A deep pass counts as current only when its report describes the frames as this host reads them under the lock, proxies included (`SequenceAnalyser.Describes`), besides an unchanged frames version. Otherwise it replaces only a saved report that does not describe them either (`ReadReport` of the frames as they are). Refines 2026-10-12 'A deep analysis saves `analysis.json` under the sequence lock…'. | Compare frames versions only | A proxy arriving moves no frames version but makes an unreadable verdict on that frame's original stale. A pass that started before it overwrote the report a later pass made from the proxies, then dropped the deep status. | +| 2026-10-15 | VS Code debugs the Windows programs with the C# extension's `coreclr` debugger (`.vscode/launch.json`): Titano, the Uploader, the server, the `--capture` runs of Titano, the Uploader and Setup, `Titano.Tools` and the test programs (these two ask for their arguments). Each launch configuration builds in Debug first (`.vscode/tasks.json`; *Tests* builds the solution) and starts the program's `.exe`. The server's session keeps its data and archive in `out/debug/server` (`TITANO_DATA_PATH`, `TITANO_ARCHIVE_PATH`) and its default ports; Titano and the Uploader use their usual data folder. The build tasks use no reused MSBuild nodes and keep MSB3026 a warning. | C# Dev Kit's `dotnet` launch type with `launchSettings.json`; start `dotnet .dll`; the server's default folders; ports of its own for the server; a portable copy (`portable.txt`) for the desktop programs; reused MSBuild nodes; MSB3026 as an error | The `coreclr` debugger needs only the C# extension. Started as a `.dll`, the process is `dotnet.exe`, which the programs read as their own path (`Environment.ProcessPath`): Setup's payload and the stub of its capture's sample installer, the Run keys and tray icons. A console run creates `%ProgramData%\Titano Server` owned by the developer, which the service then refuses (the console-run data folder rows), and `C:\TitanoArchive` at the drive root. On the default ports the clients reach the debug server as they reach an installed one; the README says to stop the Docker stack or an installed server first. A portable copy would run other code than an installed one (data beside the program, the portable update download). MSB3026 reports a copy that a retry then completes (a file held for a moment by an antivirus or another build): as an error it stopped F5 although the build succeeded, while a copy that never succeeds still fails (MSB3027). Reused MSBuild nodes keep the drive letter's case of the build that started them, while VS Code passes it in lower case: restores mixed both cases, rewrote `project.assets.json` at every build and made C# Dev Kit reload the projects, so no F5 build was a no-op (7 to 14 s for Titano instead of about 5 s). | +| 2026-10-15 | Design-time builds (`DesignTimeBuild=true`: C# Dev Kit, Visual Studio) skip the `TitanoGenerateIcons` target (`Directory.Build.targets`) and log WPF's MC1000 as a message (`Directory.Build.props`). Refines 2026-10-02 'Program icons (ICO) are generated at build time…'. | Build `Titano.Tools` from the design-time build; no warnings as errors in design-time builds; leave it | A design-time build builds no project references, so on a fresh clone `make-icon` ran a `Titano.Tools.dll` that did not exist yet: VS Code listed MSB3073 for Titano, the Uploader and Setup when the folder opened. A design-time build compiles nothing, so it needs no icon. Past that target, the markup compile of their XAML cannot load `Titano.Ui.dll` before the first build: MC1000, which the design-time build makes a warning and warnings as errors made an error again (21 of them). Without warnings as errors they would still be listed, as warnings. Real builds still fail on MC1000. | +| 2026-10-16 | Job throughput: the first two-second window that saw progress seeds the moving average, and below 1e-6 items/s the rate reads unknown; a time left is null when it is not finite, negative or above 365 days, and every stored or reported time left goes through `JobEta`. Saving progress never throws (a failure is logged and the job goes on) and a progress subscriber never fails a job, so a job's final state is always written. Thumbnail and proxy jobs count frames across their targets. Refines 2026-10-02 'Job throughput is a moving average…'. (Owner review 1, R10.) | Clamp the time left only when it is stored; keep counting sequences | The owner's Proxies job over 17 sequences counted sequences while it checkpointed every 10 s inside one of 14,082 frames: each window without progress multiplied the rate by 0.7, the time left passed `TimeSpan`'s limit after 18 minutes and threw in `PublishProgress`, then again in `PersistAsync`, so the job stayed Running for 4 hours until the owner cancelled it. A node-supplied rate and the stored seconds had the same unbounded conversion. | +| 2026-10-16 | The editor's background decodes (`LocalSequenceSource`, `RemoteSequenceSource`), `LatestRunner` and the render node's proxy task keep a superseded decode's `OperationCanceledException` inside their own delegate: the local source catches it in the pool delegate and throws it again after the await, so a cancellation is never reported as an unreadable frame. (Owner review 1, R4.) | `justMyCode: false` in launch.json; providers that return null on cancellation | The owner's "error in WicDecoderProvider.cs when I select some presets" was the cancellation of a preview decode a newer click replaced: it left a synchronous `Task.Run` delegate into the thread pool, where the debugger with Just My Code stops as "not handled by user code"; at runtime it was swallowed and nothing was logged. Throwing on cancellation stays the provider contract. | +| 2026-10-16 | WIC decodes a camera RAW only when the decoder it chose is the Raw Image Extension (CLSID read per file), never a DNG, and never for a request that prefers the embedded preview. Refines 2026-10-02 'Camera RAW is "native" via WIC only when the Raw Image Extension package is installed.' (Owner review 1, R4.) | Trust `CodecInventory` per format; force the Raw Image Extension by CLSID for DNG | With the extension installed, WIC still picks Windows' in-box "DNG Decoder" for every DNG with a JPEG preview; it reads only that 8-bit preview, which the provider labelled native (a smaller preview was a silent downscale). The Raw Image Extension develops DNG to 8 bits and fails on Lightroom's lossy LinearRaw DNGs; the managed decoder develops all of the owner's files at 16 bits. | +| 2026-10-16 | A DNG is GPR only when its raw image is VC-5 (Compression 9) or its extension is .gpr; Make=GoPro alone no longer counts. Frames stored as GPR whose file is not a .gpr are probed again by the next light analysis, which the scan follow-up queues for their sequences, and the format the probe finds replaces the stored one in the sidecar and in `frames.format`. (Owner review 1, R4.) | A migration that rewrites every sidecar; leave existing frames as indexed | The owner's 84,400 GoPro DNGs were converted by Lightroom or DNG Converter (lossy LinearRaw, lossless CFA), which the managed DNG decoder develops, but every one was indexed GPR and preview-only. A light analysis reads only metadata and already probes tiers under the sequence lease. | +| 2026-10-16 | Decode policy, the owner's choice: analyses, thumbnails, proxies and the editor's preview set `DecodeRequest.PreferPreview`, so a RAW gives an embedded preview whose long edge reaches the requested size when it has one and is developed otherwise; renders never set it and develop natively at 16 bits. Such a result is `DecodedImage.ByChoice` and is never recorded as the frame's tier. (Owner review 1, R4.) | Native development everywhere; the preview everywhere | Developing one of the owner's 12 MP DNGs takes 0.8–2.6 s against about 0.1 s for its preview: an analysis of the 84,400 frames would take about 18 hours instead of about 2. Exposure measured on a preview is tone-mapped by the converter, so deflicker corrections computed on it only approximate those of the native pixels the render corrects; the owner chose speed for analysis and quality for videos. | +| 2026-10-16 | Jobs run one at a time (owner review 1, R2): the engine has one worker by default (`JobEngineOptions.Workers` stays for tests of concurrent claims) and `SetWorkers` is gone. The parallelism reaches the work through the hosts' options, asked at the start of each sequence or job: `ArchiveServiceOptions.Parallelism` (thumbnail and proxy passes, tier probes) and `ProcessingOptions.WithParallelism` (deep analysis threads, render read-ahead and decodes). The running job has the whole memory budget. Refines 2026-10-12 'Settings › Rendering › Parallelism Auto is the job engine's default'. | Keep N workers with per-job caps; a `JobContext.Parallelism` passed through every handler and service | The owner's answer. The hosts already tune both option sets per job, render nodes reuse the desktop tuning, and no handler signature changes. | +| 2026-10-16 | The priority queue gives each job kind a level (high, normal, low), off by default: claim order level → priority → age; a queued job of a higher level that the engine would claim makes the running job of the lowest level yield without asking (cancelled, its checkpoint and a log line saved, then `JobRepository.RequeueAsync` back to Queued unless the user paused or cancelled it meanwhile); it resumes by itself when nothing above it waits. Reviewed at every `Wake` (enqueue, resume, settings saved) and every poll (3 s). Jobs of the same level never interrupt each other, a job's own follow-ups never interrupt it, and only a full engine interrupts. Defaults: render, import and download high; verify and proxies low. | An ordered list of all kinds; asking before pausing | The owner: set priorities so that a render started during a scan pauses the scan without confirmation and the scan resumes afterwards. A total order would make every pair of kinds interrupt each other (each periodic scan would pause hours of deep analysis); follow-ups work on what their parent produces. | +| 2026-10-16 | Thumbnail and proxy passes work on several photos at once through `OrderedWork`: up to the parallelism run on the thread pool (twice as many results wait) and their results come back in frame order on the pass's flow, so the pack writer, the counters and the checkpoints stay sequential and a checkpoint still means every frame before it is done; a parallelism of one runs inline. Decodes that develop originals whole run fewer at once for large originals (`DecodeBudget.PhotosAtOnce`): memory budget ÷ (largest frame × 32 bytes per pixel), 24 MP when no size is known, a size a damaged file claims saturating instead of overflowing. Proxy passes always count; thumbnail passes, deep analyses and every window of a render or its preparation count only the frames a decode at their size develops whole (`DecodeBudget.Developed`, `SequenceFrames.DevelopedPixels`): not a JPEG at least twice the size asked for (it decodes scaled down), not a frame read through its proxy or from a JPEG file, not a RAW's embedded preview of that size when previews are preferred (never in a render; another format's stored preview, such as a JPEG-compressed TIFF strip, may need the file's own tables and fall back to a full decode); a TIFF, a PNG or a developed RAW counts whole, so a render node's originals and a preparation over TIFFs are held back too. A frame window that develops originals gates every decode with that limit, read-ahead and demand loads alike (the window itself caps only its read-ahead). The server's frame window gets the host's memory budget (a quarter of the memory available, as the desktop's Auto) instead of the window's 1 GiB default. Tier probes run that many at a time (`Parallel.ForEachAsync`). | `Parallel.ForEach` with a lock around the pack; a byte semaphore per frame | Output identical to a pass of one photo at a time (tested byte for byte). The frames of a sequence share one size, so a limit per sequence is as good as a gate per frame. | +| 2026-10-16 | Verify, import and scan stay sequential inside their job. | Hash, copy or read metadata in parallel | They are bound by one disk or one card reader, where parallel reads are slower; the verify log keeps its order. | +| 2026-10-16 | Server: `TITANO_PARALLELISM` replaces `TITANO_WORKERS`, which still sets it (TITANO_PARALLELISM wins when both are set) and logs a warning at start; the `Workers` key of `server.json` still sets the parallelism and saving the setting removes it. `TITANO_PRIORITY_QUEUE` sets the queue on or off. The parallelism is 1 to 64 (the admin panel's range); a larger value from the environment or `server.json`, or the default on a machine with more than 128 threads, is brought down to 64, so a value the panel cannot change never blocks saving the others. Both apply at once (no restart), `server.json` keeps only the levels that differ from the defaults, and the admin panel lists the 14 kinds a server runs. `ServerSettingsDto` and `DashboardDto` replace `Workers` with `Parallelism` and add the priority queue. | Keep the name Workers; require a restart | The meaning changed (jobs at once → photos at once) and an older value keeps working. The admin panel ships with the server, so the DTO rename breaks no client. | +| 2026-10-16 | `Titano.Tools i18n prune` removes orphan keys (not in English and not a plural form of an English plural key) from every translation, rewriting only the files that had some, as `import` writes them. | Hand edits; regex | A renamed or removed key otherwise stays an orphan in 36 languages, and resx files are never mass-edited with regular expressions. | +| 2026-10-16 | Desktop: the Jobs toolbar shows "8 photos at once" (Settings › Rendering › Parallelism) and a Priority queue chip while the queue is on, instead of "Workers n / m"; Settings › Rendering lists the 16 job kinds with a level dropdown only while the queue is on; the Jobs list orders the queue with the engine's `JobPriorityQueue.ClaimsBefore`. The Jobs, Settings and Admin mockups follow in phase 6 with the rest of the review. | Keep the workers readout | One job runs at a time, so a count of busy workers says nothing. | +| 2026-10-16 | `AtomicFile` tries the rename over the target again for some 1 s (15 attempts, 10 ms × n) while another handle holds it: a sharing or lock violation, or Windows' "access denied" for an open file that is neither read-only nor a folder (those, like a missing file, fail at once). Sidecars, ingest journals, index snapshots and `project.json` are read whole and at once with `AtomicFile.ReadAllBytes`/`ReadAllText` (sharing read and delete, never a writer in place; above 2 GB an `IOException`, as `File.ReadAllBytes`). Windows refuses `MoveFileEx` over an open file even when the reader shares deletion. | Rename with POSIX semantics (`SetFileInformationByHandle`, Windows interop in Core); take the sequence lease for every sidecar read | Readers hold these files for milliseconds; a lease per read would queue thumbnail passes behind uploads, and Core stays free of Windows interop. Found when the faster passes of phase 2 made an upload's commit fail in the server tests. | +| 2026-10-16 | `LeaseFile.TryCreate` treats "access denied" on creating a lease as the name of a lease just released while a reader still holds it (pending deletion on Windows, since readers share deletion) and tries again for some 130 ms (8 attempts, 1 ms doubling), as it already did for the create-or-check race. | Return "held" at once; stop sharing deletion in readers | Returning "held" makes the caller wait its whole poll back-off for a name free milliseconds later, and readers must never block a release or a takeover. A real permission problem still fails after the short retry. Found when the phase 2 test runs hit it in `MassRenameTests` under load. | +| 2026-10-16 | The rail is 200 px (`Width.Rail`, was 128 growing to 200 with the language's longest name) and collapses to the 48 px icons (`Width.RailCollapsed`) with ≡ or Ctrl+B, a window key binding gated like Ctrl+1…6 (not behind the first-run dialog; a held key toggles once). A collapsed icon's tooltip is "Name · description" (`Tooltips.Nav.Collapsed`, invariant) so the section is named without its label, while screen readers keep the name and, as help text, the description alone. The state is written the moment it changes, through `AppServices.SavePreferences` (the settings file and nothing else: no render node restart, no engine wake), and Settings reset and import keep it, as they keep the window. The admin panel's sidebar is 256 px (was 220) and collapses to 56 px of icons with its own ≡ or Ctrl+B (matched on the physical B key when that key types no letter a–z, as in Cyrillic, Greek, Hebrew or Arabic layouts; Latin layouts keep their own Ctrl shortcuts), the choice kept in the browser (`localStorage` `titano.admin.sidebar`, like the theme; a browser that refuses storage keeps it for the page), the tables fitting their columns again after each toggle and the links' names kept for screen readers; at 900 px and below it stays the top bar, which shows icons only already, and Ctrl+B stays the browser's. Beside the wider rail at the 1200 px minimum, in every shipped language: the Jobs table's Kind, Where and State became star columns (minimums 90, 80, 116; at most 140, 140, 170, so on wide windows Target takes the rest, as in Jobs.html) and Target and Progress give way first (84, 104), so the row actions fit; a cut kind, place or header shows whole in its tooltip, and the state's tooltip starts with the state, as the sync table's does (the explanations after it were reworded not to repeat it, and "waiting for a worker" became "waits for its turn"); the trusted certificates row's server column and the cache folder's path give way first; the editor's preview tools wrap to a second line (6 px apart) instead of losing Play and Full screen, the crop-result tool always beside Crop mask and disabled while the mask is off (with its reason), so turning the mask on never moves the tools; the editor header gives the server job and its Cancel their own column, the title and the summary giving way first; the Archive tree keeps a year's label and lets its figures trim; the Import session rows, Show plan and the result line fit; the frame table's Time column holds every language's widest time and its header names trim with the name in the tooltip, header and rows sharing the actions column. Cells that can be cut repeat their text in their tooltip (Library list, Jobs, sync state, Settings encoder table and adapter, priority queue rows; `EmptyToNullConverter` so an empty cell shows none). Tests check, in all 38 languages at 1200 px: the Jobs row buttons, Settings' Clear and Forget, the Archive years, the Import rows and result, the frame table's times, the editor's tools and a server job's Cancel. (Owner review 1, R1.) | A width that follows the language; save the rail state at exit; keep the admin sidebar state per user on the server | The owner fixed 200 and 256 px so names fit in every language without a jumping rail; a crash or a forced shutdown no longer loses the choice; the server keeps no presentation state per user and the theme already lives in the browser. Found by the phase's review rounds: buttons and labels cut at 1200 px in some languages (Jobs row actions, Forget, Clear, the preview's Play, a remote job's Cancel, Merge, a year in the Archive tree), Ctrl+B behind the first-run dialog, and admin tables that kept their old fit. | +| 2026-10-16 | The App test program shuts the shared WPF dispatcher down in order (`WpfApplication.Shutdown`: `InvokeShutdown`, then a join of up to 10 s) after the runner finishes, instead of letting the process end under its background thread. (Owner review 1, R1.) | Leave the background STA thread to die with the process | The binding engine's cleanup then ran against a half-torn-down engine and crashed the exit (code 127) after every test had passed; the tests that walk 38 languages made it likely. | +| 2026-10-16 | The Sequence section is renamed Edit ("Modifica"): `SectionKey.Edit`, `Shell.Nav.Edit` and `Tooltips.Nav.Edit`; the classes keep their names (`SequenceView`, `SequenceViewModel`, `ShellViewModel.Sequence`, `Icon.Sequence`) and so do the editor's resource keys (`Editor.*`). Screenshots are `edit-*` (`edit-picker`, `edit-`, `edit-change`, `edit-busy`). (Owner review 1, R7.) | Rename the classes and keys too | The owner's word is the section's name; renaming twenty files and two hundred keys would change nothing the user sees and would bury the real change in churn. | +| 2026-10-16 | The editor's tabs become the steps of a guided path, freely navigable (the owner's choice): a step bar of equal cells under the header (the tab strip under the filmstrip is gone), a new first step **Analysis** (every finding with the step that deals with it, five measurements, the other steps with their states, Analyse), Previous · n / m · Next under the step's column (both buttons measured whole, the counter giving way), Alt+1…8, Ctrl+PgUp/PgDn (read on the way down the tree, since the filmstrip and the curve editors take Page Up/Down whatever the modifiers) and ←/→ in the bar. Each step shows a status by its own glyph (to do, ✓ done, ▲ attention, ◐ running, ○ waiting) worked out by `EditPath.Of` from the content, the advice, the project, the active analysis and render (`SequenceJobs.Active`), the render's blocker and whether a render has the current settings; no status ever blocks a step. The step's tooltip is "name · what it is for · state · Alt+n" (the name first, because a long name ends in an ellipsis in its cell: about 82 px at the 1200 px minimum, which every English and Italian name fits). After a step change the keyboard goes to the new step's cell when it was in the bar, on a control of the replaced step or on Previous turning itself off, and the preview takes it back if it falls to the window; Space on the step shown plays; Ctrl+click or Ctrl+Space never leaves the bar without a current step. The editor opens on the step last shown for that sequence in this run (a deep analysis that ended meanwhile resets its visited marks), else on Analysis while there is no current deep analysis or one waits, runs or is paused (`EditPath.Start`, applied again once the jobs are read unless the user chose a step), else on Frames. Last step's Next is "Next sequence". (Owner review 1, R7.) | Steps that unlock in order; a wizard with its own window; a ninth "Result" step | The owner asked for a path from the deep analysis to completion that stays freely navigable; locking steps would get in the way of photographers who know what they want; the result belongs to phase 5's export and videos library. | +| 2026-10-16 | Step rules: Analysis is running while a deep analysis is active; needs attention when the index says AnalyzedDeep but the saved analysis describes another number of frames ("Frames changed") or cannot be read now ("Analysis unavailable": archive offline, file moved or damaged, a server that sends none; `SequenceContent.DeepOfOtherFrames` tells them apart); done with its warning count; else to do. Frames waits for the analysis, then needs attention while frames the analysis flags as black, white, duplicate or unreadable are neither excluded nor skipped by the render anyway. Exposure, Motion, Camera and Time wait while an Auto setting of the section needs the deep analysis and there is none, need attention while an Auto setting that applies lacks other data (timestamps, exposure data, source size: the tooltip is the advisor's reason), which taking the value over by hand settles; a setting whose switch is off (`EditorSettings.Applies`, the same rule as the rows' n/a) is never asked for, and a value the analysis could not measure (no usable region mask) stays at the engine's fallback. Otherwise Auto, or Edited once an Auto setting or a value set by hand differs (crop, offsets, camera moves, fit to a duration, exposure offset). Stack is optional. Export is running with its render, needs attention when the export cannot render or no render, of any age, was made from settings with the project's `EditPath.Signature` (which leaves out hero, frames to place, batch, folder, output name and server copy); the renders count as current when the newest keeps no settings (a server's, or one fetched from it) or none's settings can be read. Findings go to steps through `EditPath.FindingSteps` (all 29 keys, tested by reflection; frames of another size or orientation go to Frames, which excludes them); Frames lists its own under "Frame warnings". | A finding count per step; any missing data as "waiting" | Counts would turn Frames ▲ for timing findings it cannot fix; analysis cannot supply timestamps or exposure data, so those need the user, not a wait; a setting shown n/a cannot be taken over, so asking for it would leave a ▲ nobody can clear. | +| 2026-10-16 | The sequence is chosen inside Edit: without an open sequence, or after Change sequence (the title's ▾, Ctrl+O, Next on the last step), a picker covers the editor in place (not a popup): this PC's sequences and the server's sequences the Library knows, newest first, searched after 250 ms (Enter and ↓ in the search box wait for the list to match what was typed), read page by page (more pages are read until the open sequence, else the one edited last, is listed, then it is selected and scrolled into view); Enter or a double-click opens, Esc clears the search then goes back. The open editor stays laid out behind it (hidden, not collapsed, so its preview is not rendered again) and keeps saving each change a moment after it is made (2026-10-03 autosave). Choosing another sequence reads it first; only once it has loaded is the open one's pending change written at once and the editor closed. When the next one cannot open now (its proxies are on their way, or it fails), the open one stays open and is again the sequence asked for (`ShellViewModel.KeepSequence`), so coming back to Edit neither asks again nor retries; Cancel also stops a server sequence chosen meanwhile from opening over it when its proxies arrive. A failed write is either kept (Keep editing) or discarded on the user's word. Asking for the open sequence again (Library, Jobs, a project file) ends a choice of another; coming back to Edit leaves it on screen (`ShellViewModel.SequenceRequests`). Deleting the sequence asked for clears the request. The section remembers each sequence's step and visited steps for the run, and `AppSettings.LastEditedSequence` (saved with `SavePreferences`) is selected first in the picker. (Owner review 1, R7.) | A popup or a separate window; close the editor when the picker opens; close it before the next sequence is read | Captures render the window's visual tree and off-screen test windows make popups fragile; keeping the editor open makes Cancel instant, and closing it only once the next sequence has loaded means a sequence that cannot open never costs the open one (nor its undo history). | +| 2026-10-17 | A double-click on a row is read on the row (`MouseDoubleClick` on its `ListBoxItem`, left button only, not over one of its own buttons) in Edit's picker and in the Library's list and grid, instead of a gesture on the list: a `ListBoxItem` marks every left mouse-down handled to select, so the list's gesture only ever fired on its empty area. While the user is asked whether to discard a change that could not be written, no retry runs (`ProjectSaver.HoldAsync`, `EditorSession.HoldPendingAsync`); Discard drops it unwritten (`DiscardPending`), Keep editing lets the retries go on (`KeepPending`). (Owner review 1, R7 review.) | A double-click binding on the row template; retry during the question and drop only what is still pending | A template binding misses the row's padding; a retry that succeeds while the question is open would write the change the user is about to drop. | diff --git a/docs/STATUS.md b/docs/STATUS.md index 17c862e7..ccf2e149 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -13,6 +13,7 @@ Phase plan: docs/BRIEF.md §22. Windows behaviour is verified on CI (`windows-la | 6 Engine, encoding, editor | Done: render pipeline, MP4/AVI/GIF/APNG/image sequences, Media Foundation H.264/HEVC/AV1 with managed fallbacks; the sequence editor (Frames, Exposure, Camera, Motion and Export tabs, preview tools, section charts, curve editor, undo/redo, batch export) for local and server sequences. Gate: self-test suite green; the in-house inspector validates the containers the tests write; the encoder in use is logged. Playback: MediaPlayer opens the Media Foundation output and a source reader decodes its first frame (Windows tests). The pixel diff of every `--capture` screen against `tests/visual/baselines` (`screenshots diff`, BRIEF §20.2) is wired into CI but not armed: no baseline is committed yet, so the step compares nothing and only warns until the first baselines are accepted from `ci-screenshots` (Next steps). | | 7 Server, sync, uploader | Done: server (API, auth, uploads, jobs, render nodes, events, admin panel with light and dark themes, Windows service), Uploader, client sync (sync table, conflicts with *Save both*, proxies kept offline, metered pause), server sequences edited with proxies and rendered where the originals are, this PC as a render node. Gate covered in-process: a sequence uploaded from one PC downloads identically on another, interrupted uploads and downloads resume, server events update a PC, renders run on a node and on the server's managed fallback, jobs resume after a restart, sign-ins and administrative actions are audited. The run with two real PCs and the Uploader against the Docker server is part of the release test. | | 8 Release readiness | Release pipeline end to end (installers, portable and server zips, SHA256SUMS, release notes, optional signing, multi-arch GHCR image, public releases repository content), update check with verified download, scrubbed diagnostics bundles (desktop and server), performance gates, 38 cultures (`en`, `it` and 36 machine translations with glossaries and independent reviews), RTL pass (`ar`, `he`: mirrored windows, left-to-right islands for media, charts, numbers and paths; any right-to-left culture added later follows), accessibility pass (names, live regions, keyboard paths for charts and the curve editor). CI installs the packed installers silently on a clean `windows-latest` runner, runs the installed programs, upgrades in place and uninstalls (files, Add/Remove Programs, shortcuts, file type, user data kept, exit codes). Pending: a tagged pre-release published from CI, the interactive install on a real PC, Unraid template validation on a real server. | +| 8.1 Owner review 1 | In progress (request, answers and plan: `docs/requests/2026-10-15-owner-review-1.md`). Phase 1 done: stalled thumbnail and proxy jobs no longer fail and stay Running (frame-counted progress, bounded time left, final state always written); the editor's cancelled decodes stay in their tasks (no debugger stops in `WicDecoderProvider.cs`); WIC decodes RAW only through the Raw Image Extension and never DNG; GoPro DNGs converted by Adobe software are DNGs, developed natively for videos, read through their embedded preview for analyses and previews, and reclassified in existing archives by the next light analysis. Phase 2 done: jobs run one at a time on the desktop and the server; Parallelism is how many photos the running job processes at once (thumbnail and proxy passes, tier probes, deep analysis, render decodes); pausing the running job starts the next; an optional priority queue by job kind (Settings › Rendering, admin panel › Settings › Jobs, `TITANO_PRIORITY_QUEUE`) pauses lower jobs and resumes them by themselves; `TITANO_PARALLELISM` replaces `TITANO_WORKERS`. Phase 3a done: the rail is 200 px and collapses to icons with ≡ or Ctrl+B (tooltips then name the sections, the choice saved at once); the admin panel's sidebar is 256 px and collapses the same way. Phase 3b done: the Sequence section is now Edit, one sequence at a time chosen in a picker inside the section (Change sequence, Ctrl+O; the sequence edited last selected first), and the editor's tabs are the steps of a guided, freely navigable path from a new Analysis step (every finding with the step that deals with it) to Export, each step showing where it stands, with Previous and Next. Next: phase 4, the visual crop locked to the output's proportions (R5) and mirroring, 90° rotations, straightening and colour filters (R6). | | 9 Monetization | Not started: requires explicit approval (§22). | ## Verification (2026-10-12) @@ -57,6 +58,9 @@ src/Titano.App/bin/Release/net10.0-windows/Titano.exe --capture out/screenshots opens the sequence with those settings in the running Titano. - Notifications: minimise Titano and insert a card or finish a job: a Windows notification appears; Ctrl+1…6 and Ctrl+, switch sections. +- Edit: Ctrl+3 with no sequence open shows the picker (type to search, Enter opens); the title's ▾ or Ctrl+O chooses + another sequence and Esc comes back. The step bar, *Previous*/*Next* (Ctrl+PgUp/PgDn) and Alt+1…8 move between + steps; on Analysis each finding's button opens the step that deals with it. ## Next steps (Phase 8 gate) diff --git a/docs/requests/2026-10-15-owner-review-1.md b/docs/requests/2026-10-15-owner-review-1.md new file mode 100644 index 00000000..a9209606 --- /dev/null +++ b/docs/requests/2026-10-15-owner-review-1.md @@ -0,0 +1,68 @@ +# Owner review 1 (2026-10-15) + +## Owner's text (verbatim, Italian) + +> Ok, ottimo! Lo hai creato in modo fantastico. Ci sono un po' di cose da controllare: +> - la barra laterale allargala e dai la possibilità di comprimerla lasciando solo le icone +> - cambia modo di eseguire le attività, ovvero DEVONO essere eseguita una volta e il parallelismo decide quante foto +> elaborare nello stesso momento +> - Rivedi il menu di esportazione, così occupa troppo e si capiscono bene i dettagli delle esportazioni +> - C'è un errore quando seleziono alcuni preseti in @src/Titano.Core.Windows/Wic/WicDecoderProvider.cs +> - Dai la possibilità di aggiustare la maschera di ritaglio spostandola sull'immagine in modo da fare un ritaglio +> visuale in base alle proporzioni scelte +> - Aggiungi filtri semplici come specchio, capovolgimento, rotazione, ecc ecc +> - Cambia "Sequenza" in "Modifica", posso selezionare solo una sequenza alla volta da modificare e deve essere +> strutturata come un "percorso" da seguire dall'analisi approfondita della sequenza al suo completamento +> +> Fai domande se qualcosa non è chiaro e aggiorna tutta la documentazione in modo che utenti e IA future siano in +> grado di ricostruire il percorso delle modifiche. +> Esegui test approfonditi. All'avvio ci sono già dei time lapse importati. Aggiungi opzioni di esportazione e una +> libreria separata per i video finali. +> +> Modifiche da fare sia lato docker sia lato desktop. + +## Interpretation + +| Id | Request | Working interpretation | +|---|---|---| +| R1 | Sidebar | Desktop rail wider and collapsible to icons; the server admin panel's sidebar too. | +| R2 | Jobs | One job runs at a time; Parallelism = photos the running job processes at once. Desktop and server. | +| R3 | Export menu | The Export tab and the header's Render menu take too much space and do not make the export details clear (the "non" is missing in the text): compact and clearer. | +| R4 | WicDecoderProvider error | Reproduced: an `OperationCanceledException` from a superseded preview decode leaves a synchronous thread-pool delegate, so the debugger stops in `WicDecoderProvider.cs` (Just My Code). Found while reproducing: WIC decodes the owner's DNGs with Windows' preview-only DNG decoder and labels the 8-bit preview native, and every GoPro DNG is classified GPR, so the archive records them preview-only. | +| R5 | Visual crop | Move and resize the crop mask on the preview, locked to the chosen proportions. | +| R6 | Simple filters | Mirror, flip, 90° rotations, free straighten, colour filters. | +| R7 | Edit path | "Sequence" becomes "Edit" ("Modifica"); one sequence at a time; a guided path from the deep analysis to the finished video. | +| R8 | Export options | Advanced encoding, fades and hold, reverse and boomerang, single frame. | +| R9 | Videos library | One library of the finished videos, desktop and server. | +| R10 | Found in the owner's log | A multi-sequence Proxies job failed with `OverflowException` in `JobContext.Rate()` and stayed Running for 4 hours. | + +## Questions and answers + +| Question | Answer | +|---|---| +| How must jobs run? | One at a time; Parallelism = photos at once inside it. | +| How guided is the Edit path? | Guided steps, freely navigable (Previous/Next, every step clickable). | +| Which simple filters? | Mirror and flip, 90° rotations, straighten (free angle), colour filters. | +| Where does the videos library live? | Desktop + server, one library. | +| Crop proportions vs the export preset's? | The chosen proportions win; the preset adapts its resolution (4K at 9:16 = 2160×3840). | +| Which export options? | Advanced encoding (rate control, keyframes, B-frames, profile, standard resolutions); fades and hold last frame; reverse, boomerang and loop; single frame. | +| Where are the videos' files? | One list; files stay in each sequence's `exports/` and can be copied (hash-verified) to a separate videos folder (Docker: a `/videos` volume). Delete = trash, never erased. | +| How to decode the GoPro DNGs? | Full quality (Titano's native 16-bit decoding) for videos; the embedded preview for analysis and the editor preview. | +| A long background job runs and the user starts another job? | By default the new job is queued; pausing the running job lets the next one start. Settings get a priority queue by job kind: when on, a job of a higher kind pauses the running one without asking, and the paused job resumes by itself afterwards. | +| Rail width? | 200 px (web panel 256 px), collapse with ≡ or Ctrl+B, collapsed icons name their section in the tooltip. | +| How is the sequence chosen in Edit? | A picker inside Edit (searchable single choice) plus "Change sequence" in the header; the other ways to open stay. | +| Commits? | One commit per verified phase. | + +## Delivery plan + +| Phase | Content | State | Commit | +|---|---|---|---| +| 1 | Bugs: R10 job throughput/ETA and stuck jobs; R4 cancellation boundary, WIC decoder truth, GoPro DNG classification, decode policy (preview for analysis, native for renders) | done 2026-10-16: BRIEF §8.1, §8.2, §24; five DECISIONS rows dated 2026-10-16; all test suites, i18n check, format, package guard and xaml-lint green | `34d0305` | +| 2 | R2 jobs one at a time, Parallelism = photos at once, priority queue with automatic pause/resume (desktop + server) | done 2026-10-16: BRIEF §12.8, §14.6, §14.8, §14.9, §24; nine DECISIONS rows dated 2026-10-16 (engine, priority queue, parallel passes and decode budget, sequential IO jobs, server settings, `i18n prune`, Jobs toolbar, atomic writes that wait for a reader, leases taken after a reader lets go); five adversarial review rounds before the commit; levels per kind rather than an ordered list (DECISIONS) | `43b6871` | +| 3a | R1 rail 200 px and admin sidebar 256 px, both collapsing to icons with ≡ or Ctrl+B | done 2026-10-16: BRIEF §12.1, §14.8, §24; one DECISIONS row; DESIGN and every mockup with a rail or the admin sidebar; the two new admin tooltips in all 38 languages. Six adversarial review rounds (desktop and web, each finding verified; the last found only two wording slips, fixed): buttons and labels cut at 1200 px beside the wider rail in some languages (Jobs row actions, Forget, Clear, the preview's Play, a remote job's Cancel, Merge, a year in the Archive tree), Ctrl+B behind the first-run dialog and on non-Latin keyboards, and admin tables not re-fitted after a toggle, all fixed; some older cut texts found on the way got tooltips; tests now check those rows in all 38 languages. Phase 3 lands as two commits because R1 and R7 edit the same shell files and R1 was finished and verified first | `4ea44bb` | +| 3b | R7 Edit section ("Sequenza" → "Modifica"), sequence picker, guided path from analysis to export | done 2026-10-16: BRIEF §4.1, §10.2, §12.1, §12.3, §24; four DECISIONS rows (the rename, the path, the step rules, the picker); DESIGN §4 step bar and §7; `Editor.html` with the step bar and every mockup's rail label; `i18n/GLOSSARY.md` and the 36 language glossaries (Edit, Path, Step, Findings); the new strings in all 38 languages. REVIEW_PLACEHOLDER | phase 3b commit | +| 4 | R5 visual crop, proportions win; R6 transforms, straighten, colour filters | todo | | +| 5 | R3 export panel and Render menu; R8 export options; R9 videos library (desktop, server API, admin page, copy folder, trash) | todo | | +| 6 | Docker/Unraid/deploy docs, BRIEF §24 amendments, full verification | todo | | + +Each phase updates BRIEF (amended paragraphs), DECISIONS, CHANGELOG, STATUS and this file before its commit. diff --git a/docs/requests/README.md b/docs/requests/README.md new file mode 100644 index 00000000..590be8db --- /dev/null +++ b/docs/requests/README.md @@ -0,0 +1,12 @@ +# Owner change requests + +One file per request from the product owner, named `-.md`. Each file keeps: + +1. the owner's text, verbatim; +2. the working interpretation, numbered (R1, R2, …); +3. the questions asked and the owner's answers; +4. the delivery plan, phase by phase, with each phase's state, commit, BRIEF/DESIGN sections amended and DECISIONS rows. + +A request amends the BRIEF: the amended paragraphs say so, and BRIEF §24 lists every amendment with the request that +made it. DECISIONS rows written for a request cite it (`R4`, `owner review 1`). Read the request file first to rebuild +why a part of Titano is the way it is. diff --git a/docs/ui/DESIGN.md b/docs/ui/DESIGN.md index e4862668..4a4d3605 100644 --- a/docs/ui/DESIGN.md +++ b/docs/ui/DESIGN.md @@ -42,7 +42,7 @@ Layout must survive +40 % text width (de, fi): no fixed-width labels, `MinWidth` Spacing scale 4 · 8 · 12 · 16 · 20 (`Thickness` keys `Space.1`…`Space.5`). Radii: 6 controls · 8 cards/panels · 12 pills · 12 modal dialogs. Controls 32 px tall, 44 px minimum width, 12 px horizontal padding; compact row buttons 26–28 px. -Rail 128 px (collapses to 48 px icons); title bar 34; job bar 40; toolbar 56; status bar 30; +Rail 200 px (collapses to 48 px icons with ≡ or Ctrl+B, the tooltips then naming each section; the choice is kept; owner review 1); title bar 34; job bar 40; toolbar 56; status bar 30; table rows 36–40 (52 in the web admin); side panels 320 px; settings section list 200 px. Label column left of controls: 116 px in panels, 180 px in Settings. @@ -74,6 +74,14 @@ Label column left of controls: 116 px in panels, 180 px in Settings. time left, pause; hidden when idle only in the editor (it shows "Ready" elsewhere). - **Rail item**: 36 px; active = Card fill + 3 px Accent left edge; badge = Accent pill with the count of things needing attention. +- **Step bar** (Edit, owner review 1): one row of equal 36 px cells under the editor's header, + one per step, 4 px padding: a 22 px badge, the name (about 82 px at the 1200 px minimum, an + ellipsis beyond) and a 1 px Stroke connector to the next step. Badge = the number in a Stroke + ring (to do), `✓` Success (done), `▲` Warning (attention), `◐` Warning (running), `○` faint + (waiting): each status has its own glyph, so colour never carries it alone. Current step = + 2 px Accent underline and a semibold name; visited steps' names in Text, the others muted. The + tooltip names the step, then what it is for, its state and its shortcut (Alt+n). Previous · + n / m · Next sit under the settings column: both buttons whole, the counter giving way. - **Cards** (Library): 236 px wide, thumbnail 16:9, count badge top-right, checkbox top-left on hover/selection, selected = Accent border + `AccentSelected` glow; hover scrubs the thumbnail. - **Tables**: header 11 px faint, sortable; rows Card fill on hover; numbers right-aligned, @@ -107,8 +115,8 @@ from the SVG geometry (no raster assets checked in as sources). Badges only at | Mockup | Brief | Notes | |---|---|---| | `Main.html` | §12.2 Library | grid/list, year·camera·status filters, selection panel | -| `Editor.html` | §12.3 Sequence editor | Exposure tab, wipe compare, curves, advisor Auto pills | -| `Export.html` | §12.3 / §11.4 | preset cards with size/time estimate, Output panel, batch | +| `Editor.html` | §12.3 Edit | Exposure step: step bar, title ▾ (Change sequence), wipe compare, curves, advisor Auto pills, Previous · n / m · Next | +| `Export.html` | §12.3 / §11.4 | the Export step: step bar with Export current, preset cards with size/time estimate, Output panel, batch, Previous · 8 / 8 · Next sequence | | `Import.html` | §12.4 / §13 | card profile, sessions, plan, verification, after-import actions | | `Archive.html` | §12.5 | tree, mass operations, stats, verify/rebuild, maintenance | | `Jobs.html` | §12.6 | filters, queue order, expandable log, retry/open/folder | @@ -121,6 +129,6 @@ from the SVG geometry (no raster assets checked in as sources). Badges only at | `Components.html` | §12.1 | the control kit above, with hex values and state rules | | `Icon.html` | §17 | construction, sizes, variants, wordmark | -Missing on purpose (build from the brief and this kit): About, Login dialog, the other editor -tabs (Frames, Motion, Camera, Time, Stack), Import "Show plan", Archive rebuild dialog, the -admin Archive/Jobs/Settings/Logs pages. Reuse the shell and the kit; do not invent new colours. +Missing on purpose (build from the brief and this kit): About, Login dialog, the Edit picker +and the other steps (Analysis, Frames, Motion, Camera, Time, Stack), Import "Show plan", +Archive rebuild dialog, the admin Archive/Jobs/Settings/Logs pages. Reuse the shell and the kit; do not invent new colours. diff --git a/docs/ui/mockups/Admin.html b/docs/ui/mockups/Admin.html index fe0ac6f5..e78102b6 100644 --- a/docs/ui/mockups/Admin.html +++ b/docs/ui/mockups/Admin.html @@ -10,7 +10,7 @@ body{margin:0;font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;ba a{color:#0067c0}a:hover{color:#004c8c}
-