feat: owner review 2 phase 5b: the server as a project home (#17)
CI / Build and test (push) Successful in 9m58s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 6s
Release / Build, test and publish (push) Successful in 14m8s
CI / PostgreSQL 16 integration (push) Successful in 8m55s
CI / PostgreSQL 17 integration (push) Successful in 8m50s
CI / Docker image (push) Successful in 57s
Release / Server image (push) Successful in 1m22s
CI / Build and test (push) Successful in 9m58s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 6s
Release / Build, test and publish (push) Successful in 14m8s
CI / PostgreSQL 16 integration (push) Successful in 8m55s
CI / PostgreSQL 17 integration (push) Successful in 8m50s
CI / Docker image (push) Successful in 57s
Release / Server image (push) Successful in 1m22s
A Chronos Server keeps its sequences' projects, as a PC's archive does: Main and named projects with versions under /api/v1/sequences/{id}/projects, the projects capability and the projectChanged event. The desktop opens a server's sequences in the workspace (proxies downloaded, hash-checked, resumable) with Save version, Sync, conflicts, History, Restore and the project actions against the server. Renders can be of a project version. The admin panel lists a sequence's projects and versions. Strings in all 38 languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #17.
This commit is contained in:
1 parent
255e149087
commit
81c303f484
325 files changed
+11477
-516
No files matched your search
@@ -625,6 +625,8 @@ public sealed class EditorViewModel : LocalizedViewModel, IAsyncDisposable
|
||||
/// </summary>
|
||||
public async Task RenderAsync(JobPriority priority, bool batch)
|
||||
{
|
||||
// A workspace project whose home is a server renders what the server holds: changes not sent are offered to be sent first (phase 5b).
|
||||
if (Project is { } project && !await project.ReadyToRenderAsync()) return;
|
||||
// The job embeds the project: its frame positions follow frames inserted since the editor read them first. A server
|
||||
// sequence whose frames changed is outdated instead, and its toast says so and offers fresh proxies.
|
||||
await Session.EnsureFramesAsync();
|
||||
@@ -1074,22 +1076,25 @@ public sealed class EditorViewModel : LocalizedViewModel, IAsyncDisposable
|
||||
private void OnConflictFound(ProjectConflictException conflict) => _dispatcher.BeginInvoke(() =>
|
||||
{
|
||||
if (_disposed || Session.Conflict is null) return;
|
||||
var request = Session.Source is WorkspaceSequenceSource ? LibraryConflictRequest(conflict, Title) : ConflictRequest(conflict, Title, ServerName ?? string.Empty);
|
||||
var request = Session.Source is WorkspaceSequenceSource workspace ? LibraryConflictRequest(conflict, Title, workspace.IsServerHome) : ConflictRequest(conflict, Title, ServerName ?? string.Empty);
|
||||
var keepMine = Shell.Services.Dialogs.Confirm(request);
|
||||
if (!_disposed) Session.ResolveConflict(keepMine);
|
||||
});
|
||||
|
||||
/// <summary>The conflict prompt of a workspace project: what differs (the editor's value, then the library's) and what each choice keeps.</summary>
|
||||
internal static ConfirmRequest LibraryConflictRequest(ProjectConflictException conflict, string title) => new()
|
||||
/// <summary>
|
||||
/// The conflict prompt of a workspace project: what differs (the editor's value, then the home's) and what each choice
|
||||
/// keeps, worded for a <paramref name="server"/> home (phase 5b) or the library.
|
||||
/// </summary>
|
||||
internal static ConfirmRequest LibraryConflictRequest(ProjectConflictException conflict, string title, bool server = false) => new()
|
||||
{
|
||||
Heading = Loc.L("Editor.Workspace.Conflict.Title"),
|
||||
Message = Loc.L("Editor.Workspace.Edited.Message", title),
|
||||
Detail = string.Join(Environment.NewLine, WorkspaceText.ConflictLines(conflict.Differences, 10)),
|
||||
DetailToolTip = Loc.L("Tooltips.Editor.Workspace.Differences"),
|
||||
SafeText = Loc.L("Editor.Workspace.Conflict.TakeHome"),
|
||||
SafeToolTip = Loc.L("Tooltips.Editor.Workspace.TakeHomeUndo"),
|
||||
Message = WorkspaceText.ForHome("Editor.Workspace.Edited.Message", server, title),
|
||||
Detail = string.Join(Environment.NewLine, WorkspaceText.ConflictLines(conflict.Differences, 10, server)),
|
||||
DetailToolTip = WorkspaceText.ForHome("Tooltips.Editor.Workspace.Differences", server),
|
||||
SafeText = WorkspaceText.ForHome("Editor.Workspace.Conflict.TakeHome", server),
|
||||
SafeToolTip = WorkspaceText.ForHome("Tooltips.Editor.Workspace.TakeHomeUndo", server),
|
||||
ActionText = Loc.L("Server.Sync.Action.KeepMine"),
|
||||
ActionToolTip = Loc.L("Tooltips.Editor.Workspace.KeepMine"),
|
||||
ActionToolTip = WorkspaceText.ForHome("Tooltips.Editor.Workspace.KeepMine", server),
|
||||
IsDestructive = true,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user