merge: integration branch claude/keen-knuth-uhxv8w (remote editor after review) into the Library workstream
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
81 files changed
+3827
-263
No files matched your search
@@ -19,9 +19,10 @@ namespace Titano.App.Shell;
|
||||
/// <summary>
|
||||
/// <c>Titano.exe --capture <dir></c>: renders every client screen at 1440×900 in the dark and light themes to
|
||||
/// <c><screen>-<theme>.png</c> from <see cref="SampleData"/> (first run on an empty index, then a populated
|
||||
/// one, then the sync table with transfers, a conflict and its confirmation), plus the Library, the editor's Exposure
|
||||
/// tab and the import plan in Arabic (<c>*-rtl-dark.png</c>, right to left), for visual review and phase reports
|
||||
/// (BRIEF §20.2), then exits.
|
||||
/// one, then the sync table with transfers, a conflict and its confirmation, then the sequence editor on an archive
|
||||
/// sequence and on a server sequence with proxies, its server job and a read-only account), plus the Library, the
|
||||
/// editor's Exposure tab and the import plan in Arabic (<c>*-rtl-dark.png</c>, right to left), for visual review and
|
||||
/// phase reports (BRIEF §20.2), then exits.
|
||||
/// </summary>
|
||||
public static class ScreenCapture
|
||||
{
|
||||
@@ -144,6 +145,7 @@ public static class ScreenCapture
|
||||
}
|
||||
|
||||
written += await CaptureEditorAsync(window, shell, sample, directory);
|
||||
written += await CaptureRemoteEditorAsync(window, shell, sample, directory);
|
||||
Log.Info("capture", $"{written} screenshot(s) written to {Path.GetFullPath(directory)}");
|
||||
if (written == 0) Environment.ExitCode = 1;
|
||||
}
|
||||
@@ -207,7 +209,8 @@ public static class ScreenCapture
|
||||
/// <summary>
|
||||
/// The sequence editor on the synthetic sunset: every section in both themes (<c>sequence-<tab>-<theme>.png</c>,
|
||||
/// the Camera tab with a keyframe selected, the Export tab as Export.html with the crop mask and no compare), then
|
||||
/// the preview overlays, the waveform, the "what changed" toast of Optimise all and the busy state.
|
||||
/// the preview overlays, the waveform, the "what changed" toast of Optimise all, the Export tab of the sequence once
|
||||
/// the server has it (Sync on) with two "Save both" copies to restore, and the busy state.
|
||||
/// </summary>
|
||||
private static async Task<int> CaptureEditorAsync(MainWindow window, ShellViewModel shell, SampleData sample, string directory)
|
||||
{
|
||||
@@ -247,6 +250,23 @@ public static class ScreenCapture
|
||||
foreach (var toast in window.Toasts.Toasts.ToList()) window.Toasts.Dismiss(toast);
|
||||
}
|
||||
|
||||
// The server has the sequence (Sync can be ticked) and two copies of this PC's settings were kept by "Save both".
|
||||
await sample.KeepEditorCopiesAsync(id);
|
||||
await editor.Session.ReloadAsync();
|
||||
await editor.RefreshSyncGateAsync();
|
||||
var export = editor.Tabs.OfType<ExportTab>().Single();
|
||||
export.SyncToServer = true;
|
||||
editor.SelectedTab = export;
|
||||
editor.IsCompare = false;
|
||||
foreach (var theme in Themes)
|
||||
{
|
||||
ThemeManager.Apply(theme);
|
||||
written += await SaveEditorAsync(window, editor, directory, "sequence-export-copies", theme);
|
||||
}
|
||||
export.SyncToServer = false;
|
||||
editor.SelectedTab = editor.Exposure;
|
||||
editor.IsCompare = true;
|
||||
|
||||
written += await CaptureRightToLeftAsync(window, shell, editor, directory);
|
||||
|
||||
// Last, as it stays: an analysis of the sequence running (settings disabled, viewing tools live).
|
||||
@@ -295,6 +315,65 @@ public static class ScreenCapture
|
||||
return written;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A server sequence open with this PC's proxies (Sunrise over Superga, cached by the sync captures): the server in
|
||||
/// the header, the preview from the proxies, the project from the server (<c>sequence-remote</c>); its Export tab,
|
||||
/// where the server picks the encoder and keeps the renders (<c>sequence-remote-export</c>); a render running on the
|
||||
/// server with its bar and Cancel (<c>sequence-remote-running</c>); then, last as it stays, the sequence opened by an
|
||||
/// account without the Edit right (<c>sequence-remote-readonly</c>).
|
||||
/// </summary>
|
||||
private static async Task<int> CaptureRemoteEditorAsync(MainWindow window, ShellViewModel shell, SampleData sample, string directory)
|
||||
{
|
||||
var written = 0;
|
||||
var id = sample.ProxiedSequenceId;
|
||||
shell.OpenSequence(id);
|
||||
await shell.Sequence.OpenAsync(id);
|
||||
if (shell.Sequence.Editor is not { IsRemote: true } editor)
|
||||
{
|
||||
Log.Warning("capture", "The server sequence did not open in the editor");
|
||||
return 0;
|
||||
}
|
||||
DismissToasts(window);
|
||||
var export = editor.Tabs.OfType<ExportTab>().Single();
|
||||
foreach (var theme in Themes)
|
||||
{
|
||||
ThemeManager.Apply(theme);
|
||||
editor.SelectedTab = editor.Exposure;
|
||||
editor.IsCompare = true;
|
||||
written += await SaveEditorAsync(window, editor, directory, "sequence-remote", theme);
|
||||
editor.SelectedTab = export;
|
||||
editor.IsCompare = false;
|
||||
written += await SaveEditorAsync(window, editor, directory, "sequence-remote-export", theme);
|
||||
}
|
||||
|
||||
sample.RunServerRender();
|
||||
await editor.AttachJobsAsync();
|
||||
editor.SelectedTab = editor.Exposure;
|
||||
editor.IsCompare = true;
|
||||
foreach (var theme in Themes)
|
||||
{
|
||||
ThemeManager.Apply(theme);
|
||||
written += await SaveEditorAsync(window, editor, directory, "sequence-remote-running", theme);
|
||||
}
|
||||
|
||||
sample.EndServerJobs();
|
||||
await sample.RestrictAccountAsync();
|
||||
await shell.Sequence.OpenAsync(id, reload: true);
|
||||
if (shell.Sequence.Editor is not { IsReadOnly: true } viewer)
|
||||
{
|
||||
Log.Warning("capture", "The server sequence did not open read-only");
|
||||
return written;
|
||||
}
|
||||
DismissToasts(window);
|
||||
viewer.SelectedTab = viewer.Exposure;
|
||||
foreach (var theme in Themes)
|
||||
{
|
||||
ThemeManager.Apply(theme);
|
||||
written += await SaveEditorAsync(window, viewer, directory, "sequence-remote-readonly", theme);
|
||||
}
|
||||
return written;
|
||||
}
|
||||
|
||||
private static async Task<int> SaveEditorAsync(Window window, EditorViewModel editor, string directory, string screen, AppTheme theme)
|
||||
{
|
||||
await Settle(window);
|
||||
|
||||
Reference in new issue
Block a user