test(app): capture the editor's busy state
The capture sample can mark an analysis of the editor sequence as running, so sequence-busy-<theme>.png shows the settings waiting with the viewing tools live. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
3 files changed
+34
-2
No files matched your search
@@ -152,6 +152,29 @@ public sealed class SampleData
|
||||
return id;
|
||||
}
|
||||
|
||||
/// <summary>A deep analysis of <paramref name="sequenceId"/> half way through: the editor's busy state (settings wait, viewing stays live).</summary>
|
||||
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),
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>A two-minute sunset at 2 s intervals: darkening scene, flicker, two shutter steps the pixels received, warming light.</summary>
|
||||
private static readonly SyntheticSequenceOptions EditorSunset = new()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user