feat(ui): worktree modal with tree view and M/A badges
Adds WorktreeModalView/ViewModel showing git status --porcelain as a recursive file tree with M/A/D/? status badges. Wires the Worktree button in AgentStripView to OpenWorktreeCommand on DetailsIslandViewModel. Adds GetStatusPorcelainAsync to GitService. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -260,6 +260,35 @@
|
||||
<Setter Property="Foreground" Value="{StaticResource TextDimBrush}" />
|
||||
</Style>
|
||||
|
||||
<!-- ============================================================ -->
|
||||
<!-- WORKTREE MODAL STATUS BADGES -->
|
||||
<!-- Tag="M" → peat, "A" → moss, "D" → blood, "?" → faint -->
|
||||
<!-- ============================================================ -->
|
||||
<Style Selector="Border[Tag=M]">
|
||||
<Setter Property="Background" Value="#26A06040"/>
|
||||
</Style>
|
||||
<Style Selector="Border[Tag=M] > TextBlock">
|
||||
<Setter Property="Foreground" Value="{StaticResource PeatBrush}"/>
|
||||
</Style>
|
||||
<Style Selector="Border[Tag=A]">
|
||||
<Setter Property="Background" Value="#267C9166"/>
|
||||
</Style>
|
||||
<Style Selector="Border[Tag=A] > TextBlock">
|
||||
<Setter Property="Foreground" Value="{StaticResource MossBrush}"/>
|
||||
</Style>
|
||||
<Style Selector="Border[Tag=D]">
|
||||
<Setter Property="Background" Value="#26C87060"/>
|
||||
</Style>
|
||||
<Style Selector="Border[Tag=D] > TextBlock">
|
||||
<Setter Property="Foreground" Value="{StaticResource BloodBrush}"/>
|
||||
</Style>
|
||||
<Style Selector="Border[Tag=?]">
|
||||
<Setter Property="Background" Value="#1A888888"/>
|
||||
</Style>
|
||||
<Style Selector="Border[Tag=?] > TextBlock">
|
||||
<Setter Property="Foreground" Value="{StaticResource TextFaintBrush}"/>
|
||||
</Style>
|
||||
|
||||
<!-- ============================================================ -->
|
||||
<!-- LIST NAV ITEM -->
|
||||
<!-- ============================================================ -->
|
||||
|
||||
Reference in New Issue
Block a user