feat: phase 5 groundwork (playback format 3, videos contracts, migration 0010, strings)
Lays down every contract the later parcels of owner review 1 phase 5 build on, so they compile against shared types without touching each other's files. - Settings format 3: export.playback (direction, loops, fades, hold), omitted at its default and member by member; RequiredFormat is 3 only while used. - OutputProgram public API with a forward-only body; still-frame job parameters (StillFrame, StillPhoto) routed to format-3 nodes only. - Render.Sha256/Kind, RenderCopy, RenderKind; JobKind.VideoCopy = 24. - Migration 0010 (sqlite, postgres): renders.sha256/kind, ix_renders_created, render_copies without a foreign key. - Videos protocol DTOs, client calls, ServerCapabilities.Videos (declared, not announced yet), ServerSettingsDto.VideosPath. - IVideoLibrary with a NotImplemented stub registered on the server; TrashKind.Videos, VideoTrashNames, VideoErrors. - en and it strings for the whole phase, five icons, decisions 1-22 and the open-question defaults; tests that used format 3 as "newer" now use 4. Refs #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
86aa07c1d7
commit
d472dfdec1
67 files changed
+2233
-244
No files matched your search
@@ -204,7 +204,7 @@ public sealed class CameraTabTests
|
||||
straighten.Value = -1.23;
|
||||
Assert.Equal(-1.2, session.Project.Camera.Straighten);
|
||||
Assert.Equal("−1.2°", straighten.DisplayValue);
|
||||
Assert.Equal(ProjectSettings.CurrentVersion, session.Project.RequiredFormat, "a straighten needs format 2");
|
||||
Assert.Equal(2, session.Project.RequiredFormat, "a straighten needs format 2");
|
||||
straighten.Value = 0.02;
|
||||
Assert.Equal(0.0, session.Project.Camera.Straighten);
|
||||
Assert.False(double.IsNegative(session.Project.Camera.Straighten), "never −0");
|
||||
@@ -232,7 +232,7 @@ public sealed class CameraTabTests
|
||||
filter.Selected = filter.Options.Single(o => Equals(o.Value, "sepia"));
|
||||
Assert.Equal(new LookSettings { Filter = "sepia" }.Filter, session.Project.Look?.Filter);
|
||||
Assert.Null(session.Project.Look!.Strength, "100 % is the default");
|
||||
Assert.Equal(ProjectSettings.CurrentVersion, session.Project.RequiredFormat);
|
||||
Assert.Equal(2, session.Project.RequiredFormat);
|
||||
Refresh(rows);
|
||||
Assert.True(strength.IsApplicable);
|
||||
Assert.Equal(1.0, strength.Value);
|
||||
|
||||
@@ -497,7 +497,7 @@ public sealed class EditorSessionTests
|
||||
var before = session.Project.ToJson();
|
||||
for (var i = 0; i < 4; i++) Assert.True(session.Orient(OrientationOp.RotateRight));
|
||||
Assert.Equal(before, session.Project.ToJson());
|
||||
Assert.Equal(ProjectSettings.CurrentVersion, session.Project.RequiredFormat, "a straighten needs format 2");
|
||||
Assert.Equal(2, session.Project.RequiredFormat, "a straighten needs format 2");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ public sealed class ProjectHistoryTests
|
||||
[Test]
|
||||
public void SettingsOfANewerChronosAdoptedDropTheStepsInsteadOfMergingThem()
|
||||
{
|
||||
var newer = ProjectSettings.FromJson("""{ "version": 3, "exposure": { "exposureOffsetEv": 1.5 }, "grade": { "look": "film" } }""", allowNewer: true);
|
||||
var newer = ProjectSettings.FromJson("""{ "version": 4, "exposure": { "exposureOffsetEv": 1.5 }, "grade": { "look": "film" } }""", allowNewer: true);
|
||||
// The workspace's merge throws as ProjectMerge does where both sides changed and one is a newer Chronos's.
|
||||
foreach (var merge in new Func<ProjectSettings, ProjectSettings, ProjectSettings, ProjectSettings>?[]
|
||||
{ null, (basis, ours, theirs) => ProjectMerge.MergeWithConflicts(basis, ours, theirs).Merged })
|
||||
|
||||
Reference in new issue
Block a user