From ea6a081062f903e0f9d56bfd2917f0d7a6b821a9 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 3 Oct 2026 10:53:18 +0000 Subject: [PATCH] test(app): capture the editor's busy state The capture sample can mark an analysis of the editor sequence as running, so sequence-busy-.png shows the settings waiting with the viewing tools live. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- src/Titano.App/DesignTime/SampleData.cs | 23 +++++++++++++++++++++++ src/Titano.App/Editor/EditorMeasures.xaml | 2 +- src/Titano.App/Shell/ScreenCapture.cs | 11 ++++++++++- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/Titano.App/DesignTime/SampleData.cs b/src/Titano.App/DesignTime/SampleData.cs index 492533eb..9eb0aef7 100644 --- a/src/Titano.App/DesignTime/SampleData.cs +++ b/src/Titano.App/DesignTime/SampleData.cs @@ -152,6 +152,29 @@ public sealed class SampleData return id; } + /// A deep analysis of half way through: the editor's busy state (settings wait, viewing stays live). + public async Task MarkAnalysingAsync(Guid sequenceId) + { + var db = _db ?? throw new InvalidOperationException("OpenEmptyAsync first."); + var now = DateTimeOffset.UtcNow; + await db.Jobs.EnqueueAsync(new Job + { + Id = Guid.CreateVersion7(), + Kind = JobKind.DeepAnalyse, + TargetIds = [sequenceId], + TargetLabel = "Harbour sunset", + State = JobState.Running, + Priority = JobPriority.User, + ProgressDone = 40, + ProgressTotal = 96, + ItemsPerSecond = 12, + NodeId = Environment.MachineName, + Attempts = 1, + Created = now.AddSeconds(-5), + Started = now.AddSeconds(-4), + }); + } + /// A two-minute sunset at 2 s intervals: darkening scene, flicker, two shutter steps the pixels received, warming light. private static readonly SyntheticSequenceOptions EditorSunset = new() { diff --git a/src/Titano.App/Editor/EditorMeasures.xaml b/src/Titano.App/Editor/EditorMeasures.xaml index 3486ba0c..cf5f6426 100644 --- a/src/Titano.App/Editor/EditorMeasures.xaml +++ b/src/Titano.App/Editor/EditorMeasures.xaml @@ -15,7 +15,7 @@