fix(daily-prep): hide task header, footer and agent strip in prep/notes mode

The delete/close footer, task header, and the DIFF/worktree agent strip
sit outside the mode-switched body, so they leaked into the prep-log and
notes views. Gate all three on IsTaskDetailVisible.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-06-04 10:28:27 +02:00
parent 15ed624d4a
commit 39fa83a0a0

View File

@@ -8,8 +8,9 @@
x:DataType="vm:DetailsIslandViewModel"> x:DataType="vm:DetailsIslandViewModel">
<DockPanel> <DockPanel>
<!-- ── Metadata footer (sticky bottom) ── --> <!-- ── Metadata footer (sticky bottom) — task detail only ── -->
<Border DockPanel.Dock="Bottom" <Border DockPanel.Dock="Bottom"
IsVisible="{Binding IsTaskDetailVisible}"
BorderBrush="{DynamicResource LineBrush}" BorderBrush="{DynamicResource LineBrush}"
BorderThickness="0,1,0,0" BorderThickness="0,1,0,0"
Padding="14,8"> Padding="14,8">
@@ -35,8 +36,9 @@
</Grid> </Grid>
</Border> </Border>
<!-- ── Header (sticky top): check · eyebrow · title · status · star · gear ── --> <!-- ── Header (sticky top): check · eyebrow · title · status · star · gear — task detail only ── -->
<Border DockPanel.Dock="Top" Classes="island-header"> <Border DockPanel.Dock="Top" Classes="island-header"
IsVisible="{Binding IsTaskDetailVisible}">
<Grid ColumnDefinitions="Auto,*,Auto,Auto"> <Grid ColumnDefinitions="Auto,*,Auto,Auto">
<Button Grid.Column="0" Classes="flat" <Button Grid.Column="0" Classes="flat"
Command="{Binding ToggleDoneCommand}" Command="{Binding ToggleDoneCommand}"
@@ -124,8 +126,9 @@
</Grid> </Grid>
</Border> </Border>
<!-- ── Agent status strip (sticky, above metadata footer) ── --> <!-- ── Agent status strip (sticky, above metadata footer) — task detail only ── -->
<islands:AgentStripView DockPanel.Dock="Bottom"/> <islands:AgentStripView DockPanel.Dock="Bottom"
IsVisible="{Binding IsTaskDetailVisible}"/>
<!-- ── Body: task details (normal), notes editor (notes mode), or prep log (prep mode) ── --> <!-- ── Body: task details (normal), notes editor (notes mode), or prep log (prep mode) ── -->
<Grid> <Grid>