feat(editor): visual crop, rotate/mirror/flip/straighten, colour looks (owner review 1 phase 4) (#26)
CI / Build and test (push) Successful in 8m19s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 7s
Release / Build, test and publish (push) Successful in 12m9s
CI / PostgreSQL 16 integration (push) Successful in 7m49s
CI / PostgreSQL 17 integration (push) Successful in 7m19s
CI / Docker image (push) Successful in 46s
Release / Server image (push) Successful in 1m14s

Owner review 1 R5 + R6. Camera rotation, mirror, flip, straighten and crop handles locked to the output; an Exposure Look group; Export output size ("proportions win"); settings format 2 with older-node gates. Also fixes project text and hashes differing between Windows and Linux.

Closes #19
Closes #20

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 #26.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-05 01:09:09 +01:00
1 parent db389a54f2
commit 188b2c2e55
355 files changed
+10549 -1061

No files matched your search

+11 -1
View File
@@ -45,13 +45,19 @@ public sealed class RemoteSequenceSource : ISequenceSource
private readonly IFrameSource _pixels;
private readonly ServerJobs _jobs;
private readonly bool _noEditRight;
private readonly int _serverFormat;
private Stored? _stored;
private int _framesVersion = -1;
private int _outdated;
private int _disposed;
/// <param name="readOnly">The account may look at the sequence but not change it (no Edit right on the server).</param>
public RemoteSequenceSource(RemoteSequence remote, IRemoteSequenceApi api, ImageDecoder decoder, bool readOnly = false)
/// <param name="serverFormat">
/// The highest settings format the server reads (<see cref="Chronos.App.Server.SyncHost.SettingsFormat"/>; an older server's 1): settings
/// that need more are never sent to it (owner review 1, phase 4), it would store them and then fail every render of them.
/// </param>
public RemoteSequenceSource(RemoteSequence remote, IRemoteSequenceApi api, ImageDecoder decoder, bool readOnly = false,
int serverFormat = ProjectSettings.CurrentVersion)
{
ArgumentNullException.ThrowIfNull(remote);
ArgumentNullException.ThrowIfNull(api);
@@ -59,6 +65,7 @@ public sealed class RemoteSequenceSource : ISequenceSource
_remote = remote;
_api = api;
_noEditRight = readOnly;
_serverFormat = serverFormat;
_frames = remote.OpenFrames(decoder);
_pixels = (IFrameSource)_frames;
_jobs = new ServerJobs(api, remote.Sequence.Id, remote.Sequence.DisplayTitle, job => JobChanged?.Invoke(job), OnEventAsync, OnReconnectedAsync);
@@ -154,6 +161,9 @@ public sealed class RemoteSequenceSource : ISequenceSource
if (ProjectMerge.SameValues(merged, stored)) return merged;
if (IsOutdated) throw new ProxiesOutdatedException(Loc.L("Editor.Error.FramesChanged"));
if (_noEditRight) throw new EditorException(Loc.L("Editor.Error.RemoteReadOnly"));
// A turn, a mirror, a straighten or a look needs format 2, which an older server cannot read: kept here (the
// toast says why) until the edit is undone or the server is updated.
if (ServerJobs.NeedsNewerServer(merged.WrittenFormat, _serverFormat) is { } newer) throw new EditorException(newer);
if (changedThere && ProjectMerge.Conflicts(basis, project, stored) is { Count: > 0 } conflicts)
throw new ProjectConflictException(Loc.L("Editor.Error.SaveConflict"), stored, conflicts);
var hero = merged.HeroFrame == stored.HeroFrame ? (Guid?)null : HeroFrameId(merged);