Skip to content

[UI] Flat refresh 7/9: Vulnerabilities page with a severity bar - #611

Merged
LarsLaskowski merged 34 commits into
mainfrom
claude/amazing-gauss-vu2l8l
Dec 1, 2026
Merged

LarsLaskowski merged 34 commits into
mainfrom
claude/amazing-gauss-vu2l8l

Conversation

@LarsLaskowski

@LarsLaskowski LarsLaskowski commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Pull Request

📖 Description

The Vulnerabilities page now follows the flat refresh: one PageHeader and one panel whose header shows the advisory count (4 of 31 while a filter hides advisories), a severity bar with legend over all active advisories, and the filter and severity select with their labels above. The row rails and the page's own severity colors are gone; the severity is a StatusChip (an advisory without a known severity reads Unknown in the low tone), the expand button has an accessible name and aria-expanded, and an expanded row and its detail share the subtle surface. The page pages its advisories itself and draws its own pager (Rows per page, 1–25 of 31, two labelled icon buttons), because MudTablePager brings first/last-page buttons and a different range format. Below 960 px rows are cards whose long values wrap; SectionPanel gained two optional fragments for the count and the bar. The behavior documentation moved into the new area document docs/areas/list-pages.md, since web-ui.md was at its word limit. This is an enhancement, not a breaking change.

🎫 Issues

💬 Reviewer Notes

The page keeps the page index and size itself and gives MudTable only the rows of the current page. A page size sent by the client is accepted only if it is 25, 50 or 100. docs/ARCHITECTURE.md §9 also loses a stale claim that the vulnerability widgets are shared with this page. A manual check at 390, 768 and 1280 px passed on the stamped head.

📑 Test Plan

Criterion Verification Result
AC1–AC7 unit tests (SectionPanelTests, VulnerabilityOverviewFormatterTests, TablePagingFormatterTests, VulnerabilitiesRenderTests, VulnerabilitiesTests, AppStylesheetVulnerabilitiesTests) pass
AC8 manual: no horizontal overflow at 390, 768 and 1280 px, one row expanded pass (second run, after the card layout fix)
AC9 check: docs/areas/list-pages.md and the /vulnerabilities row of docs/areas/web-ui.md read against the criterion pass (review)

The full suite passes (2980 + 39 tests), new and changed code is covered at 94.3 %, overall 96.2 %.

✅ 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

@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

@LarsLaskowski
LarsLaskowski marked this pull request as ready for review December 1, 2026 19:21
@LarsLaskowski
LarsLaskowski merged commit 477bc10 into main Dec 1, 2026
7 checks passed
@LarsLaskowski
LarsLaskowski deleted the claude/amazing-gauss-vu2l8l branch December 1, 2026 19:40
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 7/9: Vulnerabilities page with a severity bar and without row rails

2 participants