Skip to content

[UI] Flat refresh 3/9: dashboard that lists what needs attention - #594

Merged
LarsLaskowski merged 28 commits into
mainfrom
claude/magical-bohr-d8uz9o
Nov 29, 2026
Merged

LarsLaskowski merged 28 commits into
mainfrom
claude/magical-bohr-d8uz9o

Conversation

@LarsLaskowski

@LarsLaskowski LarsLaskowski commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Pull Request

📖 Description

The dashboard now names what needs attention instead of only counting it: a headline built from the update, runtime-warning and vulnerability counts, a sub line, and three panels listing the running containers with an available update, the advisories affecting running containers (with the severity bar) and own images with a base runtime warning. Below them sit a strip of the last ten scans with the newest failed or partial run, and an inventory strip; without findings a Nothing to do panel takes the place of the lists. The headline, panel counts and "more" links count what is listed (decision 0080), and GetDashboardAsync fills the lists through helpers shared with the existing pages, without loading resource usage samples or affected-image lists. The hero panel, the metric cards and the recent scans table are removed, together with MetricGridSkeleton and PageHeaderSkeleton, and docs/areas/web-ui.md describes the new page.

🎫 Issues

💬 Reviewer Notes

  • The advisory query lives in DashboardVulnerabilityQuery with a member-scoped CA1304/CA1311 suppression because ToLower() is the form Npgsql translates to lower(); a test compiles it with UseNpgsql and ToQueryString().
  • The analyzer gate still reports two repo-level config lines (src/GlobalSuppressions.cs assembly-wide SuppressMessage, .editorconfig dotnet-rules block) in files identical to main; the changed files carry no diagnostic.
  • Visual checks of the narrow-screen stacking, contrast and fonts need a look at the running page.

📑 Test Plan

Criterion Tests
AC1–AC2 headline and sub line formatter tests (every count combination, singular forms, no scan) and page render tests
AC3–AC5 service tests of the three lists (order, limits, E6 values) and panel render tests
AC6 scan strip formatter tests, scan panel render tests, stylesheet token test
AC7–AC8 inventory visibility rules, Nothing to do panel also with the scanning-disabled hint
AC9–AC10 counts equal the listed sets, skeleton, refresh signal, persisted state, no resource sample sets requested, advisory query translates on Npgsql
AC11 docs/areas/web-ui.md read against the built page in review

Coverage on changed code is 100 % (lines and branch conditions).

✅ 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.

@sonarqubecloud

Copy link
Copy Markdown

@LarsLaskowski LarsLaskowski added the enhancement New feature or request label Nov 29, 2026 — with Claude
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 3/9: dashboard that lists what needs attention

2 participants