From f0e252b0b089ebb97eaa19329af7e2a28b832c8b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:55:34 +0000 Subject: [PATCH 01/27] Start working record for feature 458 --- specs/feature-458-list-pages/log.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 specs/feature-458-list-pages/log.md diff --git a/specs/feature-458-list-pages/log.md b/specs/feature-458-list-pages/log.md new file mode 100644 index 00000000..e3381d36 --- /dev/null +++ b/specs/feature-458-list-pages/log.md @@ -0,0 +1,8 @@ +# Log: feature 458-list-pages + +One line per pipeline step: date and time of day (UTC), step, member, result. Lead decisions and escalations +are quoted in full. + +| Date | Step | Member | Result | +| ---- | ---- | ------ | ------ | +| 2026-12-01 19:55 | 1 Intake | Orchestrator | Issue 458 read (feature, open); work folder specs/feature-458-list-pages on branch claude/sleepy-hamilton-uv2lv2 off main 477bc10 | From ac9c6821ed57dfb13881bd9bc563a492994b1ce5 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:59:01 +0000 Subject: [PATCH 02/27] Spec for feature 458 --- specs/feature-458-list-pages/spec.md | 196 +++++++++++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 specs/feature-458-list-pages/spec.md diff --git a/specs/feature-458-list-pages/spec.md b/specs/feature-458-list-pages/spec.md new file mode 100644 index 00000000..548d7e2e --- /dev/null +++ b/specs/feature-458-list-pages/spec.md @@ -0,0 +1,196 @@ +# Spec: Flat refresh 8/9 — list pages My Images, Observed Images, Base Images, Docker Instances and Scan History + +Source: Issue #458 +Status: Draft + +## Problem + +Five list pages still have the old look: an eyebrow, a section description repeating the page's, per-page chip +colors, and a hand-built vulnerability cell that differs per image page. Runtime Containers and Vulnerabilities are +already flat (#455, #457), so the same state reads differently across pages. On Docker Instances the latest scan is +grey text under the name, so a `Partial` or `Failed` scan does not stand out. + +Two claims of the issue are stale: #274 (scan status colors) and #278 (Scan History description) are fixed on `main`; +this feature keeps them fixed. Layout and texts follow the issue's *Scope* and the mockups in +`docs/ui-concept/flat-refresh/`; where the issue and the code disagree, *Open questions* decides. + +## Scenarios + +- S1: Given any of the five pages, when it loads, then it shows the page header (`PageHeader`) with its title and one + sentence and no eyebrow, then one panel (`SectionPanel`) per list, with its title and a muted meta text on the + right and no description line. The table fills the panel to its edges, with sentence-case column heads in the + stated order. Names that lead to a detail page are semibold links. Every scan status is a dot with its status text + (`ScanStatusIndicator`) in the shared tone (`Succeeded` green, `Partial` orange, `Failed` red, `Running` blue). + Every other state is a `StatusChip`. While a page loads, its panel shows the table skeleton with the panel title. +- S2: Given My Images, then the header reads `My Images` — `Own images discovered from the configured Docker Hub + account; running ones come first.`. The panel title is the Docker Hub user name, as today. The meta reads + `{n} images · {r} running` (`1 image`), where `r` counts the images with at least one running container. The columns + are *Name*, *Image*, *Latest scan*, *Running*, *Base runtime* and *Vulnerabilities*: + - *Name*: a link to `/my-images/{id}`, with the description muted below it. + - *Image*: the reference, which breaks anywhere. + - *Latest scan*: the indicator, with the scan message muted below it. + - *Running*: `{n} containers`, or `1 container`, as plain text, or `Not running` in muted text. No chip. + - *Base runtime*: the alert summary, semibold in the high-severity text color, or `No runtime warning` in muted + text. No chip. + - *Vulnerabilities*: the shared vulnerability cell (S7). +- S3: Given Observed Images, then the header reads `Observed Images` — `Manually tracked images. Register a registry + reference to scan it right away.`. A panel `Register image` shows the labels above three fields in one row: `Name`; + `Image reference`, wider, with the placeholder `registry/repository:tag`; and `Description` with a muted + `(optional)`. The primary button `Register and scan` ends the row, aligned with the fields. Below the row stays the + muted formats hint of today. A panel `Manual images` follows, with the meta `{n} images` (`1 image`). Its columns + are *Name*, *Image*, *Latest scan*, *Updates*, *Base runtime* and *Vulnerabilities*: + - *Name*, *Image* and *Latest scan*: as on My Images, with the link to `/observed-images/{id}`. + - *Updates*: the number of active update findings in medium weight, or `—` for 0. + - *Base runtime*: the runtime hint summary in muted text, or `—`. No chip. + - *Vulnerabilities*: the shared cell. +- S4: Given an operator who fills in the registration form, when they submit it, then the required-field messages, + the busy button, the error alert with its `Open own image` link and the move to the new image's detail page work as + today. +- S5: Given Base Images, then the header reads `Base Images` — `Base images shared by two or more enabled images or + containers, with the images built on them, the containers that run them and their vulnerability status.`. The + browser tab title reads `Base Images`. A panel `Base image overview` follows, with the meta `{n} base images` + (`1 base image`). Its columns are *Base image*, *Parent images*, *Runtime containers*, *Observed images* and + *Vulnerabilities*: + - *Base image*: the reference in semibold. + - *Parent images*: one plain reference per line, or `No parent image recorded` in muted text. + - *Runtime containers*: one link per line to the container's detail page, with the instance name muted beside it, + or `No linked container` in muted text. + - *Observed images*: the count. + - *Vulnerabilities*: a `StatusChip` with the highest active severity, or with the status when there are no active + findings. Below it, muted, the line `{count} active · {source}`, and the assessment message when there is one. No + rescan button. +- S6: Given Docker Instances with two or more instances, then the header reads `Docker Instances` — `Configured Docker + endpoints with their connection, latest runtime scan and current resource usage.`. A panel `Configured instances` + follows, with the meta `{n} instances · {c} containers` (`1 instance`, `1 container`), where `c` is the sum of the + instances' container counts. Its columns are *Name*, *Endpoint*, *Connection*, *Latest scan*, *CPU*, *Memory*, + *Network* and *Containers*: + - *Name*: a link to `/docker-instances/{id}`. + - *Endpoint*: the masked endpoint in a 13 px monospace font, which breaks anywhere. + - *Latest scan*: the indicator, with the completion time below it, muted. + - *CPU*, *Memory* and *Network*: the current values formatted as today. Network fits on one line. + - *Memory* also has a meter below the value when the host memory total is known: 6 px high and at most 140 px wide, + announced as `{p} percent of host memory`. + - *Containers*: the count. +- S7: Given a row on My Images, Observed Images or Runtime Containers, then its vulnerability cell is one shared + component that shows the same thing for the same values: + - With active findings, a chip of the highest active severity. Beside it, a second chip with the status when the + status is not `Findings detected`. Below the chips, the line `{count} active · {n} critical, …` in the order + critical, high, medium, low and unknown. + - Without active findings, a status chip only. + - Then `Checked {UTC time}` or `Never scanned`, the rescan error when there is one, and the `Base images affected` + chip with its summary when base images have active findings. + - The rescan icon button on the right. +- S8: Given Docker Instances with exactly one instance, then a panel above the table has the instance name as its + title and the endpoint as its meta. It shows three usage cells, `CPU`, `Memory` and `Network`, each with its current + value and the history chart of #456. The table hides *CPU*, *Memory* and *Network* and keeps *Latest scan*. The + summary cards and the *Usage history* section with its three large charts are gone. +- S9: Given Scan History, then the header reads `Scan History` — `Image, runtime container and vulnerability scan runs + with trigger, target and outcome.`. A panel `Latest 20 runs` follows. Its meta lists the counts above 0 among the + listed runs in the order succeeded, running, pending, partial, failed, joined by ` · ` + (`17 succeeded · 1 running · 1 partial · 1 failed`). Its columns are: + - *Type*. + - *Status*: the indicator. + - *Trigger*: muted. + - *Target*. + - *Started*: muted, in tabular figures. + - *Error*: the stored message, red for a `Failed` run and muted otherwise. +- S10: Given Scan History while vulnerability scanning is enabled, then the header's action is the primary button + `Refresh vulnerabilities`, with `Next scheduled vulnerability refresh: {value}` to its left in 13 px muted text, + under today's conditions. When the operator presses it, the button reads `Refreshing vulnerabilities...` while busy. + A failure shows as an error alert between the header and the panel, with today's prefix. + +## Errors and edge cases + +- E1: A list without items shows its empty-state text of today inside a panel, with no meta and no table: + - `No own images from the Docker account are currently available.` + - `No manual observed images are registered yet.` + - `No base image is used by two or more enabled images or containers yet.` + - `No docker instances are configured.` + - `No scan history exists yet.` +- E2: A failed first load shows today's error alert, with today's prefix, in place of the skeleton. On Observed + Images the alert stays inside *Manual images*, and the registration form stays usable. +- E3: A scan status that is not one of the five run statuses, such as `NotScanned` or `NotSet`, shows its text as + today in the neutral tone. +- E4: My Images with no running image shows `… · 0 running`. Docker Instances with no containers shows + `… · 0 containers`. On Scan History, runs whose status is not one of the five are left out of the meta. +- E5: The memory meter has no host total when the current usage is missing or its host memory total is 0. Then the + cell shows today's value (`n/a` or the bytes alone) and no meter. The share is rounded to a whole percent. A usage + above the total fills the bar and reads its real percentage. +- E6: The single instance has no stored history. Then the usage cells show their current values without a chart, and + below them stands today's text `No resource history is currently stored for this Docker instance.`. +- E7: An image without a description shows nothing under its name. A scan without a message, or a run without an + error, leaves that line or cell empty. +- E8: An endpoint with user info shows it masked (`https://***@host/`), in the table and in the single-instance panel + alike ([0005](../../docs/decisions/0005-urls-are-output-with-user-info-masked.md)). + +## Non-functional requirements + +- N1: No page has horizontal overflow at 390, 768 and 1280 px. Below 960 px each table row is a card. The form + fields stack below 960 px, and the button takes the full width below 600 px. +- N2: Colors come only from the theme tokens of #451, so the dark theme applies unchanged. No page keeps its own + color helper (`GetVulnerabilityStatusColor`, MudBlazor `Color` mapping of a status). +- N3: What each page lists, in which order, and how its values are computed stay as they are, and so do the + persistent component state and the 20-run limit. No new configuration, query or view-model field is needed for a + value that is shown today. + +## Acceptance criteria + +- AC1: Each of the five pages shows one `PageHeader` with the stated title and sentence and no eyebrow, and one + `SectionPanel` per list with the stated title and meta text, in singular and plural, and no description line. While + loading it shows the table skeleton with the panel title, and an empty list shows its empty-state text in a panel + (S1, S2, S3, S5, S6, S9, E1, E2, E4). +- AC2: Each table has the stated column heads in the stated order and the stated cell variants: running or not + running, with or without a runtime warning or hint, with or without update findings, no parent image, no linked + container, and a missing description, message or error. No value shown today is lost except where this spec says + so (S2, S3, S5, S6, S9, E7, N3). +- AC3: Every scan status on the five pages is a `ScanStatusIndicator`. `Partial` takes the warning tone, `Succeeded` + the success tone, and an unknown status the neutral tone (S1, S2, S3, S6, S9, E3). +- AC4: My Images, Observed Images and Runtime Containers render their vulnerability cell with one shared component in + `Components/Common`, with the content of S7. The pages keep no vulnerability color helper of their own (S7, N2). +- AC5: Base Images shows the vulnerability chip in the tone of its highest active severity, or of its status, with + the count and source line and any message, and no rescan button (S5). +- AC6: The registration form shows its labels, the three fields and the button in the stated row. Its validation, + busy state, error alert and navigation behave as before (S3, S4, N1). +- AC7: Docker Instances shows the latest scan in its own column, and the memory meter with its `aria-label` only when + a host total is known (S6, E5, E8). +- AC8: With exactly one instance, the usage panel shows the three cells with their history charts, or the + empty-history text, in place of the summary cards and the *Usage history* section, and the table hides the usage + columns (S8, E6). +- AC9: Scan History shows the stated description and the meta counts in the stated order. The error cell is red only + for a `Failed` run. The refresh action, its schedule line and its error alert behave as before (S9, S10, E4). +- AC10: No page has horizontal overflow at 390, 768 and 1280 px, and below 960 px each row is a card (N1). +- AC11: `docs/areas/list-pages.md` describes the five pages as built. `docs/areas/web-ui.md` points to it from their + rows of *Pages and routes* and no longer names chips for their scan statuses (N3). + +## Out of scope + +- The detail pages (9/9) and the header navigation (#454). +- Length limits and the failure handler of the registration form (#343, #344). +- Paging, sorting or filtering of these lists. +- Links from parent images to an image's detail page (*Open questions*). + +## Open questions + +- Running count on My Images: bare figure or wording? Answered: the wording, as proposed, with a correct singular + (`1 container`; today `1 containers`). +- Parent images on Base Images as links? Answered: no, plain text as proposed; the view model has no image id for a + parent reference. +- Count line of the shared cell: the issue says `{count} active · {message}`, but also that the cell is the one #455 + built, which shows the severity breakdown. Answered: the #455 cell as it stands + ([0082](../../docs/decisions/0082-the-runtime-container-list-names-the-highest-active-severity-and-keeps-a-failed-checks-status-beside-it.md), + whose *Consequences* leave this to this issue): the breakdown replaces the compact severity chips, a failed check + keeps its status chip, and the assessment message leaves the two image lists (it stays on their detail pages). The + plan extends 0082. +- Base Images description: the issue's `Resolved base images …` is wrong, the page lists only shared ones (its + empty state says so). Answered: S5's wording; the title becomes `Base Images` as the issue says. +- The formats hint under the registration form, omitted by issue and mockup. Answered: it stays (no value is lost + unless the issue says so). + +## Area documents + +- `docs/areas/list-pages.md`: one section per page (header, panels and meta, columns and cell variants, the form, + the single-instance panel, the meter, the Scan History action), one for the shared vulnerability cell and the + cards below 960 px; *Scope* and the README index row name all list pages. +- `docs/areas/web-ui.md` (near `AREA_MAX_WORDS`, must not grow): the five rows of *Pages and routes* shortened to a + link to List pages; the runtime-container line of *Shared display* a pointer to the shared cell; the scan-status + chip sentence without these pages; `Shared Base Images` renamed `Base Images`. From cb5c50d8b3377a9913bba1c41d1992026b654538 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:59:14 +0000 Subject: [PATCH 03/27] Log spec step for feature 458 --- specs/feature-458-list-pages/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-458-list-pages/log.md b/specs/feature-458-list-pages/log.md index e3381d36..554aa053 100644 --- a/specs/feature-458-list-pages/log.md +++ b/specs/feature-458-list-pages/log.md @@ -6,3 +6,4 @@ are quoted in full. | Date | Step | Member | Result | | ---- | ---- | ------ | ------ | | 2026-12-01 19:55 | 1 Intake | Orchestrator | Issue 458 read (feature, open); work folder specs/feature-458-list-pages on branch claude/sleepy-hamilton-uv2lv2 off main 477bc10 | +| 2026-12-01 19:59 | 2a Spec | Lead | RESULT: DONE — spec.md written (10 scenarios, 11 criteria); open questions answered with the issue's proposals (opus/medium · 53,476 tokens · 9 tool uses · 27 s · 18 in · 2,355 out · 339,807 cache read · 40,619 cache write · 159,114 weighted) | From d022f004a0ea91453781f7da3284501e5aed47da Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 20:01:41 +0000 Subject: [PATCH 04/27] Spec challenge notes --- specs/feature-458-list-pages/log.md | 2 ++ specs/feature-458-list-pages/spec.md | 35 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/specs/feature-458-list-pages/log.md b/specs/feature-458-list-pages/log.md index 554aa053..45949d92 100644 --- a/specs/feature-458-list-pages/log.md +++ b/specs/feature-458-list-pages/log.md @@ -7,3 +7,5 @@ are quoted in full. | ---- | ---- | ------ | ------ | | 2026-12-01 19:55 | 1 Intake | Orchestrator | Issue 458 read (feature, open); work folder specs/feature-458-list-pages on branch claude/sleepy-hamilton-uv2lv2 off main 477bc10 | | 2026-12-01 19:59 | 2a Spec | Lead | RESULT: DONE — spec.md written (10 scenarios, 11 criteria); open questions answered with the issue's proposals (opus/medium · 53,476 tokens · 9 tool uses · 27 s · 18 in · 2,355 out · 339,807 cache read · 40,619 cache write · 159,114 weighted) | +| 2026-12-01 20:01 | 2a Spec challenge | Devil's Advocate | VERDICT: OBJECTIONS 0 major, 5 minor (Base Images chip hides failed check; My Images panel title; Docker Instances detail-null and never-scanned states; DockerInstancesRenderTests chart assertion; overflow wrapping for long values) (opus/medium · 78,612 tokens · 30 tool uses · 144 s · 60 in · 14,575 out · 1,645,755 cache read · 70,559 cache write · 486,843 weighted) | +| 2026-12-01 20:01 | 2a Challenge notes | Orchestrator | minor objections appended verbatim to spec.md | diff --git a/specs/feature-458-list-pages/spec.md b/specs/feature-458-list-pages/spec.md index 548d7e2e..695dc1f6 100644 --- a/specs/feature-458-list-pages/spec.md +++ b/specs/feature-458-list-pages/spec.md @@ -194,3 +194,38 @@ this feature keeps them fixed. Layout and texts follow the issue's *Scope* and t - `docs/areas/web-ui.md` (near `AREA_MAX_WORDS`, must not grow): the five rows of *Pages and routes* shortened to a link to List pages; the runtime-container line of *Shared display* a pointer to the shared cell; the scan-status chip sentence without these pages; `Shared Base Images` renamed `Base Images`. + +## Challenge notes + +I found no major objections to the spec of #458 (`/home/user/DockerUpdateGuard/specs/feature-458-list-pages/spec.md`) and five minor ones. I checked its factual claims against the code and they hold: +- #274 and #278 are closed, and `UI/ScanStatusDisplayFormatter.cs:19-23` colors `Succeeded` and `Partial`. +- Base Images lists only shared bases (`docs/areas/base-images.md`, *Shared base images*). +- `SharedBaseImageListItemData.ParentImageReferences` is a list of strings with no image id (`UI/SharedBaseImageListItemData.cs:33`). +- Today's `1 containers` comes from `MyImages.razor:63`. +- The answered open question about the cell's count line agrees with the *Consequences* of decision 0082. +- `docs/areas/list-pages.md` already exists and says the other list pages join it when they are converted. +- `web-ui.md` is at 4960 of the 5000 words `AREA_MAX_WORDS` allows, so the spec is right that it must not grow. + +Minor objections (each written for the Lead): + +1. **minor: S5/AC5, the Base Images vulnerability chip hides a failed check and drops the breakdown without saying so.** Why it matters: it repeats on a sibling page the option decision 0082 rejected. + - Evidence: the base item's status comes from `imageVersion.VulnerabilityAssessmentStatus` while its findings stay active (`UI/VulnerabilityViewMapper.cs:147-157`). After a failed check, S5's "severity chip, status only when no active findings" makes the row look current. 0082 rejected exactly that as option 2. + - Evidence: today the cell also shows the compact severity chips (`SharedBaseImages.razor:82`). S5 replaces them with `{count} active · {source}`, which has no breakdown. AC2 allows losing a value only "where this spec says so", and the spec never says so. + - Instruction: in S5, show the status chip beside the severity chip when the status is not `Findings detected`, as S7 does. Also state that the severity breakdown leaves the Base Images list. + +2. **minor: S2's panel title "the Docker Hub user name, as today" is not what the page shows today.** Why it matters: the Dev cannot tell which of the two titles is meant. + - Evidence: `MyImages.razor.cs:90-96` returns `Images from Docker account ({userName})`, or `Images from Docker account` when no user name is configured. The skeleton always uses the second text (`MyImages.razor:22`). + - Instruction: state the exact title in both cases (with and without a user name), and that the skeleton uses the same title. + +3. **minor: S8 and E7 leave two Docker Instances states open.** Why it matters: both happen on a real installation and the spec gives no text for either. + - Evidence: the single-instance panel depends on the instance's detail actually loading (`DockerInstances.razor.cs:118-121`, markup `_singleInstanceDetail is not null`). If the one instance disappears between the two queries, the detail is null and today the table keeps its usage columns. + - Evidence: `TimestampFormatter.FormatOptional` returns an empty string for a scan that never completed (`UI/TimestampFormatter.cs:47-52`). The status is then `NotScanned` (`ApplicationViewService.cs:1216`). + - Instruction: say that the panel shows, and the usage columns hide, only when the single instance's detail is loaded. Add to E7 that a never-scanned instance shows `NotScanned` in the neutral tone with no time line. + +4. **minor: test follow-up for the chart swap.** Why it matters: the issue lists `DockerInstancesRenderTests` as an existing test that must follow, and its old assertion cannot survive the change. + - Evidence: the test asserts the class `dug-chart`. The #456 component renders `dug-history-chart` (`Components/Common/ResourceHistoryChart.razor:3`) and draws a chart from a single sample (`ResourceHistoryChart.razor.cs`, `_hasChart = samples.Count > 0`). E6's empty-history text is only for zero samples. + - Instruction: the Tester replaces that assertion with one that the `dug-history-chart` charts render and the old `dug-chart` wrapper is gone, the way `RuntimeContainerDetailRenderTests.cs:96` does it. + +5. **minor: AC10 (no horizontal overflow) would pass on a build that only handles short sample data.** Why it matters: these are the values most likely to widen a table, and the criterion does not force a test on them. + - Evidence: S2 and S6 say only the My Images reference and the endpoint break anywhere. Base Images references, the Scan History *Target* and *Error* (stored messages of any length) and the Observed Images reference have no wrapping rule. + - Instruction: state that long unbroken values (an image reference with a `@sha256:` digest, a long stored error message, a long endpoint) wrap inside the cell or card on every page. List-pages already states this for the Vulnerabilities page under *Layout*. The overflow check should use such values. From 1133ba53cc0ac5564c313e4c3dcf1d730393e834 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 20:09:11 +0000 Subject: [PATCH 05/27] Plan and tasks for feature 458 --- ...-keeps-a-failed-checks-status-beside-it.md | 31 ++- docs/decisions/README.md | 2 +- specs/feature-458-list-pages/log.md | 1 + specs/feature-458-list-pages/plan.md | 229 ++++++++++++++++++ specs/feature-458-list-pages/spec.md | 88 +++---- specs/feature-458-list-pages/tasks.md | 15 ++ 6 files changed, 297 insertions(+), 69 deletions(-) create mode 100644 specs/feature-458-list-pages/plan.md create mode 100644 specs/feature-458-list-pages/tasks.md diff --git a/docs/decisions/0082-the-runtime-container-list-names-the-highest-active-severity-and-keeps-a-failed-checks-status-beside-it.md b/docs/decisions/0082-the-runtime-container-list-names-the-highest-active-severity-and-keeps-a-failed-checks-status-beside-it.md index 72153dc7..d8d57ca9 100644 --- a/docs/decisions/0082-the-runtime-container-list-names-the-highest-active-severity-and-keeps-a-failed-checks-status-beside-it.md +++ b/docs/decisions/0082-the-runtime-container-list-names-the-highest-active-severity-and-keeps-a-failed-checks-status-beside-it.md @@ -1,9 +1,9 @@ -# 0082: The runtime container list names the highest active severity and keeps a failed check's status beside it +# 0082: The list pages name the highest active severity and keep a failed check's status beside it -- **Status:** Accepted -- **Date:** 2026-11-30 -- **Area:** Web UI -- **Source:** Issue #455 +- **Status:** Proposed +- **Date:** 2026-12-01 +- **Area:** List pages +- **Source:** Issue #455, Issue #458 - **Supersedes:** — ## Context @@ -15,24 +15,31 @@ assessment status and its active findings. A failed or unavailable check leaves while the status turns `Failed` or `Unavailable`. Until now the count line showed the stored assessment message, which after such a check is the failure message, so the failure was visible. A severity chip alone would hide it. +Issue #458 makes the #455 cell a shared component for My Images, Observed Images and Runtime Containers, but words its +count line `{count} active · {message}`; on Base Images it asks for one chip, the highest severity or the status. Both +image lists showed the compact severity chips and the message line until then. + ## Options considered 1. **Severity chip, and the status chip beside it whenever the status is not `Findings detected` (chosen)** — the failed check stays visible in the row as a red `Failed` chip; such rows show two chips. 2. **Severity chip only** — the mockup's look in every row, but after a failed check the row looks as if the findings - were current, and nothing says the check failed. + were current, and nothing says the check failed. On Base Images, as #458 words it, the same defect. 3. **Status chip only, in the tone of the highest severity** — one chip per row, but `Findings detected` says less than the severity the issue asks for, and a failed check would still lose its severity. 4. **Keep the assessment message as the count line** — shows the failure text, but the line no longer carries the - severities the removed chips showed. + severities the removed chips showed. In #458 this is the issue's wording of the shared cell; it would change the + Runtime Containers list that #455 just settled and drop the breakdown from all three lists. ## Decision -With active findings the Vulnerabilities cell of the runtime container list shows the highest active severity as its -chip and the severity counts as its count line; a status other than `Findings detected` is shown as a second chip -beside it. The texts, tones and order are stated in [Web UI](../areas/web-ui.md). +With active findings the Vulnerabilities cell of the runtime container, My Images and Observed Images lists — one +shared component — shows the highest active severity as its chip and the severity counts as its count line; a status +other than `Findings detected` is shown as a second chip beside it. The Base Images list shows the same chips with its +own `{count} active · {source}` line. The texts, tones and order are stated in [List pages](../areas/list-pages.md). ## Consequences -The stored assessment message no longer appears on the list; the detail page still shows it. The pages converted later -in #450 (My Images, Observed Images) can take the same cell; whether they do is decided in their issues. +The stored assessment message no longer appears on the runtime container, My Images and Observed Images lists; their +detail pages still show it. The Base Images list keeps the message but loses the per-severity counts of its compact +chips. One rule (status beside the severity) decides the chips of all four lists, so it changes in one place. \ No newline at end of file diff --git a/docs/decisions/README.md b/docs/decisions/README.md index af1b2319..9b57421a 100644 --- a/docs/decisions/README.md +++ b/docs/decisions/README.md @@ -147,7 +147,7 @@ once in the [area document](../areas/README.md) of the record's area, and the re | [0079](0079-statuses-map-to-tones-in-one-mapping-beside-the-chip-colors-of-unconverted-pages.md) | Statuses map to tones in one mapping, beside the chip colors of unconverted pages | Accepted | 2026-11-28 | | [0080](0080-the-dashboard-counts-the-containers-advisories-and-own-images-it-lists.md) | The dashboard counts the containers, advisories and own images it lists | Accepted | 2026-11-29 | | [0081](0081-the-navigation-row-shows-from-1360-px-and-a-drawer-below.md) | The navigation row shows from 1360 px, and a drawer below | Accepted | 2026-11-29 | -| [0082](0082-the-runtime-container-list-names-the-highest-active-severity-and-keeps-a-failed-checks-status-beside-it.md) | The runtime container list names the highest active severity and keeps a failed check's status beside it | Accepted | 2026-11-30 | +| [0082](0082-the-runtime-container-list-names-the-highest-active-severity-and-keeps-a-failed-checks-status-beside-it.md) | The list pages name the highest active severity and keep a failed check's status beside it | Proposed | 2026-12-01 | | [0083](0083-resource-histories-are-drawn-as-svg-sparklines-from-one-shared-path-builder.md) | Resource histories are drawn as SVG sparklines from one shared path builder | Accepted | 2026-11-30 | | [0084](0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md) | The Vulnerabilities page pages its advisories itself and draws its own pager | Accepted | 2026-12-01 | diff --git a/specs/feature-458-list-pages/log.md b/specs/feature-458-list-pages/log.md index 45949d92..d8e0efb0 100644 --- a/specs/feature-458-list-pages/log.md +++ b/specs/feature-458-list-pages/log.md @@ -9,3 +9,4 @@ are quoted in full. | 2026-12-01 19:59 | 2a Spec | Lead | RESULT: DONE — spec.md written (10 scenarios, 11 criteria); open questions answered with the issue's proposals (opus/medium · 53,476 tokens · 9 tool uses · 27 s · 18 in · 2,355 out · 339,807 cache read · 40,619 cache write · 159,114 weighted) | | 2026-12-01 20:01 | 2a Spec challenge | Devil's Advocate | VERDICT: OBJECTIONS 0 major, 5 minor (Base Images chip hides failed check; My Images panel title; Docker Instances detail-null and never-scanned states; DockerInstancesRenderTests chart assertion; overflow wrapping for long values) (opus/medium · 78,612 tokens · 30 tool uses · 144 s · 60 in · 14,575 out · 1,645,755 cache read · 70,559 cache write · 486,843 weighted) | | 2026-12-01 20:01 | 2a Challenge notes | Orchestrator | minor objections appended verbatim to spec.md | +| 2026-12-01 20:09 | 2b Plan | Lead | RESULT: DONE — tier standard, security areas none; spec closed, plan.md and tasks.md written, decision 0082 extended (opus/medium · 162,397 tokens · 57 tool uses · 441 s · 108 in · 47,008 out · 8,515,107 cache read · 108,754 cache write · 1,593,692 weighted · continued) | diff --git a/specs/feature-458-list-pages/plan.md b/specs/feature-458-list-pages/plan.md new file mode 100644 index 00000000..58242701 --- /dev/null +++ b/specs/feature-458-list-pages/plan.md @@ -0,0 +1,229 @@ +# Plan: Flat refresh 8/9 — list pages My Images, Observed Images, Base Images, Docker Instances and Scan History + +Source: Issue #458 | [spec.md](spec.md) +Tier: standard — changes what five pages show and how (layout, texts, a shared component), creates or changes no security control. +Security areas touched: none + +## Problem / root cause + +See [spec.md](spec.md), *Problem*. + +## Verified facts + +| # | Claim | Evidence | Status | +| - | ----- | -------- | ------ | +| 1 | #274 and #278 are fixed on main | both closed; `UI/ScanStatusDisplayFormatter.cs:19-23`; `ScanHistory.razor:10` names no discovery or cleanup run | confirmed | +| 2 | My Images and Observed Images render one `ObservedImageListItemData` per row with every value the shared cell needs | `UI/ObservedImageListItemData.cs:28-83`; `MyImages.razor.cs:35` | confirmed | +| 3 | The #455 cell lives inline in `RuntimeContainers.razor:122-151` and uses `RuntimeContainerListFormatter.FormatActiveFindings` / `IsStatusShownBesideSeverity(RuntimeContainerListItemData)` | `UI/RuntimeContainerListFormatter.cs:29,47`; no other caller (grep) | confirmed | +| 4 | Today's My Images title is `Images from Docker account ({userName})`, and the skeleton always uses the fallback | `MyImages.razor.cs:90-96`, `MyImages.razor:22` | confirmed | +| 5 | `1 containers` is rendered for one running container | `MyImages.razor:61-63` | confirmed | +| 6 | Base Images lists only bases shared by two or more enabled users; parent references carry no id | `docs/areas/base-images.md` *Shared base images*; `UI/SharedBaseImageListItemData.cs:33` | confirmed | +| 7 | The single-instance block depends on `_singleInstanceDetail` loading; the instance history holds at most 48 samples | `DockerInstances.razor:33`; `ApplicationViewService.cs:1074` | confirmed | +| 8 | `ResourceUsageChartBuilder` and the `.dug-chart` rules are used only by Docker Instances | grep: only `DockerInstances.razor`, `ResourceUsageChartBuilderTests.cs`, `app.css:525-543`, the assertion `DockerInstancesRenderTests.cs:62` | confirmed | +| 9 | `ResourceHistoryChart` renders `dug-history-chart` and draws from one sample on | `Components/Common/ResourceHistoryChart.razor:3`, `_hasChart` in its code-behind | confirmed | +| 10 | The Scan History meta counts and order equal the Dashboard strip's | `UI/DashboardScanStripFormatter.cs` `GetStatusCounts`, `FormatCountText` | confirmed | +| 11 | Endpoints reach the page already masked | `ApplicationViewService.cs:2132,2179` (`UrlRedaction.RedactUserInfo`) | confirmed | +| 12 | Tokens `--dug-link`, `--dug-danger`, `--dug-chip-high-fg`, `--dug-border-inner`, `--dug-chart-memory` exist in both themes | `app.css:23-109` | confirmed | +| 13 | MudBlazor `Breakpoint.Sm` turns rows into cards below 960 px (`mud-sm-table`) | `RuntimeContainersRenderTests.RuntimeContainersRenderTableSwitchesToCardsBelow960Px` | confirmed | +| 14 | Record 0082 is unreleased (edited in place) | added in `f055ace`; `git tag --contains f055ace` is empty (latest tag `v1.3.9`) | confirmed | + +## Tests per criterion + +| AC | Test(s) | Test file | +| -- | ------- | --------- | +| AC1 | `MyImagesRenderShowsHeaderWithoutEyebrowAndPanelMeta`, `MyImagesRenderPanelTitleIsUserNameOrFallback`, `MyImagesRenderLoadingShowsSkeletonWithPanelTitle`, `MyImagesRenderEmptyListShowsEmptyStateWithoutTable` | `MyImagesRenderTests.cs` | +| AC1 | `ObservedImagesRenderShowsHeaderWithoutEyebrowAndPanelMeta`, `ObservedImagesRenderEmptyListShowsEmptyStateWithoutTable` | `ObservedImagesRenderTests.cs` | +| AC1 | `SharedBaseImagesRendersSharedBaseImagesHeadingAsync` (adapted: header, tab title, meta), existing `SharedBaseImagesWithoutEntriesRendersEmptyStateAsync` | `SharedBaseImagesRenderTests.cs` | +| AC1 | `DockerInstancesRenderShowsHeaderWithoutEyebrowAndPanelMeta`, `DockerInstancesRenderEmptyListShowsEmptyStateWithoutTable` | `DockerInstancesRenderTests.cs` | +| AC1 | `ScanHistoryRenderShowsHeaderWithoutEyebrowAndPanelMeta`, `ScanHistoryRenderEmptyListShowsEmptyStateWithoutTable` | `ScanHistoryRenderTests.cs` | +| AC1 | `ListPageMetaFormatterFormatMyImagesMetaCountsRunningImages`, `ListPageMetaFormatterFormatDockerInstancesMetaSumsContainers`, `ListPageMetaFormatterFormatScanHistoryMetaListsCountsInOrder`, `ListPageMetaFormatterFormatScanHistoryMetaLeavesOutOtherStatuses` (each with singular and plural rows) | `ListPageMetaFormatterTests.cs` | +| AC2 | `MyImagesRenderShowsColumnHeadsInOrder`, `MyImagesRenderRunningCellShowsWordingWithoutChip` (0, 1, 2), `MyImagesRenderBaseRuntimeCellWithAndWithoutWarning`, `MyImagesRenderNameCellWithoutDescriptionShowsLinkOnly` | `MyImagesRenderTests.cs` | +| AC2 | `ObservedImagesRenderShowsColumnHeadsInOrder`, `ObservedImagesRenderUpdatesCellShowsCountOrDash`, `ObservedImagesRenderBaseRuntimeCellShowsHintOrDash` | `ObservedImagesRenderTests.cs` | +| AC2 | `SharedBaseImagesRenderShowsColumnHeadsInOrder`, `SharedBaseImagesRenderParentAndContainerCellsShowFallbacks`, `SharedBaseImagesRenderContainerCellLinksToDetailWithInstance` | `SharedBaseImagesRenderTests.cs` | +| AC2 | `DockerInstancesRenderShowsColumnHeadsInOrder`, `ScanHistoryRenderShowsColumnHeadsInOrder` | `DockerInstancesRenderTests.cs`, `ScanHistoryRenderTests.cs` | +| AC3 | `MyImagesLatestScanStatusChipShowsStatusColorAsync`, `ObservedImagesLatestScanStatusChipShowsStatusColorAsync`, `ScanHistoryScanStatusChipShowsStatusColorAsync` — adapted to the indicator, renamed `…LatestScanShowsIndicatorInToneAsync` / `ScanHistoryStatusShowsIndicatorInToneAsync`, rows `Succeeded` success, `Partial` warning, `NotScanned` neutral | `MyImagesTests.cs`, `ObservedImagesTests.cs`, `ScanHistoryTests.cs` | +| AC3 | `DockerInstancesRenderLatestScanShowsIndicatorInTone` (same rows) | `DockerInstancesRenderTests.cs` | +| AC4 | `VulnerabilityListCellFindingsShowSeverityChipAndCountLine`, `VulnerabilityListCellFailedCheckShowsStatusBesideSeverity`, `VulnerabilityListCellWithoutFindingsShowsStatusChipInTone`, `VulnerabilityListCellNeverScannedShowsNeverScanned`, `VulnerabilityListCellBaseImageWarningOnlyWithAffectedBaseImages`, `VulnerabilityListCellOrdersLinesAndKeepsButtonOutside` | `VulnerabilityListCellTests.cs` | +| AC4 | `VulnerabilityStatusChipsShowsSeverityAndStatusChips` (rows: findings + `Findings detected`, findings + `Failed`, none + `No findings`, null summary) | `VulnerabilityStatusChipsTests.cs` | +| AC4 | the two `RuntimeContainerListFormatter…FormatActiveFindings…` / `…IsStatusShownBesideSeverity…` tests, moved and renamed `VulnerabilityCellFormatter…` with the new parameters | `VulnerabilityCellFormatterTests.cs` | +| AC4 | `MyImagesRenderVulnerabilityCellUsesSharedComponent`, `ObservedImagesRenderVulnerabilityCellUsesSharedComponent`, `RuntimeContainersRenderVulnerabilityCellUsesSharedComponent`; the existing `RuntimeContainersRender…` vulnerability tests unchanged | the three page render test files | +| AC5 | `SharedBaseImagesRenderVulnerabilityCellShowsChipsCountSourceAndMessage`, `SharedBaseImagesRenderFailedCheckShowsStatusBesideSeverity`, `SharedBaseImagesRenderVulnerabilityCellHasNoRescanButton` | `SharedBaseImagesRenderTests.cs` | +| AC6 | `ObservedImagesRenderRegistrationFormShowsLabelsFieldsAndButton`, `ObservedImagesRegistrationWithEmptyRequiredFieldsShowsMessages`, `ObservedImagesRegistrationWhileBusyDisablesButton`; existing registration tests unchanged | `ObservedImagesRenderTests.cs`, `ObservedImagesTests.cs` | +| AC6 | `AppStylesheetListPagesRegisterFormIsOneRowFrom960Px`, `AppStylesheetListPagesRegisterFormStacksBelow960Px`, `AppStylesheetListPagesRegisterButtonIsFullWidthBelow600Px` | `AppStylesheetListPagesTests.cs` | +| AC7 | `DockerInstancesWithAndWithoutScanCompletionRendersUtcOrEmptyAsync` (adapted: latest-scan column, no time line when never completed), `DockerInstancesRenderMemoryMeterOnlyWithHostTotal`, `DockerInstancesRenderMemoryMeterAnnouncesShare` | `DockerInstancesRenderTests.cs` | +| AC7 | `ResourceUsageFormatterGetMemoryPercentReturnsRoundedShare` (rows: 61.4 %, 61.5 %, above 100 %, limit 0, limit negative) | `ResourceUsageFormatterTests.cs` | +| AC7 | `AppStylesheetListPagesMemoryMeterUsesTokensAndSize` | `AppStylesheetListPagesTests.cs` | +| AC8 | `DockerInstancesSingleInstanceWithHistoryRendersResponsiveCharts` (adapted: three `dug-history-chart` charts, no `dug-chart"`, no summary card), `DockerInstancesRenderSingleInstanceWithoutHistoryShowsEmptyHistoryText`, `DockerInstancesRenderSingleInstanceHidesUsageColumns`, `DockerInstancesRenderSingleInstanceWithoutDetailKeepsUsageColumns`; existing `DockerInstancesDetailLoadFailureShowsNoInstanceData` | `DockerInstancesRenderTests.cs` | +| AC9 | `ScanHistoryPageDescriptionNamesOnlyRecordedRunTypes` (adapted to the new text), `ScanHistoryRenderErrorCellIsDangerOnlyForFailedRun`, `ScanHistoryRenderScheduleLineStandsBeforeButton`; existing refresh, schedule and failure tests unchanged | `ScanHistoryTests.cs`, `ScanHistoryRenderTests.cs` | +| AC9 | `AppStylesheetListPagesFailedErrorUsesDangerToken` | `AppStylesheetListPagesTests.cs` | +| AC10 | `AppStylesheetListPagesCardCellsWrapLongValues` (one row per table class), `AppStylesheetListPagesTablesStayInsidePanelFrom960Px`; per page `…RenderTableSwitchesToCardsBelow960Px` (`mud-sm-table`, `data-label` of every cell) | `AppStylesheetListPagesTests.cs`, the five page render test files | +| AC10 | manual: the Product Manager opens the five pages at 390, 768 and 1280 px on a local run of the branch head (*Running the application* in `README.md`), with an image reference carrying a `@sha256:` digest, a stored error message of 300 characters and an endpoint of 80 characters, and with one and with two Docker instances; step 7 Manual test | — | +| AC11 | check: the Reviewer reads `docs/areas/list-pages.md`, the five rows and *Shared display* of `docs/areas/web-ui.md` and record 0082 against the built pages, step 8 | — | + +## Approach + +Layout and texts are the spec's (S1–S10, N1) and the issue's proportions; the converted Runtime Containers and +Vulnerabilities pages are the pattern (`PageHeader`, `SectionPanel Flush="true"`, `MudTable Breakpoint="Breakpoint.Sm"` +with `Class="section-table dug-list-table {page}-table"`, empty state as today's `empty-state-panel`). + +**Shared vulnerability chips and cell.** `VulnerabilityCellFormatter` takes over `FormatActiveFindings` and the +status-beside-severity rule (now on summary and status, so Base Images can use it). `VulnerabilityStatusChips` renders +the chips of S7 and is the one home of that logic: used by `VulnerabilityListCell` and by Base Images. +`VulnerabilityListCell` wraps `VulnerabilityRescanControl` with the markup that `RuntimeContainers.razor:123-151` +has today (leading: chips and count line; trailing: base image chip and summary), its CSS classes renamed from +`runtime-containers-table__chips` / `__findings` to `dug-vulnerability-cell__chips` / `__findings`. Runtime +Containers, My Images and Observed Images render it; their old inline cells, the compact `VulnerabilitySeverityChips` +on the three lists and both `GetVulnerabilityStatusColor` helpers go. + +**Metas.** `ListPageMetaFormatter` builds the three computed metas with `DashboardTextFormatter.FormatCount`; Scan +History joins `DashboardScanStripFormatter.GetStatusCounts` / `FormatCountText` with ` · `. Observed Images and Base +Images call `FormatCount` in markup. + +**Scan statuses.** `ScanStatusIndicator Status=…` replaces every `MudChip` scan status on the five pages; the time +or message line below it is a muted `span` only when not empty. + +**My Images.** `GetSectionTitle` returns the trimmed user name, or `Images from Docker account`; the skeleton gets the +same title. Running cell: `FormatCount(n, "container", "containers")` or muted `Not running`. + +**Observed Images form.** A CSS grid `register-image-form` (`1fr 2fr 2fr auto`, `align-items: end`, from 960 px; one +column below; button full width below 600 px). Each field gets an explicit `