Skip to content

[UI] Flat refresh 2/9: shared status, header and panel components - #592

Merged
LarsLaskowski merged 39 commits into
mainfrom
claude/keen-hawking-8xxzej
Nov 29, 2026
Merged

LarsLaskowski merged 39 commits into
mainfrom
claude/keen-hawking-8xxzej

Conversation

@LarsLaskowski

@LarsLaskowski LarsLaskowski commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Pull Request

📖 Description

Adds the shared building blocks of the flat refresh: a single status-to-tone mapping (StatusToneFormatter), and the components StatusChip, ScanStatusIndicator, SeverityBar, PageHeader and SectionPanel, which render plain elements colored from the design tokens of #451. PageHeaderSkeleton, TableSkeleton, the rescan control and the vulnerability chips, findings table and assessment card now use them, and app.css gets the flat table style plus the button and field rules of the refresh (error-colored buttons and disabled buttons keep their look). No page is converted here; the old per-page color helpers stay until the page sub-issues adopt the components. The decision record 0079 explains why the new mapping sits beside the two existing formatters.

🎫 Issues

Closes #452

Decision record: docs/decisions/0079-statuses-map-to-tones-in-one-mapping-beside-the-chip-colors-of-unconverted-pages.md

💬 Reviewer Notes

The shrunk-label size of outlined fields (a 16 px base scaled by MudBlazor to 12 px) was checked by reading the specificity against MudBlazor 9.14.0 and by a probe render, not in a browser; it is worth a look in the first page sub-issue that shows a styled field. The squad working record is on #452.

📑 Test Plan

Unit tests per acceptance criterion: StatusToneFormatterTests (every row of the mapping), bUnit tests for each new component, the adapted skeleton and widget tests, and stylesheet tests (AppStylesheetSharedComponentsTests, AppStylesheetTests) for the chip tokens, table style, buttons, fields and the 960 px row cards. No page test file changed. Format, analyzer, test and coverage gates pass (98.9 % of new lines, 95.0 % overall).

✅ Checklist

  • I have added or updated Unit Tests for the change.
  • I have tested my changes.
  • I have run Format and Build from .squad/stack.md, and the Analyzer gate reports no diagnostic in a changed file.
  • The Coverage gate in .squad/stack.md passes (new or changed production code with the branch conditions its report records, line coverage overall).
  • I have updated the project documentation (README.md, ARCHITECTURE.md) and the area document of every changed behavior to reflect my changes.
  • Each decision with lasting weight has its decision record, committed with the change.
  • I have read the CONTRIBUTING documentation and followed the project's code style guidelines.
  • New dependencies, if any, were added the way Dependencies in .squad/stack.md prescribes.
  • The PR carries its release-notes label (CONTRIBUTING); a change that breaks existing users carries breaking-change and says so in the Description.
  • The C# rules in csharp.instructions.md are followed.

UI-specific

  • I have added a new Blazor page/component.
  • I have added Unit Tests for the new page/component.
  • I have modified an existing Blazor page/component.
  • I have updated the Unit Tests for the modified page/component.

⏭ Next Steps

None. The page sub-issues of #450 adopt the components.

@LarsLaskowski LarsLaskowski added the enhancement New feature or request label Nov 28, 2026 — with Claude
@sonarqubecloud

Copy link
Copy Markdown

@LarsLaskowski
LarsLaskowski marked this pull request as ready for review November 28, 2026 22:23
@LarsLaskowski
LarsLaskowski merged commit 0cc1baf into main Nov 29, 2026
7 checks passed
@LarsLaskowski
LarsLaskowski deleted the claude/keen-hawking-8xxzej branch November 29, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] Flat refresh 2/9: shared components for status, severity, page header, panel and tables

2 participants