Repository navigation
Description
Part of #450. Depends on #451 (tokens), #452 (shared components), #455 (the vulnerability cell of the Runtime Containers list) and #456 (the usage chart component).
Problem
Five list pages share one structure and its weaknesses: a page header with an eyebrow label, a section that repeats the page description, a table with an uppercase head, and status chips whose colors each page decides for itself. The scan status is shown as a chip that colors only some states, so a partial run looks like a successful one (#274). The Scan History description speaks of discovery and cleanup runs that are never recorded (#278). The vulnerability cell is built by hand on three pages and differs slightly on each.
Target
Observed Images
[Observed Images](https://github.com/LarsLaskowski/DockerUpdateGuard/blob/eab5ae13e974c4dbca43daa187fdf603886868de/docs/ui-concept/flat-refresh/preview-observed-images.png?raw=true)
My Images
[My Images](https://github.com/LarsLaskowski/DockerUpdateGuard/blob/eab5ae13e974c4dbca43daa187fdf603886868de/docs/ui-concept/flat-refresh/preview-my-images.png?raw=true)
Base Images
[Base Images](https://github.com/LarsLaskowski/DockerUpdateGuard/blob/eab5ae13e974c4dbca43daa187fdf603886868de/docs/ui-concept/flat-refresh/preview-base-images.png?raw=true)
Docker Instances
[Docker Instances](https://github.com/LarsLaskowski/DockerUpdateGuard/blob/eab5ae13e974c4dbca43daa187fdf603886868de/docs/ui-concept/flat-refresh/preview-docker-instances.png?raw=true)
Scan History
[Scan History](https://github.com/LarsLaskowski/DockerUpdateGuard/blob/eab5ae13e974c4dbca43daa187fdf603886868de/docs/ui-concept/flat-refresh/preview-scan-history.png?raw=true)
Sample data, shortened lists. Where a mockup shows a value the view model does not deliver (for example an available version in the Updates column of Observed Images), the text below decides. The header navigation is part of #454.
Scope
Common to all five pages
PageHeader([UI] Flat refresh 2/9: shared components for status, severity, page header, panel and tables #452) with title and one sentence; no eyebrow label.- One
SectionPanelper list with a title and a meta text; no description under the section title; the table flush in the panel, in the table style of [UI] Flat refresh 2/9: shared components for status, severity, page header, panel and tables #452; cards below 960 px. - Scan status as
ScanStatusIndicator; update, runtime and vulnerability states asStatusChip. - Names that lead to a detail page are semibold links in
--dug-link. - Empty states keep their texts and are shown in a panel; loading uses
TableSkeletonwith the panel title. - The pages lose their own color helpers (
GetScanStatusColor,GetVulnerabilityStatusColor).
The shared vulnerability cell
The cell built for the Runtime Containers list in #455 becomes a shared component in Components/Common and is used by My Images, Observed Images and Runtime Containers: the chip of the highest severity or of the status, the line {count} active · {message} when there are findings, Checked {date and time} or Never scanned, the base image line when base images are affected, and the rescan icon button on the right.
My Images (/my-images)
- Header:
My Images—Own images discovered from the configured Docker Hub account; running ones come first. - Panel title: the Docker Hub user name, as today. Meta:
6 images · 2 running(images with at least one running container). - Columns, proportions 1 : 1.5 : 1.5 : 0.6 : 1.3 : 1.5:
| Column | Content |
|---|---|
| Name | Link to /my-images/{id}; the description below it (13 px, muted). |
| Image | Image reference; breaks anywhere. |
| Latest scan | ScanStatusIndicator; the scan message below it (13 px, muted). |
| Running | 2 containers / 1 container in --dug-text, or Not running in muted text; no chip. |
| Base runtime | With a warning: the alert summary, semibold in --dug-chip-high-fg. Without: No runtime warning in muted text. |
| Vulnerabilities | The shared cell. |
Observed Images (/observed-images)
- Header:
Observed Images—Manually tracked images. Register a registry reference to scan it right away. - Panel
Register image: the three fields in one row —Name(1 part),Image reference(2 parts, placeholderregistry/repository:tag),Descriptionwith the addition(optional)in muted text (2 parts) — and the primary buttonRegister and scanat the end of the row, aligned with the fields. Labels above the fields. Below 960 px the fields stack; below 600 px the button takes the full width. Required-field messages, the busy state of the button, the error message and the navigation to the new image's detail page stay as they are. - Panel
Manual images, meta14 images(1 image). - Columns, proportions 1 : 1.7 : 1.4 : 0.8 : 1.1 : 1.5:
| Column | Content |
|---|---|
| Name | Link to /observed-images/{id}; description below it. |
| Image | Image reference. |
| Latest scan | ScanStatusIndicator; scan message below it. |
| Updates | Number of active update findings, medium weight; — for none. |
| Base runtime | The runtime hint summary in muted text, or —. |
| Vulnerabilities | The shared cell. |
Base Images (/base-images)
- Header:
Base Images—Resolved base images with the images built on them, the containers that run them and their vulnerability status. - Panel
Base image overview, meta5 base images. - Columns, proportions 1.2 : 1.8 : 1.5 : 0.7 : 1.1:
| Column | Content |
|---|---|
| Base image | Image reference, semibold. |
| Parent images | One reference per line; No parent image recorded in muted text. |
| Runtime containers | One link per line to the container's detail page with the instance name in muted text; No linked container. |
| Observed images | Count. |
| Vulnerabilities | StatusChip (highest severity or status) and below it {count} active · {source} in muted text; no rescan, as today. |
Docker Instances (/docker-instances)
- Header:
Docker Instances—Configured Docker endpoints with their connection, latest runtime scan and current resource usage. - Panel
Configured instances, meta2 instances · 23 containers. - Columns, proportions 0.9 : 1.7 : 0.8 : 1.2 : 0.6 : 1.4 : 1.3 : 0.7:
| Column | Content |
|---|---|
| Name | Link to /docker-instances/{id}. |
| Endpoint | The endpoint as delivered (user info masked), 13 px monospace, breaks anywhere. |
| Connection | Connection kind. |
| Latest scan | ScanStatusIndicator and below it the completion time (13 px, muted). Today both stand under the name. |
| CPU | Current value. |
| Memory | Current value as formatted today; when the host memory total is known, a meter of 6 px height and at most 140 px width below it (track --dug-border-inner, fill --dug-chart-memory, role="img", aria-label 61 percent of host memory). |
| Network | Current value on one line. |
| Containers | Count. |
- With exactly one instance the columns CPU, Memory and Network are hidden, as today, and a panel above the table shows that instance: title = instance name, meta = endpoint, and the three usage cells with current value and history chart of [UI] Flat refresh 6/9: Runtime Container detail with a details column #456. It replaces the summary cards and the section Usage history with its three large charts.
Scan History (/scan-history)
- Header:
Scan History—Image, runtime container and vulnerability scan runs with trigger, target and outcome.The description no longer names discovery and cleanup runs. - Action, only when vulnerability scanning is enabled: the primary button
Refresh vulnerabilities(busy textRefreshing vulnerabilities...) and, to its left in 13 px muted text,Next scheduled vulnerability refresh: {value}as formatted today. - An error of the action is shown as an alert between header and panel.
- Panel
Latest 20 runs; meta: the counts per status among the listed runs that are above 0, in the order succeeded, running, pending, partial, failed (17 succeeded · 1 running · 1 partial · 1 failed). - Columns, proportions 1 : 0.9 : 0.8 : 1.3 : 1 : 2:
Type,Status(ScanStatusIndicator),Trigger(muted),Target,Started(muted, tabular figures),Error(the stored message; in--dug-dangerfor a failed run, muted otherwise).
Behavior that must not change
- What each page lists, in which order, and how the values are computed; the 20 runs of the scan history; the registration rules (Web UI, Image catalog).
- The actions Register and scan, Refresh vulnerabilities and Rescan with their disabled states, error prefixes and refresh signals.
- Endpoints stay masked; no page shows a secret.
- Persistent component state of the pages.
Out of scope
- The detail pages (9/9).
- Length limits and the failure handler of the registration form (Registration form does not check the stored length limits #343, Observed Images registration failure handler can throw from its list reload #344).
- Paging, sorting or filtering of these lists.
Affected files
src/DockerUpdateGuard/Components/Pages/MyImages.razor(.cs),ObservedImages.razor(.cs),SharedBaseImages.razor(.cs),DockerInstances.razor(.cs),ScanHistory.razor(.cs)src/DockerUpdateGuard/Components/Common(the shared vulnerability cell),Components/Pages/RuntimeContainers.razor(uses it)src/DockerUpdateGuard/wwwroot/app.cssdocs/areas/web-ui.md: the rows of the five pages in Pages and routes, and the known gaps of [BUG] Scan status chips show Succeeded and Partial without color on list pages #274 and [BUG] Scan History and Dashboard texts claim discovery and cleanup runs that are never recorded #278 as far as these pages resolve them
Tests
- Existing tests that follow:
MyImagesTests,ObservedImagesTests,ScanHistoryTests,DockerInstancesRenderTests(asserts the classdug-chart),RuntimeContainersTests, and the persistent-state tests of the pages. - New: per page the header, the panel meta in singular and plural, the column heads and each cell variant named above (running / not running, with / without runtime warning, with / without update findings, no parent image, no linked container, memory meter with and without host total, one instance versus several); the scan status indicator for
PartialandSucceededon every page that shows a scan status; the Scan History meta counts and the error color; the registration form's layout-independent behavior (required fields, busy state); bUnit tests of the shared vulnerability cell; tests for the Base Images page.
Proposed acceptance criteria
- Each of the five pages shows one header without an eyebrow and one panel per list with the stated title and meta text.
- Each table has the stated columns and cell contents; no value the page shows today is lost except where this issue says so.
- Every scan status is shown with
ScanStatusIndicator;Partialis marked as a warning andSucceededas a success on all five pages. - My Images, Observed Images and Runtime Containers use one shared vulnerability cell.
- The registration form shows its three fields and the button in one row on wide screens and stacked on narrow ones, and behaves as before.
- Docker Instances shows the latest scan in its own column, the memory meter when the host total is known, and for exactly one instance the usage panel with the chart component.
- The Scan History description names only run types that are recorded, and the panel meta counts the listed runs per status.
- All actions of the pages behave as before.
- No page has horizontal overflow at 390, 768 and 1280 px.
docs/areas/web-ui.mddescribes the pages as implemented.
Open questions for the spec
- The My Images mockup shows the number of running containers as a bare figure; the text above keeps today's wording (
2 containers,Not running). Which is wanted? Proposal: the wording. - Should parent images on the Base Images page link to an observed image's detail page when one exists? Today they are plain text; the proposal keeps that.
Activity