refactor(ui): blend review prompt into the terminal instead of a boxed footer
Drop the bordered Surface2 footer and lay the feedback prompt directly on the terminal background, aligned with the log lines, so it reads as a shell input line rather than a separate panel. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -146,39 +146,39 @@
|
|||||||
<!-- Output: log + review footer, both gated on IsOutputTab -->
|
<!-- Output: log + review footer, both gated on IsOutputTab -->
|
||||||
<DockPanel IsVisible="{Binding IsOutputTab}" LastChildFill="True">
|
<DockPanel IsVisible="{Binding IsOutputTab}" LastChildFill="True">
|
||||||
|
|
||||||
<!-- Review footer (terminal prompt) — only while awaiting review -->
|
<!-- Review prompt — sits directly on the terminal, like a shell input line;
|
||||||
<Border DockPanel.Dock="Bottom"
|
only while awaiting review. No border/fill so it reads as part of the log. -->
|
||||||
IsVisible="{Binding IsWaitingForReview}"
|
<Grid DockPanel.Dock="Bottom"
|
||||||
Background="{DynamicResource Surface2Brush}"
|
IsVisible="{Binding IsWaitingForReview}"
|
||||||
BorderBrush="{DynamicResource LineBrush}"
|
ColumnDefinitions="Auto,*,Auto"
|
||||||
BorderThickness="0,1,0,0"
|
Margin="12,2,12,8">
|
||||||
Padding="10,6">
|
<TextBlock Grid.Column="0" Text="❯"
|
||||||
<DockPanel LastChildFill="True">
|
|
||||||
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal" Spacing="8"
|
|
||||||
VerticalAlignment="Bottom" Margin="8,0,0,0">
|
|
||||||
<Button Classes="btn accent" Content="Retry"
|
|
||||||
Command="{Binding RejectReviewCommand}" />
|
|
||||||
<Button Classes="btn" Content="Reset"
|
|
||||||
Command="{Binding ParkReviewCommand}" />
|
|
||||||
</StackPanel>
|
|
||||||
<TextBlock DockPanel.Dock="Left" Text="❯"
|
|
||||||
FontFamily="{StaticResource MonoFont}"
|
|
||||||
Foreground="{DynamicResource TextMuteBrush}"
|
|
||||||
VerticalAlignment="Top" Margin="0,4,8,0" />
|
|
||||||
<TextBox Name="ReviewInput"
|
|
||||||
KeyDown="OnReviewInputKeyDown"
|
|
||||||
Text="{Binding ReviewFeedback, Mode=TwoWay}"
|
|
||||||
AcceptsReturn="True"
|
|
||||||
TextWrapping="Wrap"
|
|
||||||
MaxHeight="160"
|
|
||||||
PlaceholderText="Feedback for the next run…"
|
|
||||||
Background="Transparent"
|
|
||||||
BorderThickness="0"
|
|
||||||
Padding="0,2"
|
|
||||||
FontFamily="{StaticResource MonoFont}"
|
FontFamily="{StaticResource MonoFont}"
|
||||||
FontSize="{StaticResource FontSizeMono}" />
|
FontSize="{StaticResource FontSizeMono}"
|
||||||
</DockPanel>
|
Foreground="{DynamicResource AccentBrush}"
|
||||||
</Border>
|
VerticalAlignment="Top" Margin="0,2,8,0" />
|
||||||
|
<TextBox Grid.Column="1"
|
||||||
|
Name="ReviewInput"
|
||||||
|
KeyDown="OnReviewInputKeyDown"
|
||||||
|
Text="{Binding ReviewFeedback, Mode=TwoWay}"
|
||||||
|
AcceptsReturn="True"
|
||||||
|
TextWrapping="Wrap"
|
||||||
|
MaxHeight="160"
|
||||||
|
PlaceholderText="Feedback for the next run…"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderThickness="0"
|
||||||
|
Padding="0"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
FontFamily="{StaticResource MonoFont}"
|
||||||
|
FontSize="{StaticResource FontSizeMono}" />
|
||||||
|
<StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="8"
|
||||||
|
VerticalAlignment="Top" Margin="10,0,0,0">
|
||||||
|
<Button Classes="btn accent" Content="Retry"
|
||||||
|
Command="{Binding RejectReviewCommand}" />
|
||||||
|
<Button Classes="btn" Content="Reset"
|
||||||
|
Command="{Binding ParkReviewCommand}" />
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<ScrollViewer Name="LogScroll"
|
<ScrollViewer Name="LogScroll"
|
||||||
VerticalScrollBarVisibility="Visible"
|
VerticalScrollBarVisibility="Visible"
|
||||||
|
|||||||
Reference in New Issue
Block a user