Repository navigation
Description
Part of #450. Depends on #451 (tokens) and #452 (shared components).
Problem
The dashboard (/, Components/Pages/Dashboard.razor) answers "how many" but not "which":
- A hero panel with a title and a slogan takes the top of the page.
- Eight metric cards show counters. Below them the section Update pressure repeats three of the counters and Coverage snapshot repeats the other five.
- A user who sees "7 update findings" has to open another page to learn which containers are meant.
- The table of the ten most recent scans takes the most room, although it is only interesting when a run failed.
- Its description speaks of discovery and cleanup jobs that record no scan runs ([BUG] Scan History and Dashboard texts claim discovery and cleanup runs that are never recorded #278).
Target
Without findings:
Dark theme:
The mockups show sample data; the navigation in the header is part of 4/9 and not of this issue.
Scope
The hero panel, the eight metric cards, Update pressure, Coverage snapshot and the Recent scans table are removed. The page consists of the following parts, top to bottom.
1. Headline
An h1 in --dug-font-display, 34 px, semibold, letter spacing −0.025 em, line height 1.15, at most 860 px wide. It is composed from three counts, in this fixed order, leaving out every count that is 0:
| Count | Singular | Plural | Color |
|---|---|---|---|
| Updates | 1 update |
N updates |
--dug-attention |
| Own base runtime warnings | 1 runtime warning |
N runtime warnings |
--dug-attention |
| Vulnerabilities | 1 vulnerability |
N vulnerabilities |
--dug-danger |
- One part:
7 updates need attention.— and1 update needs attention.when that single count is 1. - Two parts:
7 updates and 31 vulnerabilities need attention. - Three parts:
7 updates, 2 runtime warnings and 31 vulnerabilities need attention. - No part:
Everything is up to date.in--dug-success.
Only the parts are colored; the rest of the sentence uses --dug-text.
2. Sub line
One line of muted text under the headline: 43 protected assets on 2 Docker instances · last activity 14.11.2026 09:42.
- Protected assets: manual observed images + own images + runtime containers, the value the top bar shows today (
MainLayout.GetProtectedAssetCount). 1 Docker instancein the singular.- Last activity: start time of the most recent scan run in the server's short date and time format, as today; without a run the part reads
no scans yet.
3. Vulnerability configuration hint
The three existing alerts (scanning disabled, Trivy not configured, Docker Scout not configured) keep their texts and conditions and sit between the sub line and the panels.
4. Three columns of panels
A wrapping row with 24 px gaps; each column is at least 300 px wide and the three share the width equally. Below that width they stack in the order Updates, Vulnerabilities, Runtime warnings, Scans. All panels are SectionPanels (#452). A row of a list is one link with a padding of 11 px / 20 px, separated from the next by --dug-border-inner.
Updates available (column 1)
- Panel title
Updates available, the count on the right in--dug-attention(20 px,--dug-font-display). - Up to 5 runtime containers whose update state is
Update available, ordered by container name, then instance name. - Row, line 1: container name (semibold) on the left, instance name (13 px, muted) on the right. Line 2 (13 px, tabular figures): current tag in muted text — with the resolved version in parentheses when the tag is an alias, as on the Runtime Containers page —, an arrow, and the available tag in
--dug-textwith medium weight. - A row links to
/runtime-containers/{instanceId}/{containerId}. - Footer link in
--dug-link:2 more in Runtime Containerswhen there are more than 5, otherwiseOpen Runtime Containers; both lead to/runtime-containers. - Without an entry the panel shows
No updates available.in muted text and no count.
Vulnerabilities (column 2)
- Panel title
Vulnerabilities, the count on the right in--dug-danger. - Under the title the
SeverityBar([UI] Flat refresh 2/9: shared components for status, severity, page header, panel and tables #452) with its legend. - Up to 4 advisories that affect at least one running container, ordered by severity (Critical, High, Medium, Low), then CVSS score descending (advisories without a score last), then number of affected running containers descending, then advisory identifier.
- Row, line 1: the affected packages, joined with a comma (the advisory identifier when the advisory names no package), semibold, and the severity as a
StatusChipon the right. Line 2 (13 px, muted):Fixed in {versions}orNo fix available, a middle dot,{n} running containers(1 running container). - The accessible name of a row includes the advisory identifier.
- A row links to
/vulnerabilities. - Footer link:
27 more in Vulnerabilitieswhen there are more than 4, otherwiseOpen Vulnerabilities. - Without an entry:
No vulnerabilities in running containers.and no bar.
Own base runtime warnings (column 3, top)
- Panel title
Own base runtime warnings, the count on the right in--dug-attention. - Up to 5 own images (registration source Discovery) that carry a base runtime alert, ordered by name.
- Row, line 1: image name, semibold. Line 2 (13 px, muted): the alert summary as the view model delivers it (
BaseRuntimeAlertSummary). - A row links to
/my-images/{id}. - Footer link
N more in My Imageswhen there are more than 5. - Without an entry:
No runtime warnings.
Last 10 scans (column 3, below)
- Panel title
Last 10 scans. - A strip of up to ten segments of 24 px height, 3 px apart, radius 2 px, newest on the left, colored by status:
Succeeded--dug-scan-succeeded,Partial--dug-scan-partial,Failed--dug-scan-failed,Running--dug-primary,Pending--dug-border-control. - The strip has
role="img"and anaria-labelthat reads the counts (8 succeeded, 1 partial, 1 failed); each segment has atitlewith type, target, status and start time. - Under it one line (13 px, muted) with the counts per status that are above 0, in the order succeeded, running, pending, partial, failed; the failed count is semibold in
--dug-danger. - When one of the ten runs is
FailedorPartialand has an error message, the newest such run is named in one more line:{target} · {error message}. The message is shown as stored. - Footer link
Open scan historyto/scan-history. - Without a run:
No scans have been recorded yet.
5. Inventory strip
One panel with one cell per counter, separated by hairlines, wrapping on narrow screens: My Images (only when a Docker Hub account is configured), Observed Images, Runtime Containers, Docker Instances, Base Images (only when at least one base image is resolved). Label 13 px muted, figure 22 px semibold in --dug-font-display. Each cell links to its page (GetMetricNavigationTarget).
6. State without findings
When all three counts are 0, the three list panels are replaced by one panel in the third column's place with the title Nothing to do and the text No update findings, no own base runtime warnings and no vulnerabilities in running containers. The scan panel and the inventory strip stay.
7. Loading
While the data loads, the page shows skeletons in the shape of the new layout (headline, three panels, strip). MetricGridSkeleton is replaced or removed with its tests.
8. Data
DashboardViewData (UI/DashboardViewData.cs) gains the list entries and their total counts; ApplicationViewService.GetDashboardAsync fills them. Pages keep reading through IApplicationViewService only (docs/ARCHITECTURE.md, section 9).
- The data already exists for other pages: runtime containers with update state and available tag (
GetRuntimeContainersAsync,RuntimeContainerListItemData), advisories with severity, CVSS score, packages, fixed versions and affected container count (GetVulnerabilityOverviewAsync,VulnerabilityOverviewItemData), own images withBaseRuntimeAlertSummary(GetDiscoveryObservedImagesAsync,ObservedImageListItemData). - The dashboard must not load what it does not show: no resource usage samples, no usage history, no per-image vulnerability details beyond what the lists need. Share the evaluation with the existing methods instead of copying it.
- The recent scans stay the ten most recent runs (
GetScanHistoryCoreAsync(10)). - The dashboard keeps reloading on the refresh signal (
DashboardRefreshState) and keeps its persistent state (Dashboard.State).
Behavior that must not change
- The three configuration hints and when they appear (Vulnerabilities).
- Which images count as own, which containers as running, how update state and severity are evaluated — the dashboard only shows what the feature areas compute.
- Error messages of scan runs are shown as stored.
- The top bar keeps its two values until 4/9 removes them.
Out of scope
- The app shell (4/9).
- A deep link from a vulnerability row to a filtered Vulnerabilities page.
- New actions on the dashboard.
Affected files
src/DockerUpdateGuard/Components/Pages/Dashboard.razor(.cs)src/DockerUpdateGuard/UI/DashboardViewData.cs, new view-data types for the list entries,UI/ApplicationViewService.cs(GetDashboardAsync)src/DockerUpdateGuard/Components/Common/MetricGridSkeleton.razorsrc/DockerUpdateGuard/wwwroot/app.cssdocs/areas/web-ui.md: the dashboard row of Pages and routes, and the known gap of [BUG] Scan History and Dashboard texts claim discovery and cleanup runs that are never recorded #278 as far as it concerns the dashboard text
Tests
- Existing tests that follow:
DashboardRenderTests(assertsmetric-value,metric-card__icon),DashboardTests(GetMetricNavigationTarget),MetricGridSkeletonTests, the service tests ofGetDashboardAsync. - New: headline for every combination of zero and non-zero counts and the singular forms; sub line with and without a scan run and with one instance; each list with 0 entries, with fewer and with more entries than its limit (footer text, order, link targets); the scan strip (order, colors by status, label, the line for the newest failed or partial run, no run); inventory cells with and without Docker Hub account and base images; the state without findings; service tests for the new list data and counts against the EF Core InMemory database.
Proposed acceptance criteria
- The headline follows the composition rules for all combinations, including singular forms and the all-clear sentence.
- The sub line shows protected assets, instance count and last activity, or
no scans yet. - Updates available lists at most 5 running containers with the state
Update available, in the stated order, each with current and available tag and a link to its detail page; the footer names the remainder. - Vulnerabilities shows the severity bar and at most 4 advisories affecting running containers, in the stated order, with packages, fix information and container count.
- Own base runtime warnings lists at most 5 own images with their alert summary and a link to the image.
- Last 10 scans shows the strip, the counts and — if any — the newest failed or partial run with its stored message, and links to the scan history.
- The inventory strip shows the counters with the existing visibility rules and links.
- Without findings the page shows the
Nothing to dopanel in place of the three lists. - The counts in the headline equal the counts of the panels, and each list's "more" figure equals its count minus the shown entries.
- The dashboard reloads on the refresh signal and does not load resource usage data.
docs/areas/web-ui.mddescribes the new dashboard.
Open questions for the spec
The counts on today's dashboard are counts of findings; the lists of this design are lists of containers, advisories and images. The proposal counts what is listed, so that the headline, the panel count and the "more" link agree:
- Updates: number of running containers with the state
Update available— today the dashboard shows the number of active update findings of all types and of images that are not running. - Vulnerabilities: number of distinct active advisories that affect at least one running container, and the severity bar on the same basis — today it is the number of active findings in running containers.
- Runtime warnings: number of own images with a base runtime alert — today the number of active findings of the type
DerivedBaseRuntimeUpdateof own images.
If the finding counts must stay, the panel counts and the "more" links need a second figure. Which of the two is wanted is a decision for the spec.
Further questions:
- Should Own base runtime warnings be hidden when no Docker Hub account is configured and there is no warning? Proposal: yes.
- Update findings of observed images that no container runs appear nowhere on the proposed dashboard, only on Observed Images and My Images. Is that acceptable? Proposal: yes.



Activity
LarsLaskowski commentedon Nov 29, 2026
Squad working record
Verification matrix of feature-453-dashboard-attention on
30be4a1DashboardTextFormatterGetHeadlineSegmentsCountCombinationReturnsSentence,DashboardTextFormatterGetHeadlineSegmentsTonesOnlyTheParts,DashboardWithCountsRendersHeadlineWithColoredParts30be4a1DashboardTextFormatterFormatSubLine…(with scan, without scan, singular)30be4a1ApplicationViewServiceDashboardUpdates…,DashboardTextFormatterFormatCurrentTag…,…FormatFooterLink…,DashboardUpdatesPanel…30be4a1ApplicationViewServiceDashboardVulnerabilities…,DashboardVulnerabilityQueryTests(query translates on Npgsql),DashboardTextFormatterFormatVulnerability…,DashboardVulnerabilitiesPanel…30be4a1ApplicationViewServiceDashboardRuntimeWarnings…,DashboardRuntimeWarningsPanel…30be4a1DashboardScanStripFormatter…,DashboardScanPanel…,AppStylesheetDashboardScanSegmentsUseStatusTokens30be4a1DashboardInventoryStripRendersCellsWithVisibilityRules,DashboardGetMetricNavigationTarget…30be4a1DashboardWithoutFindingsRendersNothingToDoPanel,DashboardWithoutFindingsAndScanningDisabledRendersHintAndAllClear30be4a1ApplicationViewServiceDashboardCountsEqualListedSetsAsync,DashboardHeadlineCountsEqualPanelCounts30be4a1DashboardSkeletonRendersHeadlinePanelsAndStrip,DashboardWhileLoadingRendersDashboardSkeleton,DashboardRefreshSignalReloadsDashboard,DashboardWithPersistedStateDoesNotLoadAgain,ApplicationViewServiceDashboardRequestsNoResourceSampleSetsAsync30be4a1docs/areas/web-ui.mdagainst the built page (round 1 and delta round: approved)Working documents at the last commit that contains them:
standard, no security area; spec and plan challenge notes answered.Note: the gate stamp is not green only because of two repo-level config lines (
src/GlobalSuppressions.csassembly-wideSuppressMessage,.editorconfigdotnet-rules block), in files identical tomain; all gates on the changed code pass (0 analyzer diagnostics, coverage 100 % on changed code). The Product Manager accepted this.Log
Generated by Claude Code
LarsLaskowski commentedon Nov 29, 2026
Squad lessons of this run: #595 (
squad-upstream: tooling gaps) and #596 (squad: Analyzer gate config findings).Generated by Claude Code