Skip to content

style(ui): simulation dialog consistency with Part O - #246

Merged
michaldengusiak merged 2 commits into
sow/2026-Q4from
ui/simulation-dialog-consistency
Oct 20, 2026
Merged

michaldengusiak merged 2 commits into
sow/2026-Q4from
ui/simulation-dialog-consistency

Conversation

@michaldengusiak

@michaldengusiak michaldengusiak commented Oct 20, 2026 •

Copy link
Copy Markdown

Summary

  • RunSimulationWindow and EngineComparisonWindow (S01-S06 simulation dialogs) now follow the Part O look: merge PartOStyles.xaml, Roboto Light, 16/14 margins, PartO.SectionHeading/Caption, PartO.PrimaryButton for Run / Run Tas + OpenStudio, 28 px buttons, surface/border banner.
  • AGENTS.md: SAM_UI dialog conventions (Part O as reference) and the validation policy. CLAUDE.md already imports AGENTS.md, so nothing is duplicated.

Simulation behaviour unchanged

Only two .xaml files and AGENTS.md changed. No .cs, no element names, handlers, cancellation, diagnostics or result logic. Part O windows untouched. Data-grid band/row colours in the comparison window were left as they are (they carry text labels too).

Validation (local)

  • dotnet build WPF/SAM.Analytical.UI.WPF -c Release: 0 errors (existing warnings only), isolated worktree output.
  • EngineComparisonWindow, SimulationConcurrencyGuard, RunSimulation tests: 10/10 pass.
  • Not run: BuildAll, installer, licensed simulations (per task rules).
  • Not done: before/after screenshots, DPI and visual comparison. Needs a manual look in the app.

Not in scope / reported

  • Progress, failure and partial-completion for the engine runs are MessageBoxes and the banner in code-behind; moving them to the shared progress window is a larger change (separate PR).
  • Banner colours in EngineComparisonWindow.xaml.cs are still literal RGB.

Draft: do not merge until S06 is merged and integration conflicts are checked. Note the docs/agent-instructions-rollout-q4 worktree may also touch AGENTS.md.

🤖 Generated with Claude Code

Final visual and runtime acceptance (2026-10-20)

Method: temporary uncommitted test harness instantiated the real windows from the worktree build (fabricated comparison documents, no simulation, installed app untouched). Screenshots: documentation/evidence/sim-dialog-consistency/ (README lists them).

  • PartOStyles.xaml loads at runtime in both windows: no missing-resource exceptions.
  • Run Simulation (100%/150%): long Both text wraps inside the 600 px window, caption indent aligned to labels, blue primary Run, Cancel; disabled engines greyed with their tooltip.
  • Compare (100%/150%, 1180 and 760 px width): grids keep columns and scroll horizontally at 760; banner, headings, captions and 28 px button row consistent with Part O.
  • Interactions (no licensed run): Both+Run -> DialogResult true, choice Both; Run default -> Tas; OpenStudio+Cancel -> false; disabled engines not selectable, tooltip kept.
  • Existing targeted tests: 10/10 earlier; no code changed since.
  • Merge check: sow/2026-Q4 has no new commits; git merge-tree against it is clean, incl. AGENTS.md.
  • No XAML defects found, so no further corrections.
    Limitations: 150% is rendered at 1.5 scale, not a real Windows 150% display session; Roboto Light is absent here (fallback font, same as Part O reference); title bar/ownership/resize-grip behaviour not captured by the renders (ResizeMode/Owner unchanged from before except as listed).
    Recommendation: PASS for visual/runtime acceptance; stays draft until S06 merges.

michaldengusiak and others added 2 commits October 20, 2026 11:15
…O styling

XAML-only: merge PartOStyles, Roboto Light, Part O margins, caption/heading
styles, primary button and 28 px button row. Adds SAM_UI dialog conventions
and a validation policy to AGENTS.md (CLAUDE.md imports it).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@michaldengusiak
michaldengusiak marked this pull request as ready for review October 20, 2026 12:28
@michaldengusiak
michaldengusiak merged commit a3ea6bb into sow/2026-Q4 Oct 20, 2026
2 checks passed
michaldengusiak added a commit that referenced this pull request Oct 20, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@michaldengusiak
michaldengusiak deleted the ui/simulation-dialog-consistency branch October 20, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant