feat(ui): reveal a task by id from anywhere

This commit is contained in:
Mika Kuns
2026-06-25 14:48:40 +02:00
parent 42da840066
commit 5a21d673c1
7 changed files with 178 additions and 2 deletions

View File

@@ -114,4 +114,20 @@ public class MissionControlViewModelTests : IDisposable
public override IReadOnlyList<ActiveTask> GetActiveTasks()
=> new[] { new ActiveTask("slot-1", "seed1", DateTime.UtcNow) };
}
[Fact]
public void OpenInApp_PropagatesToMonitors_AndCommandInvokesHook()
{
var worker = new FakeWorker();
using var vm = BuildVm(worker);
string? revealed = null;
vm.OpenInApp = id => revealed = id;
worker.RaiseTaskStarted("slot-1", "t1", DateTime.UtcNow);
vm.Monitors[0].OpenInAppCommand.Execute(null);
Assert.Equal("t1", revealed);
}
}