test(editor): remote source, export sync, saved copies and hero frame
The remote source loads, saves with the settings version, merges a 409, posts one server job per preset and follows the server's job events; Export "Sync" gating and the send it queues; "Save both" copies listed and restored through undo; Set hero reaches the index. A smoke test opens the sample server's proxied sequence in the real window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
8 files changed
+681
-1
No files matched your search
@@ -44,6 +44,7 @@ public sealed class RemoteSequenceSource : ISequenceSource
|
||||
private readonly Task _listening;
|
||||
private ProjectSettings? _stored;
|
||||
private int _version;
|
||||
private int _disposed;
|
||||
|
||||
public RemoteSequenceSource(RemoteSequence remote, IRemoteSequenceApi api, ImageDecoder decoder)
|
||||
{
|
||||
@@ -162,6 +163,7 @@ public sealed class RemoteSequenceSource : ISequenceSource
|
||||
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
if (Interlocked.Exchange(ref _disposed, 1) == 1) return;
|
||||
await _stopping.CancelAsync();
|
||||
await _listening;
|
||||
_stopping.Dispose();
|
||||
|
||||
@@ -20,8 +20,10 @@ namespace Titano.Data.Sync;
|
||||
/// </summary>
|
||||
public sealed class RemoteSequence
|
||||
{
|
||||
internal RemoteSequence(string server, Sequence sequence, IReadOnlyList<Frame> frames, IReadOnlyList<string?> files)
|
||||
/// <param name="files">Absolute path of each frame's proxy in frame order; null (and the frame flagged missing) when it is not cached.</param>
|
||||
public RemoteSequence(string server, Sequence sequence, IReadOnlyList<Frame> frames, IReadOnlyList<string?> files)
|
||||
{
|
||||
if (files.Count != frames.Count) throw new ArgumentException("One file entry per frame is required.", nameof(files));
|
||||
Server = server;
|
||||
Sequence = sequence;
|
||||
Frames = frames;
|
||||
|
||||
Reference in new issue
Block a user