Repository navigation
Description
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, orObserved Images / {name}to/observed-images. - Title: the image name.
- Next to the title: on the Observed Image detail page a
StatusChipin the neutral tone that says whether the image is an own or a manual image, with today's wording; the vulnerability status as aStatusChip(highest severity or status, as in the lists). - Description line: the image reference and, after a middle dot, the latest scan as
ScanStatusIndicatorwith 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:
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.Update findings:Type,Summary,Recommended,Tag candidates.Vulnerability findings:VulnerabilityFindingsTable, flush in the panel, with the meta text{n} active · checked {date and time}.Base image chain:Depth,Base image,Source,Vulnerabilities(StatusChip).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 usagewith 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, meta15 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
h1in--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__logoshadow); - the alias token
--dug-surface-solid; MetricGridSkeletonand any color helper that is left on a page (GetScanStatusColor,GetBaseRuntimeAlertColoron 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
docs/areas/web-ui.md: the rows of the three detail pages and of the error pages; the General section reads as one description of the refreshed interface; known gaps that the refresh resolved ([BUG] Scan status chips show Succeeded and Partial without color on list pages #274, [BUG] Scan History and Dashboard texts claim discovery and cleanup runs that are never recorded #278) are removed from the list once their issues are closed.docs/ARCHITECTURE.md, section 9: the UI layer as it is after the refresh (token layer, two fonts, the shared building blocks inComponents\Common).docs/ui-concept/flat-refresh/README.md, if the concept folder is in the repository: a note that the concept is implemented, and what the implementation decided differently.
Behavior that must not change
- What the pages show, the number of runs and samples, the actions and their error handling.
- A detail route with an unknown identifier keeps its present behavior; the missing not-found state is tracked in F-036 (P5) — Detail pages conflate loading and not-found state (perpetual spinner for a missing resource) #40.
- Timestamps keep the server's time zone and format; the browser's time zone is tracked in F-035 (P5) — Timestamps with
ToLocalTime()in Blazor Server → server timezone instead of user timezone #36.
Out of scope
- New content on any page.
- The not-found state of detail routes (F-036 (P5) — Detail pages conflate loading and not-found state (perpetual spinner for a missing resource) #40) and browser-local timestamps (F-035 (P5) — Timestamps with
ToLocalTime()in Blazor Server → server timezone instead of user timezone #36).
Affected files
src/DockerUpdateGuard/Components/Pages/MyImageDetail.razor(.cs),ObservedImageDetail.razor(.cs),DockerInstanceDetail.razor(.cs),Error.razor,NotFound.razorsrc/DockerUpdateGuard/Components/Common/MetricGridSkeleton.razor(removal)src/DockerUpdateGuard/wwwroot/app.cssdocs/areas/web-ui.md,docs/ARCHITECTURE.md,docs/ui-concept/flat-refresh/README.md
Tests
- Existing tests that follow:
MyImageDetailTests(asserts the classsummary-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.csscontains one of the removed class names is welcome; it would be the first test that reads the stylesheet.
Proposed acceptance criteria
- 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.
- 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.
- The Docker Instance detail page shows its usage with the chart component and its containers in a panel.
- The error and not-found pages show their existing texts in one centered panel.
app.csscontains no rule for a class that no markup uses, and no unused component or color helper is left.- No page has horizontal overflow at 390, 768 and 1280 px in either theme, and every text meets the contrast rule.
docs/areas/web-ui.mdand section 9 ofdocs/ARCHITECTURE.mddescribe 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.
Activity