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 @@