Repository navigation
[UI] Flat refresh 2/9: shared status, header and panel components - #592
Merged
Merged
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Pull Request
📖 Description
Adds the shared building blocks of the flat refresh: a single status-to-tone mapping (
StatusToneFormatter), and the componentsStatusChip,ScanStatusIndicator,SeverityBar,PageHeaderandSectionPanel, 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, andapp.cssgets 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
.squad/stack.md, and the Analyzer gate reports no diagnostic in a changed file..squad/stack.mdpasses (new or changed production code with the branch conditions its report records, line coverage overall).README.md,ARCHITECTURE.md) and the area document of every changed behavior to reflect my changes..squad/stack.mdprescribes.breaking-changeand says so in the Description.csharp.instructions.mdare followed.UI-specific
⏭ Next Steps
None. The page sub-issues of #450 adopt the components.