feat(ui): TasksIslandViewModel with smart/virtual/user filtering

Uses IDbContextFactory directly (singleton-safe). Adds ToggleDone,
ToggleStar, Select commands. Fixes pre-existing SessionTerminalView
compiled-binding error on Classes property via x:CompileBindings="False".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-04-20 10:22:11 +02:00
parent f167120c90
commit 0034accb4f
3 changed files with 157 additions and 4 deletions

View File

@@ -103,8 +103,12 @@ sealed class Program
// Islands shell VMs
sc.AddSingleton<ListsIslandViewModel>();
sc.AddSingleton<TasksIslandViewModel>();
sc.AddSingleton<DetailsIslandViewModel>();
sc.AddSingleton<TasksIslandViewModel>(sp =>
new TasksIslandViewModel(sp.GetRequiredService<IDbContextFactory<ClaudeDoDbContext>>()));
sc.AddSingleton<DetailsIslandViewModel>(sp =>
new DetailsIslandViewModel(
sp.GetRequiredService<IDbContextFactory<ClaudeDoDbContext>>(),
sp.GetRequiredService<WorkerClient>()));
sc.AddSingleton<IslandsShellViewModel>();
return sc.BuildServiceProvider();