Skip to content

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

Description

@LarsLaskowski

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

Dashboard

Without findings:

Dashboard without findings

Dark theme:

Dashboard, 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. — and 1 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 instance in 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-text with medium weight.
  • A row links to /runtime-containers/{instanceId}/{containerId}.
  • Footer link in --dug-link: 2 more in Runtime Containers when there are more than 5, otherwise Open 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 StatusChip on the right. Line 2 (13 px, muted): Fixed in {versions} or No 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 Vulnerabilities when there are more than 4, otherwise Open 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 Images when 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 an aria-label that reads the counts (8 succeeded, 1 partial, 1 failed); each segment has a title with 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 Failed or Partial and 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 history to /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 with BaseRuntimeAlertSummary (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.razor
  • src/DockerUpdateGuard/wwwroot/app.css
  • docs/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 (asserts metric-value, metric-card__icon), DashboardTests (GetMetricNavigationTarget), MetricGridSkeletonTests, the service tests of GetDashboardAsync.
  • 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

  1. The headline follows the composition rules for all combinations, including singular forms and the all-clear sentence.
  2. The sub line shows protected assets, instance count and last activity, or no scans yet.
  3. 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.
  4. Vulnerabilities shows the severity bar and at most 4 advisories affecting running containers, in the stated order, with packages, fix information and container count.
  5. Own base runtime warnings lists at most 5 own images with their alert summary and a link to the image.
  6. 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.
  7. The inventory strip shows the counters with the existing visibility rules and links.
  8. Without findings the page shows the Nothing to do panel in place of the three lists.
  9. The counts in the headline equal the counts of the panels, and each list's "more" figure equals its count minus the shown entries.
  10. The dashboard reloads on the refresh signal and does not load resource usage data.
  11. docs/areas/web-ui.md describes 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 DerivedBaseRuntimeUpdate of 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

  1. added
    enhancement
    on Nov 14, 2026
  2. LarsLaskowski commented on Nov 29, 2026

    @LarsLaskowski
    OwnerAuthor

    Squad working record

    Verification matrix of feature-453-dashboard-attention on 30be4a1

    Criterion Verification Tests or check Result
    AC1 unit DashboardTextFormatterGetHeadlineSegmentsCountCombinationReturnsSentence, DashboardTextFormatterGetHeadlineSegmentsTonesOnlyTheParts, DashboardWithCountsRendersHeadlineWithColoredParts pass on 30be4a1
    AC2 unit DashboardTextFormatterFormatSubLine… (with scan, without scan, singular) pass on 30be4a1
    AC3 unit ApplicationViewServiceDashboardUpdates…, DashboardTextFormatterFormatCurrentTag…, …FormatFooterLink…, DashboardUpdatesPanel… pass on 30be4a1
    AC4 unit ApplicationViewServiceDashboardVulnerabilities…, DashboardVulnerabilityQueryTests (query translates on Npgsql), DashboardTextFormatterFormatVulnerability…, DashboardVulnerabilitiesPanel… pass on 30be4a1
    AC5 unit ApplicationViewServiceDashboardRuntimeWarnings…, DashboardRuntimeWarningsPanel… pass on 30be4a1
    AC6 unit DashboardScanStripFormatter…, DashboardScanPanel…, AppStylesheetDashboardScanSegmentsUseStatusTokens pass on 30be4a1
    AC7 unit DashboardInventoryStripRendersCellsWithVisibilityRules, DashboardGetMetricNavigationTarget… pass on 30be4a1
    AC8 unit DashboardWithoutFindingsRendersNothingToDoPanel, DashboardWithoutFindingsAndScanningDisabledRendersHintAndAllClear pass on 30be4a1
    AC9 unit ApplicationViewServiceDashboardCountsEqualListedSetsAsync, DashboardHeadlineCountsEqualPanelCounts pass on 30be4a1
    AC10 unit DashboardSkeletonRendersHeadlinePanelsAndStrip, DashboardWhileLoadingRendersDashboardSkeleton, DashboardRefreshSignalReloadsDashboard, DashboardWithPersistedStateDoesNotLoadAgain, ApplicationViewServiceDashboardRequestsNoResourceSampleSetsAsync pass on 30be4a1
    AC11 check the Reviewer read docs/areas/web-ui.md against the built page (round 1 and delta round: approved) pass

    Working documents at the last commit that contains them:

    • spec.md — 11 acceptance criteria; the issue's three open questions are decided (count what is listed; runtime-warnings panel hidden without a Docker Hub account and without warnings; update findings of non-running images are not shown).
    • plan.md — tier standard, no security area; spec and plan challenge notes answered.
    • tasks.md
    • log.md — every step with its member.

    Note: the gate stamp is not green only because of two repo-level config lines (src/GlobalSuppressions.cs assembly-wide SuppressMessage, .editorconfig dotnet-rules block), in files identical to main; all gates on the changed code pass (0 analyzer diagnostics, coverage 100 % on changed code). The Product Manager accepted this.

    Log

    Date Step Member Result

    Generated by Claude Code

  3. LarsLaskowski commented on Nov 29, 2026

    @LarsLaskowski
    OwnerAuthor

    Squad lessons of this run: #595 (squad-upstream: tooling gaps) and #596 (squad: Analyzer gate config findings).


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions