feat(editor): open server sequences with proxies, hero frame to the index, export sync and saved copies

Server sequences that are not in the local index open through a RemoteSequenceSource:
proxies from the cache, project from the server's settings with their version (a 409
merges again), analysis report from the server, analyses and renders posted as server
jobs (one per preset) and followed through the server's events. Set hero now reaches the
index (SequenceEdit.HeroFrameId) so the Library card shows it. The Export tab gains the
Sync option (remembered in the project) and restores "Save both" copies through undo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-03 11:38:11 +00:00
1 parent 90321a7e53
commit 2ff3a6503b
36 files changed
+1307 -116

No files matched your search

+1 -41
View File
@@ -1,6 +1,6 @@
using System.Text;
using System.Text.Json;
using Titano.Core.Model;
using Titano.Data.Jobs;
using Titano.Protocol;
namespace Titano.Server.Api;
@@ -48,43 +48,3 @@ public static class Dto
}
}
}
/// <summary>Wire names of job kinds, states and priorities: kebab-case (<c>deep-analyse</c>) and lower-case (<c>running</c>).</summary>
public static class JobWire
{
public static string Kind(JobKind kind)
{
var name = kind.ToString();
var sb = new StringBuilder(name.Length + 4);
for (var i = 0; i < name.Length; i++)
{
if (i > 0 && char.IsUpper(name[i])) sb.Append('-');
sb.Append(char.ToLowerInvariant(name[i]));
}
return sb.ToString();
}
public static bool TryParseKind(string? text, out JobKind kind) => TryParse(text, Kind, out kind);
public static string State(JobState state) => state.ToString().ToLowerInvariant();
public static bool TryParseState(string? text, out JobState state) => TryParse(text, State, out state);
public static string Priority(JobPriority priority) => priority.ToString().ToLowerInvariant();
public static bool TryParsePriority(string? text, out JobPriority priority) => TryParse(text, Priority, out priority);
private static bool TryParse<T>(string? text, Func<T, string> name, out T value) where T : struct, Enum
{
foreach (var candidate in Enum.GetValues<T>())
{
if (string.Equals(name(candidate), text, StringComparison.OrdinalIgnoreCase))
{
value = candidate;
return true;
}
}
value = default;
return false;
}
}