feat(app): workspace projects whose home is a server, pushed and pulled like this PC's archive

Owner review 2, R8, phase 5b (client part), ported onto the final phase 5a.
A Chronos Server with the "projects" capability is now the home of
workspace projects. A server sequence is edited in the workspace like a
local one, not inside the library, and its versions sync with the server
"like git".

- Data: ServerProjectHome is an IProjectHome over ChronosClient.
  - These are HomeUnavailableException, so the workspace shows Offline: a
    server out of reach, an expired sign-in, a 503 (lease, offline archive,
    projects_unreadable), a 409 folder_in_use, and a server without projects.
  - 404 sequence/project/version and refused names are ProjectException;
    other refusals keep their meaning.
  - A deleted project's head is 404 project, so final 5a's HeadAsync NotFound
    rule reads it as Gone. The original 5b's IsLiveAsync and
    WorkspaceStatus.Gone are dropped. IProjectHome gains rename and delete.
- Data: WorkspaceJobs.CopyFromServer downloads into the workspace, through
  the desktop's session, the proxies of one frames version (or the
  thumbnails standing in for them), with the aliases of the server's
  conversions. It is rebuilt on final 5a's copy handler:
  - the copy:frame:fv:folder checkpoint, EnsureSpace (from the server's proxy
    sizes), WritingMedia, and the cancelled-copy clean-up;
  - the editor's current file is never overwritten;
  - each file is hashed as it arrives and checked on disk, four at a time.
  It never writes this PC's archive. Originals are still refused until 5c.
- Data: SyncAgent passes on the server's projectChanged events, and after a
  lost event stream it reports that changes may have been missed.
- App: SyncHost gives the server home over one session client. The Server
  screen offers Open in workspace, disabled with its reason on older
  servers, whose sequences keep opening with proxies.
- App: Edit opens or checks out server projects with final 5a's refusals:
  unreadable copies, a disabled damaged or newer Main, a refused folder. The
  "sequence left the index" refusal now applies only to projects of this
  PC's archive.
- App: the picker and the chip follow projectChanged (Server newer, Not on
  server). Every state, conflict, delete, remove and failure text uses its
  ".Server" form when one exists (WorkspaceText.ForHome). That includes 5a's
  newer-format conflict, the save conflict, the taken-values toast, Gone and
  version-too-large.
- App: a render of a server project first offers to send what is not on the
  server, then renders the version the server holds. Offline, Gone, Damaged
  and missing media hold the render. Analyses and renders run as server jobs
  (ServerJobs, shared with RemoteSequenceSource).
- Pruning keeps final 5a's rule: a version is pruned only after HoldsAsync
  reads it back.
- Strings in en and it; ARCHITECTURE, DECISIONS and CHANGELOG.

Tests:
- ServerProjectHome error mapping, using a fake handler.
- Against the in-process server:
  - two workspaces on one project: fast-forward, replay and merge, keep mine,
    take server, save both, restore;
  - the copy job verifying, resuming and following new frames;
  - a project deleted on the server (Gone from its head; a push sends
    nothing);
  - an offline server.
- SyncAgent project events.
- App tests for the host, the project menu and renders of a server home.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-04 11:45:06 +01:00
1 parent e2ecc409a3
commit 26bab759fe
48 files changed
+3243 -409

No files matched your search

+18
View File
@@ -173,6 +173,7 @@
<data name="Editor.History.List" xml:space="preserve"><value>Versions</value></data>
<data name="Editor.History.NotSent" xml:space="preserve"><value>Not sent</value></data>
<data name="Editor.History.Offline" xml:space="preserve"><value>Library offline</value></data>
<data name="Editor.History.Offline.Server" xml:space="preserve"><value>Server offline</value></data>
<data name="Editor.History.Restore" xml:space="preserve"><value>Restore</value></data>
<data name="Editor.History.Same" xml:space="preserve"><value>Same as now</value></data>
<data name="Editor.History.Title" xml:space="preserve"><value>History of {0}</value><comment>{0} project name</comment></data>
@@ -239,6 +240,7 @@
<data name="Editor.Project.Delete" xml:space="preserve"><value>Delete project…</value></data>
<data name="Editor.Project.DeleteAction" xml:space="preserve"><value>Delete</value></data>
<data name="Editor.Project.DeleteMessage" xml:space="preserve"><value>Its versions are sent to the library first, then the project goes to the library's project trash; the sequence and its photos stay.</value><comment>long</comment></data>
<data name="Editor.Project.DeleteMessage.Server" xml:space="preserve"><value>Its versions are sent to the server first, then the project goes to the server's project trash; the sequence and its photos stay.</value><comment>long</comment></data>
<data name="Editor.Project.DeleteTitle" xml:space="preserve"><value>Delete project {0}?</value><comment>{0} project name</comment></data>
<data name="Editor.Project.History" xml:space="preserve"><value>History…</value></data>
<data name="Editor.Project.Keep" xml:space="preserve"><value>Keep</value></data>
@@ -278,6 +280,7 @@
<data name="Editor.RemoveCopy.DiscardTitle" xml:space="preserve"><value>Discard the changes of {0}?</value></data>
<data name="Editor.RemoveCopy.Files" xml:space="preserve"><value>Files</value></data>
<data name="Editor.RemoveCopy.Message" xml:space="preserve"><value>The photos copied to this PC are deleted; the project stays in the library and opens again from there.</value><comment>long</comment></data>
<data name="Editor.RemoveCopy.Message.Server" xml:space="preserve"><value>The photos copied to this PC are deleted; the project stays on the server and opens again from there.</value><comment>long</comment></data>
<data name="Editor.RemoveCopy.No" xml:space="preserve"><value>None</value></data>
<data name="Editor.RemoveCopy.Remove" xml:space="preserve"><value>Remove</value></data>
<data name="Editor.RemoveCopy.SendFirst" xml:space="preserve"><value>Send first</value></data>
@@ -382,39 +385,53 @@
<data name="Editor.Workspace.ChooseFolder" xml:space="preserve"><value>Choose folder</value></data>
<data name="Editor.Workspace.Conflict.Later" xml:space="preserve"><value>Later</value></data>
<data name="Editor.Workspace.Conflict.Message" xml:space="preserve"><value>{0} was changed in the library while you edited it here. These settings differ: keep yours, take the library's, or keep both as two projects.</value><comment>long; {0} project name</comment></data>
<data name="Editor.Workspace.Conflict.Message.Server" xml:space="preserve"><value>{0} was changed on the server while you edited it here. These settings differ: keep yours, take the server's, or keep both as two projects.</value><comment>long; {0} project name</comment></data>
<data name="Editor.Workspace.Conflict.NewerFormat" xml:space="preserve"><value>Saved by a newer Chronos</value><comment>long; the one line a conflict of format lists</comment></data>
<data name="Editor.Workspace.Conflict.NewerMessage" xml:space="preserve"><value>{0} was saved in the library by a newer Chronos, whose settings this one does not merge with yours. Keep both as two projects, or update Chronos.</value><comment>long; {0} project name</comment></data>
<data name="Editor.Workspace.Conflict.NewerMessage.Server" xml:space="preserve"><value>{0} was saved on the server by a newer Chronos, whose settings this one does not merge with yours. Keep both as two projects, or update Chronos.</value><comment>long; {0} project name</comment></data>
<data name="Editor.Workspace.Conflict.TakeHome" xml:space="preserve"><value>Take library's</value><comment>take the library's values where both sides changed a setting</comment></data>
<data name="Editor.Workspace.Conflict.TakeHome.Server" xml:space="preserve"><value>Take server's</value></data>
<data name="Editor.Workspace.Conflict.Title" xml:space="preserve"><value>Changed in the library too</value></data>
<data name="Editor.Workspace.Conflict.Title.Server" xml:space="preserve"><value>Changed on the server too</value></data>
<data name="Editor.Workspace.CopyFailed" xml:space="preserve"><value>Workspace copy failed</value></data>
<data name="Editor.Workspace.Copying" xml:space="preserve"><value>Copying to the workspace</value></data>
<data name="Editor.Workspace.Created" xml:space="preserve"><value>Project {0} created</value><comment>{0} project name</comment></data>
<data name="Editor.Workspace.DeleteFailed" xml:space="preserve"><value>Project not deleted</value></data>
<data name="Editor.Workspace.Deleted" xml:space="preserve"><value>Project {0} deleted</value><comment>{0} project name</comment></data>
<data name="Editor.Workspace.Difference" xml:space="preserve"><value>{0} {1} here, {2} in the library</value><comment>long; {0} setting name, {1} value in this workspace, {2} value in the library</comment></data>
<data name="Editor.Workspace.Difference.Server" xml:space="preserve"><value>{0} {1} here, {2} on the server</value><comment>long; {0} setting name, {1} value in this workspace, {2} value on the server</comment></data>
<data name="Editor.Workspace.EditSetAside" xml:space="preserve"><value>Edit kept aside</value></data>
<data name="Editor.Workspace.EditSetAsideMessage" xml:space="preserve"><value>A newer Chronos saved this project before your last edit was stored: that edit is kept aside in the project's folder, and the newer settings show read-only.</value><comment>long</comment></data>
<data name="Editor.Workspace.Edited.Message" xml:space="preserve"><value>{0} changed in the library while your edit waited to be saved. The settings below differ: keep your values, or take the library's.</value><comment>long</comment></data>
<data name="Editor.Workspace.Edited.Message.Server" xml:space="preserve"><value>{0} changed on the server while your edit waited to be saved. The settings below differ: keep your values, or take the server's.</value><comment>long</comment></data>
<data name="Editor.Workspace.InSync" xml:space="preserve"><value>Project in sync</value></data>
<data name="Editor.Workspace.MediaChanged" xml:space="preserve"><value>Library photos changed</value></data>
<data name="Editor.Workspace.MediaChanged.Server" xml:space="preserve"><value>Server photos changed</value></data>
<data name="Editor.Workspace.NotSent" xml:space="preserve"><value>Version not sent yet</value></data>
<data name="Editor.Workspace.NothingNew" xml:space="preserve"><value>Nothing new to save</value></data>
<data name="Editor.Workspace.Offline" xml:space="preserve"><value>Library offline</value></data>
<data name="Editor.Workspace.Offline.Server" xml:space="preserve"><value>Server offline</value></data>
<data name="Editor.Workspace.OpenCopy" xml:space="preserve"><value>Open</value></data>
<data name="Editor.Workspace.OpenFailed" xml:space="preserve"><value>Project not opened</value></data>
<data name="Editor.Workspace.ReadOnly" xml:space="preserve"><value>Project read-only</value></data>
<data name="Editor.Workspace.RemoveFailed" xml:space="preserve"><value>Local copy not removed</value></data>
<data name="Editor.Workspace.Removed" xml:space="preserve"><value>Local copy removed</value></data>
<data name="Editor.Workspace.Renamed" xml:space="preserve"><value>Project renamed</value></data>
<data name="Editor.Workspace.RenderHeld" xml:space="preserve"><value>Not rendered</value></data>
<data name="Editor.Workspace.Restored" xml:space="preserve"><value>Version {0} restored</value><comment>{0} version number</comment></data>
<data name="Editor.Workspace.Saved" xml:space="preserve"><value>Version {0} saved</value><comment>{0} version number</comment></data>
<data name="Editor.Workspace.SavedAs" xml:space="preserve"><value>Your versions saved as {0}</value><comment>{0} the name of the new project holding them</comment></data>
<data name="Editor.Workspace.SavedSent" xml:space="preserve"><value>Version {0} saved and sent</value><comment>{0} version number</comment></data>
<data name="Editor.Workspace.SendFirst.Action" xml:space="preserve"><value>Send and render</value></data>
<data name="Editor.Workspace.SendFirst.Message" xml:space="preserve"><value>The server renders {0} as it holds it: save your changes as a version and send them first.</value><comment>long; {0} project name</comment></data>
<data name="Editor.Workspace.SendFirst.Title" xml:space="preserve"><value>Send before rendering</value></data>
<data name="Editor.Workspace.State.Ahead" xml:space="preserve"><value>Not sent</value><comment>versions saved here wait to be sent to the library</comment></data>
<data name="Editor.Workspace.State.Behind" xml:space="preserve"><value>Library newer</value><comment>the library has versions the workspace has not taken</comment></data>
<data name="Editor.Workspace.State.Behind.Server" xml:space="preserve"><value>Server newer</value></data>
<data name="Editor.Workspace.State.Conflict" xml:space="preserve"><value>Conflict</value></data>
<data name="Editor.Workspace.State.Damaged" xml:space="preserve"><value>Damaged</value><comment>a version or the project file saved in the workspace cannot be read</comment></data>
<data name="Editor.Workspace.State.Gone" xml:space="preserve"><value>Not in library</value></data>
<data name="Editor.Workspace.State.Gone.Server" xml:space="preserve"><value>Not on server</value></data>
<data name="Editor.Workspace.State.InSync" xml:space="preserve"><value>In sync</value></data>
<data name="Editor.Workspace.State.MediaRemoved" xml:space="preserve"><value>No media</value></data>
<data name="Editor.Workspace.State.Modified" xml:space="preserve"><value>Changed</value><comment>the project has changes not saved as a version</comment></data>
@@ -425,6 +442,7 @@
<data name="Editor.Workspace.SyncFailed" xml:space="preserve"><value>Sync failed</value></data>
<data name="Editor.Workspace.Synced" xml:space="preserve"><value>Project synced</value></data>
<data name="Editor.Workspace.TookLibrary" xml:space="preserve"><value>Library's values taken</value></data>
<data name="Editor.Workspace.TookLibrary.Server" xml:space="preserve"><value>Server's values taken</value></data>
<data name="Editor.Workspace.Undo" xml:space="preserve"><value>Undo</value></data>
<data name="Editor.Workspace.UpdateMedia" xml:space="preserve"><value>Update media</value></data>
<data name="Editor.Workspace.Updating" xml:space="preserve"><value>Updating media</value></data>