feat: move test buttons to right panel, add user auth dialog for reports

Move Start/Stop/Report buttons from the middle panel to the top of
TestPanelView (automated tests section), matching the old application
layout. Remove inline Operator/Client text fields — operator identity
now comes from a UserCheckDialog (username/password) shown before the
existing ReportDialog. Add credential storage to ConfigurationService.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 16:41:20 +02:00
parent d34e81163a
commit 4964806de1
10 changed files with 267 additions and 53 deletions

View File

@@ -308,13 +308,40 @@
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <!-- Test controls -->
<RowDefinition Height="Auto"/> <!-- Toolbar -->
<RowDefinition Height="Auto"/> <!-- Status bar -->
<RowDefinition/> <!-- Test sections -->
</Grid.RowDefinitions>
<!-- ── Test controls (Start / Stop / Report) ──────────────────────── -->
<Border Padding="6,8" BorderBrush="#999" BorderThickness="0,0,0,1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button Content="&#x25B6; START TEST" FontSize="15" FontWeight="Bold"
Height="44" Margin="0,0,4,0"
Command="{Binding DataContext.StartTestCommand,
RelativeSource={RelativeSource AncestorType=Window}}"
Foreground="DarkGreen"/>
<Button Grid.Column="1" Content="&#x25A0; STOP" FontSize="15" FontWeight="Bold"
Height="44" Margin="4,0"
Command="{Binding DataContext.StopTestCommand,
RelativeSource={RelativeSource AncestorType=Window}}"
Foreground="DarkRed"/>
<Button Grid.Column="2" Content="&#x1F4C4; Report" FontSize="13"
Height="44" Margin="4,0,0,0"
Command="{Binding DataContext.GenerateReportCommand,
RelativeSource={RelativeSource AncestorType=Window}}"/>
</Grid>
</Border>
<!-- ── Toolbar ─────────────────────────────────────────────────────── -->
<Border BorderBrush="Gray" BorderThickness="0,0,0,1" Padding="8,4">
<Border Grid.Row="1" BorderBrush="Gray" BorderThickness="0,0,0,1" Padding="8,4">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
@@ -347,14 +374,14 @@
</Border>
<!-- ── Status line ─────────────────────────────────────────────────── -->
<TextBlock Grid.Row="1"
<TextBlock Grid.Row="2"
Text="{Binding StatusText}"
FontSize="12" FontStyle="Italic"
Foreground="Gray" Margin="8,2"
Visibility="{Binding IsRunning, Converter={StaticResource BoolToVis}}"/>
<!-- ── Test sections ───────────────────────────────────────────────── -->
<ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Auto">
<ScrollViewer Grid.Row="3" VerticalScrollBarVisibility="Auto">
<ItemsControl ItemsSource="{Binding Tests}"
ItemTemplate="{StaticResource TestSectionTemplate}"
Margin="4"/>