Files
HC_APTBS/Views/Dialogs/ConfirmDialog.xaml
LucianoDev 0280a2fad1 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>
2026-04-18 13:11:34 +02:00

52 lines
2.2 KiB
XML

<Window x:Class="HC_APTBS.Views.Dialogs.ConfirmDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:HC_APTBS.ViewModels.Dialogs"
mc:Ignorable="d"
Title="{Binding Title}"
Height="200" Width="440"
ResizeMode="NoResize"
WindowStartupLocation="CenterOwner"
d:DataContext="{d:DesignInstance Type=vm:ConfirmDialogViewModel, IsDesignTimeCreatable=False}">
<!--
Generic Yes/No modal. DataContext: ConfirmDialogViewModel.
-->
<Grid Margin="16,12">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="48"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Grid.RowSpan="2" Text="?"
FontSize="36" Foreground="#1565C0"
FontWeight="Bold"
VerticalAlignment="Top" HorizontalAlignment="Center"
Margin="0,0,8,0"/>
<TextBlock Grid.Column="1" Text="{Binding Title}"
FontSize="16" FontWeight="Bold" Foreground="#222"
Margin="0,0,0,8"/>
<TextBlock Grid.Row="1" Grid.Column="1"
Text="{Binding Message}"
TextWrapping="Wrap"
VerticalAlignment="Top"/>
<StackPanel Grid.Row="2" Grid.Column="1"
Orientation="Horizontal" HorizontalAlignment="Right"
Margin="0,12,0,0">
<Button Content="{Binding ConfirmText}" MinWidth="80" Height="26" Margin="0,0,8,0"
Command="{Binding ConfirmCommand}" IsDefault="True"/>
<Button Content="{Binding CancelText}" MinWidth="80" Height="26"
Command="{Binding CancelCommand}" IsCancel="True"/>
</StackPanel>
</Grid>
</Window>