feat: page-based navigation shell + Tests page wizard

Replace the monolithic MainWindow with a SelectedPage-driven shell
(Dashboard / Pump / Bench / Tests / Results / Settings). The Tests
page gets the Plan -> Preconditions -> Running -> Done wizard from
ui-structure.md \u00a74, backed by a 7-item precondition gate and
shared sub-views (PhaseCardView / TestSectionView / GraphicIndicatorView)
extracted from the now-deleted monolithic TestPanelView.

New VMs / views:
- Tests wizard: TestPreconditions, PhaseCard, GraphicIndicator,
  TestSection, TestPlan, TestRunning, TestDone
- Dashboard panels: DashboardConnection, DashboardReadings,
  DashboardAlarms, InterlockBanner, ResultHistory
- Pump / bench panels: PumpIdentificationPanel, PumpLiveData,
  UnlockPanel, BenchDriveControl, BenchReadings, RelayBank,
  TemperatureControl, DtcList, AuthGate
- Dialogs: generic ConfirmDialog, UserManageDialog, UserPromptDialog

Supporting changes:
- IsOilPumpOn exposed on MainViewModel for precondition evaluation
- RequiresAuth added to TestDefinition (XML round-trip)
- BipStatusDefinition + CompletedTestRun models
- ~35 new Test.* localization keys (en + es)
- Settings moved from modal dialog to full page
- Pause / Retry / Skip stubs in TestRunningView; full spec in
  docs/gap-test-running-controls.md for follow-up implementation
- docs/ui-structure.md captures the wizard design

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-18 13:11:34 +02:00
parent 37d099cdbd
commit 0280a2fad1
110 changed files with 8008 additions and 1115 deletions

View File

@@ -0,0 +1,48 @@
<Window x:Class="HC_APTBS.Views.Dialogs.UserPromptDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
Title="{DynamicResource Dialog.UserManage.Prompt.AddTitle}"
Height="170" Width="420"
ResizeMode="NoResize"
WindowStartupLocation="CenterOwner"
FontFamily="Ebrima"
Background="#FFEDEDED">
<Grid Margin="16,12">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="110"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<!-- Username (hidden when UsernameVisible == false) -->
<Label x:Name="LblUsername"
Content="{DynamicResource Dialog.UserCheck.Username}"
VerticalAlignment="Center" HorizontalAlignment="Right"/>
<TextBox x:Name="TbUsername" Grid.Column="1"
Margin="8,4" Height="26" VerticalContentAlignment="Center"/>
<!-- Password -->
<Label Grid.Row="1"
Content="{DynamicResource Dialog.UserCheck.Password}"
VerticalAlignment="Center" HorizontalAlignment="Right"/>
<PasswordBox x:Name="PbPassword" Grid.Row="1" Grid.Column="1"
Margin="8,4" Height="26" VerticalContentAlignment="Center"/>
<!-- Buttons -->
<StackPanel Grid.Row="2" Grid.Column="1"
Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,12,0,0">
<Button Content="{DynamicResource Common.Accept}" Width="80" Height="26" Margin="0,0,8,0"
Click="OnAccept" IsDefault="True"/>
<Button Content="{DynamicResource Common.Cancel}" Width="80" Height="26"
IsCancel="True"/>
</StackPanel>
</Grid>
</Window>