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>
25 lines
922 B
C#
25 lines
922 B
C#
namespace HC_APTBS.Models
|
|
{
|
|
/// <summary>
|
|
/// Sequential state of the Tests page wizard flow.
|
|
/// Advance is gated: Plan → Preconditions (when phases are enabled),
|
|
/// Preconditions → Running (when all required checks pass),
|
|
/// Running → Done (when the bench service reports the test finished).
|
|
/// Back navigation is allowed only between Plan and Preconditions.
|
|
/// </summary>
|
|
public enum TestFlowState
|
|
{
|
|
/// <summary>Operator selects tests and enables individual phases.</summary>
|
|
Plan,
|
|
|
|
/// <summary>Pre-run safety and readiness checklist; Start is hard-blocked until all green.</summary>
|
|
Preconditions,
|
|
|
|
/// <summary>Test is executing on the bench. Live phase timeline and measurements.</summary>
|
|
Running,
|
|
|
|
/// <summary>Test finished (complete or aborted). Summary and next-step actions.</summary>
|
|
Done
|
|
}
|
|
}
|