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:
1 parent
e2ecc409a3
commit
26bab759fe
48 files changed
+3243
-409
No files matched your search
@@ -55,10 +55,13 @@
|
||||
<data name="Errors.Workspace.CopyMismatch" xml:space="preserve"><value>{0} did not match its source after it was copied.</value><comment>{0} file path</comment></data>
|
||||
<data name="Errors.Workspace.Damaged" xml:space="preserve"><value>A file of this project in the workspace cannot be read; the log names it.</value></data>
|
||||
<data name="Errors.Workspace.DeletedAtHome" xml:space="preserve"><value>This project was deleted in the library; nothing was removed. Discard changes removes its local copy.</value></data>
|
||||
<data name="Errors.Workspace.DeletedAtHome.Server" xml:space="preserve"><value>This project was deleted on the server; nothing was removed. Discard changes removes its local copy.</value></data>
|
||||
<data name="Errors.Workspace.DiskFull" xml:space="preserve"><value>The workspace drive needs {0} GB more for this copy.</value><comment>{0} gigabytes missing</comment></data>
|
||||
<data name="Errors.Workspace.EditNotStored" xml:space="preserve"><value>The last edit could not be stored yet; it is tried again, try once more in a moment.</value></data>
|
||||
<data name="Errors.Workspace.FolderUnusable" xml:space="preserve"><value>{0} cannot be used as the workspace folder; the log says why.</value><comment>long; {0} folder</comment></data>
|
||||
<data name="Errors.Workspace.Forbidden" xml:space="preserve"><value>Your account cannot change the projects of this server.</value></data>
|
||||
<data name="Errors.Workspace.HomeCheck" xml:space="preserve"><value>The library's copy of this project does not match what was sent; nothing was removed.</value></data>
|
||||
<data name="Errors.Workspace.HomeCheck.Server" xml:space="preserve"><value>The server's copy of this project does not match what was sent; nothing was removed.</value></data>
|
||||
<data name="Errors.Workspace.InsideLibrary" xml:space="preserve"><value>The workspace folder is inside a library; nothing is copied into it.</value></data>
|
||||
<data name="Errors.Workspace.InsideLibraryEdit" xml:space="preserve"><value>The workspace folder {0} is inside a library, where Edit copies nothing: choose another workspace folder.</value><comment>long</comment></data>
|
||||
<data name="Errors.Workspace.InsideLibraryFolder" xml:space="preserve"><value>{0} is inside a library, where Edit copies nothing: choose a folder outside your libraries.</value><comment>long; {0} folder</comment></data>
|
||||
@@ -68,17 +71,23 @@
|
||||
<data name="Errors.Workspace.MediaMissing" xml:space="preserve"><value>The workspace holds no photos of this project; open it again to copy them.</value></data>
|
||||
<data name="Errors.Workspace.NameTaken" xml:space="preserve"><value>Another project of this sequence has that name.</value></data>
|
||||
<data name="Errors.Workspace.NewerCopy" xml:space="preserve"><value>A newer Chronos saved this copy in the workspace; update Chronos to open it or remove it.</value></data>
|
||||
<data name="Errors.Workspace.NoProjects" xml:space="preserve"><value>This server keeps no projects: it needs an update before its sequences can be edited in the workspace.</value></data>
|
||||
<data name="Errors.Workspace.NoRoom" xml:space="preserve"><value>The drive of the workspace folder lacks room for this copy and the 0.5 GB the copy keeps free.</value></data>
|
||||
<data name="Errors.Workspace.NotCheckedOut" xml:space="preserve"><value>The project is no longer in the workspace.</value></data>
|
||||
<data name="Errors.Workspace.Offline" xml:space="preserve"><value>The library cannot be reached now; your work stays in the workspace and can be sent once it is back.</value></data>
|
||||
<data name="Errors.Workspace.Offline.Server" xml:space="preserve"><value>The server cannot be reached now; your work stays in the workspace and can be sent once it is back.</value></data>
|
||||
<data name="Errors.Workspace.OriginalsLater" xml:space="preserve"><value>The workspace copies proxies for now; copying the originals comes in a later version.</value></data>
|
||||
<data name="Errors.Workspace.OtherHome" xml:space="preserve"><value>The workspace project belongs to another sequence.</value></data>
|
||||
<data name="Errors.Workspace.Parameters" xml:space="preserve"><value>The workspace copy job has no valid parameters.</value></data>
|
||||
<data name="Errors.Workspace.ProjectGone" xml:space="preserve"><value>This project is no longer in the library.</value></data>
|
||||
<data name="Errors.Workspace.ProjectGone.Server" xml:space="preserve"><value>This project is no longer on the server.</value></data>
|
||||
<data name="Errors.Workspace.ReadOnly" xml:space="preserve"><value>This project was saved by a newer Chronos: it opens read-only.</value></data>
|
||||
<data name="Errors.Workspace.ReadOnlyHome" xml:space="preserve"><value>The library is read-only now; your work stays in the workspace and can be sent once it is writable.</value></data>
|
||||
<data name="Errors.Workspace.Refused" xml:space="preserve"><value>The library refused a version of this project; the log says why.</value></data>
|
||||
<data name="Errors.Workspace.Refused.Server" xml:space="preserve"><value>The server refused a version of this project; the log says why.</value></data>
|
||||
<data name="Errors.Workspace.SequenceGone" xml:space="preserve"><value>This project's sequence is no longer in the library: only its local copy can be removed, from the picker's menu.</value><comment>long</comment></data>
|
||||
<data name="Errors.Workspace.Unsent" xml:space="preserve"><value>Some work is not in the library yet: send it first, or discard it.</value></data>
|
||||
<data name="Errors.Workspace.Unsent.Server" xml:space="preserve"><value>Some work is not on the server yet: send it first, or discard it.</value></data>
|
||||
<data name="Errors.Workspace.VersionTooLarge" xml:space="preserve"><value>This version is larger than the {0} MB a version can be, so the library cannot store it; your work stays in the workspace.</value><comment>{0} megabytes</comment></data>
|
||||
<data name="Errors.Workspace.VersionTooLarge.Server" xml:space="preserve"><value>This version is larger than the {0} MB a version can be, so the server cannot store it; your work stays in the workspace.</value><comment>{0} megabytes</comment></data>
|
||||
</root>
|
||||
Reference in new issue
Block a user