From 59e7aca006f8b9307642bb0c7770d57c38150712 Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Wed, 4 Nov 2026 16:03:05 +0100 Subject: [PATCH] feat(workspace): render a project on this PC from its originals A workspace project that holds its originals now renders locally (JobKind.WorkspaceRender), so the full-resolution render no longer waits on the home. This holds also when the home is a server. - The handler reads its inputs under the project's lease. It refuses proxies-only media, and it refuses frames without an original, saying how many lack one. It renders into exports/ with unique names and a resumable checkpoint. - Each output gets a ledger entry: SHA-256, the render id from RenderJobHandler.RenderId, and the version, recorded only when versions/ holds it and its hash verifies. - After rendering, the handler queues a WorkspaceSend follow-up for the outputs it recorded. A cancel leaves no partial file. - The editor routes Originals media to the local engine even for a server home, and lists those jobs beside the server's. It treats WorkspaceRender like Render for the toast and the reload, says "Sent home" when a send ends, and shows unsent ledger renders as "Not sent". - Version on render saves a changed project as a version noted "Render" before it renders, and sends it with Sync automatically. With the setting off, the render behaves as before. Co-Authored-By: Claude Opus 5.5 --- src/Chronos.App/Editor/EditorPanels.xaml | 3 + src/Chronos.App/Editor/EditorViewModel.cs | 18 +- src/Chronos.App/Editor/ExportTab.cs | 8 + src/Chronos.App/Editor/SequenceJobs.cs | 12 +- src/Chronos.App/Editor/ServerJobs.cs | 2 +- .../Editor/WorkspaceSequenceSource.cs | 125 +++++++- src/Chronos.App/Sections/JobsViewModel.cs | 2 +- .../Workspace/ProjectMenuViewModel.cs | 48 ++- .../Workspaces/WorkspaceRenderJobHandler.cs | 274 +++++++++++++++++- .../Workspace/ServerHomeTests.cs | 2 +- .../Workspace/WorkspaceLocalRenderTests.cs | 128 ++++++++ .../Workspaces/WorkspaceRenderTests.cs | 189 ++++++++++++ 12 files changed, 779 insertions(+), 32 deletions(-) create mode 100644 tests/Chronos.App.Tests/Workspace/WorkspaceLocalRenderTests.cs create mode 100644 tests/Chronos.Data.Tests/Workspaces/WorkspaceRenderTests.cs diff --git a/src/Chronos.App/Editor/EditorPanels.xaml b/src/Chronos.App/Editor/EditorPanels.xaml index 00f4b059..5ed7dd15 100644 --- a/src/Chronos.App/Editor/EditorPanels.xaml +++ b/src/Chronos.App/Editor/EditorPanels.xaml @@ -327,6 +327,9 @@ ToolTip="{l:Loc Tooltips.Editor.Export.History}" Margin="6,0,0,0" Visibility="{Binding CanOpenHistory, Converter={StaticResource BoolToVisibility}}" />