Skip to content

[UI] Flat refresh 9/9: remaining detail pages, error pages and removal of the old styles #459

Description

@LarsLaskowski

Part of #450. Last step; depends on all other sub-issues (#451–#458).

Problem

After the sub-issues 1–8 three detail pages and the two error pages still have the old structure — a generic page title, an eyebrow label, a grid of summary cards — and app.css still carries the rules of everything that was replaced (hero panel, metric cards, summary cards, drawer, top bar meta cards). The refresh is not finished until every page follows one pattern and nothing unused is left.

Target

The three detail pages follow the layout of the Runtime Container detail page (#456): the name of the thing as the page title with its state next to it, a breadcrumb back to the list, a Details column for the facts and a main column of panels.

[Layout pattern: Runtime Container detail](https://github.com/LarsLaskowski/DockerUpdateGuard/blob/eab5ae13e974c4dbca43daa187fdf603886868de/docs/ui-concept/flat-refresh/preview-runtime-container-detail.png?raw=true)

There is no mockup of the pages of this issue; the text below specifies them.

Scope

1. My Image detail (/my-images/{id}) and Observed Image detail (/observed-images/{id})

Both pages show one observed image and get the same layout. Each keeps exactly the sections it shows today and their conditions (Web UI, Pages and routes).

Page header (PageHeader, #452)

  • Breadcrumb: My Images / {name} to /my-images, or Observed Images / {name} to /observed-images.
  • Title: the image name.
  • Next to the title: on the Observed Image detail page a StatusChip in the neutral tone that says whether the image is an own or a manual image, with today's wording; the vulnerability status as a StatusChip (highest severity or status, as in the lists).
  • Description line: the image reference and, after a middle dot, the latest scan as ScanStatusIndicator with its time.

Details column — one SectionPanel Details with a definition list (label 13 px muted, value semibold, further lines 13 px muted, entries separated by --dug-border-inner):

Entry Content
Image The image reference; the description below it when there is one.
Latest scan ScanStatusIndicator, the time, and the scan message as stored.
Base runtime Only with a derived-runtime alert: StatusChip Runtime warning (warning tone, own image) or Runtime hint (info tone), summary and details.
Vulnerabilities The content of VulnerabilityAssessmentCard and the rescan as a secondary button, as on the Runtime Container detail page.
Base image vulnerabilities Only when base images have active findings: StatusChip Findings detected (warning tone) and the summary.

Main column — SectionPanels in this order, each under today's condition:

  1. Running containers: a table with the container (link to its detail page), the instance and what the page shows per container today. On the Observed Image detail page only for own images, as today.
  2. Update findings: Type, Summary, Recommended, Tag candidates.
  3. Vulnerability findings: VulnerabilityFindingsTable, flush in the panel, with the meta text {n} active · checked {date and time}.
  4. Base image chain: Depth, Base image, Source, Vulnerabilities (StatusChip).
  5. Scan history (My Image detail only): Status (ScanStatusIndicator), Trigger, Started, Error; the 20 most recent runs.

The generic page titles, eyebrow labels, section descriptions and summary cards are removed. When the two columns wrap, Details comes first.

2. Docker Instance detail (/docker-instances/{id})

  • Breadcrumb: Docker Instances / {name}. Title: the instance name. Description line: the endpoint as delivered (masked) and, after a middle dot, the connection kind.
  • One panel Resource usage with the three usage cells and history charts of [UI] Flat refresh 6/9: Runtime Container detail with a details column #456 when the page shows usage for the instance today.
  • One panel Containers, meta 15 containers, with the table of the containers currently observed on the instance: the container (link to its detail page), the linked own image (Own image · {name} as a link, as in the Runtime Containers list) and its CPU, memory and network values, as today.
  • No Details column: the page has no further facts.

3. Error and not-found pages (/error, /not-found)

  • A single panel, centered, at most 560 px wide, 96 px below the header: an h1 in --dug-font-display (28 px) with the existing title (Unexpected error, Page not found), the existing text in muted color, and on the not-found page the link back to the dashboard as a secondary button.
  • No icon, no illustration, no colored background.
  • Texts, routes and the conditions under which the pages are shown do not change.

4. Removal of what is no longer used

Remove from app.css every rule whose class no markup uses any more, and the markup or components that became unused. After the earlier sub-issues the candidates are:

  • .hero-panel, .hero-description, .hero-meta-card, .metric-card*, .metric-label, .metric-value, .summary-card*, .summary-grid, .summary-label, .summary-value, .section-paper--accent, .page-eyebrow, .section-eyebrow, .nav-section-label, .details-grid;
  • the rules of the old drawer and top bar that [UI] Flat refresh 4/9: app shell with a top navigation instead of the drawer #454 did not need (.app-topbar__meta*, .app-topbar__pill, .app-brand__logo shadow);
  • the alias token --dug-surface-solid;
  • MetricGridSkeleton and any color helper that is left on a page (GetScanStatusColor, GetBaseRuntimeAlertColor on the detail pages).

A class that a test or markup still uses stays; the rule is to remove what is dead, not to rename.

5. Whole-application check

With all pages converted, check every page in both themes:

  • no horizontal overflow at 390, 768 and 1280 px;
  • text contrast of at least 4.5:1 (3:1 from 24 px), including chips, muted text and links on the subtle surface;
  • every interactive element reachable with the keyboard, with a visible focus outline and an accessible name;
  • no gradient, blur or elevation shadow left anywhere.

Findings of the check are fixed in this issue.

6. Documentation

Behavior that must not change

Out of scope

Affected files

  • src/DockerUpdateGuard/Components/Pages/MyImageDetail.razor(.cs), ObservedImageDetail.razor(.cs), DockerInstanceDetail.razor(.cs), Error.razor, NotFound.razor
  • src/DockerUpdateGuard/Components/Common/MetricGridSkeleton.razor (removal)
  • src/DockerUpdateGuard/wwwroot/app.css
  • docs/areas/web-ui.md, docs/ARCHITECTURE.md, docs/ui-concept/flat-refresh/README.md

Tests

  • Existing tests that follow: MyImageDetailTests (asserts the class summary-remediation), ObservedImageDetailTests, the persistent-state tests of the three pages, MetricGridSkeletonTests (removed with the component), VulnerabilityAssessmentCardTests.
  • New: per detail page the header (breadcrumb, title, chips, description line), each details entry including the conditional ones, the order and conditions of the panels, the scan history with the status indicator; the Docker Instance detail panels; the error and not-found pages (title, text, link).
  • A test that fails when app.css contains one of the removed class names is welcome; it would be the first test that reads the stylesheet.

Proposed acceptance criteria

  1. The three detail pages show the name of their subject as the page title with a breadcrumb, and no generic title, eyebrow label or summary card.
  2. The image detail pages show all facts of today's summary cards in a Details panel and their sections as panels in the stated order, each under today's condition.
  3. The Docker Instance detail page shows its usage with the chart component and its containers in a panel.
  4. The error and not-found pages show their existing texts in one centered panel.
  5. app.css contains no rule for a class that no markup uses, and no unused component or color helper is left.
  6. No page has horizontal overflow at 390, 768 and 1280 px in either theme, and every text meets the contrast rule.
  7. docs/areas/web-ui.md and section 9 of docs/ARCHITECTURE.md describe the interface as implemented.

Open questions for the spec

  • Should the two image detail pages become one shared component with two routes, since their layouts are now the same? Proposal: keep two pages and share the panels, so that the routes and their persistent state stay as they are.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions