feat(ui): details island with agent strip, terminal, subtasks, notes
Adds AgentStripView (status/model/turns/tokens row, worktree path, branch line, action buttons), SessionTerminalView (scrollable log with auto-scroll on CollectionChanged, prompt TextBox with Enter binding), and replaces DetailsIslandView placeholder with full ScrollViewer layout containing editable title, agent strip, terminal, subtasks, notes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
39
src/ClaudeDo.Ui/Views/Islands/AgentStripView.axaml
Normal file
39
src/ClaudeDo.Ui/Views/Islands/AgentStripView.axaml
Normal file
@@ -0,0 +1,39 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="using:ClaudeDo.Ui.ViewModels.Islands"
|
||||
x:Class="ClaudeDo.Ui.Views.Islands.AgentStripView"
|
||||
x:DataType="vm:DetailsIslandViewModel">
|
||||
<Border Classes="agent-strip">
|
||||
<StackPanel Margin="14,12" Spacing="6">
|
||||
<!-- Row 1: status dot · status label · model · turns · tokens -->
|
||||
<StackPanel Orientation="Horizontal" Spacing="10">
|
||||
<Ellipse Width="8" Height="8" Fill="{DynamicResource MossBrush}" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="{Binding AgentStatusLabel}" FontSize="12"
|
||||
Foreground="{DynamicResource TextBrush}" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="{Binding Model}" FontFamily="{DynamicResource MonoFamily}"
|
||||
FontSize="11" Foreground="{DynamicResource TextDimBrush}" VerticalAlignment="Center"
|
||||
IsVisible="{Binding Model, Converter={x:Static ObjectConverters.IsNotNull}}"/>
|
||||
<TextBlock Text="{Binding Turns, StringFormat='turns: {0}'}" FontSize="11"
|
||||
Foreground="{DynamicResource TextMuteBrush}" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="{Binding Tokens, StringFormat='tok: {0}'}" FontSize="11"
|
||||
Foreground="{DynamicResource TextMuteBrush}" VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
<!-- Row 2: worktree path -->
|
||||
<TextBlock Text="{Binding WorktreePath}" FontFamily="{DynamicResource MonoFamily}"
|
||||
FontSize="11" Foreground="{DynamicResource TextDimBrush}"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
IsVisible="{Binding WorktreePath, Converter={x:Static ObjectConverters.IsNotNull}}"/>
|
||||
<!-- Row 3: branch line -->
|
||||
<TextBlock Text="{Binding BranchLine}" FontFamily="{DynamicResource MonoFamily}"
|
||||
FontSize="11" Foreground="{DynamicResource TextDimBrush}"
|
||||
IsVisible="{Binding BranchLine, Converter={x:Static ObjectConverters.IsNotNull}}"/>
|
||||
<!-- Button row -->
|
||||
<StackPanel Orientation="Horizontal" Spacing="8" Margin="0,6,0,0">
|
||||
<Button Classes="icon-btn" Content="Open diff"/>
|
||||
<Button Classes="icon-btn" Content="Worktree"/>
|
||||
<Button Classes="icon-btn" Content="Stop" Command="{Binding StopCommand}"/>
|
||||
<Button Classes="icon-btn" Content="Approve & merge" Command="{Binding ApproveMergeCommand}"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user