Commit Graph
11 Commits
Author SHA1 Message Date
Claude dbbb5079d1 fix(settings): a read of the archive's settings that overlapped an edit waits for it and reads again
A read of the open archive's settings that an Archive row edit overlapped
was dropped and left to the edit's end, so a folder change could complete
while the rows still showed the previous archive. The read now waits until
no edit is being written and reads again, so the retarget and the reload on
showing Settings are done only once the rows show what the archive holds.
A smoke test edits a row while Settings reads the archive, with the
settings lease held elsewhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-12 19:25:32 +00:00
Claude 59d49f16af fix(settings): a read of the archive's settings never undoes an edit saved meanwhile
Settings › Archive reads archive.json without the settings lease each time it
is shown and after a waited edit. On a slow share such a read could return
the file as it was before a template, proxy or thumbnail edit that was being
written, then put the old value back on the row and in this PC's defaults
while the archive kept the edit. ArchiveReadGate now drops a read that
overlapped an edit being written; the rows are read again at once, or when
the last edit being written ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-12 19:00:45 +00:00
Claude bf2183764f fix(settings): an archive row edit reaches the folder it was made for
A retarget now returns the archive registered at its own folder, not at
the folder current when it finishes, so an edit made while folder A opens
no longer lands in the archive of a folder B chosen right after. The rows
and _archive follow only the latest folder; Reset section pushes to the
archive it asked about and reloads the rows when the folder changed. A
newer sidecar met while opening no longer faults the retarget silently:
it is reported like any open failure. The smoke test now waits for the
empty-folder retarget before editing, so the archives[0] fallback would
fail it, and covers the two-folder race.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-12 16:33:45 +00:00
Claude d2e547f9d2 fix(settings): archive rows keep offline sizes, edit no stray archive and keep edits made while a folder opens
- While the open archive's archive.json cannot be read, the rows show the index's templates and proxy size and the
  thumbnail size stays this PC's: the stand-in 320 no longer replaces the default of new archives. Settings ›
  Archive loads through RefreshSettingsAsync, so opening it also brings the index up to a change made elsewhere.
- With no archive folder the rows edit only this PC's defaults, never the first archive of the index.
- An Archive row edited (or Reset section) while the archive at a just-chosen folder is opening waits for it and
  goes to that archive (or stays a default when the folder holds none), instead of being undone when it opens.
- A portable copy whose data had to leave its OneDrive folder says so at start, with Open on the data folder.
- Opening Settings re-reads Start with Windows, which Task Manager may have changed meanwhile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-12 16:02:43 +00:00
Claude 162197b305 test(settings): the archive smoke test edits the archive at the archive folder
The sample app shows a display path as its archive folder, and Settings › Archive edits only the archive at the
archive folder (never another one of the index), so the test points the folder at the archive it changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-12 11:29:56 +00:00
Claude 56aa4da674 fix(settings): restore before the index opens; archive rows edit only their archive; parallelism follows the brief
Index restore (ENG-06, UI-09):
- A staged restore now runs on the files before the index is opened, so it also
  recovers an index that no longer opens; Settings > Advanced > Restore works
  without an open index (the current one is shown as unreadable).
- The staged copy passes PRAGMA quick_check (before migration, in a scratch copy)
  ahead of any backup: a damaged copy is set aside as .failed and never renews the
  daily copies. The index it replaces is kept as a VACUUM INTO copy, or, when it
  cannot be read, copied whole with its WAL as titano-replaced-<stamp>.db outside the
  rotation. The staged file is renamed over the index, so it is never applied twice.
- Archive > Maintenance gains Restore database..., which opens Settings > Advanced.

Archive settings (UI-03, ENG-03):
- An archive.json with an empty or overlong name (drive roots) can be edited again:
  the name read is made usable as at creation.
- Proxy and thumbnail sizes outside the presets (an admin's 3840) are listed and
  shown with their number.
- Changing the archive folder retargets the rows: an archive there is registered
  and rescanned; with none, the rows edit only the defaults of new archives. The
  rows never fall back to another archive of the index.
- Reset all and Import settings no longer rewrite the shared archive.json; Archive >
  Reset section asks first, naming the archive.
- PUT /api/v1/archive/settings: 409 archive_busy on a lease conflict, 409
  archive_manifest for a damaged, newer or foreign archive.json (was 500).

Parallelism (UI-02):
- Auto is the job engine's default, half the logical cores (BRIEF 14.6), with each
  job's own decode and analysis threads; a value the user sets is the number of
  workers and caps those threads. The memory budget is shared: each job's frame
  window gets budget / workers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-12 11:06:27 +00:00
Claude 3e146c9f9f feat(settings): make every Settings row real; archive settings, index backups and restore
Settings (UI-01, UI-02, UI-03, UI-09, RF-4):
- New Import, Analysis and Formats pages, in the order of Settings.html. Import holds
  the defaults of new cards (session rules, subfolders, verification, duplicates,
  after-import actions); Analysis the deep-analysis width cap, night and star-field
  thresholds and deep analysis after import or scan; Formats the decode tier of every
  format on this PC with a notice and Store install link per missing codec extension.
- Archive gains thumbnail size and rescan interval; its templates, proxy size and
  thumbnail size are the open archive's own (archive.json) and new archives' defaults.
- Rendering quality, parallelism and background priority now drive the jobs: quality
  maps to preparation size, read-ahead and default flow quality; parallelism sets the
  engine's workers live and caps per-job threads; background priority raises the UI
  thread while Titano is in front.
- Advanced gains Restore (daily backups, dry-run summary, destructive confirmation,
  staged for the next start) and Reset all.
- The naming preview's sample title is a catalog string.

Engine (ENG-03, ENG-04, ENG-06):
- ArchiveService.GetSettingsAsync/UpdateSettingsAsync rewrite archive.json atomically
  under a lease, then the index row; the server endpoint and the desktop use them, and
  the desktop creates archives with Settings › Archive. ThumbnailPolicy in archive.json
  sizes the thumbnails.
- DatabaseBackups: daily VACUUM INTO copies kept x3 on the desktop and on a server on
  SQLite (DatabaseBackupService), staged restore checked and preceded by a fresh copy.
- Maintenance vacuums the SQLite index when 10 % or more is free (dry run reports it).
- JobEngine.SetWorkers; ProcessingOptions.Tune applies host tuning per job.

Archive setup toasts say why in a localized sentence (RF-1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-12 10:06:34 +00:00
Claude b82f7462f2 fix(ui): group radio buttons by their panel; the RTL dialog test waits for Loaded
The installer capture builds one window per stage, each with its own view model.
Radio buttons named into one group are shared by every window not yet on screen,
so Just me / All users of two windows unchecked each other forever.
The right-to-left smoke test now waits for the dialog's Loaded event (the first
render can come after an idle tick) instead of an idle dispatcher.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-06 08:03:13 +00:00
Claude 55a8989733 fix(app): announce job and transfer states, not progress ticks; smoke tests for the screens
- Jobs and sync rows announce a new state with their job or sequence; the
  update check announces each state, not each download percent. Live
  regions stay quiet when a recycled row shows another item or a language
  switch relabels them.
- The first-run dialog keeps its chosen card as the window's focused element,
  so focus starts inside it even before the window is active.
- Known-server addresses read left to right in the menu.
- Smoke tests: row names and states, row buttons, radio chips, header and
  cell columns, Workers readout, badge and strip counts, Settings values set
  elsewhere, German labels never cut, the cache row at 1200 px, no Reset on
  Advanced, Forget asks first, first-run focus and the RTL window direction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-05 22:14:01 +00:00
Claude 9b8b4f257d test(app): chips by where the originals are, this PC's workers, row names and encoder use
Drops the unreachable "Custom only" text: every codec of this PC has built-in presets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-05 22:03:43 +00:00
Claude ffbea7cb74 feat(app): library, jobs, settings, server, welcome and about screens
Local-mode composition root (SQLite index, one JobEngine fed by a single
handler registration list), keyset-paged library with thumbnail cache and
hover scrub, live job list with throttled updates and the shell job bar,
settings with live template validation and encoder self-test, server
connection with trust-on-first-use and DPAPI token, first-run welcome,
About with update check, and --capture screenshots with synthetic data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:26:58 +00:00