feat(ui): host review actions in the details panel; show review state and diff meter
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -185,6 +185,44 @@
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<!-- Review section — visible when task is WaitingForReview -->
|
||||
<Border Classes="section-divider"
|
||||
IsVisible="{Binding IsWaitingForReview}">
|
||||
<StackPanel Spacing="8">
|
||||
<TextBlock Classes="section-label" Text="{loc:Tr tasks.rejectRerunTitle}" Margin="0,0,0,2"/>
|
||||
<TextBlock Classes="field-label" Text="{loc:Tr tasks.feedbackLabel}"/>
|
||||
<TextBox Text="{Binding ReviewFeedback, Mode=TwoWay}"
|
||||
AcceptsReturn="True"
|
||||
TextWrapping="Wrap"
|
||||
MinHeight="60"
|
||||
MaxHeight="180"
|
||||
PlaceholderText="{loc:Tr tasks.feedbackPlaceholder}"
|
||||
Padding="8"
|
||||
Background="{DynamicResource Surface2Brush}"
|
||||
BorderBrush="{DynamicResource LineBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="8"/>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<Button Classes="btn accent"
|
||||
Content="{loc:Tr tasks.approve}"
|
||||
ToolTip.Tip="{loc:Tr tasks.approveTip}"
|
||||
Command="{Binding ApproveReviewCommand}"/>
|
||||
<Button Classes="btn"
|
||||
Content="{loc:Tr tasks.reject}"
|
||||
ToolTip.Tip="{loc:Tr tasks.rejectTip}"
|
||||
Command="{Binding RejectReviewCommand}"/>
|
||||
<Button Classes="btn"
|
||||
Content="{loc:Tr tasks.park}"
|
||||
ToolTip.Tip="{loc:Tr tasks.parkTip}"
|
||||
Command="{Binding ParkReviewCommand}"/>
|
||||
<Button Classes="btn"
|
||||
Content="{loc:Tr tasks.cancel}"
|
||||
ToolTip.Tip="{loc:Tr tasks.cancelTip}"
|
||||
Command="{Binding CancelReviewCommand}"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<!-- Steps section -->
|
||||
<Border Classes="section-divider">
|
||||
<StackPanel Spacing="6">
|
||||
|
||||
Reference in New Issue
Block a user