From a4c97b4d07e24d6da54f92404c63d1490aba847a Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 17:50:29 +0000 Subject: [PATCH 01/34] Start feature 457 working record --- specs/feature-457-vulnerabilities-severity-bar/log.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 specs/feature-457-vulnerabilities-severity-bar/log.md diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md new file mode 100644 index 00000000..19e33da0 --- /dev/null +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -0,0 +1,8 @@ +# Log: Feature 457 – Vulnerabilities page with a severity bar + +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 17:50 | 1 Intake | Orchestrator | Issue 457 (feature, open, deps 451/452 closed); branch claude/amazing-gauss-vu2l8l off main 6d0ff4f | From 6ead94304c387fba8d02a60ab78b78b53bfe36ae Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 17:52:31 +0000 Subject: [PATCH 02/34] Spec --- .../log.md | 1 + .../spec.md | 121 ++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 specs/feature-457-vulnerabilities-severity-bar/spec.md diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 19e33da0..220a0e59 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -6,3 +6,4 @@ are quoted in full. | Date | Step | Member | Result | | ---- | ---- | ------ | ------ | | 2026-12-01 17:50 | 1 Intake | Orchestrator | Issue 457 (feature, open, deps 451/452 closed); branch claude/amazing-gauss-vu2l8l off main 6d0ff4f | +| 2026-12-01 17:52 | 2a Spec | Lead | RESULT: DONE. spec.md written (AC1-AC9), no security area, no open questions (opus/medium · 64,550 tokens · 20 tool uses · 114 s · 40 in · 11,218 out · 954,758 cache read · 50,709 cache write · 334,508 weighted) | diff --git a/specs/feature-457-vulnerabilities-severity-bar/spec.md b/specs/feature-457-vulnerabilities-severity-bar/spec.md new file mode 100644 index 00000000..db37a61a --- /dev/null +++ b/specs/feature-457-vulnerabilities-severity-bar/spec.md @@ -0,0 +1,121 @@ +# Spec: Vulnerabilities page with a severity bar and without row rails + +Source: Issue #457 +Status: Draft + +## Problem + +On the Vulnerabilities page (`/vulnerabilities`) every advisory row has a colored rail on its left edge as well as the +severity chip in the row: the same information twice, in a style the flat refresh (#450) drops. The page gives no +overview of how the advisories are distributed over the severities, so a user has to page through the table or +filter four times to find out. The button that expands a row has no accessible name or state, so a screen reader +announces an unnamed button. The header still has an eyebrow label, and the panel repeats the page description. +The target layout, the column table and the texts are the issue's (#457, *Scope*); this spec links to them rather +than restating every pixel value. + +## Scenarios + +- S1: Given active advisories, when the user opens `/vulnerabilities`, then the page header shows `Vulnerabilities` + with the description `Active advisories across all images, with the images and running containers each one + affects.` (no eyebrow), followed by one panel. Its header shows, on the left, `Active advisories · {n}` (the + ` · {n}` muted) and under it the severity bar with its legend, at most 360 px wide; on the right, the field + `Filter` (placeholder `Advisory, title or package`, clearable) and the select `Severity` (`All`, `Critical`, `High`, + `Medium`, `Low`), each with its label above. The panel has no description line under its title. +- S2: Given 31 active advisories, when the user types into `Filter` or picks a severity so that only 4 match, then the + title reads `Active advisories · 4 of 31`, the table lists the 4, and the severity bar and its legend still show all + 31. When the filter is cleared the title reads `Active advisories · 31` again. +- S3: Given the table, then each row shows, without a colored rail: the expand button; the advisory identifier + (semibold; a link that opens in a new tab when the reference is an absolute `http` or `https` address) with the + title below it when there is one; the severity as a chip in the tone of its severity with `CVSS 9.8` below it when + a score exists; the packages and the fixed versions joined with a comma, or `—`; the number of affected images and + of running containers. +- S4: Given a collapsed row, then its expand button shows a downward chevron and is announced as `Show affected + images`, collapsed (`aria-expanded="false"`). When the user activates it, the row and a detail below it take the + subtle surface background; the detail, indented to the start of the *Advisory* column, shows the label `Affected + images` and one image reference per line, linked to the image's detail page when the image is an observed image + and plain text otherwise. The button now shows an upward chevron and is announced as `Hide affected images`, + expanded (`aria-expanded="true"`). Activating it again collapses the row. +- S5: Given more than 25 matching advisories, then the bottom of the panel shows, right-aligned below a hairline, + `Rows per page` with a select (25, 50, 100), the range (`1–25 of 31`) and the buttons `Previous page` and `Next + page`; a button that cannot move is disabled with a muted icon. Given 25 or fewer matches, no pager is shown. +- S6: Given a window narrower than 960 px, then each row is a card in which the expand button can still be reached, + and the filter field and the severity select each take the full width of the panel header. +- S7: While the advisories load, the page shows the table skeleton of the panel `Active advisories`. + +## Errors and edge cases + +- E1: The filter matches no advisory: the table shows `No advisories match the current filter.`, the title reads + `Active advisories · 0 of {n}`, the bar still shows all advisories, and no pager is shown. +- E2: An advisory has no known severity (`NotSet`): the bar counts it as low, as the shared severity bar does + ([Web UI](../../docs/areas/web-ui.md), *Shared display*), its chip uses the low tone, and, as today, the severity + select lists it only under `All` — so the bar's low count may exceed what `Low` lists. +- E3: No active advisory at all: the page shows today's empty panel `No active vulnerability findings have been + recorded yet.` with no count and no bar. +- E4: Loading fails: the page shows today's error alert in place of the skeleton. +- E5: A filter is set but hides nothing (every advisory matches): the title reads `Active advisories · {n}`, not + `{n} of {n}`. +- E6: An expanded row that a filter hides stays expanded when it shows again, as today. + +## Non-functional requirements + +- N1: The page has no horizontal overflow at window widths of 390, 768 and 1280 px. +- N2: The expand button and the pager buttons are 44 × 44 px; the filter field and the severity select are at least + 44 px high. +- N3: The page keeps its persistent component state: the prerendered advisories are reused by the interactive render + without a second load. + +## Acceptance criteria + +- AC1: The page shows the shared page header with the title and description of S1 and no eyebrow, and one panel + `Active advisories` without a description line whose header holds the count, the severity bar with its legend, the + labelled `Filter` field with its placeholder and the `Severity` select with its five options (S1, S6). +- AC2: The panel title reads `Active advisories · {all}` when no advisory is hidden and `Active advisories · + {matching} of {all}` when the filter or the severity select hides at least one (S2, E1, E5). +- AC3: The severity bar shows the distribution of all active advisories regardless of the filter, an advisory without + a known severity counted as low (S2, E1, E2). +- AC4: No table row carries a severity rail class, `app.css` has no `.dug-rail-*` rule, and each row shows the cells of + S3 with the severity as a chip in its severity's tone (S3, E2). +- AC5: The expand button carries `aria-label` `Show affected images` and `aria-expanded="false"` when collapsed and + `Hide affected images` and `aria-expanded="true"` when expanded; an expanded row and its detail have the subtle + background, and the detail shows the label `Affected images` with each observed image linked to its detail page and + every other image as plain text (S4, E6). +- AC6: The advisories listed, their order, the free-text and severity filter rules, the page sizes, the advisory link + rule, the empty-filter text, the empty and error states and the persistent component state behave as before (S2, + S3, E1, E3, E4, N3). +- AC7: The pager is shown only when more than 25 advisories match, with `Rows per page`, the range and the buttons + labelled `Previous page` and `Next page` (S5, E1). +- AC8: At 390, 768 and 1280 px the page has no horizontal overflow; below 960 px the rows are cards with a reachable + expand button and the filter and select take the full width (S6, N1, N2). +- AC9: `docs/areas/web-ui.md` describes the page's severity overview, the count in the panel title and the expand + button's accessible name (S1–S5). + +## Out of scope + +- A deep link that opens the page with a filter set. +- Sorting by clicking a column head. +- The header navigation of the target image (#454). +- Changing which severities the severity select offers or how it matches an advisory without a known severity (E2). +- S7's skeleton needs no criterion: the page already shows `TableSkeleton` for `Active advisories` while loading. + +## Open questions + +- Does the issue's "including those of the mobile card layout" name rail rules that exist? Answered: no — `app.css` + has exactly four `.dug-rail-*` rules (critical, high, medium, low), none in a media query; `Vulnerabilities.razor.cs` + is their only user (`GetSeverityRailClass`), and `VulnerabilitiesTests` asserts `dug-rail-critical`. +- Does today's page link only `http`/`https` references, as the issue says "as today"? Answered: yes — the view + service passes the reference through `VulnerabilityViewMapper.SanitizeHttpUrl`, which returns null for anything but + an absolute `http` or `https` address, and the page links only a non-blank reference. +- Which severity texts can an advisory carry? Answered: the highest `VulnerabilitySeverity` of its findings as text — + `Critical`, `High`, `Medium`, `Low` or `NotSet`; `NotSet` is the "other" severity of AC3 and E2. +- Does a severity summary for all advisories exist? Answered: no — the dashboard's summary counts only advisories of + running containers; the page's bar counts the page's own advisory list (a plan decision how). +- Are the pager texts MudBlazor's defaults? Answered: they are fixed by the issue (`Rows per page`, `1–25 of 31` with + an en dash); whether `MudTablePager` renders them unchanged is a third-party rendering detail the plan checks with a + probe before it plans the markup. + +## Area documents + +- `docs/areas/web-ui.md`, *Pages and routes*: the `/vulnerabilities` row adds the severity bar of all active + advisories and the count `{matching} of {all}` in the panel title; the Vulnerabilities bullet keeps its filter, + paging and link rules and adds that the bar ignores the filter and that the expand button is announced as `Show + affected images` / `Hide affected images` \ No newline at end of file From cfd8ff016f1ff452850a29056133cb0b91ff3750 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 17:54:29 +0000 Subject: [PATCH 03/34] Spec challenge notes --- .../log.md | 2 ++ .../spec.md | 30 ++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 220a0e59..91dfce72 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -7,3 +7,5 @@ are quoted in full. | ---- | ---- | ------ | ------ | | 2026-12-01 17:50 | 1 Intake | Orchestrator | Issue 457 (feature, open, deps 451/452 closed); branch claude/amazing-gauss-vu2l8l off main 6d0ff4f | | 2026-12-01 17:52 | 2a Spec | Lead | RESULT: DONE. spec.md written (AC1-AC9), no security area, no open questions (opus/medium · 64,550 tokens · 20 tool uses · 114 s · 40 in · 11,218 out · 954,758 cache read · 50,709 cache write · 334,508 weighted) | +| 2026-12-01 17:54 | 2a Spec challenge | Devil's Advocate | VERDICT: OBJECTIONS 0 major, 6 minor. Minors: NotSet chip text; SectionPanel header cannot hold count/bar (14 users); pager first/last buttons; filter on later page; AC8 browser-only; dead GetSeverityColor helper and AC9 wording (opus/medium · 63,886 tokens · 18 tool uses · 107 s · 34 in · 10,589 out · 729,178 cache read · 53,194 cache write · 311,861 weighted) | +| 2026-12-01 17:54 | 2a Challenge notes | Orchestrator | minor objections appended verbatim to spec.md | diff --git a/specs/feature-457-vulnerabilities-severity-bar/spec.md b/specs/feature-457-vulnerabilities-severity-bar/spec.md index db37a61a..ae88fc5f 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/spec.md +++ b/specs/feature-457-vulnerabilities-severity-bar/spec.md @@ -118,4 +118,32 @@ than restating every pixel value. - `docs/areas/web-ui.md`, *Pages and routes*: the `/vulnerabilities` row adds the severity bar of all active advisories and the count `{matching} of {all}` in the panel title; the Vulnerabilities bullet keeps its filter, paging and link rules and adds that the bar ignores the filter and that the expand button is announced as `Show - affected images` / `Hide affected images` \ No newline at end of file + affected images` / `Hide affected images` + +## Challenge notes + +Devil's Advocate, mode `spec`, for `/home/user/DockerUpdateGuard/specs/feature-457-vulnerabilities-severity-bar/spec.md` (issue #457) + +The spec holds up on the main points, and I have no major objections. I checked each `Answered:` open question against the code and found nothing that contradicts them: +- **Rails:** `app.css` has exactly four `.dug-rail-*` rules (lines 994–1009), none inside a media query. `Vulnerabilities.razor.cs:116` is their only user, and `VulnerabilitiesTests.cs:164` is the only test that asserts one. +- **Severity of an advisory:** it is the highest severity of its findings, written as text (`ApplicationViewService` `Severity = advisoryGroup.Max(...).ToString()`). +- **Low tone for unknown severities:** `StatusToneFormatter.GetSeverityTone` maps anything unknown to Low, so the low tone in E2 is right. +- **Severity bar:** `SeverityBar` adds `OtherCount` to the low segment, which matches AC3 and E2. +- **Pager:** today it is shown only when `filteredItems.Count > 25` (`Vulnerabilities.razor`, `PagerContent`). +- **Expanded rows:** they are kept in `_expandedAdvisoryIds` and survive filtering, which matches E6. + +Minor objections. Each is written as an instruction for the spec's *Challenge notes*: + +1. **Chip text for `NotSet` is not specified (S3, E2, AC4).** Today's chip prints the raw enum text `NotSet` (`Vulnerabilities.razor:97`, `@context.Severity`). The refreshed runtime container list shows `Unknown` in the low tone (`docs/areas/web-ui.md`, *Shared display*), and so does `VulnerabilitySeverityChips.razor:23`. State which text the chip shows for an advisory without a known severity, so the test can assert it. Either keep `NotSet` as today or use `Unknown` to match the rest of the refresh. + +2. **The `SectionPanel` header cannot render the target layout as it stands.** `SectionPanel.razor` renders `Title` as a plain string inside `

`, with `HeaderContent` in a sibling div. That allows no muted ` · {n}` part inside the title and no bar under the title in the left group. The component has 14 users. If the plan extends it, add a constraint (for example to *Out of scope* or N-level): every other panel renders unchanged. Also say whether the accessible title of the `h2` includes the count. + +3. **The pager may show more buttons than the issue wants (AC7 and S5).** As far as I recall MudBlazor's markup (I could not inspect the 9.14.0 package here), `MudTablePager` renders first-page and last-page buttons as well as previous and next. AC7 as written passes even with four buttons. The issue wants exactly two icon buttons. Change the wording to "only the buttons `Previous page` and `Next page`", and have the plan's MudBlazor probe confirm the default markup. + +4. **Edge case missing: filtering while on a later page.** A user on page 2 of 31 types a filter that leaves 4 matches. The pager is then hidden, but `MudTable` keeps its current page. I did not verify whether MudBlazor 9.14 clamps the page in that case. Add an edge case saying the table lists the matching advisories from their first page, and have the Tester cover it. If today's page shows an empty table there, that is a defect this layout makes more visible, and the Lead decides whether it is in scope. + +5. **AC8 cannot be checked by a bUnit test as written.** "No horizontal overflow at 390, 768 and 1280 px" needs a browser. Earlier refresh pull requests checked layout with stylesheet tests (`AppStylesheetRuntimeContainersTests.cs` in #603). Either narrow AC8 to stylesheet rules (for example full width below 960 px, no fixed widths over 390 px), or mark it as a `manual:` check so the plan names who runs it and on which build (`.squad/routing.md`, *Criteria verified only in CI*). + +6. **Two loose ends in cleanup and documentation.** + - *Dead helper:* once the chip uses `StatusChip` with `StatusToneFormatter.GetSeverityTone`, nothing calls `VulnerabilityDisplayFormatter.GetSeverityColor` any more. Its only caller is `Vulnerabilities.razor.cs:108`; `GetStatusColor` keeps five callers. State that the helper and its test (`VulnerabilityDisplayFormatterTests.cs:32`) are removed, so no dead code is left behind (issue §6). + - *Wording for AC9:* the *Shared display* bullet in `docs/areas/web-ui.md` says the severity bar shows "the active findings". For this page, the documentation should say the bar counts advisories, one per advisory at its highest severity. From 81fb550feaadafe58b9c80a346025d31d215622b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:02:55 +0000 Subject: [PATCH 04/34] Plan and tasks --- ...visories-itself-and-draws-its-own-pager.md | 40 ++++ docs/decisions/README.md | 1 + .../log.md | 1 + .../plan.md | 216 ++++++++++++++++++ .../spec.md | 104 +++++---- .../tasks.md | 14 ++ 6 files changed, 327 insertions(+), 49 deletions(-) create mode 100644 docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md create mode 100644 specs/feature-457-vulnerabilities-severity-bar/plan.md create mode 100644 specs/feature-457-vulnerabilities-severity-bar/tasks.md diff --git a/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md b/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md new file mode 100644 index 00000000..049664d7 --- /dev/null +++ b/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md @@ -0,0 +1,40 @@ +# 0084: The Vulnerabilities page pages its advisories itself and draws its own pager + +- **Status:** Proposed +- **Date:** 2026-12-01 +- **Area:** Web UI +- **Source:** Issue #457 +- **Supersedes:** — + +## Context + +The flat refresh (#450) gives the Vulnerabilities page a pager with `Rows per page`, the range `1–25 of 31` (en dash) +and exactly two 44 × 44 px icon buttons named `Previous page` and `Next page` (#457). The page used MudBlazor's +`MudTablePager`, which in 9.14.0 documents the range format `{first_item}-{last_item} of {all_items}` (hyphen), has +first- and last-page buttons beside previous and next, and gives no documented way to name its buttons. MudTable's own +paging (`CurrentPage`, `RowsPerPage`) is documented as requiring a `MudTablePager` in `PagerContent`. A change of the +filter has to show the first page, which MudTable's paging does not promise. + +## Options considered + +1. **The page keeps the page index and size, hands MudTable only the rows of the current page and draws the pager + itself** — texts, buttons and names are the page's own and testable; the first page after a filter change is the + page's own rule. The paging arithmetic is new code, kept in one formatter other list pages can share. +2. **`MudTablePager` restyled** — a custom `InfoFormat` and `RowsPerPageString`, the first- and last-page buttons + hidden by CSS — keeps MudBlazor's paging, but the buttons' accessible names and the reset to the first page rest on + undocumented markup and behavior that a MudBlazor update can change. +3. **A custom pager inside `PagerContent` bound to MudTable's `CurrentPage` and `RowsPerPage`** — keeps MudTable's + slicing, but relies on paging that is documented only together with `MudTablePager`. + +## Decision + +The Vulnerabilities page holds the page index and the page size, gives MudTable the rows of the current page only +and renders its own pager below the table; the range text and the last-page test come from one shared formatter in +`UI`. The resulting behavior is described in [List pages](../areas/list-pages.md). + +## Consequences + +- The page's pager no longer follows MudBlazor's pager; other tables still use `MudTablePager` until their refresh + issue moves them. +- MudTable gets no `PagerContent` and renders every row it is given, as the Runtime Containers table already does. +- A page size the client sends that is not one of 25, 50 and 100 is ignored. \ No newline at end of file diff --git a/docs/decisions/README.md b/docs/decisions/README.md index 0b05838a..65e3b5ff 100644 --- a/docs/decisions/README.md +++ b/docs/decisions/README.md @@ -149,4 +149,5 @@ once in the [area document](../areas/README.md) of the record's area, and the re | [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 | | [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 | Proposed | 2026-12-01 | diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 91dfce72..89dd77a9 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -9,3 +9,4 @@ are quoted in full. | 2026-12-01 17:52 | 2a Spec | Lead | RESULT: DONE. spec.md written (AC1-AC9), no security area, no open questions (opus/medium · 64,550 tokens · 20 tool uses · 114 s · 40 in · 11,218 out · 954,758 cache read · 50,709 cache write · 334,508 weighted) | | 2026-12-01 17:54 | 2a Spec challenge | Devil's Advocate | VERDICT: OBJECTIONS 0 major, 6 minor. Minors: NotSet chip text; SectionPanel header cannot hold count/bar (14 users); pager first/last buttons; filter on later page; AC8 browser-only; dead GetSeverityColor helper and AC9 wording (opus/medium · 63,886 tokens · 18 tool uses · 107 s · 34 in · 10,589 out · 729,178 cache read · 53,194 cache write · 311,861 weighted) | | 2026-12-01 17:54 | 2a Challenge notes | Orchestrator | minor objections appended verbatim to spec.md | +| 2026-12-01 18:02 | 2b Plan | Lead | RESULT: DONE. Tier standard, no security area; spec approved by Lead; groups G1, G2, PM; decision record 0084 (opus/medium · 98,837 tokens · 51 tool uses · 499 s · 102 in · 51,569 out · 5,634,928 cache read · 98,130 cache write · 1,324,712 weighted · continued) | diff --git a/specs/feature-457-vulnerabilities-severity-bar/plan.md b/specs/feature-457-vulnerabilities-severity-bar/plan.md new file mode 100644 index 00000000..fd4754bd --- /dev/null +++ b/specs/feature-457-vulnerabilities-severity-bar/plan.md @@ -0,0 +1,216 @@ +# Plan: Vulnerabilities page with a severity bar and without row rails + +Source: Issue #457 | [spec.md](spec.md) +Tier: standard — a user-visible page rework with a shared component extension, two new formatters and a decision record, touching no security area. +Security areas touched: none + +## Problem / root cause + +See [spec.md](spec.md), *Problem*. + +## Verified facts + +| # | Claim | Evidence | Status | +| - | ----- | -------- | ------ | +| 1 | The rails are four top-level rules; only the page uses them | `app.css:994-1009`; `Vulnerabilities.razor:65` (`RowClassFunc`), `.razor.cs:116` (`GetSeverityRailClass`); `VulnerabilitiesTests.cs:164` | confirmed | +| 1a | The issue: rail rules exist in the mobile card layout | no `.dug-rail-*` rule inside a media query in `app.css` | refuted | +| 2 | The advisory link already appears only for absolute `http`/`https` | `ApplicationViewService.cs:1289` → `VulnerabilityViewMapper.SanitizeHttpUrl` (`:121-139`) | confirmed | +| 3 | An advisory's severity is the highest `VulnerabilitySeverity` name: `Critical`, `High`, `Medium`, `Low`, `NotSet` | `ApplicationViewService.cs:1287`; `VulnerabilitySeverity.cs` | confirmed | +| 4 | `SeverityBar` adds `OtherCount` to low, renders nothing for an empty summary and has no width parameter | `SeverityBar.razor.cs:38-41`; `SeverityBar.razor:1` | confirmed | +| 5 | `VulnerabilityViewMapper.CreateSeveritySummary` maps enum/count pairs, anything but the four to `OtherCount` | `VulnerabilityViewMapper.cs:60-100` | confirmed | +| 6 | `SectionPanel` renders `Title` as plain text in its `h2` and `HeaderContent` (else `Meta`) as a sibling; header is `flex-wrap` with `space-between` | `SectionPanel.razor`; `app.css:869-892` | confirmed | +| 7 | `MudTablePager` 9.14.0 has first/last buttons and a hyphen range; `CurrentPage`/`RowsPerPage` are documented as requiring a `MudTablePager` | `MudBlazor.xml` 9.14.0: `MudTablePager.FirstIcon`, `.LastIcon`, `.InfoFormat`; `MudTableBase.CurrentPage`, `.RowsPerPage` | confirmed | +| 8 | A `MudTable` without `PagerContent` renders every item it gets | to verify: the Tester's `VulnerabilitiesPageSizeChangeShowsFirstPageWithMoreRows` (50 rows of 60 shown), step 5 (by reading: `RuntimeContainers.razor:54` has no pager and lists every container); if refuted, the Dev sets `RowsPerPage` to `_pageSize` | unverified | +| 9 | Attributes splat onto `MudIconButton`'s button element | `MainLayout.razor:16` (`aria-label`), asserted in `MainLayoutRenderTests.cs:132` | confirmed | +| 10 | `VulnerabilityDisplayFormatter.GetSeverityColor` has one production caller, the page | grep: `Vulnerabilities.razor.cs:108`; test `VulnerabilityDisplayFormatterTests.cs:32` | confirmed | +| 11 | `.section-table .mud-table-body .mud-icon-button` gives table icon buttons 44 × 44 px with a border; `.dug-icon-button` the same | `app.css:958-968` | confirmed | +| 12 | `web-ui.md` has 4,994 words (limit 5,000) | `plan-check.py` `base_words` on the merge base | confirmed | +| 13 | The dashboard's severity summary counts only advisories of running containers | `ApplicationViewService.cs:1965-1990` | confirmed | + +## Tests per criterion + +| AC | Test(s) | Test file | +| -- | ------- | --------- | +| AC1 | `VulnerabilitiesRendersPageHeaderAndOnePanelWithFilters` | `VulnerabilitiesRenderTests.cs` | +| AC1 | `SectionPanelTitleAndSubtitleContentRenderBesideAndBelowTitle`, `SectionPanelWithoutTitleFragmentsRendersHeadingAlone` | `SectionPanelTests.cs` | +| AC2 | `VulnerabilitiesTitleCountWithoutFilterShowsTotal`, `VulnerabilitiesTitleCountWithHidingFilterShowsMatchingOfTotal`, `VulnerabilitiesTitleCountWithFilterHidingNothingShowsTotal` | `VulnerabilitiesRenderTests.cs` | +| AC2 | `VulnerabilityOverviewFormatterFormatAdvisoryCountReturnsExpectedText` (DataRows 31/31, 4/31, 0/31) | `VulnerabilityOverviewFormatterTests.cs` | +| AC3 | `VulnerabilitiesSeverityBarCountsAllAdvisoriesWhileFiltered` | `VulnerabilitiesRenderTests.cs` | +| AC3 | `VulnerabilityOverviewFormatterCreateSeveritySummaryMixedListCountsEachSeverity` (`NotSet` and an unknown text → `OtherCount`) | `VulnerabilityOverviewFormatterTests.cs` | +| AC4 | `VulnerabilitiesRowsCarryNoRailClass` (replaces `VulnerabilitiesCriticalAdvisoryRendersSeverityRailClass`), `VulnerabilitiesRowShowsSeverityChipAndCells`, `VulnerabilitiesUnknownSeverityShowsUnknownLowChip` | `VulnerabilitiesTests.cs`, `VulnerabilitiesRenderTests.cs` | +| AC4 | `VulnerabilityOverviewFormatterFormatSeverityReturnsExpectedText` | `VulnerabilityOverviewFormatterTests.cs` | +| AC4 | `AppStylesheetVulnerabilitiesHasNoRailRule` | `AppStylesheetVulnerabilitiesTests.cs` | +| AC5 | `VulnerabilitiesExpandButtonCollapsedIsNamedShowAffectedImages`, `VulnerabilitiesExpandButtonExpandedIsNamedHideAndShowsDetail` (linked observed image, plain other image, expanded row class) | `VulnerabilitiesRenderTests.cs` | +| AC5 | `AppStylesheetVulnerabilitiesExpandedRowAndDetailUseSubtleSurface` | `AppStylesheetVulnerabilitiesTests.cs` | +| AC6 | existing `VulnerabilitiesFreeTextFilterHidesNonMatchingAdvisories` (adapted), `VulnerabilitiesNoActiveFindingsShowsEmptyState`, `VulnerabilitiesLoadFailureShowsFixedErrorAndLogs`, `VulnerabilitiesRestoresFromPersistentState`, `VulnerabilitiesPersistsLoadedStateForPrerender`; new `VulnerabilitiesSeverityFilterListsOnlyThatSeverity`, `VulnerabilitiesListsAdvisoriesInServiceOrder`, `VulnerabilitiesLinksOnlyAdvisoryWithReference`, `VulnerabilitiesEmptyFilterShowsNoMatchText` | `VulnerabilitiesTests.cs`, `VulnerabilitiesPersistentStateTests.cs`, `VulnerabilitiesRenderTests.cs` | +| AC7 | `VulnerabilitiesPagerHiddenAtTwentyFiveMatches`, `VulnerabilitiesPagerShownAboveTwentyFiveMatchesWithTwoNamedButtons`, `VulnerabilitiesNextPageShowsRemainingRows`, `VulnerabilitiesFilterChangeOnLaterPageShowsFirstPage`, `VulnerabilitiesPageSizeChangeShowsFirstPageWithMoreRows`, `VulnerabilitiesUnlistedPageSizeIsIgnored` | `VulnerabilitiesRenderTests.cs` | +| AC7 | `TablePagingFormatterFormatRangeReturnsExpectedText`, `TablePagingFormatterIsLastPageReturnsExpectedResult` | `TablePagingFormatterTests.cs` | +| AC8 | `AppStylesheetVulnerabilitiesFiltersTakeFullWidthBelow960Pixels`, `AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels`, `VulnerabilitiesRendersCardLayoutBreakpointWithExpandButton` | `AppStylesheetVulnerabilitiesTests.cs`, `VulnerabilitiesRenderTests.cs` | +| AC8 | manual: the Product Manager opens `/vulnerabilities` with more than 25 advisories at 390, 768 and 1280 px, one row expanded, on a local run of the branch head (*Running the application* in `README.md`), step 7 Manual test | — | +| AC9 | check: the Reviewer reads `docs/areas/list-pages.md` and the `/vulnerabilities` row of `docs/areas/web-ui.md` against AC9, step 8 | — | + +## Approach + +Layout as the issue's *Scope* and the spec's scenarios state it; the remaining choices: + +- **Page header:** `PageHeader Title="Vulnerabilities"` with the spec's description; no eyebrow. The browser title stays. +- **Panel:** `SectionPanel Title="Active advisories" Flush="true"`, extended (below) by two optional fragments: + - `TitleContent`: `· {count}` (muted, 13 px), outside the `h2`, so the + heading's name stays `Active advisories`; `{count}` from `VulnerabilityOverviewFormatter.FormatAdvisoryCount`. + - `SubtitleContent`: `
`, `max-width: 360px`; the summary + from `VulnerabilityOverviewFormatter.CreateSeveritySummary(_items)`, always the unfiltered list. + - `HeaderContent`: `
` with the `MudTextField` (`Label="Filter"`, `Placeholder="Advisory, + title or package"`, `Clearable`, `Immediate`, search adornment) and the `MudSelect` (`Label="Severity"`) — labels + are MudBlazor's shrunk labels above the field (both always have a placeholder or value), set to 13 px / 500 by a + page rule; widths 260 px and 150 px from 960 px, `flex-basis: 100%` each below 960 px. +- **`SectionPanel` change:** with `TitleContent` or `SubtitleContent` set, the `h2` is wrapped in + `div.dug-panel__title-group` > `div.dug-panel__title-row` (`h2` + `TitleContent`, baseline-aligned), then + `SubtitleContent`; with neither, the markup is exactly today's. Below 960 px + `.dug-panel__title-group ~ .dug-panel__header-content { flex-basis: 100%; }` lets the filters take the full width + without touching panels that have no title group. +- **Table:** `MudTable Items="pageItems" Breakpoint="Breakpoint.Md" Class="section-table vulnerabilities-table"`, no + `RowsPerPage`, no `PagerContent`. `RowClassFunc` stays only for `vulnerabilities-table__row--expanded` (the rail + function is deleted). Cells `vertical-align: middle`, 8 px vertical padding. + - Expand cell: `MudIconButton` with `Class="vulnerabilities-table__expand"`, chevron icons as today, + `aria-label="@(expanded ? "Hide affected images" : "Show affected images")"`, `aria-expanded="@(expanded ? "true" : + "false")"` (strings: a `bool` attribute would render empty or vanish); a page rule removes the border the + table-icon-button rule gives. + - Advisory: `MudLink` `table-link` as today, else `span.vulnerabilities-table__id` (600); title `table-secondary`. + - Severity: `StatusChip Text="@VulnerabilityOverviewFormatter.FormatSeverity(item.Severity)" + Tone="@StatusToneFormatter.GetSeverityTone(item.Severity)"`, CVSS line as today (`F1`). + - Package, Fixed version, counts: as today. + - Detail (`ChildRowContent`, expanded only): `MudTr Class="vulnerabilities-table__detail"` with an empty first `MudTd` + (`vulnerabilities-table__detail-spacer`, hidden below 960 px) and `MudTd colspan="6"`: `span.table-secondary` + `Affected images`, then the references one per line with today's link rule. Expanded row and detail: + `background: var(--dug-surface-subtle)`. + - `NoRecordsContent`: `No advisories match the current filter.` as today. +- **Paging** ([0084](../../docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md)): + the page holds `_pageIndex` (0) and `_pageSize` (25); `pageItems = filtered.Skip(_pageIndex * _pageSize).Take(_pageSize)`. + `ShowFirstPage()` sets `_pageIndex = 0` and runs as `@bind-Value:after` of both filter fields and after a page size + change. `ChangePageSize(ChangeEventArgs)` accepts only a value of `_pageSizeOptions` (25, 50, 100) parsed with + `int.TryParse`, anything else is ignored. `ShowPreviousPage()` / `ShowNextPage()` move by one within bounds. +- **Pager layout** (shown when `filtered.Count > _pageSizeOptions[0]`), below the table inside the panel body: + `div.dug-pager` (`display: flex`, `justify-content: flex-end`, `align-items: center`, `flex-wrap: wrap`, gap 16 px, + `border-top: 1px solid var(--dug-border)`, padding 8 px 20px), in this order: `label.dug-pager__size` holding the + text `Rows per page` and a native `select.dug-pager__select` (44 px high, options 25, 50, 100); `span.dug-pager__range` + with `TablePagingFormatter.FormatRange` (`1–25 of 31`, U+2013); two `MudIconButton`s `Class="dug-icon-button + dug-pager__button"`, chevron left/right, `aria-label` `Previous page` / `Next page`, `Disabled` on the first page / + when `TablePagingFormatter.IsLastPage`; `.dug-pager__button:disabled` keeps the 1 px border with + `color: var(--dug-text-muted)`. +- **Removed:** the eyebrow, the section description, the `MudGrid` of filters, `GetSeverityColor`, `GetSeverityRailClass`, + the four `.dug-rail-*` rules, `VulnerabilityDisplayFormatter.GetSeverityColor` (its summary then speaks of statuses only). +- **Loading, empty and error states:** unchanged (`TableSkeleton Title="Active advisories"`, empty panel, alert). +- **Formatters:** `VulnerabilityOverviewFormatter` parses a severity text with `Enum.TryParse` + (ignore case) in one private helper; `CreateSeveritySummary` groups the parsed values and hands them to + `VulnerabilityViewMapper.CreateSeveritySummary` (no second severity switch); `FormatSeverity` returns the parsed name + for the four severities and `Unknown` otherwise. `FormatAdvisoryCount` returns `{total}` when equal, else + `{matching} of {total}`. + +Early draft PR: no + +## Options considered + +1. **Pager: own pager over page-held paging (chosen), restyled `MudTablePager`, or a custom pager bound to MudTable's + paging** — see decision 0084. +2. **Panel header: extend `SectionPanel` (chosen) or render the panel's markup in the page** — the issue asks for one + `SectionPanel`, and a copy of its markup would drift from the shared component; the extension is two optional + fragments that leave every current panel unchanged. +3. **`NotSet` chip text: `Unknown` (chosen) or the raw `NotSet`** — the runtime container list and + `VulnerabilitySeverityChips` show `Unknown`; the raw enum name is no word a user reads (spec, *Challenge* 1). +4. **Bar summary: computed by the page from its list (chosen) or by `ApplicationViewService`** — the list the page + loads and persists already holds every advisory and its severity; a service field would add persisted state for + a derived value. +5. **Area document: split `web-ui.md` (chosen) or add to it** — it has 4,994 of 5,000 words; the 8/9 list pages need + the same home. + +## Affected projects and types + +| Project | Type / file | Change | +| ------- | ----------- | ------ | +| DockerUpdateGuard | `Components/Pages/Vulnerabilities.razor`, `.razor.cs` | rework as *Approach*; paging state and methods | +| DockerUpdateGuard | `Components/Common/SectionPanel.razor`, `.razor.cs` | two optional fragments | +| DockerUpdateGuard | `UI/VulnerabilityOverviewFormatter.cs` | new | +| DockerUpdateGuard | `UI/TablePagingFormatter.cs` | new | +| DockerUpdateGuard | `UI/VulnerabilityDisplayFormatter.cs` | `GetSeverityColor` deleted | +| DockerUpdateGuard | `wwwroot/app.css` | rails removed; title group, `vulnerabilities-*`, `dug-pager*` rules | + +## Signatures (for the Dev's skeleton) + +`SectionPanel` (`Components/Common/SectionPanel.razor.cs`): + +- `SectionPanel.TitleContent`: a component parameter, public RenderFragment? with get and set, null by default +- `SectionPanel.SubtitleContent`: the same + +`internal static class VulnerabilityOverviewFormatter` (`UI/VulnerabilityOverviewFormatter.cs`, namespace `DockerUpdateGuard.UI`): + +- `public static VulnerabilitySeveritySummaryViewData CreateSeveritySummary(IEnumerable items)` +- `public static string FormatAdvisoryCount(int matchingCount, int totalCount)` +- `public static string FormatSeverity(string? severity)` + +`internal static class TablePagingFormatter` (`UI/TablePagingFormatter.cs`, namespace `DockerUpdateGuard.UI`): + +- `public static string FormatRange(int pageIndex, int pageSize, int totalCount)` +- `public static bool IsLastPage(int pageIndex, int pageSize, int totalCount)` + +Deleted: `VulnerabilityDisplayFormatter.GetSeverityColor(string?)`. +Deleted: `Vulnerabilities.GetSeverityColor` and `Vulnerabilities.GetSeverityRailClass` (private). + +The page's new members are private (*Approach*). Names checked against *Writing code*: no nested types, at most three +parameters, no keyword names. The skeleton holds nothing for real; the Tester defers no test. + +## Test files + +`src/Tests/DockerUpdateGuard.Tests/`: `VulnerabilitiesRenderTests.cs` (new), `VulnerabilitiesTests.cs`, +`VulnerabilitiesPersistentStateTests.cs`, `SectionPanelTests.cs`, `VulnerabilityOverviewFormatterTests.cs` (new), +`TablePagingFormatterTests.cs` (new), `AppStylesheetVulnerabilitiesTests.cs` (new), `VulnerabilityDisplayFormatterTests.cs`. + +Existing test code a change affects, adapted by the Tester: `VulnerabilityDisplayFormatterTests.cs:32` (test of the +deleted `GetSeverityColor`, removed); `VulnerabilitiesTests.cs:131` (old placeholder selector) and `:142-165` (rail +test, replaced by AC4's). `VulnerabilitiesPersistentStateTests.cs` and the other `SectionPanelTests` keep their inputs +unchanged. + +Files no unit test can cover: none. + +## Areas + +- `docs/areas/web-ui.md` (-35 words): the Vulnerabilities bullet of *Pages and routes* moves out; the + `/vulnerabilities` row adds the severity overview and a link to *List pages*; *Not here* adds the list page layouts. +- `docs/areas/list-pages.md` (+380 words), new area *List pages*: the layout and contents of the list pages, so far the + Vulnerabilities page; not here: routes, actions, shared display and errors (Web UI), detail pages (Detail pages), + how values are computed (the feature areas). + +## Documentation updates + +All by the Dev, once the code is green: + +- `docs/areas/list-pages.md`: new, structured like `detail-pages.md` (Scope, Behavior, Limits and errors, Related + decisions with 0084, Not here). States the panel header (count `{n}` / `{matching} of {all}`, the bar of all + advisories — one per advisory at its highest severity, unknown as low, regardless of the filter), the filters and + rules moved from `web-ui.md`, the columns with the `Unknown` chip, the expand button's names and the detail's link + rule, the pager (above 25 matches, first page after a filter or size change, unlisted sizes ignored) and the + card layout below 960 px. +- `docs/areas/web-ui.md`: as *Areas*. +- `docs/areas/README.md`: index row for *List pages*, beside *Detail pages*. +- `docs/ARCHITECTURE.md` §9: "Pages, routes and what each page shows or triggers are specified in Web UI" adds the + list and detail page layouts ([List pages], [Detail pages]); the *Components\Common* bullet no longer says the + vulnerability widgets are shared with the Vulnerabilities page (it uses none of them — a stale claim today). +- No changelog file; the release-notes label is set on the PR. + +## Architecture check + +No guarantee of `.squad/project.md` is touched: the page still reads only through `IApplicationViewService`, persists +the same state, and renders no new external link; the link rule stays in `VulnerabilityViewMapper.SanitizeHttpUrl`. + +## Security considerations + +- [x] No limits on parsed input; the client-sent page size is accepted only from the three options. +- [x] None: no new exception reaches the user; a load failure keeps today's fixed alert. + +## Decision records + +- `docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md` (Proposed) + +## Out of scope / follow-ups + +- The other `MudTablePager` users (`VulnerabilityFindingsTable`) keep MudBlazor's pager until their refresh issue. +- `docs/ui-concept/README.md` keeps the concept's rails: it records the concept, not today's behavior \ No newline at end of file diff --git a/specs/feature-457-vulnerabilities-severity-bar/spec.md b/specs/feature-457-vulnerabilities-severity-bar/spec.md index ae88fc5f..fca8013f 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/spec.md +++ b/specs/feature-457-vulnerabilities-severity-bar/spec.md @@ -1,7 +1,7 @@ # Spec: Vulnerabilities page with a severity bar and without row rails Source: Issue #457 -Status: Draft +Status: Approved by Lead ## Problem @@ -26,8 +26,8 @@ than restating every pixel value. 31. When the filter is cleared the title reads `Active advisories · 31` again. - S3: Given the table, then each row shows, without a colored rail: the expand button; the advisory identifier (semibold; a link that opens in a new tab when the reference is an absolute `http` or `https` address) with the - title below it when there is one; the severity as a chip in the tone of its severity with `CVSS 9.8` below it when - a score exists; the packages and the fixed versions joined with a comma, or `—`; the number of affected images and + title below it when there is one; the severity as a chip in the tone of its severity (an advisory without a known + severity reads `Unknown`) with `CVSS 9.8` below it when a score exists; the packages and the fixed versions joined with a comma, or `—`; the number of affected images and of running containers. - S4: Given a collapsed row, then its expand button shows a downward chevron and is announced as `Show affected images`, collapsed (`aria-expanded="false"`). When the user activates it, the row and a detail below it take the @@ -36,8 +36,8 @@ than restating every pixel value. and plain text otherwise. The button now shows an upward chevron and is announced as `Hide affected images`, expanded (`aria-expanded="true"`). Activating it again collapses the row. - S5: Given more than 25 matching advisories, then the bottom of the panel shows, right-aligned below a hairline, - `Rows per page` with a select (25, 50, 100), the range (`1–25 of 31`) and the buttons `Previous page` and `Next - page`; a button that cannot move is disabled with a muted icon. Given 25 or fewer matches, no pager is shown. + `Rows per page` with a select (25, 50, 100), the range (`1–25 of 31`) and only the two buttons `Previous page` and + `Next page`; a button that cannot move is disabled with a muted icon. Given 25 or fewer matches, no pager is shown. - S6: Given a window narrower than 960 px, then each row is a card in which the expand button can still be reached, and the filter field and the severity select each take the full width of the panel header. - S7: While the advisories load, the page shows the table skeleton of the panel `Active advisories`. @@ -47,14 +47,17 @@ than restating every pixel value. - E1: The filter matches no advisory: the table shows `No advisories match the current filter.`, the title reads `Active advisories · 0 of {n}`, the bar still shows all advisories, and no pager is shown. - E2: An advisory has no known severity (`NotSet`): the bar counts it as low, as the shared severity bar does - ([Web UI](../../docs/areas/web-ui.md), *Shared display*), its chip uses the low tone, and, as today, the severity - select lists it only under `All` — so the bar's low count may exceed what `Low` lists. + ([Web UI](../../docs/areas/web-ui.md), *Shared display*), its chip reads `Unknown` in the low tone (as on the + runtime container list), and, as today, the severity select lists it only under `All` — so the bar's low count may + exceed what `Low` lists. - E3: No active advisory at all: the page shows today's empty panel `No active vulnerability findings have been recorded yet.` with no count and no bar. - E4: Loading fails: the page shows today's error alert in place of the skeleton. - E5: A filter is set but hides nothing (every advisory matches): the title reads `Active advisories · {n}`, not `{n} of {n}`. - E6: An expanded row that a filter hides stays expanded when it shows again, as today. +- E7: A user on a later page changes the filter text, the severity or the rows per page: the table lists the matching + advisories from their first page, never an empty page beside a match count above 0. ## Non-functional requirements @@ -74,7 +77,8 @@ than restating every pixel value. - AC3: The severity bar shows the distribution of all active advisories regardless of the filter, an advisory without a known severity counted as low (S2, E1, E2). - AC4: No table row carries a severity rail class, `app.css` has no `.dug-rail-*` rule, and each row shows the cells of - S3 with the severity as a chip in its severity's tone (S3, E2). + S3 with the severity as a chip in its severity's tone, `Unknown` in the low tone for an advisory without a known + severity (S3, E2). - AC5: The expand button carries `aria-label` `Show affected images` and `aria-expanded="false"` when collapsed and `Hide affected images` and `aria-expanded="true"` when expanded; an expanded row and its detail have the subtle background, and the detail shows the label `Affected images` with each observed image linked to its detail page and @@ -82,12 +86,15 @@ than restating every pixel value. - AC6: The advisories listed, their order, the free-text and severity filter rules, the page sizes, the advisory link rule, the empty-filter text, the empty and error states and the persistent component state behave as before (S2, S3, E1, E3, E4, N3). -- AC7: The pager is shown only when more than 25 advisories match, with `Rows per page`, the range and the buttons - labelled `Previous page` and `Next page` (S5, E1). -- AC8: At 390, 768 and 1280 px the page has no horizontal overflow; below 960 px the rows are cards with a reachable - expand button and the filter and select take the full width (S6, N1, N2). -- AC9: `docs/areas/web-ui.md` describes the page's severity overview, the count in the panel title and the expand - button's accessible name (S1–S5). +- AC7: The pager is shown only when more than 25 advisories match, with `Rows per page`, the range and only the two + buttons labelled `Previous page` and `Next page`, disabled on the first and the last page; a change of the filter + text, the severity or the rows per page shows the first page (S5, E1, E7). +- AC8: Below 960 px the rows are cards with a reachable expand button and the filter and select take the full width, + the expand and pager buttons are 44 × 44 px and the fields at least 44 px high (stylesheet and render tests); at 390, + 768 and 1280 px the page has no horizontal overflow (checked by hand in a browser) (S6, N1, N2). +- AC9: The area documents describe the page's severity overview (one advisory counted once, at its highest + severity, regardless of the filter), the count in the panel title, the pager and the expand button's accessible + name (S1–S5, E7). ## Out of scope @@ -109,41 +116,40 @@ than restating every pixel value. `Critical`, `High`, `Medium`, `Low` or `NotSet`; `NotSet` is the "other" severity of AC3 and E2. - Does a severity summary for all advisories exist? Answered: no — the dashboard's summary counts only advisories of running containers; the page's bar counts the page's own advisory list (a plan decision how). -- Are the pager texts MudBlazor's defaults? Answered: they are fixed by the issue (`Rows per page`, `1–25 of 31` with - an en dash); whether `MudTablePager` renders them unchanged is a third-party rendering detail the plan checks with a - probe before it plans the markup. +- Are the pager texts MudBlazor's defaults? Answered: no — `MudTablePager` 9.14.0 documents the range format + `{first_item}-{last_item} of {all_items}` (hyphen) and has first- and last-page buttons; the page draws its own pager + (plan, *Approach*), so the texts and the two buttons are the page's own. +- Which text does the chip of an advisory without a known severity show? Answered: `Unknown` (Challenge 1). ## Area documents -- `docs/areas/web-ui.md`, *Pages and routes*: the `/vulnerabilities` row adds the severity bar of all active - advisories and the count `{matching} of {all}` in the panel title; the Vulnerabilities bullet keeps its filter, - paging and link rules and adds that the bar ignores the filter and that the expand button is announced as `Show - affected images` / `Hide affected images` - -## Challenge notes - -Devil's Advocate, mode `spec`, for `/home/user/DockerUpdateGuard/specs/feature-457-vulnerabilities-severity-bar/spec.md` (issue #457) - -The spec holds up on the main points, and I have no major objections. I checked each `Answered:` open question against the code and found nothing that contradicts them: -- **Rails:** `app.css` has exactly four `.dug-rail-*` rules (lines 994–1009), none inside a media query. `Vulnerabilities.razor.cs:116` is their only user, and `VulnerabilitiesTests.cs:164` is the only test that asserts one. -- **Severity of an advisory:** it is the highest severity of its findings, written as text (`ApplicationViewService` `Severity = advisoryGroup.Max(...).ToString()`). -- **Low tone for unknown severities:** `StatusToneFormatter.GetSeverityTone` maps anything unknown to Low, so the low tone in E2 is right. -- **Severity bar:** `SeverityBar` adds `OtherCount` to the low segment, which matches AC3 and E2. -- **Pager:** today it is shown only when `filteredItems.Count > 25` (`Vulnerabilities.razor`, `PagerContent`). -- **Expanded rows:** they are kept in `_expandedAdvisoryIds` and survive filtering, which matches E6. - -Minor objections. Each is written as an instruction for the spec's *Challenge notes*: - -1. **Chip text for `NotSet` is not specified (S3, E2, AC4).** Today's chip prints the raw enum text `NotSet` (`Vulnerabilities.razor:97`, `@context.Severity`). The refreshed runtime container list shows `Unknown` in the low tone (`docs/areas/web-ui.md`, *Shared display*), and so does `VulnerabilitySeverityChips.razor:23`. State which text the chip shows for an advisory without a known severity, so the test can assert it. Either keep `NotSet` as today or use `Unknown` to match the rest of the refresh. - -2. **The `SectionPanel` header cannot render the target layout as it stands.** `SectionPanel.razor` renders `Title` as a plain string inside `

`, with `HeaderContent` in a sibling div. That allows no muted ` · {n}` part inside the title and no bar under the title in the left group. The component has 14 users. If the plan extends it, add a constraint (for example to *Out of scope* or N-level): every other panel renders unchanged. Also say whether the accessible title of the `h2` includes the count. - -3. **The pager may show more buttons than the issue wants (AC7 and S5).** As far as I recall MudBlazor's markup (I could not inspect the 9.14.0 package here), `MudTablePager` renders first-page and last-page buttons as well as previous and next. AC7 as written passes even with four buttons. The issue wants exactly two icon buttons. Change the wording to "only the buttons `Previous page` and `Next page`", and have the plan's MudBlazor probe confirm the default markup. - -4. **Edge case missing: filtering while on a later page.** A user on page 2 of 31 types a filter that leaves 4 matches. The pager is then hidden, but `MudTable` keeps its current page. I did not verify whether MudBlazor 9.14 clamps the page in that case. Add an edge case saying the table lists the matching advisories from their first page, and have the Tester cover it. If today's page shows an empty table there, that is a defect this layout makes more visible, and the Lead decides whether it is in scope. - -5. **AC8 cannot be checked by a bUnit test as written.** "No horizontal overflow at 390, 768 and 1280 px" needs a browser. Earlier refresh pull requests checked layout with stylesheet tests (`AppStylesheetRuntimeContainersTests.cs` in #603). Either narrow AC8 to stylesheet rules (for example full width below 960 px, no fixed widths over 390 px), or mark it as a `manual:` check so the plan names who runs it and on which build (`.squad/routing.md`, *Criteria verified only in CI*). - -6. **Two loose ends in cleanup and documentation.** - - *Dead helper:* once the chip uses `StatusChip` with `StatusToneFormatter.GetSeverityTone`, nothing calls `VulnerabilityDisplayFormatter.GetSeverityColor` any more. Its only caller is `Vulnerabilities.razor.cs:108`; `GetStatusColor` keeps five callers. State that the helper and its test (`VulnerabilityDisplayFormatterTests.cs:32`) are removed, so no dead code is left behind (issue §6). - - *Wording for AC9:* the *Shared display* bullet in `docs/areas/web-ui.md` says the severity bar shows "the active findings". For this page, the documentation should say the bar counts advisories, one per advisory at its highest severity. +- `docs/areas/web-ui.md` is at 4,994 of its 5,000 words, so the page's layout goes into a new area document + `docs/areas/list-pages.md` (*List pages*: the layout and contents of the list pages, so far the Vulnerabilities + page — panel header with count and severity bar, filters, columns, expandable rows, pager), beside *Detail pages*. + The Vulnerabilities bullet of *Pages and routes* (filters, page sizes, link rule) moves there; the `/vulnerabilities` + route row stays in *Web UI*, adds the severity overview and links to *List pages*. +- `docs/areas/list-pages.md` states the count `{n}` / `{matching} of {all}`, the bar of all advisories (one per + advisory at its highest severity, unknown as low, regardless of the filter), the `Unknown` chip, the expand + button's names, the detail's linking rule and the pager (shown above 25 matches, first page after a filter or size + change). + +## Challenge + +Devil's Advocate, mode `spec`: 0 major, 6 minor objections. + +1. *Chip text for `NotSet` unspecified.* Accepted: the chip reads `Unknown` in the low tone, as the runtime container + list and `VulnerabilitySeverityChips` already show it; S3, E2 and AC4 say so. The severity filter still compares the + stored text, so such an advisory stays under `All` only (E2). +2. *`SectionPanel` cannot render the count and the bar in its header.* Accepted: the plan extends `SectionPanel` with + two optional fragments beside and below the title; a panel that sets neither renders exactly as before (a + `SectionPanelTests` case pins it). The `h2` holds `Active advisories` only; the count stands beside it, outside the + heading, so the heading keeps a stable name. +3. *The pager may show first- and last-page buttons.* Accepted: `MudTablePager` 9.14.0 has `FirstIcon` and `LastIcon` + and a hyphen range format; the page draws its own pager, and S5 and AC7 now say "only the two buttons". +4. *Filtering while on a later page.* Accepted as E7 and in AC7: a change of the filter text, the severity or the rows + per page shows the first page. The page keeps the page index itself, so the behavior does not rest on MudTable. +5. *AC8 needs a browser.* Accepted: AC8 is split into the parts a stylesheet or render test checks and the overflow at + 390, 768 and 1280 px, which the Product Manager checks by hand on a local run of the branch head (plan, *Tests per + criterion*). +6. *Dead helper and AC9 wording.* Accepted: `VulnerabilityDisplayFormatter.GetSeverityColor` and its test are removed + (plan); AC9 says the bar counts one advisory once, at its highest severity. \ No newline at end of file diff --git a/specs/feature-457-vulnerabilities-severity-bar/tasks.md b/specs/feature-457-vulnerabilities-severity-bar/tasks.md new file mode 100644 index 00000000..7f9da23f --- /dev/null +++ b/specs/feature-457-vulnerabilities-severity-bar/tasks.md @@ -0,0 +1,14 @@ +# Tasks: Vulnerabilities page with a severity bar and without row rails + +Plan: [plan.md](plan.md) + +| # | Group | Task | Files | Criteria | Depends on | Owner | Done | +| - | ----- | ---- | ----- | -------- | ---------- | ----- | ---- | +| 1 | G1 | Skeleton: `SectionPanel.TitleContent`, `SubtitleContent`; `VulnerabilityOverviewFormatter.CreateSeveritySummary`, `FormatAdvisoryCount`, `FormatSeverity`; `TablePagingFormatter.FormatRange`, `IsLastPage` | src/DockerUpdateGuard/Components/Common/SectionPanel.razor.cs, src/DockerUpdateGuard/UI/VulnerabilityOverviewFormatter.cs, src/DockerUpdateGuard/UI/TablePagingFormatter.cs | AC1, AC2, AC3, AC4, AC7 | — | Dev | [ ] | +| 2 | G1 | Tests first: the `SectionPanelTests`, `VulnerabilityOverviewFormatterTests` and `TablePagingFormatterTests` rows of *Tests per criterion* | src/Tests/DockerUpdateGuard.Tests/SectionPanelTests.cs, src/Tests/DockerUpdateGuard.Tests/VulnerabilityOverviewFormatterTests.cs, src/Tests/DockerUpdateGuard.Tests/TablePagingFormatterTests.cs | AC1, AC2, AC3, AC4, AC7 | 1 | Tester | [ ] | +| 3 | G1 | Implement the fragments (markup unchanged without them, title-group CSS) and both formatters | src/DockerUpdateGuard/Components/Common/SectionPanel.razor, src/DockerUpdateGuard/Components/Common/SectionPanel.razor.cs, src/DockerUpdateGuard/UI/VulnerabilityOverviewFormatter.cs, src/DockerUpdateGuard/UI/TablePagingFormatter.cs, src/DockerUpdateGuard/wwwroot/app.css | AC1, AC2, AC3, AC4, AC7 | 2 | Dev | [ ] | +| 4 | G2 | Skeleton: no new API (page members are private) | — | AC1–AC8 | 3 | Dev | [ ] | +| 5 | G2 | Tests first: the page and stylesheet rows of *Tests per criterion*; adapt `VulnerabilitiesTests` (placeholder, rail test) and remove the `GetSeverityColor` test | src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesRenderTests.cs, src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesTests.cs, src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs, src/Tests/DockerUpdateGuard.Tests/VulnerabilityDisplayFormatterTests.cs | AC1–AC8 | 4 | Tester | [ ] | +| 6 | G2 | Rework the page (header, panel, table, detail, paging, pager), remove rails and `GetSeverityColor`, add the page and pager CSS | src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor, src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor.cs, src/DockerUpdateGuard/UI/VulnerabilityDisplayFormatter.cs, src/DockerUpdateGuard/wwwroot/app.css | AC1–AC8 | 5 | Dev | [ ] | +| 7 | G2 | Documentation: `list-pages.md` (new), `web-ui.md`, areas index, `ARCHITECTURE.md` §9 as *Documentation updates* | docs/areas/list-pages.md, docs/areas/web-ui.md, docs/areas/README.md, docs/ARCHITECTURE.md | AC9 | 6 | Dev | [ ] | +| 8 | PM | Manual check of AC8 at 390, 768 and 1280 px on a local run of the branch head | — | AC8 | 6 | Product Manager | [ ] | \ No newline at end of file From 4546b0175d72212b66525d17411fa5a7cf1ce4cc Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:04:26 +0000 Subject: [PATCH 05/34] Plan challenge notes --- .../log.md | 2 ++ .../plan.md | 22 ++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 89dd77a9..d8bc3ff5 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -10,3 +10,5 @@ are quoted in full. | 2026-12-01 17:54 | 2a Spec challenge | Devil's Advocate | VERDICT: OBJECTIONS 0 major, 6 minor. Minors: NotSet chip text; SectionPanel header cannot hold count/bar (14 users); pager first/last buttons; filter on later page; AC8 browser-only; dead GetSeverityColor helper and AC9 wording (opus/medium · 63,886 tokens · 18 tool uses · 107 s · 34 in · 10,589 out · 729,178 cache read · 53,194 cache write · 311,861 weighted) | | 2026-12-01 17:54 | 2a Challenge notes | Orchestrator | minor objections appended verbatim to spec.md | | 2026-12-01 18:02 | 2b Plan | Lead | RESULT: DONE. Tier standard, no security area; spec approved by Lead; groups G1, G2, PM; decision record 0084 (opus/medium · 98,837 tokens · 51 tool uses · 499 s · 102 in · 51,569 out · 5,634,928 cache read · 98,130 cache write · 1,324,712 weighted · continued) | +| 2026-12-01 18:04 | 2b Plan challenge | Devil's Advocate | VERDICT: OBJECTIONS 0 major, 1 minor. Page-size select must show the current size after the pager reappears (opus/medium · 69,771 tokens · 13 tool uses · 82 s · 26 in · 8,264 out · 628,730 cache read · 61,169 cache write · 298,488 weighted) | +| 2026-12-01 18:04 | 2b Challenge notes | Orchestrator | minor objection appended verbatim to plan.md | diff --git a/specs/feature-457-vulnerabilities-severity-bar/plan.md b/specs/feature-457-vulnerabilities-severity-bar/plan.md index fd4754bd..602140f7 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/plan.md +++ b/specs/feature-457-vulnerabilities-severity-bar/plan.md @@ -213,4 +213,24 @@ the same state, and renders no new external link; the link rule stays in `Vulner ## Out of scope / follow-ups - The other `MudTablePager` users (`VulnerabilityFindingsTable`) keep MudBlazor's pager until their refresh issue. -- `docs/ui-concept/README.md` keeps the concept's rails: it records the concept, not today's behavior \ No newline at end of file +- `docs/ui-concept/README.md` keeps the concept's rails: it records the concept, not today's behavior + +## Challenge notes + +Devil's Advocate, mode `plan`, for specs/feature-457-vulnerabilities-severity-bar/ (issue #457). + +I checked the plan's claims against the code and they hold: +- **Rails:** the four `.dug-rail-*` rules are top-level (`src/DockerUpdateGuard/wwwroot/app.css:994-1009`). Their only users are `Vulnerabilities.razor:66` and `Vulnerabilities.razor.cs` (`GetSeverityRailClass`) and the test assertion at `VulnerabilitiesTests.cs:164`. +- **`GetSeverityColor`:** its only production caller is the page. +- **`SeverityBar`:** it adds `OtherCount` to low (`SeverityBar.razor.cs:53`) and renders nothing when the summary is empty. +- **Severity summary:** `VulnerabilityViewMapper.CreateSeveritySummary` is internal in `DockerUpdateGuard.UI` and takes enum/count pairs, so the planned formatter can reuse it. +- **Unknown severity:** `StatusToneFormatter.GetSeverityTone` gives the Low tone to anything that is not critical, high or medium (`StatusToneFormatter.cs:88-106`). `VulnerabilitySeverityChips.razor:23` already shows `Unknown` in the Low tone. +- **`SectionPanel`:** today it has only `Title`, `Meta`, `HeaderContent` and `Flush`, so the two optional fragments are a real gap and not a duplicate. +- **`PageHeader`:** it already supports title and description without an eyebrow. +- **Decision 0084:** it exists and matches the *Approach*. +- **Documents:** `web-ui.md:96-99` is the bullet the plan moves. `web-ui.md:322` ("not paged except the Vulnerabilities page") stays true. `ARCHITECTURE.md:435-438` does carry the stale "shared with the Vulnerabilities page" claim the plan fixes. +- **Need and scope:** the scope matches the issue and I found no simpler option. Fact 8 is still unverified, but the plan gives a fallback for it. + +Objections: + +1. minor — The native page-size ` + @foreach (var size in _pageSizeOptions) + { + + } + + + @TablePagingFormatter.FormatRange(_pageIndex, _pageSize, filteredItems.Count) + + +

+ } + + } - + \ No newline at end of file diff --git a/src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor.cs b/src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor.cs index 35b59122..469d684e 100644 --- a/src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor.cs +++ b/src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor.cs @@ -2,8 +2,6 @@ using Microsoft.AspNetCore.Components; -using MudBlazor; - namespace DockerUpdateGuard.Components.Pages; /// @@ -62,6 +60,16 @@ public sealed partial class Vulnerabilities : IDisposable /// private string _severityFilter = AllSeveritiesFilterValue; + /// + /// Zero-based index of the shown page + /// + private int _pageIndex; + + /// + /// Number of rows per page + /// + private int _pageSize = _pageSizeOptions[0]; + /// /// Message of the last failed load, null when the last load completed /// @@ -98,33 +106,6 @@ public sealed partial class Vulnerabilities : IDisposable #region Static methods - /// - /// Resolve the chip color for a vulnerability severity label - /// - /// Severity label - /// Chip color - private static Color GetSeverityColor(string severity) - { - return VulnerabilityDisplayFormatter.GetSeverityColor(severity); - } - - /// - /// Resolve the severity-rail CSS class for a vulnerability severity label - /// - /// Severity label - /// Severity-rail CSS class - private static string GetSeverityRailClass(string severity) - { - return severity.ToUpperInvariant() switch - { - "CRITICAL" => "dug-rail-critical", - "HIGH" => "dug-rail-high", - "MEDIUM" => "dug-rail-medium", - "LOW" => "dug-rail-low", - _ => string.Empty, - }; - } - /// /// Resolve the detail page link for an affected image /// @@ -219,6 +200,59 @@ private void ToggleExpanded(VulnerabilityOverviewItemData item) } } + /// + /// Resolve the items of the shown page + /// + /// Items matching the filter + /// Items of the shown page + private List GetPageItems(List filteredItems) + { + return [.. filteredItems.Skip(_pageIndex * _pageSize).Take(_pageSize)]; + } + + /// + /// Show the first page + /// + private void ShowFirstPage() + { + _pageIndex = 0; + } + + /// + /// Show the previous page + /// + private void ShowPreviousPage() + { + if (_pageIndex > 0) + { + _pageIndex--; + } + } + + /// + /// Show the next page + /// + private void ShowNextPage() + { + if (TablePagingFormatter.IsLastPage(_pageIndex, _pageSize, GetFilteredItems().Count) == false) + { + _pageIndex++; + } + } + + /// + /// Change the page size when the client sent one of the offered sizes and show the first page + /// + /// Change event data + private void ChangePageSize(ChangeEventArgs args) + { + if (int.TryParse(args.Value?.ToString(), out var size) && _pageSizeOptions.Contains(size)) + { + _pageSize = size; + ShowFirstPage(); + } + } + /// /// Persist the current vulnerability overview so the interactive render can reuse the prerendered data /// diff --git a/src/DockerUpdateGuard/UI/VulnerabilityDisplayFormatter.cs b/src/DockerUpdateGuard/UI/VulnerabilityDisplayFormatter.cs index e676f3af..295a88fc 100644 --- a/src/DockerUpdateGuard/UI/VulnerabilityDisplayFormatter.cs +++ b/src/DockerUpdateGuard/UI/VulnerabilityDisplayFormatter.cs @@ -9,23 +9,6 @@ internal static class VulnerabilityDisplayFormatter { #region Static methods - /// - /// Resolve the chip color for a vulnerability severity label - /// - /// Severity label - /// Chip color - public static Color GetSeverityColor(string? severity) - { - return severity?.ToUpperInvariant() switch - { - "CRITICAL" => Color.Error, - "HIGH" => Color.Warning, - "MEDIUM" => Color.Info, - "LOW" => Color.Success, - _ => Color.Default, - }; - } - /// /// Resolve the chip color for a vulnerability assessment status, weighted by the highest active severity /// diff --git a/src/DockerUpdateGuard/wwwroot/app.css b/src/DockerUpdateGuard/wwwroot/app.css index 65be9af3..ddd4b6fc 100644 --- a/src/DockerUpdateGuard/wwwroot/app.css +++ b/src/DockerUpdateGuard/wwwroot/app.css @@ -1010,20 +1010,102 @@ a { font-size: 16px; } -.dug-rail-critical { - box-shadow: inset 3px 0 0 var(--dug-sev-critical); +.vulnerabilities-count { + color: var(--dug-text-muted); + font-size: 13px; +} + +.vulnerabilities-severity { + max-width: 360px; +} + +.vulnerabilities-filters { + display: flex; + flex-wrap: wrap; + gap: 12px; +} + +.vulnerabilities-filters .vulnerabilities-filters__search { + flex-basis: 260px; +} + +.vulnerabilities-filters .vulnerabilities-filters__severity { + flex-basis: 150px; +} + +.vulnerabilities-filters .mud-input-control > .mud-input-control-input-container > .mud-input-label { + font-size: 13px; + font-weight: 500; +} + +@media (max-width: 959.98px) { + .vulnerabilities-filters .vulnerabilities-filters__search, + .vulnerabilities-filters .vulnerabilities-filters__severity { + flex-basis: 100%; + } } -.dug-rail-high { - box-shadow: inset 3px 0 0 var(--dug-sev-high); +.vulnerabilities-table .mud-table-body .mud-table-cell { + padding-top: 8px; + padding-bottom: 8px; + vertical-align: middle; } -.dug-rail-medium { - box-shadow: inset 3px 0 0 var(--dug-sev-medium); +.section-table .mud-table-body .vulnerabilities-table__expand.mud-button-root { + border: none; } -.dug-rail-low { - box-shadow: inset 3px 0 0 var(--dug-sev-low); +.vulnerabilities-table__id { + font-weight: 600; +} + +.vulnerabilities-table .mud-table-body .vulnerabilities-table__row--expanded, +.vulnerabilities-table .mud-table-body .vulnerabilities-table__row--expanded .mud-table-cell { + background: var(--dug-surface-subtle); +} + +.vulnerabilities-table .mud-table-body .vulnerabilities-table__detail, +.vulnerabilities-table .mud-table-body .vulnerabilities-table__detail .mud-table-cell { + background: var(--dug-surface-subtle); +} + +@media (max-width: 959.98px) { + .vulnerabilities-table .mud-table-body .vulnerabilities-table__detail-spacer { + display: none; + } +} + +.dug-pager { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: flex-end; + gap: 16px; + padding: 8px 20px; + border-top: 1px solid var(--dug-border); + color: var(--dug-text-muted); + font-size: 13px; +} + +.dug-pager__size { + display: inline-flex; + align-items: center; + gap: 8px; +} + +.dug-pager__select { + height: 44px; + padding: 0 8px; + border: 1px solid var(--dug-border-control); + border-radius: var(--dug-radius-md); + background: var(--dug-surface); + color: var(--dug-text); + font: inherit; +} + +.dug-pager__button:disabled { + color: var(--dug-text-muted); + border: 1px solid var(--dug-border); } .runtime-containers-table .runtime-containers-table__container, From aa9a11f4650f88bffc7cf2e19d050e4f7a7030dc Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:28:09 +0000 Subject: [PATCH 13/34] G2 coverage --- .../log.md | 1 + .../VulnerabilitiesTests.cs | 139 ++++++++++++++++++ 2 files changed, 140 insertions(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index e47d15a6..cc6b073f 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -19,3 +19,4 @@ are quoted in full. | 2026-12-01 18:13 | 4 Skeleton skipped (G2) | Orchestrator | skipped — plan.md Signatures: the page's new members are private | | 2026-12-01 18:19 | 5 Tests first (G2) | Tester | Page render, stylesheet and adapted tests written; I confirmed 26 fail on current code, 5 pass. Deferred: VulnerabilitiesSeverityFilterListsOnlyThatSeverity, VulnerabilitiesListsAdvisoriesInServiceOrder, VulnerabilitiesLinksOnlyAdvisoryWithReference (sonnet/medium · 74,187 tokens · 15 tool uses · 314 s · 30 in · 35,146 out · 2,147,158 cache read · 72,363 cache write · 480,930 weighted · continued from 5 Tests first (G1)) | | 2026-12-01 18:26 | 6 Implement (G2) | Dev | Page reworked (header, panel, bar, table, own pager), rails and GetSeverityColor removed, CSS, docs (list-pages.md new, web-ui, README, ARCHITECTURE); Format/Build/Analyzer/full suite (2973+39) pass; fact 8 holds; one unrelated flaky test passed on rerun (sonnet/medium · 59,151 tokens · 17 tool uses · 376 s · 34 in · 15,499 out · 2,050,358 cache read · 104,253 cache write · 412,881 weighted · continued) | +| 2026-12-01 18:28 | 6 Coverage (G2) | Tester | 3 deferred AC6 tests added; 2976+39 pass; Coverage gate PASS (new code 94.3%, overall 96.2%) (sonnet/medium · 24,091 tokens · 8 tool uses · 113 s · 18 in · 6,021 out · 730,565 cache read · 55,781 cache write · 172,906 weighted · continued) | diff --git a/src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesTests.cs b/src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesTests.cs index 6a241cf4..8d1beade 100644 --- a/src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesTests.cs +++ b/src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesTests.cs @@ -7,6 +7,8 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; +using MudBlazor; + using NSubstitute; using VulnerabilitiesPage = DockerUpdateGuard.Components.Pages.Vulnerabilities; @@ -241,5 +243,142 @@ public async Task VulnerabilitiesLoadFailureShowsFixedErrorAndLogs() } } + /// + /// Verify the severity filter lists only the advisories of the selected severity + /// + /// Task + [TestMethod] + [TestCategory("AC6")] + public async Task VulnerabilitiesSeverityFilterListsOnlyThatSeverity() + { + var testContext = BlazorTestContextFactory.Create(); + + await using (testContext) + { + var page = RenderPage(testContext, + [ + CreateItem("CVE-2026-8001", "Critical"), + CreateItem("CVE-2026-8002", "High"), + CreateItem("CVE-2026-8003", "critical"), + CreateItem("CVE-2026-8004", "Low") + ]); + var select = page.FindComponent>(); + + await page.InvokeAsync(() => select.Instance.ValueChanged.InvokeAsync("Critical")).ConfigureAwait(false); + + Assert.AreSequenceEqual(["CVE-2026-8001", "CVE-2026-8003"], GetListedIds(page), "Only the advisories of the selected severity must be listed, ignoring case"); + + await page.InvokeAsync(() => select.Instance.ValueChanged.InvokeAsync("All")).ConfigureAwait(false); + + Assert.HasCount(4, GetListedIds(page), "The All filter must list every advisory again"); + } + } + + /// + /// Verify the page lists the advisories in the order the view service returned them + /// + /// Task + [TestMethod] + [TestCategory("AC6")] + public async Task VulnerabilitiesListsAdvisoriesInServiceOrder() + { + var testContext = BlazorTestContextFactory.Create(); + + await using (testContext) + { + var page = RenderPage(testContext, + [ + CreateItem("CVE-2026-8012", "Low"), + CreateItem("CVE-2026-8011", "Critical"), + CreateItem("CVE-2026-8013", "High") + ]); + + Assert.AreSequenceEqual(["CVE-2026-8012", "CVE-2026-8011", "CVE-2026-8013"], GetListedIds(page), "The advisories must keep the order of the view service"); + } + } + + /// + /// Verify only an advisory with a reference URL links to it and the others show their identifier as plain text + /// + /// Task + [TestMethod] + [TestCategory("AC6")] + public async Task VulnerabilitiesLinksOnlyAdvisoryWithReference() + { + var testContext = BlazorTestContextFactory.Create(); + + await using (testContext) + { + var secure = CreateItem("CVE-2026-8021", "High"); + var plain = CreateItem("CVE-2026-8022", "High"); + var blank = CreateItem("CVE-2026-8023", "High"); + var none = CreateItem("CVE-2026-8024", "High"); + + secure.ReferenceUrl = "https://nvd.nist.gov/vuln/detail/CVE-2026-8021"; + plain.ReferenceUrl = "http://example.test/CVE-2026-8022"; + blank.ReferenceUrl = " "; + none.ReferenceUrl = null; + + var page = RenderPage(testContext, [secure, plain, blank, none]); + var links = page.FindAll("td[data-label='Advisory'] a.table-link"); + var plainIds = page.FindAll("td[data-label='Advisory'] span.vulnerabilities-table__id").Select(element => element.TextContent.Trim()).ToList(); + + Assert.AreSequenceEqual(["https://nvd.nist.gov/vuln/detail/CVE-2026-8021", "http://example.test/CVE-2026-8022"], + links.Select(link => link.GetAttribute("href")).ToList(), + "Only an advisory with a http or https reference must link to it"); + Assert.AreEqual("_blank", links[0].GetAttribute("target"), "The reference link must open in a new tab"); + Assert.AreEqual("noopener noreferrer", links[0].GetAttribute("rel"), "The reference link must not leak the opener"); + Assert.AreSequenceEqual(["CVE-2026-8023", "CVE-2026-8024"], plainIds, "An advisory without a reference must show its identifier as plain text"); + } + } + #endregion // Methods + + #region Static methods + + /// + /// Create an overview item + /// + /// Advisory identifier + /// Severity + /// Overview item + private static VulnerabilityOverviewItemData CreateItem(string advisoryId, string severity) + { + return new VulnerabilityOverviewItemData + { + AdvisoryId = advisoryId, + Title = $"Title {advisoryId}", + Severity = severity, + }; + } + + /// + /// Render the page with the given items + /// + /// Test context + /// Overview items + /// Rendered page + private static IRenderedComponent RenderPage(BunitContext testContext, List items) + { + var viewService = Substitute.For(); + + viewService.GetVulnerabilityOverviewAsync(Arg.Any()) + .Returns(items); + + testContext.Services.AddSingleton(viewService); + + return testContext.Render(); + } + + /// + /// Get the advisory identifiers listed in the table, in row order + /// + /// Rendered page + /// Advisory identifiers + private static List GetListedIds(IRenderedComponent page) + { + return [.. page.FindAll("td[data-label='Advisory']").Select(cell => cell.QuerySelector(".table-link, .vulnerabilities-table__id")?.TextContent.Trim() ?? string.Empty)]; + } + + #endregion // Static methods } \ No newline at end of file From 755b5f62c9b6c409668a49fb0860f8864a4b2050 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:28:13 +0000 Subject: [PATCH 14/34] Log documentation step --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index cc6b073f..ba8e2f28 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -20,3 +20,4 @@ are quoted in full. | 2026-12-01 18:19 | 5 Tests first (G2) | Tester | Page render, stylesheet and adapted tests written; I confirmed 26 fail on current code, 5 pass. Deferred: VulnerabilitiesSeverityFilterListsOnlyThatSeverity, VulnerabilitiesListsAdvisoriesInServiceOrder, VulnerabilitiesLinksOnlyAdvisoryWithReference (sonnet/medium · 74,187 tokens · 15 tool uses · 314 s · 30 in · 35,146 out · 2,147,158 cache read · 72,363 cache write · 480,930 weighted · continued from 5 Tests first (G1)) | | 2026-12-01 18:26 | 6 Implement (G2) | Dev | Page reworked (header, panel, bar, table, own pager), rails and GetSeverityColor removed, CSS, docs (list-pages.md new, web-ui, README, ARCHITECTURE); Format/Build/Analyzer/full suite (2973+39) pass; fact 8 holds; one unrelated flaky test passed on rerun (sonnet/medium · 59,151 tokens · 17 tool uses · 376 s · 34 in · 15,499 out · 2,050,358 cache read · 104,253 cache write · 412,881 weighted · continued) | | 2026-12-01 18:28 | 6 Coverage (G2) | Tester | 3 deferred AC6 tests added; 2976+39 pass; Coverage gate PASS (new code 94.3%, overall 96.2%) (sonnet/medium · 24,091 tokens · 8 tool uses · 113 s · 18 in · 6,021 out · 730,565 cache read · 55,781 cache write · 172,906 weighted · continued) | +| 2026-12-01 18:28 | 6 Documentation | Orchestrator | written in 6 Implement (G2); full Test green in 6 Coverage (G2) | From eea17f40c943c667ebd0a1b4cb665f9bd02847b0 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:29:42 +0000 Subject: [PATCH 15/34] Gate stamp --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index ba8e2f28..af741d12 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -21,3 +21,4 @@ are quoted in full. | 2026-12-01 18:26 | 6 Implement (G2) | Dev | Page reworked (header, panel, bar, table, own pager), rails and GetSeverityColor removed, CSS, docs (list-pages.md new, web-ui, README, ARCHITECTURE); Format/Build/Analyzer/full suite (2973+39) pass; fact 8 holds; one unrelated flaky test passed on rerun (sonnet/medium · 59,151 tokens · 17 tool uses · 376 s · 34 in · 15,499 out · 2,050,358 cache read · 104,253 cache write · 412,881 weighted · continued) | | 2026-12-01 18:28 | 6 Coverage (G2) | Tester | 3 deferred AC6 tests added; 2976+39 pass; Coverage gate PASS (new code 94.3%, overall 96.2%) (sonnet/medium · 24,091 tokens · 8 tool uses · 113 s · 18 in · 6,021 out · 730,565 cache read · 55,781 cache write · 172,906 weighted · continued) | | 2026-12-01 18:28 | 6 Documentation | Orchestrator | written in 6 Implement (G2); full Test green in 6 Coverage (G2) | +| 2026-12-01 18:29 | 7 Gate stamp | Orchestrator | PASS on 755b5f62c9b6c409668a49fb0860f8864a4b2050 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 22 hit(s) | From 13a5a672f6477433b2b181f2752c48a1973a07a6 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:48:33 +0000 Subject: [PATCH 16/34] Manual test result --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index af741d12..53774029 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -22,3 +22,4 @@ are quoted in full. | 2026-12-01 18:28 | 6 Coverage (G2) | Tester | 3 deferred AC6 tests added; 2976+39 pass; Coverage gate PASS (new code 94.3%, overall 96.2%) (sonnet/medium · 24,091 tokens · 8 tool uses · 113 s · 18 in · 6,021 out · 730,565 cache read · 55,781 cache write · 172,906 weighted · continued) | | 2026-12-01 18:28 | 6 Documentation | Orchestrator | written in 6 Implement (G2); full Test green in 6 Coverage (G2) | | 2026-12-01 18:29 | 7 Gate stamp | Orchestrator | PASS on 755b5f62c9b6c409668a49fb0860f8864a4b2050 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 22 hit(s) | +| 2026-12-01 18:48 | 7 Manual test | Product Manager | FAIL AC8 at 390 px: horizontal scrollbar. Screenshot: in the card layout the expand button sits off-card at the right, the Package value, the CVSS text and the affected image reference run beyond the viewport; 768 and 1280 px not reported | From 177213d2e75c1411e7eac6380d3f3cee078faab7 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:52:16 +0000 Subject: [PATCH 17/34] G3 plan amendment --- .../log.md | 1 + .../plan.md | 33 ++++++++++++++++--- .../tasks.md | 7 +++- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 53774029..0dcf299a 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -23,3 +23,4 @@ are quoted in full. | 2026-12-01 18:28 | 6 Documentation | Orchestrator | written in 6 Implement (G2); full Test green in 6 Coverage (G2) | | 2026-12-01 18:29 | 7 Gate stamp | Orchestrator | PASS on 755b5f62c9b6c409668a49fb0860f8864a4b2050 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 22 hit(s) | | 2026-12-01 18:48 | 7 Manual test | Product Manager | FAIL AC8 at 390 px: horizontal scrollbar. Screenshot: in the card layout the expand button sits off-card at the right, the Package value, the CVSS text and the affected image reference run beyond the viewport; 768 and 1280 px not reported | +| 2026-12-01 18:52 | 7 Decide (manual test) | Lead | RESULT: DECIDED — task group G3 (Breakpoint.Sm; page-scoped card rules min-width 0 / overflow-wrap anywhere; value groups; detail content cell block below 960 px); no criterion changes; follow-up issue proposed for the shared card layout (opus/medium · 83,351 tokens · 22 tool uses · 213 s · 26 in · 22,447 out · 736,892 cache read · 67,982 cache write · 468,166 weighted) | diff --git a/specs/feature-457-vulnerabilities-severity-bar/plan.md b/specs/feature-457-vulnerabilities-severity-bar/plan.md index 602140f7..b80dab8b 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/plan.md +++ b/specs/feature-457-vulnerabilities-severity-bar/plan.md @@ -26,6 +26,9 @@ See [spec.md](spec.md), *Problem*. | 11 | `.section-table .mud-table-body .mud-icon-button` gives table icon buttons 44 × 44 px with a border; `.dug-icon-button` the same | `app.css:958-968` | confirmed | | 12 | `web-ui.md` has 4,994 words (limit 5,000) | `plan-check.py` `base_words` on the merge base | confirmed | | 13 | The dashboard's severity summary counts only advisories of running containers | `ApplicationViewService.cs:1965-1990` | confirmed | +| 14 | MudBlazor 9.14.0 gives `mud-md-table` its card cells and hides its header up to 1280 px (`@media(max-width: 1280px)`), `mud-sm-table` up to 960 px; the app's card styling starts below 960 px | `MudBlazor.min.css` 9.14.0 (package `staticwebassets`); `app.css:1479` | confirmed | +| 15 | Step 7 failure: a card cell is a flex container whose value keeps `min-width: auto`, so an unbreakable value (package name, image reference) keeps its full width, widens the table and pushes every card's content, the expand button included, past the viewport | `app.css:1493-1500`; Product Manager's 390 px screenshot; that the G3 rules remove it: manual test (G3) | confirmed | +| 16 | The card rule `.section-table .mud-table-body .mud-table-cell { display: flex }` comes after the page rules, so a page rule overriding `display` needs four classes | `app.css:1072`, `:1493` | confirmed | ## Tests per criterion @@ -45,8 +48,9 @@ See [spec.md](spec.md), *Problem*. | AC6 | existing `VulnerabilitiesFreeTextFilterHidesNonMatchingAdvisories` (adapted), `VulnerabilitiesNoActiveFindingsShowsEmptyState`, `VulnerabilitiesLoadFailureShowsFixedErrorAndLogs`, `VulnerabilitiesRestoresFromPersistentState`, `VulnerabilitiesPersistsLoadedStateForPrerender`; new `VulnerabilitiesSeverityFilterListsOnlyThatSeverity`, `VulnerabilitiesListsAdvisoriesInServiceOrder`, `VulnerabilitiesLinksOnlyAdvisoryWithReference`, `VulnerabilitiesEmptyFilterShowsNoMatchText` | `VulnerabilitiesTests.cs`, `VulnerabilitiesPersistentStateTests.cs`, `VulnerabilitiesRenderTests.cs` | | AC7 | `VulnerabilitiesPagerHiddenAtTwentyFiveMatches`, `VulnerabilitiesPagerShownAboveTwentyFiveMatchesWithTwoNamedButtons`, `VulnerabilitiesNextPageShowsRemainingRows`, `VulnerabilitiesFilterChangeOnLaterPageShowsFirstPage`, `VulnerabilitiesPageSizeChangeShowsFirstPageWithMoreRows`, `VulnerabilitiesUnlistedPageSizeIsIgnored` | `VulnerabilitiesRenderTests.cs` | | AC7 | `TablePagingFormatterFormatRangeReturnsExpectedText`, `TablePagingFormatterIsLastPageReturnsExpectedResult` | `TablePagingFormatterTests.cs` | -| AC8 | `AppStylesheetVulnerabilitiesFiltersTakeFullWidthBelow960Pixels`, `AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels`, `VulnerabilitiesRendersCardLayoutBreakpointWithExpandButton` | `AppStylesheetVulnerabilitiesTests.cs`, `VulnerabilitiesRenderTests.cs` | -| AC8 | manual: the Product Manager opens `/vulnerabilities` with more than 25 advisories at 390, 768 and 1280 px, one row expanded, on a local run of the branch head (*Running the application* in `README.md`), step 7 Manual test | — | +| AC8 | `AppStylesheetVulnerabilitiesFiltersTakeFullWidthBelow960Pixels`, `AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels`, `VulnerabilitiesRendersCardLayoutBreakpointWithExpandButton` (G3: adapted to `mud-sm-table`, no `mud-md-table`) | `AppStylesheetVulnerabilitiesTests.cs`, `VulnerabilitiesRenderTests.cs` | +| AC8 | G3: `AppStylesheetVulnerabilitiesCardCellsWrapLongValues` (card context: cell `min-width: 0` and `overflow-wrap: anywhere`, label `flex-shrink: 0`, value group `min-width: 0` and `text-align: end`), `AppStylesheetVulnerabilitiesDetailContentIsBlockBelow960Pixels` (the exact four-class selector of *Card layout*, `display: block`, card context only); `VulnerabilitiesAdvisoryAndSeverityCellsGroupTheirValues` (one `div.vulnerabilities-table__value` per Advisory and Severity cell, holding link and title, chip and CVSS), `VulnerabilitiesExpandedDetailContentCellCarriesBlockClass` | `AppStylesheetVulnerabilitiesTests.cs`, `VulnerabilitiesRenderTests.cs` | +| AC8 | manual: the Product Manager opens `/vulnerabilities` with more than 25 advisories at 390, 768 and 1280 px, one row expanded, on a local run of the branch head (*Running the application* in `README.md`), step 7 Manual test; after G3 again, with an advisory whose package is `Microsoft.AspNetCore.App.Runtime.linux-x64` expanded | — | | AC9 | check: the Reviewer reads `docs/areas/list-pages.md` and the `/vulnerabilities` row of `docs/areas/web-ui.md` against AC9, step 8 | — | ## Approach @@ -68,7 +72,7 @@ Layout as the issue's *Scope* and the spec's scenarios state it; the remaining c `SubtitleContent`; with neither, the markup is exactly today's. Below 960 px `.dug-panel__title-group ~ .dug-panel__header-content { flex-basis: 100%; }` lets the filters take the full width without touching panels that have no title group. -- **Table:** `MudTable Items="pageItems" Breakpoint="Breakpoint.Md" Class="section-table vulnerabilities-table"`, no +- **Table:** `MudTable Items="pageItems" Breakpoint="Breakpoint.Sm" Class="section-table vulnerabilities-table"`, no `RowsPerPage`, no `PagerContent`. `RowClassFunc` stays only for `vulnerabilities-table__row--expanded` (the rail function is deleted). Cells `vertical-align: middle`, 8 px vertical padding. - Expand cell: `MudIconButton` with `Class="vulnerabilities-table__expand"`, chevron icons as today, @@ -84,6 +88,18 @@ Layout as the issue's *Scope* and the spec's scenarios state it; the remaining c `Affected images`, then the references one per line with today's link rule. Expanded row and detail: `background: var(--dug-surface-subtle)`. - `NoRecordsContent`: `No advisories match the current filter.` as today. +- **Card layout (G3, after the failed step 7):** `Breakpoint.Sm`, so MudBlazor's card cells start where the app's do + (fact 14; `Md` hid the header up to 1280 px). Markup: the Advisory and Severity cells wrap their contents in one + `div.vulnerabilities-table__value` (from 960 px it renders as today); the detail's content cell is + `MudTd Class="vulnerabilities-table__detail-content" colspan="6"`. Rules in the page's `@media (max-width: 959.98px)`: + - `.vulnerabilities-table .mud-table-body .mud-table-cell`: `min-width: 0; overflow-wrap: anywhere;` (fact 15); + - `.vulnerabilities-table .mud-table-body .mud-table-cell::before`: `flex-shrink: 0;` (the label keeps its width); + - `.vulnerabilities-table .mud-table-body .vulnerabilities-table__value`: `min-width: 0; text-align: end;` — label + left, value group right, chip above the CVSS line; + - `.vulnerabilities-table .mud-table-body .mud-table-cell.vulnerabilities-table__detail-content`: `display: block;` + (four classes, fact 16; the spacer lacks the class and stays hidden) — the label line is gone and the references + take the card's width, one per line, wrapping at any character. + Nothing from 960 px changes but the breakpoint; the expand button stays at the right of the card's first line. - **Paging** ([0084](../../docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md)): the page holds `_pageIndex` (0) and `_pageSize` (25); `pageItems = filtered.Skip(_pageIndex * _pageSize).Take(_pageSize)`. `ShowFirstPage()` sets `_pageIndex = 0` and runs as `@bind-Value:after` of both filter fields and after a page size @@ -122,6 +138,11 @@ Early draft PR: no a derived value. 5. **Area document: split `web-ui.md` (chosen) or add to it** — it has 4,994 of 5,000 words; the 8/9 list pages need the same home. +6. **Card overflow (G3): page-scoped wrap rules (chosen), the same rules on the shared `.section-table` card layout, + or ellipsis truncation** — the shared rules would change 14 other tables no criterion or manual test of this + feature covers (follow-up issue); an ellipsis hides the package and image names the card exists to show. +7. **Breakpoint (G3): `Sm` (chosen) or `Md` with page rules for 960–1280 px** — `Md` shows header-less flex cells up + to 1280 px, against the spec's "below 960 px"; `Sm` matches the app's card context, as the runtime container list. ## Affected projects and types @@ -166,7 +187,7 @@ parameters, no keyword names. The skeleton holds nothing for real; the Tester de Existing test code a change affects, adapted by the Tester: `VulnerabilityDisplayFormatterTests.cs:32` (test of the deleted `GetSeverityColor`, removed); `VulnerabilitiesTests.cs:131` (old placeholder selector) and `:142-165` (rail -test, replaced by AC4's). `VulnerabilitiesPersistentStateTests.cs` and the other `SectionPanelTests` keep their inputs +test, replaced by AC4's); G3: `VulnerabilitiesRenderTests.cs:534` (breakpoint, now `mud-sm-table`). `VulnerabilitiesPersistentStateTests.cs` and the other `SectionPanelTests` keep their inputs unchanged. Files no unit test can cover: none. @@ -188,7 +209,7 @@ All by the Dev, once the code is green: advisories — one per advisory at its highest severity, unknown as low, regardless of the filter), the filters and rules moved from `web-ui.md`, the columns with the `Unknown` chip, the expand button's names and the detail's link rule, the pager (above 25 matches, first page after a filter or size change, unlisted sizes ignored) and the - card layout below 960 px. + card layout below 960 px; G3: the card bullet adds that long values (package, image references) wrap inside the card. - `docs/areas/web-ui.md`: as *Areas*. - `docs/areas/README.md`: index row for *List pages*, beside *Detail pages*. - `docs/ARCHITECTURE.md` §9: "Pages, routes and what each page shows or triggers are specified in Web UI" adds the @@ -214,6 +235,8 @@ the same state, and renders no new external link; the link rule stays in `Vulner - The other `MudTablePager` users (`VulnerabilityFindingsTable`) keep MudBlazor's pager until their refresh issue. - `docs/ui-concept/README.md` keeps the concept's rails: it records the concept, not today's behavior +- The other `Breakpoint.Md` tables (header hidden at 960–1280 px) and long values in the shared card layout: follow-up + issue (G3) ## Challenge notes diff --git a/specs/feature-457-vulnerabilities-severity-bar/tasks.md b/specs/feature-457-vulnerabilities-severity-bar/tasks.md index bca61dfa..bfefbbfc 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/tasks.md +++ b/specs/feature-457-vulnerabilities-severity-bar/tasks.md @@ -11,4 +11,9 @@ Plan: [plan.md](plan.md) | 5 | G2 | Tests first: the page and stylesheet rows of *Tests per criterion*; adapt `VulnerabilitiesTests` (placeholder, rail test) and remove the `GetSeverityColor` test | src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesRenderTests.cs, src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesTests.cs, src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs, src/Tests/DockerUpdateGuard.Tests/VulnerabilityDisplayFormatterTests.cs | AC1–AC8 | 4 | Tester | [x] | | 6 | G2 | Rework the page (header, panel, table, detail, paging, pager), remove rails and `GetSeverityColor`, add the page and pager CSS | src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor, src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor.cs, src/DockerUpdateGuard/UI/VulnerabilityDisplayFormatter.cs, src/DockerUpdateGuard/wwwroot/app.css | AC1–AC8 | 5 | Dev | [x] | | 7 | G2 | Documentation: `list-pages.md` (new), `web-ui.md`, areas index, `ARCHITECTURE.md` §9 as *Documentation updates* | docs/areas/list-pages.md, docs/areas/web-ui.md, docs/areas/README.md, docs/ARCHITECTURE.md | AC9 | 6 | Dev | [x] | -| 8 | PM | Manual check of AC8 at 390, 768 and 1280 px on a local run of the branch head | — | AC8 | 6 | Product Manager | [x] | \ No newline at end of file +| 8 | PM | Manual check of AC8 at 390, 768 and 1280 px on a local run of the branch head | — | AC8 | 6 | Product Manager | [x] | +| 9 | G3 | Skeleton: skipped — no new API (markup classes and CSS only) | — | AC8 | 8 | Dev | [ ] | +| 10 | G3 | Tests first: the G3 rows of AC8 in *Tests per criterion*; adapt `VulnerabilitiesRendersCardLayoutBreakpointWithExpandButton` to `mud-sm-table` | src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs, src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesRenderTests.cs | AC8 | 9 | Tester | [ ] | +| 11 | G3 | Implement *Card layout*: `Breakpoint.Sm`, the two value groups, the detail content class, the four card rules | src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor, src/DockerUpdateGuard/wwwroot/app.css | AC8 | 10 | Dev | [ ] | +| 12 | G3 | Documentation: the card bullet of `list-pages.md` (long values wrap inside the card) | docs/areas/list-pages.md | AC9 | 11 | Dev | [ ] | +| 13 | PM | Manual check of AC8 again at 390, 768 and 1280 px, one row with the long package expanded, after the new gate stamp | — | AC8 | 12 | Product Manager | [ ] | \ No newline at end of file From 7bc18ce2ff7602fb45a44ab85639c5b4f94a9d4c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:52:31 +0000 Subject: [PATCH 18/34] G3 skeleton skipped --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 0dcf299a..180a1b28 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -24,3 +24,4 @@ are quoted in full. | 2026-12-01 18:29 | 7 Gate stamp | Orchestrator | PASS on 755b5f62c9b6c409668a49fb0860f8864a4b2050 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 22 hit(s) | | 2026-12-01 18:48 | 7 Manual test | Product Manager | FAIL AC8 at 390 px: horizontal scrollbar. Screenshot: in the card layout the expand button sits off-card at the right, the Package value, the CVSS text and the affected image reference run beyond the viewport; 768 and 1280 px not reported | | 2026-12-01 18:52 | 7 Decide (manual test) | Lead | RESULT: DECIDED — task group G3 (Breakpoint.Sm; page-scoped card rules min-width 0 / overflow-wrap anywhere; value groups; detail content cell block below 960 px); no criterion changes; follow-up issue proposed for the shared card layout (opus/medium · 83,351 tokens · 22 tool uses · 213 s · 26 in · 22,447 out · 736,892 cache read · 67,982 cache write · 468,166 weighted) | +| 2026-12-01 18:52 | 4 Skeleton skipped (G3) | Orchestrator | skipped — plan.md G3 adds no API (markup and stylesheet only) | From a10ad137a195c9ce486f42c762efce0cfd6952fe Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:55:18 +0000 Subject: [PATCH 19/34] G3 tests first --- .../log.md | 1 + .../AppStylesheetVulnerabilitiesTests.cs | 54 ++++++++++++++ .../VulnerabilitiesRenderTests.cs | 71 ++++++++++++++++++- 3 files changed, 124 insertions(+), 2 deletions(-) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 180a1b28..803d7ef6 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -25,3 +25,4 @@ are quoted in full. | 2026-12-01 18:48 | 7 Manual test | Product Manager | FAIL AC8 at 390 px: horizontal scrollbar. Screenshot: in the card layout the expand button sits off-card at the right, the Package value, the CVSS text and the affected image reference run beyond the viewport; 768 and 1280 px not reported | | 2026-12-01 18:52 | 7 Decide (manual test) | Lead | RESULT: DECIDED — task group G3 (Breakpoint.Sm; page-scoped card rules min-width 0 / overflow-wrap anywhere; value groups; detail content cell block below 960 px); no criterion changes; follow-up issue proposed for the shared card layout (opus/medium · 83,351 tokens · 22 tool uses · 213 s · 26 in · 22,447 out · 736,892 cache read · 67,982 cache write · 468,166 weighted) | | 2026-12-01 18:52 | 4 Skeleton skipped (G3) | Orchestrator | skipped — plan.md G3 adds no API (markup and stylesheet only) | +| 2026-12-01 18:55 | 5 Tests first (G3) | Tester | 5 AC8 card-layout tests (4 new, 1 adapted); I confirmed all 5 fail on current code, 22 others pass. Deferred: none (sonnet/medium · 11,246 tokens · 4 tool uses · 140 s · 10 in · 5,087 out · 576,124 cache read · 198,608 cache write · 331,317 weighted · continued from 5 Tests first (G1)) | diff --git a/src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs b/src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs index d367d202..37fe663a 100644 --- a/src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs +++ b/src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs @@ -110,6 +110,40 @@ public void AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels() Assert.IsTrue(disabled.GetValueOrDefault("border", string.Empty).StartsWith("1px", StringComparison.Ordinal), "A disabled pager button must keep its 1 px border"); } + /// + /// Verify below 960 px the cells shrink and wrap long values, the label keeps its width and the value group sits at the end + /// + [TestMethod] + [TestCategory("AC8")] + public void AppStylesheetVulnerabilitiesCardCellsWrapLongValues() + { + var cell = GetCardDeclarations(".vulnerabilities-table .mud-table-body .mud-table-cell"); + var label = GetCardDeclarations(".vulnerabilities-table .mud-table-body .mud-table-cell::before"); + var value = GetCardDeclarations(".vulnerabilities-table .mud-table-body .vulnerabilities-table__value"); + + Assert.AreEqual("0", cell.GetValueOrDefault("min-width"), "A card cell must be allowed to shrink"); + Assert.AreEqual("anywhere", cell.GetValueOrDefault("overflow-wrap"), "A card cell must wrap at any character"); + Assert.AreEqual("0", label.GetValueOrDefault("flex-shrink"), "The label must keep its width"); + Assert.AreEqual("0", value.GetValueOrDefault("min-width"), "The value group must be allowed to shrink"); + Assert.AreEqual("end", value.GetValueOrDefault("text-align"), "The value group must sit at the end of the line"); + } + + /// + /// Verify the detail content cell is a block below 960 px only, with the selector specific enough to beat the card cell rule + /// + [TestMethod] + [TestCategory("AC8")] + public void AppStylesheetVulnerabilitiesDetailContentIsBlockBelow960Pixels() + { + const string selector = ".vulnerabilities-table .mud-table-body .mud-table-cell.vulnerabilities-table__detail-content"; + + var rules = GetEntries().Where(rule => rule.Entry == selector).ToList(); + + Assert.IsNotEmpty(rules, "A rule with the four-class selector must exist"); + Assert.IsTrue(rules.All(rule => rule.Context == CardContext), "The rule must apply below 960 px only"); + Assert.AreEqual("block", GetCardDeclarations(selector).GetValueOrDefault("display"), "The detail content must be a block"); + } + #endregion // Methods #region Helper methods @@ -134,6 +168,26 @@ private static Dictionary GetDeclarations(Func mat return merged; } + /// + /// Merge the declarations of the rules with exactly the given selector entry inside the card media query + /// + /// Selector entry + /// Property name to value, later rules winning + private static Dictionary GetCardDeclarations(string selector) + { + var merged = new Dictionary(); + + foreach (var rule in GetEntries().Where(rule => rule.Context == CardContext && rule.Entry == selector)) + { + foreach (var (name, value) in StylesheetReader.GetDeclarationList(rule.Body)) + { + merged[name] = value; + } + } + + return merged; + } + /// /// Read every selector of every rule of the stylesheet, in every media context /// diff --git a/src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesRenderTests.cs b/src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesRenderTests.cs index 1b84dd61..f0251a2f 100644 --- a/src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesRenderTests.cs +++ b/src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesRenderTests.cs @@ -539,12 +539,79 @@ public async Task VulnerabilitiesRendersCardLayoutBreakpointWithExpandButton() { var page = RenderPage(testContext, CreateItems(3)); - Assert.IsNotEmpty(page.FindAll(".vulnerabilities-table.mud-md-table"), "The table must use the medium card breakpoint (class mud-md-table)"); - Assert.IsEmpty(page.FindAll(".mud-sm-table"), "The table must not use the small breakpoint"); + Assert.IsNotEmpty(page.FindAll(".vulnerabilities-table.mud-sm-table"), "The table must use the small card breakpoint (class mud-sm-table)"); + Assert.IsEmpty(page.FindAll(".mud-md-table"), "The table must not use the medium breakpoint"); Assert.HasCount(3, page.FindAll("tr td .vulnerabilities-table__expand"), "Every row must hold its expand button in a cell"); } } + /// + /// Verify the advisory and severity cells group their contents in one value element + /// + /// Task + [TestMethod] + [TestCategory("AC8")] + public async Task VulnerabilitiesAdvisoryAndSeverityCellsGroupTheirValues() + { + var testContext = BlazorTestContextFactory.Create(); + + await using (testContext) + { + var item = new VulnerabilityOverviewItemData + { + AdvisoryId = "CVE-2026-9101", + Title = "Long title", + Severity = "Critical", + CvssScore = 9.8m, + ReferenceUrl = "https://example.com/CVE-2026-9101" + }; + + var page = RenderPage(testContext, [item]); + + var advisory = page.FindAll("td[data-label='Advisory'] div.vulnerabilities-table__value"); + var severity = page.FindAll("td[data-label='Severity'] div.vulnerabilities-table__value"); + + Assert.HasCount(1, advisory, "The advisory cell must hold one value group"); + Assert.HasCount(1, severity, "The severity cell must hold one value group"); + Assert.IsNotNull(advisory[0].QuerySelector("a.table-link"), "The advisory group must hold the link"); + Assert.AreEqual("Long title", advisory[0].QuerySelector(".table-secondary")?.TextContent.Trim(), "The advisory group must hold the title"); + Assert.IsNotNull(severity[0].QuerySelector(".dug-chip"), "The severity group must hold the chip"); + Assert.AreEqual("CVSS 9.8", severity[0].QuerySelector(".table-secondary")?.TextContent.Trim(), "The severity group must hold the CVSS line"); + Assert.IsEmpty(page.FindAll("td[data-label='Package'] div.vulnerabilities-table__value"), "Other cells must not get a value group"); + } + } + + /// + /// Verify the content cell of an expanded detail carries the block class + /// + /// Task + [TestMethod] + [TestCategory("AC8")] + public async Task VulnerabilitiesExpandedDetailContentCellCarriesBlockClass() + { + var testContext = BlazorTestContextFactory.Create(); + + await using (testContext) + { + var item = new VulnerabilityOverviewItemData + { + AdvisoryId = "CVE-2026-9102", + Severity = "Low", + AffectedImages = [CreateImage(Guid.NewGuid(), false)] + }; + + var page = RenderPage(testContext, [item]); + + await page.Find(ExpandButton).ClickAsync().ConfigureAwait(false); + + var content = page.Find("tr.vulnerabilities-table__detail td.vulnerabilities-table__detail-content"); + + Assert.AreEqual("6", content.GetAttribute("colspan"), "The content cell must span six columns"); + Assert.IsFalse(page.Find("td.vulnerabilities-table__detail-spacer").ClassList.Contains("vulnerabilities-table__detail-content"), "The spacer must not carry the content class"); + Assert.AreEqual("Affected images", content.QuerySelector(".table-secondary")?.TextContent.Trim(), "The content cell must hold the detail label"); + } + } + #endregion // Methods #region Static methods From e15b619b037aea546f8be15b3e8487e344a66839 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:57:32 +0000 Subject: [PATCH 20/34] G3 implementation --- docs/areas/list-pages.md | 3 +- .../log.md | 2 + .../Components/Pages/Vulnerabilities.razor | 42 ++++++++++--------- src/DockerUpdateGuard/wwwroot/app.css | 18 ++++++++ 4 files changed, 45 insertions(+), 20 deletions(-) diff --git a/docs/areas/list-pages.md b/docs/areas/list-pages.md index b763c4a6..7ba0b89b 100644 --- a/docs/areas/list-pages.md +++ b/docs/areas/list-pages.md @@ -51,7 +51,8 @@ over the severities and to find the ones that matter. ### Layout - Below 960 px each row is a card that keeps its expand button, and the filter field and the severity select each - take the full width of the panel header. From 960 px the field is 260 px and the select 150 px wide. + take the full width of the panel header. Long values, such as a package name or an image reference, wrap + inside the card instead of widening it. From 960 px the field is 260 px and the select 150 px wide. ## Limits and errors diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 803d7ef6..a4eddd09 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -26,3 +26,5 @@ are quoted in full. | 2026-12-01 18:52 | 7 Decide (manual test) | Lead | RESULT: DECIDED — task group G3 (Breakpoint.Sm; page-scoped card rules min-width 0 / overflow-wrap anywhere; value groups; detail content cell block below 960 px); no criterion changes; follow-up issue proposed for the shared card layout (opus/medium · 83,351 tokens · 22 tool uses · 213 s · 26 in · 22,447 out · 736,892 cache read · 67,982 cache write · 468,166 weighted) | | 2026-12-01 18:52 | 4 Skeleton skipped (G3) | Orchestrator | skipped — plan.md G3 adds no API (markup and stylesheet only) | | 2026-12-01 18:55 | 5 Tests first (G3) | Tester | 5 AC8 card-layout tests (4 new, 1 adapted); I confirmed all 5 fail on current code, 22 others pass. Deferred: none (sonnet/medium · 11,246 tokens · 4 tool uses · 140 s · 10 in · 5,087 out · 576,124 cache read · 198,608 cache write · 331,317 weighted · continued from 5 Tests first (G1)) | +| 2026-12-01 18:57 | 6 Implement (G3) | Dev | Breakpoint.Sm, value groups, detail content cell, four card rules in the 960 px media query; list-pages card bullet; Format/Build/Analyzer/full suite (2980+39) pass; browser check at 390 px not done (sonnet/medium · 10,415 tokens · 5 tool uses · 123 s · 12 in · 3,542 out · 703,861 cache read · 116,190 cache write · 233,346 weighted · continued) | +| 2026-12-01 18:57 | 6 Documentation | Orchestrator | written in 6 Implement (G3) | diff --git a/src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor b/src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor index 99515fc0..1fb1e48e 100644 --- a/src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor +++ b/src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor @@ -64,7 +64,7 @@ @@ -86,25 +86,29 @@ OnClick="@(() => ToggleExpanded(context))" /> - @if (string.IsNullOrWhiteSpace(context.ReferenceUrl) == false) - { - @context.AdvisoryId - } - else - { - @context.AdvisoryId - } - @if (string.IsNullOrWhiteSpace(context.Title) == false) - { - @context.Title - } +
+ @if (string.IsNullOrWhiteSpace(context.ReferenceUrl) == false) + { + @context.AdvisoryId + } + else + { + @context.AdvisoryId + } + @if (string.IsNullOrWhiteSpace(context.Title) == false) + { + @context.Title + } +
- - @if (context.CvssScore.HasValue) - { - CVSS @context.CvssScore.Value.ToString("F1") - } +
+ + @if (context.CvssScore.HasValue) + { + CVSS @context.CvssScore.Value.ToString("F1") + } +
@(context.AffectedPackages.Count == 0 ? "—" : string.Join(", ", context.AffectedPackages)) @(context.FixedVersions.Count == 0 ? "—" : string.Join(", ", context.FixedVersions)) @@ -116,7 +120,7 @@ { - + Affected images @foreach (var affectedImage in context.AffectedImages) diff --git a/src/DockerUpdateGuard/wwwroot/app.css b/src/DockerUpdateGuard/wwwroot/app.css index ddd4b6fc..c91425c2 100644 --- a/src/DockerUpdateGuard/wwwroot/app.css +++ b/src/DockerUpdateGuard/wwwroot/app.css @@ -1073,6 +1073,24 @@ a { .vulnerabilities-table .mud-table-body .vulnerabilities-table__detail-spacer { display: none; } + + .vulnerabilities-table .mud-table-body .mud-table-cell { + min-width: 0; + overflow-wrap: anywhere; + } + + .vulnerabilities-table .mud-table-body .mud-table-cell::before { + flex-shrink: 0; + } + + .vulnerabilities-table .mud-table-body .vulnerabilities-table__value { + min-width: 0; + text-align: end; + } + + .vulnerabilities-table .mud-table-body .mud-table-cell.vulnerabilities-table__detail-content { + display: block; + } } .dug-pager { From 48e50aea60efd4fe787728c8ff1c757994e4c5a7 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:57:39 +0000 Subject: [PATCH 21/34] Log coverage skip --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index a4eddd09..421d3672 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -28,3 +28,4 @@ are quoted in full. | 2026-12-01 18:55 | 5 Tests first (G3) | Tester | 5 AC8 card-layout tests (4 new, 1 adapted); I confirmed all 5 fail on current code, 22 others pass. Deferred: none (sonnet/medium · 11,246 tokens · 4 tool uses · 140 s · 10 in · 5,087 out · 576,124 cache read · 198,608 cache write · 331,317 weighted · continued from 5 Tests first (G1)) | | 2026-12-01 18:57 | 6 Implement (G3) | Dev | Breakpoint.Sm, value groups, detail content cell, four card rules in the 960 px media query; list-pages card bullet; Format/Build/Analyzer/full suite (2980+39) pass; browser check at 390 px not done (sonnet/medium · 10,415 tokens · 5 tool uses · 123 s · 12 in · 3,542 out · 703,861 cache read · 116,190 cache write · 233,346 weighted · continued) | | 2026-12-01 18:57 | 6 Documentation | Orchestrator | written in 6 Implement (G3) | +| 2026-12-01 18:57 | 6 Coverage skipped (G3) | Orchestrator | skipped — G3 changes markup classes and CSS only, no new lines or branches; the step-7 stamp runs Test with coverage and the Coverage gate | From 6be3fa0df113821a098f978234c969c6cbdddfd3 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 18:59:02 +0000 Subject: [PATCH 22/34] Gate stamp --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 421d3672..b533f0a8 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -29,3 +29,4 @@ are quoted in full. | 2026-12-01 18:57 | 6 Implement (G3) | Dev | Breakpoint.Sm, value groups, detail content cell, four card rules in the 960 px media query; list-pages card bullet; Format/Build/Analyzer/full suite (2980+39) pass; browser check at 390 px not done (sonnet/medium · 10,415 tokens · 5 tool uses · 123 s · 12 in · 3,542 out · 703,861 cache read · 116,190 cache write · 233,346 weighted · continued) | | 2026-12-01 18:57 | 6 Documentation | Orchestrator | written in 6 Implement (G3) | | 2026-12-01 18:57 | 6 Coverage skipped (G3) | Orchestrator | skipped — G3 changes markup classes and CSS only, no new lines or branches; the step-7 stamp runs Test with coverage and the Coverage gate | +| 2026-12-01 18:58 | 7 Gate stamp | Orchestrator | PASS on 48e50aea60efd4fe787728c8ff1c757994e4c5a7 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 22 hit(s) | From 6ef6cbed94efe3c05d36fa6c0ac785b85cb682fa Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:04:54 +0000 Subject: [PATCH 23/34] Manual test pass --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + specs/feature-457-vulnerabilities-severity-bar/tasks.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index b533f0a8..544d6338 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -30,3 +30,4 @@ are quoted in full. | 2026-12-01 18:57 | 6 Documentation | Orchestrator | written in 6 Implement (G3) | | 2026-12-01 18:57 | 6 Coverage skipped (G3) | Orchestrator | skipped — G3 changes markup classes and CSS only, no new lines or branches; the step-7 stamp runs Test with coverage and the Coverage gate | | 2026-12-01 18:58 | 7 Gate stamp | Orchestrator | PASS on 48e50aea60efd4fe787728c8ff1c757994e4c5a7 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 22 hit(s) | +| 2026-12-01 19:04 | 7 Manual test | Product Manager | PASS AC8 at 390, 768 and 1280 px (rerun on stamped head 48e50aea60ef) | diff --git a/specs/feature-457-vulnerabilities-severity-bar/tasks.md b/specs/feature-457-vulnerabilities-severity-bar/tasks.md index bfefbbfc..b54dfb49 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/tasks.md +++ b/specs/feature-457-vulnerabilities-severity-bar/tasks.md @@ -16,4 +16,4 @@ Plan: [plan.md](plan.md) | 10 | G3 | Tests first: the G3 rows of AC8 in *Tests per criterion*; adapt `VulnerabilitiesRendersCardLayoutBreakpointWithExpandButton` to `mud-sm-table` | src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs, src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesRenderTests.cs | AC8 | 9 | Tester | [ ] | | 11 | G3 | Implement *Card layout*: `Breakpoint.Sm`, the two value groups, the detail content class, the four card rules | src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor, src/DockerUpdateGuard/wwwroot/app.css | AC8 | 10 | Dev | [ ] | | 12 | G3 | Documentation: the card bullet of `list-pages.md` (long values wrap inside the card) | docs/areas/list-pages.md | AC9 | 11 | Dev | [ ] | -| 13 | PM | Manual check of AC8 again at 390, 768 and 1280 px, one row with the long package expanded, after the new gate stamp | — | AC8 | 12 | Product Manager | [ ] | \ No newline at end of file +| 13 | PM | Manual check of AC8 again at 390, 768 and 1280 px, one row with the long package expanded, after the new gate stamp | — | AC8 | 12 | Product Manager | [x] | \ No newline at end of file From 7441eded4e98fefcbebdeb6721e601fea46febb1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:07:44 +0000 Subject: [PATCH 24/34] Review round 1 --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 544d6338..0c3301f1 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -31,3 +31,4 @@ are quoted in full. | 2026-12-01 18:57 | 6 Coverage skipped (G3) | Orchestrator | skipped — G3 changes markup classes and CSS only, no new lines or branches; the step-7 stamp runs Test with coverage and the Coverage gate | | 2026-12-01 18:58 | 7 Gate stamp | Orchestrator | PASS on 48e50aea60efd4fe787728c8ff1c757994e4c5a7 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 22 hit(s) | | 2026-12-01 19:04 | 7 Manual test | Product Manager | PASS AC8 at 390, 768 and 1280 px (rerun on stamped head 48e50aea60ef) | +| 2026-12-01 19:07 | 8 Review | Reviewer | VERDICT: BLOCKING 1 \| NON-BLOCKING 2 on 48e50aea60efd4fe787728c8ff1c757994e4c5a7. Blocking: web-ui.md:318 still says only the Vulnerabilities page is paged (findings tables of detail pages are too). Non-blocking: .dug-pager__button:disabled color overridden by MudBlazor (needs !important); decision 0084 area should be List pages (opus/medium · 111,548 tokens · 29 tool uses · 160 s · 56 in · 16,025 out · 2,207,607 cache read · 108,321 cache write · 651,925 weighted) | From 9f100ca4af73bf5f0a8247ceaff6f058ed9c48c0 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:08:11 +0000 Subject: [PATCH 25/34] Review round 1 verbatim documentation fixes --- docs/areas/web-ui.md | 3 ++- ...pages-its-advisories-itself-and-draws-its-own-pager.md | 2 +- specs/feature-457-vulnerabilities-severity-bar/tasks.md | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/areas/web-ui.md b/docs/areas/web-ui.md index 408642af..d7da12d0 100644 --- a/docs/areas/web-ui.md +++ b/docs/areas/web-ui.md @@ -315,7 +315,8 @@ never their values. the latest-scan columns and the detail pages. - If the connection to the server is lost, the page stops being interactive until the browser reconnects or the page is reloaded. -- Lists are not paged except the Vulnerabilities page ([List pages](list-pages.md)); all other lists show every item or the fixed number stated +- Lists are not paged except the Vulnerabilities page ([List pages](list-pages.md)) and the vulnerability findings tables of the detail + pages (25 rows per page, page sizes 25, 50 and 100, a pager above 25 findings); all other lists show every item or the fixed number stated above. ## Related decisions diff --git a/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md b/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md index 049664d7..e2e74b5d 100644 --- a/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md +++ b/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md @@ -2,7 +2,7 @@ - **Status:** Proposed - **Date:** 2026-12-01 -- **Area:** Web UI +- **Area:** List pages - **Source:** Issue #457 - **Supersedes:** — diff --git a/specs/feature-457-vulnerabilities-severity-bar/tasks.md b/specs/feature-457-vulnerabilities-severity-bar/tasks.md index b54dfb49..50a0fa8a 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/tasks.md +++ b/specs/feature-457-vulnerabilities-severity-bar/tasks.md @@ -12,8 +12,8 @@ Plan: [plan.md](plan.md) | 6 | G2 | Rework the page (header, panel, table, detail, paging, pager), remove rails and `GetSeverityColor`, add the page and pager CSS | src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor, src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor.cs, src/DockerUpdateGuard/UI/VulnerabilityDisplayFormatter.cs, src/DockerUpdateGuard/wwwroot/app.css | AC1–AC8 | 5 | Dev | [x] | | 7 | G2 | Documentation: `list-pages.md` (new), `web-ui.md`, areas index, `ARCHITECTURE.md` §9 as *Documentation updates* | docs/areas/list-pages.md, docs/areas/web-ui.md, docs/areas/README.md, docs/ARCHITECTURE.md | AC9 | 6 | Dev | [x] | | 8 | PM | Manual check of AC8 at 390, 768 and 1280 px on a local run of the branch head | — | AC8 | 6 | Product Manager | [x] | -| 9 | G3 | Skeleton: skipped — no new API (markup classes and CSS only) | — | AC8 | 8 | Dev | [ ] | -| 10 | G3 | Tests first: the G3 rows of AC8 in *Tests per criterion*; adapt `VulnerabilitiesRendersCardLayoutBreakpointWithExpandButton` to `mud-sm-table` | src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs, src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesRenderTests.cs | AC8 | 9 | Tester | [ ] | -| 11 | G3 | Implement *Card layout*: `Breakpoint.Sm`, the two value groups, the detail content class, the four card rules | src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor, src/DockerUpdateGuard/wwwroot/app.css | AC8 | 10 | Dev | [ ] | -| 12 | G3 | Documentation: the card bullet of `list-pages.md` (long values wrap inside the card) | docs/areas/list-pages.md | AC9 | 11 | Dev | [ ] | +| 9 | G3 | Skeleton: skipped — no new API (markup classes and CSS only) | — | AC8 | 8 | Dev | [x] | +| 10 | G3 | Tests first: the G3 rows of AC8 in *Tests per criterion*; adapt `VulnerabilitiesRendersCardLayoutBreakpointWithExpandButton` to `mud-sm-table` | src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs, src/Tests/DockerUpdateGuard.Tests/VulnerabilitiesRenderTests.cs | AC8 | 9 | Tester | [x] | +| 11 | G3 | Implement *Card layout*: `Breakpoint.Sm`, the two value groups, the detail content class, the four card rules | src/DockerUpdateGuard/Components/Pages/Vulnerabilities.razor, src/DockerUpdateGuard/wwwroot/app.css | AC8 | 10 | Dev | [x] | +| 12 | G3 | Documentation: the card bullet of `list-pages.md` (long values wrap inside the card) | docs/areas/list-pages.md | AC9 | 11 | Dev | [x] | | 13 | PM | Manual check of AC8 again at 390, 768 and 1280 px, one row with the long package expanded, after the new gate stamp | — | AC8 | 12 | Product Manager | [x] | \ No newline at end of file From 5a15be5b8f5611bc80ab91562c33394a7cd645c1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:08:28 +0000 Subject: [PATCH 26/34] Log verbatim fixes --- specs/feature-457-vulnerabilities-severity-bar/log.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 0c3301f1..ba280b0c 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -32,3 +32,5 @@ are quoted in full. | 2026-12-01 18:58 | 7 Gate stamp | Orchestrator | PASS on 48e50aea60efd4fe787728c8ff1c757994e4c5a7 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 22 hit(s) | | 2026-12-01 19:04 | 7 Manual test | Product Manager | PASS AC8 at 390, 768 and 1280 px (rerun on stamped head 48e50aea60ef) | | 2026-12-01 19:07 | 8 Review | Reviewer | VERDICT: BLOCKING 1 \| NON-BLOCKING 2 on 48e50aea60efd4fe787728c8ff1c757994e4c5a7. Blocking: web-ui.md:318 still says only the Vulnerabilities page is paged (findings tables of detail pages are too). Non-blocking: .dug-pager__button:disabled color overridden by MudBlazor (needs !important); decision 0084 area should be List pages (opus/medium · 111,548 tokens · 29 tool uses · 160 s · 56 in · 16,025 out · 2,207,607 cache read · 108,321 cache write · 651,925 weighted) | +| 2026-12-01 19:08 | 7 Gate stamp | Orchestrator | PASS on 9f100ca4af73bf5f0a8247ceaff6f058ed9c48c0 (tier standard, verbatim): Format check pass; decision-check.py pass; scope-check.py pass | +| 2026-12-01 19:08 | 8 Verbatim fix | Orchestrator | verbatim: [BLOCKING, verbatim] docs/areas/web-ui.md:318 (rewrapped); [NON-BLOCKING, verbatim] docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md:5 — commit 9f100ca | From 5ac30b3c2424275c1b5b5af41802861a239b5555 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:09:05 +0000 Subject: [PATCH 27/34] Review decision --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index ba280b0c..7127cbd2 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -34,3 +34,4 @@ are quoted in full. | 2026-12-01 19:07 | 8 Review | Reviewer | VERDICT: BLOCKING 1 \| NON-BLOCKING 2 on 48e50aea60efd4fe787728c8ff1c757994e4c5a7. Blocking: web-ui.md:318 still says only the Vulnerabilities page is paged (findings tables of detail pages are too). Non-blocking: .dug-pager__button:disabled color overridden by MudBlazor (needs !important); decision 0084 area should be List pages (opus/medium · 111,548 tokens · 29 tool uses · 160 s · 56 in · 16,025 out · 2,207,607 cache read · 108,321 cache write · 651,925 weighted) | | 2026-12-01 19:08 | 7 Gate stamp | Orchestrator | PASS on 9f100ca4af73bf5f0a8247ceaff6f058ed9c48c0 (tier standard, verbatim): Format check pass; decision-check.py pass; scope-check.py pass | | 2026-12-01 19:08 | 8 Verbatim fix | Orchestrator | verbatim: [BLOCKING, verbatim] docs/areas/web-ui.md:318 (rewrapped); [NON-BLOCKING, verbatim] docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md:5 — commit 9f100ca | +| 2026-12-01 19:09 | 8 Decide | Lead | RESULT: DECIDED — fix now: .dug-pager__button:disabled color gets !important. FIX: Dev — app.css line 1125; FIX: Tester — keep/adapt the assertion in AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels (opus/medium · 33,684 tokens · 8 tool uses · 26 s · 10 in · 2,589 out · 118,996 cache read · 32,288 cache write · 118,530 weighted) | From a1675c975d4f8be51836eff7b6bf9306046c2896 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:10:56 +0000 Subject: [PATCH 28/34] Pager disabled color important --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + src/DockerUpdateGuard/wwwroot/app.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 7127cbd2..1454404b 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -35,3 +35,4 @@ are quoted in full. | 2026-12-01 19:08 | 7 Gate stamp | Orchestrator | PASS on 9f100ca4af73bf5f0a8247ceaff6f058ed9c48c0 (tier standard, verbatim): Format check pass; decision-check.py pass; scope-check.py pass | | 2026-12-01 19:08 | 8 Verbatim fix | Orchestrator | verbatim: [BLOCKING, verbatim] docs/areas/web-ui.md:318 (rewrapped); [NON-BLOCKING, verbatim] docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md:5 — commit 9f100ca | | 2026-12-01 19:09 | 8 Decide | Lead | RESULT: DECIDED — fix now: .dug-pager__button:disabled color gets !important. FIX: Dev — app.css line 1125; FIX: Tester — keep/adapt the assertion in AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels (opus/medium · 33,684 tokens · 8 tool uses · 26 s · 10 in · 2,589 out · 118,996 cache read · 32,288 cache write · 118,530 weighted) | +| 2026-12-01 19:10 | 8 Fix | Dev | app.css .dug-pager__button:disabled color now !important; Format/Build clean; AppStylesheet tests 181 pass, 1 fails (ButtonsAreFortyFourPixels expects the value without !important) — Lead named the Tester for that (sonnet/medium · 1,537 tokens · 2 tool uses · 102 s · 6 in · 856 out · 224,621 cache read · 115,477 cache write · 171,094 weighted · continued) | diff --git a/src/DockerUpdateGuard/wwwroot/app.css b/src/DockerUpdateGuard/wwwroot/app.css index c91425c2..0f7dd796 100644 --- a/src/DockerUpdateGuard/wwwroot/app.css +++ b/src/DockerUpdateGuard/wwwroot/app.css @@ -1122,7 +1122,7 @@ a { } .dug-pager__button:disabled { - color: var(--dug-text-muted); + color: var(--dug-text-muted) !important; border: 1px solid var(--dug-border); } From 0e51a95a800c34e7b3308b6fc2ac2c5d09a71f1a Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:12:23 +0000 Subject: [PATCH 29/34] Adapt pager color test --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + .../AppStylesheetVulnerabilitiesTests.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 1454404b..f218c59d 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -36,3 +36,4 @@ are quoted in full. | 2026-12-01 19:08 | 8 Verbatim fix | Orchestrator | verbatim: [BLOCKING, verbatim] docs/areas/web-ui.md:318 (rewrapped); [NON-BLOCKING, verbatim] docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md:5 — commit 9f100ca | | 2026-12-01 19:09 | 8 Decide | Lead | RESULT: DECIDED — fix now: .dug-pager__button:disabled color gets !important. FIX: Dev — app.css line 1125; FIX: Tester — keep/adapt the assertion in AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels (opus/medium · 33,684 tokens · 8 tool uses · 26 s · 10 in · 2,589 out · 118,996 cache read · 32,288 cache write · 118,530 weighted) | | 2026-12-01 19:10 | 8 Fix | Dev | app.css .dug-pager__button:disabled color now !important; Format/Build clean; AppStylesheet tests 181 pass, 1 fails (ButtonsAreFortyFourPixels expects the value without !important) — Lead named the Tester for that (sonnet/medium · 1,537 tokens · 2 tool uses · 102 s · 6 in · 856 out · 224,621 cache read · 115,477 cache write · 171,094 weighted · continued) | +| 2026-12-01 19:12 | 8 Fix tests | Tester | ButtonsAreFortyFourPixels now expects var(--dug-text-muted) !important; AppStylesheetVulnerabilitiesTests 7 pass, full suite 2980+39 pass (sonnet/medium · 2,134 tokens · 3 tool uses · 80 s · 8 in · 1,120 out · 271,953 cache read · 58,667 cache write · 106,137 weighted · continued) | diff --git a/src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs b/src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs index 37fe663a..dbc95a23 100644 --- a/src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs +++ b/src/Tests/DockerUpdateGuard.Tests/AppStylesheetVulnerabilitiesTests.cs @@ -106,7 +106,7 @@ public void AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels() Assert.IsTrue(expand.GetValueOrDefault("width", "44px") == "44px" && expand.GetValueOrDefault("height", "44px") == "44px", "The expand rule must not shrink the button"); Assert.AreEqual("none", expand.GetValueOrDefault("border"), "The expand button must have no border"); Assert.AreEqual("44px", select.GetValueOrDefault("height"), "The page size select must be 44 px high"); - Assert.AreEqual("var(--dug-text-muted)", disabled.GetValueOrDefault("color"), "A disabled pager button must be muted"); + Assert.AreEqual("var(--dug-text-muted) !important", disabled.GetValueOrDefault("color"), "A disabled pager button must be muted and the override must stay important"); Assert.IsTrue(disabled.GetValueOrDefault("border", string.Empty).StartsWith("1px", StringComparison.Ordinal), "A disabled pager button must keep its 1 px border"); } From 6ead54253a21952ff033a3ad4d842c68786fd189 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:13:51 +0000 Subject: [PATCH 30/34] Gate stamp --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index f218c59d..2236eae3 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -37,3 +37,4 @@ are quoted in full. | 2026-12-01 19:09 | 8 Decide | Lead | RESULT: DECIDED — fix now: .dug-pager__button:disabled color gets !important. FIX: Dev — app.css line 1125; FIX: Tester — keep/adapt the assertion in AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels (opus/medium · 33,684 tokens · 8 tool uses · 26 s · 10 in · 2,589 out · 118,996 cache read · 32,288 cache write · 118,530 weighted) | | 2026-12-01 19:10 | 8 Fix | Dev | app.css .dug-pager__button:disabled color now !important; Format/Build clean; AppStylesheet tests 181 pass, 1 fails (ButtonsAreFortyFourPixels expects the value without !important) — Lead named the Tester for that (sonnet/medium · 1,537 tokens · 2 tool uses · 102 s · 6 in · 856 out · 224,621 cache read · 115,477 cache write · 171,094 weighted · continued) | | 2026-12-01 19:12 | 8 Fix tests | Tester | ButtonsAreFortyFourPixels now expects var(--dug-text-muted) !important; AppStylesheetVulnerabilitiesTests 7 pass, full suite 2980+39 pass (sonnet/medium · 2,134 tokens · 3 tool uses · 80 s · 8 in · 1,120 out · 271,953 cache read · 58,667 cache write · 106,137 weighted · continued) | +| 2026-12-01 19:13 | 7 Gate stamp | Orchestrator | PASS on 0e51a95a800c34e7b3308b6fc2ac2c5d09a71f1a (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 23 hit(s) | From 094139397ca056364a8605886958fcdf83b36cce Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:14:14 +0000 Subject: [PATCH 31/34] Delta review approved --- specs/feature-457-vulnerabilities-severity-bar/log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 2236eae3..4e599074 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -38,3 +38,4 @@ are quoted in full. | 2026-12-01 19:10 | 8 Fix | Dev | app.css .dug-pager__button:disabled color now !important; Format/Build clean; AppStylesheet tests 181 pass, 1 fails (ButtonsAreFortyFourPixels expects the value without !important) — Lead named the Tester for that (sonnet/medium · 1,537 tokens · 2 tool uses · 102 s · 6 in · 856 out · 224,621 cache read · 115,477 cache write · 171,094 weighted · continued) | | 2026-12-01 19:12 | 8 Fix tests | Tester | ButtonsAreFortyFourPixels now expects var(--dug-text-muted) !important; AppStylesheetVulnerabilitiesTests 7 pass, full suite 2980+39 pass (sonnet/medium · 2,134 tokens · 3 tool uses · 80 s · 8 in · 1,120 out · 271,953 cache read · 58,667 cache write · 106,137 weighted · continued) | | 2026-12-01 19:13 | 7 Gate stamp | Orchestrator | PASS on 0e51a95a800c34e7b3308b6fc2ac2c5d09a71f1a (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 23 hit(s) | +| 2026-12-01 19:14 | 8 Review delta | Reviewer | VERDICT: APPROVE on 0e51a95a800c34e7b3308b6fc2ac2c5d09a71f1a. All three round-1 findings fixed, no new defect (opus/medium · 4,768 tokens · 3 tool uses · 14 s · 8 in · 1,296 out · 226,752 cache read · 115,456 cache write · 324,291 weighted · continued) | From 85910756cadb4b9e1b35e0375e345c29070d500b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:14:25 +0000 Subject: [PATCH 32/34] Accept decision 0084 --- ...-page-pages-its-advisories-itself-and-draws-its-own-pager.md | 2 +- docs/decisions/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md b/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md index e2e74b5d..b4b660c7 100644 --- a/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md +++ b/docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md @@ -1,6 +1,6 @@ # 0084: The Vulnerabilities page pages its advisories itself and draws its own pager -- **Status:** Proposed +- **Status:** Accepted - **Date:** 2026-12-01 - **Area:** List pages - **Source:** Issue #457 diff --git a/docs/decisions/README.md b/docs/decisions/README.md index 65e3b5ff..af1b2319 100644 --- a/docs/decisions/README.md +++ b/docs/decisions/README.md @@ -149,5 +149,5 @@ once in the [area document](../areas/README.md) of the record's area, and the re | [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 | | [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 | Proposed | 2026-12-01 | +| [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 | From 3395e09990d45a848ac9ec25724e6f0d0382e64e Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:14:42 +0000 Subject: [PATCH 33/34] PR approval --- specs/feature-457-vulnerabilities-severity-bar/log.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md index 4e599074..b9f73835 100644 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ b/specs/feature-457-vulnerabilities-severity-bar/log.md @@ -39,3 +39,5 @@ are quoted in full. | 2026-12-01 19:12 | 8 Fix tests | Tester | ButtonsAreFortyFourPixels now expects var(--dug-text-muted) !important; AppStylesheetVulnerabilitiesTests 7 pass, full suite 2980+39 pass (sonnet/medium · 2,134 tokens · 3 tool uses · 80 s · 8 in · 1,120 out · 271,953 cache read · 58,667 cache write · 106,137 weighted · continued) | | 2026-12-01 19:13 | 7 Gate stamp | Orchestrator | PASS on 0e51a95a800c34e7b3308b6fc2ac2c5d09a71f1a (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 23 hit(s) | | 2026-12-01 19:14 | 8 Review delta | Reviewer | VERDICT: APPROVE on 0e51a95a800c34e7b3308b6fc2ac2c5d09a71f1a. All three round-1 findings fixed, no new defect (opus/medium · 4,768 tokens · 3 tool uses · 14 s · 8 in · 1,296 out · 226,752 cache read · 115,456 cache write · 324,291 weighted · continued) | +| 2026-12-01 19:14 | 7 Gate stamp | Orchestrator | PASS on 85910756cadb4b9e1b35e0375e345c29070d500b (tier standard, verbatim): Format check pass; decision-check.py pass; scope-check.py pass | +| 2026-12-01 19:14 | 9 PR approval | Orchestrator | approved by checklist | From 8fb6510faf53a2d94b78eb7ec093c87950eac200 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 19:15:06 +0000 Subject: [PATCH 34/34] Remove squad working record --- .../log.md | 43 --- .../plan.md | 259 ------------------ .../spec.md | 155 ----------- .../tasks.md | 19 -- 4 files changed, 476 deletions(-) delete mode 100644 specs/feature-457-vulnerabilities-severity-bar/log.md delete mode 100644 specs/feature-457-vulnerabilities-severity-bar/plan.md delete mode 100644 specs/feature-457-vulnerabilities-severity-bar/spec.md delete mode 100644 specs/feature-457-vulnerabilities-severity-bar/tasks.md diff --git a/specs/feature-457-vulnerabilities-severity-bar/log.md b/specs/feature-457-vulnerabilities-severity-bar/log.md deleted file mode 100644 index b9f73835..00000000 --- a/specs/feature-457-vulnerabilities-severity-bar/log.md +++ /dev/null @@ -1,43 +0,0 @@ -# Log: Feature 457 – Vulnerabilities page with a severity bar - -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 17:50 | 1 Intake | Orchestrator | Issue 457 (feature, open, deps 451/452 closed); branch claude/amazing-gauss-vu2l8l off main 6d0ff4f | -| 2026-12-01 17:52 | 2a Spec | Lead | RESULT: DONE. spec.md written (AC1-AC9), no security area, no open questions (opus/medium · 64,550 tokens · 20 tool uses · 114 s · 40 in · 11,218 out · 954,758 cache read · 50,709 cache write · 334,508 weighted) | -| 2026-12-01 17:54 | 2a Spec challenge | Devil's Advocate | VERDICT: OBJECTIONS 0 major, 6 minor. Minors: NotSet chip text; SectionPanel header cannot hold count/bar (14 users); pager first/last buttons; filter on later page; AC8 browser-only; dead GetSeverityColor helper and AC9 wording (opus/medium · 63,886 tokens · 18 tool uses · 107 s · 34 in · 10,589 out · 729,178 cache read · 53,194 cache write · 311,861 weighted) | -| 2026-12-01 17:54 | 2a Challenge notes | Orchestrator | minor objections appended verbatim to spec.md | -| 2026-12-01 18:02 | 2b Plan | Lead | RESULT: DONE. Tier standard, no security area; spec approved by Lead; groups G1, G2, PM; decision record 0084 (opus/medium · 98,837 tokens · 51 tool uses · 499 s · 102 in · 51,569 out · 5,634,928 cache read · 98,130 cache write · 1,324,712 weighted · continued) | -| 2026-12-01 18:04 | 2b Plan challenge | Devil's Advocate | VERDICT: OBJECTIONS 0 major, 1 minor. Page-size select must show the current size after the pager reappears (opus/medium · 69,771 tokens · 13 tool uses · 82 s · 26 in · 8,264 out · 628,730 cache read · 61,169 cache write · 298,488 weighted) | -| 2026-12-01 18:04 | 2b Challenge notes | Orchestrator | minor objection appended verbatim to plan.md | -| 2026-12-01 18:06 | 4 Skeleton (G1) | Dev | SectionPanel.TitleContent/SubtitleContent, VulnerabilityOverviewFormatter, TablePagingFormatter skeletons; Format 0 files, Release build 0 warnings, no pragmas, no deviations (sonnet/medium · 85,023 tokens · 5 tool uses · 122 s · 10 in · 2,911 out · 378,974 cache read · 29,408 cache write · 89,222 weighted) | -| 2026-12-01 18:09 | 5 Tests first (G1) | Tester | Tests for SectionPanel fragments, VulnerabilityOverviewFormatter, TablePagingFormatter; I confirmed 29 new tests fail on the skeleton, 4 existing pass. Deferred: SectionPanelWithoutTitleFragmentsRendersHeadingAlone (sonnet/medium · 114,327 tokens · 13 tool uses · 138 s · 24 in · 9,526 out · 1,116,606 cache read · 60,424 cache write · 234,845 weighted) | -| 2026-12-01 18:12 | 6 Implement (G1) | Dev | SectionPanel fragments + CSS, both formatters implemented; Format/Build/full suite (2959+39)/analyzer pass; coverage not yet run (sonnet/medium · 99,773 tokens · 10 tool uses · 131 s · 20 in · 4,679 out · 872,662 cache read · 43,646 cache write · 165,239 weighted) | -| 2026-12-01 18:13 | 6 Coverage (G1) | Tester | Deferred test SectionPanelWithoutTitleFragmentsRendersHeadingAlone added; 2960+39 pass; Coverage gate PASS (new code 93.9%, overall 96.1%) (sonnet/medium · 85,131 tokens · 5 tool uses · 95 s · 10 in · 2,014 out · 378,687 cache read · 28,564 cache write · 83,654 weighted) | -| 2026-12-01 18:13 | 4 Skeleton skipped (G2) | Orchestrator | skipped — plan.md Signatures: the page's new members are private | -| 2026-12-01 18:19 | 5 Tests first (G2) | Tester | Page render, stylesheet and adapted tests written; I confirmed 26 fail on current code, 5 pass. Deferred: VulnerabilitiesSeverityFilterListsOnlyThatSeverity, VulnerabilitiesListsAdvisoriesInServiceOrder, VulnerabilitiesLinksOnlyAdvisoryWithReference (sonnet/medium · 74,187 tokens · 15 tool uses · 314 s · 30 in · 35,146 out · 2,147,158 cache read · 72,363 cache write · 480,930 weighted · continued from 5 Tests first (G1)) | -| 2026-12-01 18:26 | 6 Implement (G2) | Dev | Page reworked (header, panel, bar, table, own pager), rails and GetSeverityColor removed, CSS, docs (list-pages.md new, web-ui, README, ARCHITECTURE); Format/Build/Analyzer/full suite (2973+39) pass; fact 8 holds; one unrelated flaky test passed on rerun (sonnet/medium · 59,151 tokens · 17 tool uses · 376 s · 34 in · 15,499 out · 2,050,358 cache read · 104,253 cache write · 412,881 weighted · continued) | -| 2026-12-01 18:28 | 6 Coverage (G2) | Tester | 3 deferred AC6 tests added; 2976+39 pass; Coverage gate PASS (new code 94.3%, overall 96.2%) (sonnet/medium · 24,091 tokens · 8 tool uses · 113 s · 18 in · 6,021 out · 730,565 cache read · 55,781 cache write · 172,906 weighted · continued) | -| 2026-12-01 18:28 | 6 Documentation | Orchestrator | written in 6 Implement (G2); full Test green in 6 Coverage (G2) | -| 2026-12-01 18:29 | 7 Gate stamp | Orchestrator | PASS on 755b5f62c9b6c409668a49fb0860f8864a4b2050 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 22 hit(s) | -| 2026-12-01 18:48 | 7 Manual test | Product Manager | FAIL AC8 at 390 px: horizontal scrollbar. Screenshot: in the card layout the expand button sits off-card at the right, the Package value, the CVSS text and the affected image reference run beyond the viewport; 768 and 1280 px not reported | -| 2026-12-01 18:52 | 7 Decide (manual test) | Lead | RESULT: DECIDED — task group G3 (Breakpoint.Sm; page-scoped card rules min-width 0 / overflow-wrap anywhere; value groups; detail content cell block below 960 px); no criterion changes; follow-up issue proposed for the shared card layout (opus/medium · 83,351 tokens · 22 tool uses · 213 s · 26 in · 22,447 out · 736,892 cache read · 67,982 cache write · 468,166 weighted) | -| 2026-12-01 18:52 | 4 Skeleton skipped (G3) | Orchestrator | skipped — plan.md G3 adds no API (markup and stylesheet only) | -| 2026-12-01 18:55 | 5 Tests first (G3) | Tester | 5 AC8 card-layout tests (4 new, 1 adapted); I confirmed all 5 fail on current code, 22 others pass. Deferred: none (sonnet/medium · 11,246 tokens · 4 tool uses · 140 s · 10 in · 5,087 out · 576,124 cache read · 198,608 cache write · 331,317 weighted · continued from 5 Tests first (G1)) | -| 2026-12-01 18:57 | 6 Implement (G3) | Dev | Breakpoint.Sm, value groups, detail content cell, four card rules in the 960 px media query; list-pages card bullet; Format/Build/Analyzer/full suite (2980+39) pass; browser check at 390 px not done (sonnet/medium · 10,415 tokens · 5 tool uses · 123 s · 12 in · 3,542 out · 703,861 cache read · 116,190 cache write · 233,346 weighted · continued) | -| 2026-12-01 18:57 | 6 Documentation | Orchestrator | written in 6 Implement (G3) | -| 2026-12-01 18:57 | 6 Coverage skipped (G3) | Orchestrator | skipped — G3 changes markup classes and CSS only, no new lines or branches; the step-7 stamp runs Test with coverage and the Coverage gate | -| 2026-12-01 18:58 | 7 Gate stamp | Orchestrator | PASS on 48e50aea60efd4fe787728c8ff1c757994e4c5a7 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 22 hit(s) | -| 2026-12-01 19:04 | 7 Manual test | Product Manager | PASS AC8 at 390, 768 and 1280 px (rerun on stamped head 48e50aea60ef) | -| 2026-12-01 19:07 | 8 Review | Reviewer | VERDICT: BLOCKING 1 \| NON-BLOCKING 2 on 48e50aea60efd4fe787728c8ff1c757994e4c5a7. Blocking: web-ui.md:318 still says only the Vulnerabilities page is paged (findings tables of detail pages are too). Non-blocking: .dug-pager__button:disabled color overridden by MudBlazor (needs !important); decision 0084 area should be List pages (opus/medium · 111,548 tokens · 29 tool uses · 160 s · 56 in · 16,025 out · 2,207,607 cache read · 108,321 cache write · 651,925 weighted) | -| 2026-12-01 19:08 | 7 Gate stamp | Orchestrator | PASS on 9f100ca4af73bf5f0a8247ceaff6f058ed9c48c0 (tier standard, verbatim): Format check pass; decision-check.py pass; scope-check.py pass | -| 2026-12-01 19:08 | 8 Verbatim fix | Orchestrator | verbatim: [BLOCKING, verbatim] docs/areas/web-ui.md:318 (rewrapped); [NON-BLOCKING, verbatim] docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md:5 — commit 9f100ca | -| 2026-12-01 19:09 | 8 Decide | Lead | RESULT: DECIDED — fix now: .dug-pager__button:disabled color gets !important. FIX: Dev — app.css line 1125; FIX: Tester — keep/adapt the assertion in AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels (opus/medium · 33,684 tokens · 8 tool uses · 26 s · 10 in · 2,589 out · 118,996 cache read · 32,288 cache write · 118,530 weighted) | -| 2026-12-01 19:10 | 8 Fix | Dev | app.css .dug-pager__button:disabled color now !important; Format/Build clean; AppStylesheet tests 181 pass, 1 fails (ButtonsAreFortyFourPixels expects the value without !important) — Lead named the Tester for that (sonnet/medium · 1,537 tokens · 2 tool uses · 102 s · 6 in · 856 out · 224,621 cache read · 115,477 cache write · 171,094 weighted · continued) | -| 2026-12-01 19:12 | 8 Fix tests | Tester | ButtonsAreFortyFourPixels now expects var(--dug-text-muted) !important; AppStylesheetVulnerabilitiesTests 7 pass, full suite 2980+39 pass (sonnet/medium · 2,134 tokens · 3 tool uses · 80 s · 8 in · 1,120 out · 271,953 cache read · 58,667 cache write · 106,137 weighted · continued) | -| 2026-12-01 19:13 | 7 Gate stamp | Orchestrator | PASS on 0e51a95a800c34e7b3308b6fc2ac2c5d09a71f1a (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py pass · figure-check.py 23 hit(s) | -| 2026-12-01 19:14 | 8 Review delta | Reviewer | VERDICT: APPROVE on 0e51a95a800c34e7b3308b6fc2ac2c5d09a71f1a. All three round-1 findings fixed, no new defect (opus/medium · 4,768 tokens · 3 tool uses · 14 s · 8 in · 1,296 out · 226,752 cache read · 115,456 cache write · 324,291 weighted · continued) | -| 2026-12-01 19:14 | 7 Gate stamp | Orchestrator | PASS on 85910756cadb4b9e1b35e0375e345c29070d500b (tier standard, verbatim): Format check pass; decision-check.py pass; scope-check.py pass | -| 2026-12-01 19:14 | 9 PR approval | Orchestrator | approved by checklist | diff --git a/specs/feature-457-vulnerabilities-severity-bar/plan.md b/specs/feature-457-vulnerabilities-severity-bar/plan.md deleted file mode 100644 index b80dab8b..00000000 --- a/specs/feature-457-vulnerabilities-severity-bar/plan.md +++ /dev/null @@ -1,259 +0,0 @@ -# Plan: Vulnerabilities page with a severity bar and without row rails - -Source: Issue #457 | [spec.md](spec.md) -Tier: standard — a user-visible page rework with a shared component extension, two new formatters and a decision record, touching no security area. -Security areas touched: none - -## Problem / root cause - -See [spec.md](spec.md), *Problem*. - -## Verified facts - -| # | Claim | Evidence | Status | -| - | ----- | -------- | ------ | -| 1 | The rails are four top-level rules; only the page uses them | `app.css:994-1009`; `Vulnerabilities.razor:65` (`RowClassFunc`), `.razor.cs:116` (`GetSeverityRailClass`); `VulnerabilitiesTests.cs:164` | confirmed | -| 1a | The issue: rail rules exist in the mobile card layout | no `.dug-rail-*` rule inside a media query in `app.css` | refuted | -| 2 | The advisory link already appears only for absolute `http`/`https` | `ApplicationViewService.cs:1289` → `VulnerabilityViewMapper.SanitizeHttpUrl` (`:121-139`) | confirmed | -| 3 | An advisory's severity is the highest `VulnerabilitySeverity` name: `Critical`, `High`, `Medium`, `Low`, `NotSet` | `ApplicationViewService.cs:1287`; `VulnerabilitySeverity.cs` | confirmed | -| 4 | `SeverityBar` adds `OtherCount` to low, renders nothing for an empty summary and has no width parameter | `SeverityBar.razor.cs:38-41`; `SeverityBar.razor:1` | confirmed | -| 5 | `VulnerabilityViewMapper.CreateSeveritySummary` maps enum/count pairs, anything but the four to `OtherCount` | `VulnerabilityViewMapper.cs:60-100` | confirmed | -| 6 | `SectionPanel` renders `Title` as plain text in its `h2` and `HeaderContent` (else `Meta`) as a sibling; header is `flex-wrap` with `space-between` | `SectionPanel.razor`; `app.css:869-892` | confirmed | -| 7 | `MudTablePager` 9.14.0 has first/last buttons and a hyphen range; `CurrentPage`/`RowsPerPage` are documented as requiring a `MudTablePager` | `MudBlazor.xml` 9.14.0: `MudTablePager.FirstIcon`, `.LastIcon`, `.InfoFormat`; `MudTableBase.CurrentPage`, `.RowsPerPage` | confirmed | -| 8 | A `MudTable` without `PagerContent` renders every item it gets | to verify: the Tester's `VulnerabilitiesPageSizeChangeShowsFirstPageWithMoreRows` (50 rows of 60 shown), step 5 (by reading: `RuntimeContainers.razor:54` has no pager and lists every container); if refuted, the Dev sets `RowsPerPage` to `_pageSize` | unverified | -| 9 | Attributes splat onto `MudIconButton`'s button element | `MainLayout.razor:16` (`aria-label`), asserted in `MainLayoutRenderTests.cs:132` | confirmed | -| 10 | `VulnerabilityDisplayFormatter.GetSeverityColor` has one production caller, the page | grep: `Vulnerabilities.razor.cs:108`; test `VulnerabilityDisplayFormatterTests.cs:32` | confirmed | -| 11 | `.section-table .mud-table-body .mud-icon-button` gives table icon buttons 44 × 44 px with a border; `.dug-icon-button` the same | `app.css:958-968` | confirmed | -| 12 | `web-ui.md` has 4,994 words (limit 5,000) | `plan-check.py` `base_words` on the merge base | confirmed | -| 13 | The dashboard's severity summary counts only advisories of running containers | `ApplicationViewService.cs:1965-1990` | confirmed | -| 14 | MudBlazor 9.14.0 gives `mud-md-table` its card cells and hides its header up to 1280 px (`@media(max-width: 1280px)`), `mud-sm-table` up to 960 px; the app's card styling starts below 960 px | `MudBlazor.min.css` 9.14.0 (package `staticwebassets`); `app.css:1479` | confirmed | -| 15 | Step 7 failure: a card cell is a flex container whose value keeps `min-width: auto`, so an unbreakable value (package name, image reference) keeps its full width, widens the table and pushes every card's content, the expand button included, past the viewport | `app.css:1493-1500`; Product Manager's 390 px screenshot; that the G3 rules remove it: manual test (G3) | confirmed | -| 16 | The card rule `.section-table .mud-table-body .mud-table-cell { display: flex }` comes after the page rules, so a page rule overriding `display` needs four classes | `app.css:1072`, `:1493` | confirmed | - -## Tests per criterion - -| AC | Test(s) | Test file | -| -- | ------- | --------- | -| AC1 | `VulnerabilitiesRendersPageHeaderAndOnePanelWithFilters` | `VulnerabilitiesRenderTests.cs` | -| AC1 | `SectionPanelTitleAndSubtitleContentRenderBesideAndBelowTitle`, `SectionPanelWithoutTitleFragmentsRendersHeadingAlone` | `SectionPanelTests.cs` | -| AC2 | `VulnerabilitiesTitleCountWithoutFilterShowsTotal`, `VulnerabilitiesTitleCountWithHidingFilterShowsMatchingOfTotal`, `VulnerabilitiesTitleCountWithFilterHidingNothingShowsTotal` | `VulnerabilitiesRenderTests.cs` | -| AC2 | `VulnerabilityOverviewFormatterFormatAdvisoryCountReturnsExpectedText` (DataRows 31/31, 4/31, 0/31) | `VulnerabilityOverviewFormatterTests.cs` | -| AC3 | `VulnerabilitiesSeverityBarCountsAllAdvisoriesWhileFiltered` | `VulnerabilitiesRenderTests.cs` | -| AC3 | `VulnerabilityOverviewFormatterCreateSeveritySummaryMixedListCountsEachSeverity` (`NotSet` and an unknown text → `OtherCount`) | `VulnerabilityOverviewFormatterTests.cs` | -| AC4 | `VulnerabilitiesRowsCarryNoRailClass` (replaces `VulnerabilitiesCriticalAdvisoryRendersSeverityRailClass`), `VulnerabilitiesRowShowsSeverityChipAndCells`, `VulnerabilitiesUnknownSeverityShowsUnknownLowChip` | `VulnerabilitiesTests.cs`, `VulnerabilitiesRenderTests.cs` | -| AC4 | `VulnerabilityOverviewFormatterFormatSeverityReturnsExpectedText` | `VulnerabilityOverviewFormatterTests.cs` | -| AC4 | `AppStylesheetVulnerabilitiesHasNoRailRule` | `AppStylesheetVulnerabilitiesTests.cs` | -| AC5 | `VulnerabilitiesExpandButtonCollapsedIsNamedShowAffectedImages`, `VulnerabilitiesExpandButtonExpandedIsNamedHideAndShowsDetail` (linked observed image, plain other image, expanded row class) | `VulnerabilitiesRenderTests.cs` | -| AC5 | `AppStylesheetVulnerabilitiesExpandedRowAndDetailUseSubtleSurface` | `AppStylesheetVulnerabilitiesTests.cs` | -| AC6 | existing `VulnerabilitiesFreeTextFilterHidesNonMatchingAdvisories` (adapted), `VulnerabilitiesNoActiveFindingsShowsEmptyState`, `VulnerabilitiesLoadFailureShowsFixedErrorAndLogs`, `VulnerabilitiesRestoresFromPersistentState`, `VulnerabilitiesPersistsLoadedStateForPrerender`; new `VulnerabilitiesSeverityFilterListsOnlyThatSeverity`, `VulnerabilitiesListsAdvisoriesInServiceOrder`, `VulnerabilitiesLinksOnlyAdvisoryWithReference`, `VulnerabilitiesEmptyFilterShowsNoMatchText` | `VulnerabilitiesTests.cs`, `VulnerabilitiesPersistentStateTests.cs`, `VulnerabilitiesRenderTests.cs` | -| AC7 | `VulnerabilitiesPagerHiddenAtTwentyFiveMatches`, `VulnerabilitiesPagerShownAboveTwentyFiveMatchesWithTwoNamedButtons`, `VulnerabilitiesNextPageShowsRemainingRows`, `VulnerabilitiesFilterChangeOnLaterPageShowsFirstPage`, `VulnerabilitiesPageSizeChangeShowsFirstPageWithMoreRows`, `VulnerabilitiesUnlistedPageSizeIsIgnored` | `VulnerabilitiesRenderTests.cs` | -| AC7 | `TablePagingFormatterFormatRangeReturnsExpectedText`, `TablePagingFormatterIsLastPageReturnsExpectedResult` | `TablePagingFormatterTests.cs` | -| AC8 | `AppStylesheetVulnerabilitiesFiltersTakeFullWidthBelow960Pixels`, `AppStylesheetVulnerabilitiesButtonsAreFortyFourPixels`, `VulnerabilitiesRendersCardLayoutBreakpointWithExpandButton` (G3: adapted to `mud-sm-table`, no `mud-md-table`) | `AppStylesheetVulnerabilitiesTests.cs`, `VulnerabilitiesRenderTests.cs` | -| AC8 | G3: `AppStylesheetVulnerabilitiesCardCellsWrapLongValues` (card context: cell `min-width: 0` and `overflow-wrap: anywhere`, label `flex-shrink: 0`, value group `min-width: 0` and `text-align: end`), `AppStylesheetVulnerabilitiesDetailContentIsBlockBelow960Pixels` (the exact four-class selector of *Card layout*, `display: block`, card context only); `VulnerabilitiesAdvisoryAndSeverityCellsGroupTheirValues` (one `div.vulnerabilities-table__value` per Advisory and Severity cell, holding link and title, chip and CVSS), `VulnerabilitiesExpandedDetailContentCellCarriesBlockClass` | `AppStylesheetVulnerabilitiesTests.cs`, `VulnerabilitiesRenderTests.cs` | -| AC8 | manual: the Product Manager opens `/vulnerabilities` with more than 25 advisories at 390, 768 and 1280 px, one row expanded, on a local run of the branch head (*Running the application* in `README.md`), step 7 Manual test; after G3 again, with an advisory whose package is `Microsoft.AspNetCore.App.Runtime.linux-x64` expanded | — | -| AC9 | check: the Reviewer reads `docs/areas/list-pages.md` and the `/vulnerabilities` row of `docs/areas/web-ui.md` against AC9, step 8 | — | - -## Approach - -Layout as the issue's *Scope* and the spec's scenarios state it; the remaining choices: - -- **Page header:** `PageHeader Title="Vulnerabilities"` with the spec's description; no eyebrow. The browser title stays. -- **Panel:** `SectionPanel Title="Active advisories" Flush="true"`, extended (below) by two optional fragments: - - `TitleContent`: `· {count}` (muted, 13 px), outside the `h2`, so the - heading's name stays `Active advisories`; `{count}` from `VulnerabilityOverviewFormatter.FormatAdvisoryCount`. - - `SubtitleContent`: `
`, `max-width: 360px`; the summary - from `VulnerabilityOverviewFormatter.CreateSeveritySummary(_items)`, always the unfiltered list. - - `HeaderContent`: `
` with the `MudTextField` (`Label="Filter"`, `Placeholder="Advisory, - title or package"`, `Clearable`, `Immediate`, search adornment) and the `MudSelect` (`Label="Severity"`) — labels - are MudBlazor's shrunk labels above the field (both always have a placeholder or value), set to 13 px / 500 by a - page rule; widths 260 px and 150 px from 960 px, `flex-basis: 100%` each below 960 px. -- **`SectionPanel` change:** with `TitleContent` or `SubtitleContent` set, the `h2` is wrapped in - `div.dug-panel__title-group` > `div.dug-panel__title-row` (`h2` + `TitleContent`, baseline-aligned), then - `SubtitleContent`; with neither, the markup is exactly today's. Below 960 px - `.dug-panel__title-group ~ .dug-panel__header-content { flex-basis: 100%; }` lets the filters take the full width - without touching panels that have no title group. -- **Table:** `MudTable Items="pageItems" Breakpoint="Breakpoint.Sm" Class="section-table vulnerabilities-table"`, no - `RowsPerPage`, no `PagerContent`. `RowClassFunc` stays only for `vulnerabilities-table__row--expanded` (the rail - function is deleted). Cells `vertical-align: middle`, 8 px vertical padding. - - Expand cell: `MudIconButton` with `Class="vulnerabilities-table__expand"`, chevron icons as today, - `aria-label="@(expanded ? "Hide affected images" : "Show affected images")"`, `aria-expanded="@(expanded ? "true" : - "false")"` (strings: a `bool` attribute would render empty or vanish); a page rule removes the border the - table-icon-button rule gives. - - Advisory: `MudLink` `table-link` as today, else `span.vulnerabilities-table__id` (600); title `table-secondary`. - - Severity: `StatusChip Text="@VulnerabilityOverviewFormatter.FormatSeverity(item.Severity)" - Tone="@StatusToneFormatter.GetSeverityTone(item.Severity)"`, CVSS line as today (`F1`). - - Package, Fixed version, counts: as today. - - Detail (`ChildRowContent`, expanded only): `MudTr Class="vulnerabilities-table__detail"` with an empty first `MudTd` - (`vulnerabilities-table__detail-spacer`, hidden below 960 px) and `MudTd colspan="6"`: `span.table-secondary` - `Affected images`, then the references one per line with today's link rule. Expanded row and detail: - `background: var(--dug-surface-subtle)`. - - `NoRecordsContent`: `No advisories match the current filter.` as today. -- **Card layout (G3, after the failed step 7):** `Breakpoint.Sm`, so MudBlazor's card cells start where the app's do - (fact 14; `Md` hid the header up to 1280 px). Markup: the Advisory and Severity cells wrap their contents in one - `div.vulnerabilities-table__value` (from 960 px it renders as today); the detail's content cell is - `MudTd Class="vulnerabilities-table__detail-content" colspan="6"`. Rules in the page's `@media (max-width: 959.98px)`: - - `.vulnerabilities-table .mud-table-body .mud-table-cell`: `min-width: 0; overflow-wrap: anywhere;` (fact 15); - - `.vulnerabilities-table .mud-table-body .mud-table-cell::before`: `flex-shrink: 0;` (the label keeps its width); - - `.vulnerabilities-table .mud-table-body .vulnerabilities-table__value`: `min-width: 0; text-align: end;` — label - left, value group right, chip above the CVSS line; - - `.vulnerabilities-table .mud-table-body .mud-table-cell.vulnerabilities-table__detail-content`: `display: block;` - (four classes, fact 16; the spacer lacks the class and stays hidden) — the label line is gone and the references - take the card's width, one per line, wrapping at any character. - Nothing from 960 px changes but the breakpoint; the expand button stays at the right of the card's first line. -- **Paging** ([0084](../../docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md)): - the page holds `_pageIndex` (0) and `_pageSize` (25); `pageItems = filtered.Skip(_pageIndex * _pageSize).Take(_pageSize)`. - `ShowFirstPage()` sets `_pageIndex = 0` and runs as `@bind-Value:after` of both filter fields and after a page size - change. `ChangePageSize(ChangeEventArgs)` accepts only a value of `_pageSizeOptions` (25, 50, 100) parsed with - `int.TryParse`, anything else is ignored. `ShowPreviousPage()` / `ShowNextPage()` move by one within bounds. -- **Pager layout** (shown when `filtered.Count > _pageSizeOptions[0]`), below the table inside the panel body: - `div.dug-pager` (`display: flex`, `justify-content: flex-end`, `align-items: center`, `flex-wrap: wrap`, gap 16 px, - `border-top: 1px solid var(--dug-border)`, padding 8 px 20px), in this order: `label.dug-pager__size` holding the - text `Rows per page` and a native `select.dug-pager__select` (44 px high, options 25, 50, 100); `span.dug-pager__range` - with `TablePagingFormatter.FormatRange` (`1–25 of 31`, U+2013); two `MudIconButton`s `Class="dug-icon-button - dug-pager__button"`, chevron left/right, `aria-label` `Previous page` / `Next page`, `Disabled` on the first page / - when `TablePagingFormatter.IsLastPage`; `.dug-pager__button:disabled` keeps the 1 px border with - `color: var(--dug-text-muted)`. -- **Removed:** the eyebrow, the section description, the `MudGrid` of filters, `GetSeverityColor`, `GetSeverityRailClass`, - the four `.dug-rail-*` rules, `VulnerabilityDisplayFormatter.GetSeverityColor` (its summary then speaks of statuses only). -- **Loading, empty and error states:** unchanged (`TableSkeleton Title="Active advisories"`, empty panel, alert). -- **Formatters:** `VulnerabilityOverviewFormatter` parses a severity text with `Enum.TryParse` - (ignore case) in one private helper; `CreateSeveritySummary` groups the parsed values and hands them to - `VulnerabilityViewMapper.CreateSeveritySummary` (no second severity switch); `FormatSeverity` returns the parsed name - for the four severities and `Unknown` otherwise. `FormatAdvisoryCount` returns `{total}` when equal, else - `{matching} of {total}`. - -Early draft PR: no - -## Options considered - -1. **Pager: own pager over page-held paging (chosen), restyled `MudTablePager`, or a custom pager bound to MudTable's - paging** — see decision 0084. -2. **Panel header: extend `SectionPanel` (chosen) or render the panel's markup in the page** — the issue asks for one - `SectionPanel`, and a copy of its markup would drift from the shared component; the extension is two optional - fragments that leave every current panel unchanged. -3. **`NotSet` chip text: `Unknown` (chosen) or the raw `NotSet`** — the runtime container list and - `VulnerabilitySeverityChips` show `Unknown`; the raw enum name is no word a user reads (spec, *Challenge* 1). -4. **Bar summary: computed by the page from its list (chosen) or by `ApplicationViewService`** — the list the page - loads and persists already holds every advisory and its severity; a service field would add persisted state for - a derived value. -5. **Area document: split `web-ui.md` (chosen) or add to it** — it has 4,994 of 5,000 words; the 8/9 list pages need - the same home. -6. **Card overflow (G3): page-scoped wrap rules (chosen), the same rules on the shared `.section-table` card layout, - or ellipsis truncation** — the shared rules would change 14 other tables no criterion or manual test of this - feature covers (follow-up issue); an ellipsis hides the package and image names the card exists to show. -7. **Breakpoint (G3): `Sm` (chosen) or `Md` with page rules for 960–1280 px** — `Md` shows header-less flex cells up - to 1280 px, against the spec's "below 960 px"; `Sm` matches the app's card context, as the runtime container list. - -## Affected projects and types - -| Project | Type / file | Change | -| ------- | ----------- | ------ | -| DockerUpdateGuard | `Components/Pages/Vulnerabilities.razor`, `.razor.cs` | rework as *Approach*; paging state and methods | -| DockerUpdateGuard | `Components/Common/SectionPanel.razor`, `.razor.cs` | two optional fragments | -| DockerUpdateGuard | `UI/VulnerabilityOverviewFormatter.cs` | new | -| DockerUpdateGuard | `UI/TablePagingFormatter.cs` | new | -| DockerUpdateGuard | `UI/VulnerabilityDisplayFormatter.cs` | `GetSeverityColor` deleted | -| DockerUpdateGuard | `wwwroot/app.css` | rails removed; title group, `vulnerabilities-*`, `dug-pager*` rules | - -## Signatures (for the Dev's skeleton) - -`SectionPanel` (`Components/Common/SectionPanel.razor.cs`): - -- `SectionPanel.TitleContent`: a component parameter, public RenderFragment? with get and set, null by default -- `SectionPanel.SubtitleContent`: the same - -`internal static class VulnerabilityOverviewFormatter` (`UI/VulnerabilityOverviewFormatter.cs`, namespace `DockerUpdateGuard.UI`): - -- `public static VulnerabilitySeveritySummaryViewData CreateSeveritySummary(IEnumerable items)` -- `public static string FormatAdvisoryCount(int matchingCount, int totalCount)` -- `public static string FormatSeverity(string? severity)` - -`internal static class TablePagingFormatter` (`UI/TablePagingFormatter.cs`, namespace `DockerUpdateGuard.UI`): - -- `public static string FormatRange(int pageIndex, int pageSize, int totalCount)` -- `public static bool IsLastPage(int pageIndex, int pageSize, int totalCount)` - -Deleted: `VulnerabilityDisplayFormatter.GetSeverityColor(string?)`. -Deleted: `Vulnerabilities.GetSeverityColor` and `Vulnerabilities.GetSeverityRailClass` (private). - -The page's new members are private (*Approach*). Names checked against *Writing code*: no nested types, at most three -parameters, no keyword names. The skeleton holds nothing for real; the Tester defers no test. - -## Test files - -`src/Tests/DockerUpdateGuard.Tests/`: `VulnerabilitiesRenderTests.cs` (new), `VulnerabilitiesTests.cs`, -`VulnerabilitiesPersistentStateTests.cs`, `SectionPanelTests.cs`, `VulnerabilityOverviewFormatterTests.cs` (new), -`TablePagingFormatterTests.cs` (new), `AppStylesheetVulnerabilitiesTests.cs` (new), `VulnerabilityDisplayFormatterTests.cs`. - -Existing test code a change affects, adapted by the Tester: `VulnerabilityDisplayFormatterTests.cs:32` (test of the -deleted `GetSeverityColor`, removed); `VulnerabilitiesTests.cs:131` (old placeholder selector) and `:142-165` (rail -test, replaced by AC4's); G3: `VulnerabilitiesRenderTests.cs:534` (breakpoint, now `mud-sm-table`). `VulnerabilitiesPersistentStateTests.cs` and the other `SectionPanelTests` keep their inputs -unchanged. - -Files no unit test can cover: none. - -## Areas - -- `docs/areas/web-ui.md` (-35 words): the Vulnerabilities bullet of *Pages and routes* moves out; the - `/vulnerabilities` row adds the severity overview and a link to *List pages*; *Not here* adds the list page layouts. -- `docs/areas/list-pages.md` (+380 words), new area *List pages*: the layout and contents of the list pages, so far the - Vulnerabilities page; not here: routes, actions, shared display and errors (Web UI), detail pages (Detail pages), - how values are computed (the feature areas). - -## Documentation updates - -All by the Dev, once the code is green: - -- `docs/areas/list-pages.md`: new, structured like `detail-pages.md` (Scope, Behavior, Limits and errors, Related - decisions with 0084, Not here). States the panel header (count `{n}` / `{matching} of {all}`, the bar of all - advisories — one per advisory at its highest severity, unknown as low, regardless of the filter), the filters and - rules moved from `web-ui.md`, the columns with the `Unknown` chip, the expand button's names and the detail's link - rule, the pager (above 25 matches, first page after a filter or size change, unlisted sizes ignored) and the - card layout below 960 px; G3: the card bullet adds that long values (package, image references) wrap inside the card. -- `docs/areas/web-ui.md`: as *Areas*. -- `docs/areas/README.md`: index row for *List pages*, beside *Detail pages*. -- `docs/ARCHITECTURE.md` §9: "Pages, routes and what each page shows or triggers are specified in Web UI" adds the - list and detail page layouts ([List pages], [Detail pages]); the *Components\Common* bullet no longer says the - vulnerability widgets are shared with the Vulnerabilities page (it uses none of them — a stale claim today). -- No changelog file; the release-notes label is set on the PR. - -## Architecture check - -No guarantee of `.squad/project.md` is touched: the page still reads only through `IApplicationViewService`, persists -the same state, and renders no new external link; the link rule stays in `VulnerabilityViewMapper.SanitizeHttpUrl`. - -## Security considerations - -- [x] No limits on parsed input; the client-sent page size is accepted only from the three options. -- [x] None: no new exception reaches the user; a load failure keeps today's fixed alert. - -## Decision records - -- `docs/decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md` (Proposed) - -## Out of scope / follow-ups - -- The other `MudTablePager` users (`VulnerabilityFindingsTable`) keep MudBlazor's pager until their refresh issue. -- `docs/ui-concept/README.md` keeps the concept's rails: it records the concept, not today's behavior -- The other `Breakpoint.Md` tables (header hidden at 960–1280 px) and long values in the shared card layout: follow-up - issue (G3) - -## Challenge notes - -Devil's Advocate, mode `plan`, for specs/feature-457-vulnerabilities-severity-bar/ (issue #457). - -I checked the plan's claims against the code and they hold: -- **Rails:** the four `.dug-rail-*` rules are top-level (`src/DockerUpdateGuard/wwwroot/app.css:994-1009`). Their only users are `Vulnerabilities.razor:66` and `Vulnerabilities.razor.cs` (`GetSeverityRailClass`) and the test assertion at `VulnerabilitiesTests.cs:164`. -- **`GetSeverityColor`:** its only production caller is the page. -- **`SeverityBar`:** it adds `OtherCount` to low (`SeverityBar.razor.cs:53`) and renders nothing when the summary is empty. -- **Severity summary:** `VulnerabilityViewMapper.CreateSeveritySummary` is internal in `DockerUpdateGuard.UI` and takes enum/count pairs, so the planned formatter can reuse it. -- **Unknown severity:** `StatusToneFormatter.GetSeverityTone` gives the Low tone to anything that is not critical, high or medium (`StatusToneFormatter.cs:88-106`). `VulnerabilitySeverityChips.razor:23` already shows `Unknown` in the Low tone. -- **`SectionPanel`:** today it has only `Title`, `Meta`, `HeaderContent` and `Flush`, so the two optional fragments are a real gap and not a duplicate. -- **`PageHeader`:** it already supports title and description without an eyebrow. -- **Decision 0084:** it exists and matches the *Approach*. -- **Documents:** `web-ui.md:96-99` is the bullet the plan moves. `web-ui.md:322` ("not paged except the Vulnerabilities page") stays true. `ARCHITECTURE.md:435-438` does carry the stale "shared with the Vulnerabilities page" claim the plan fixes. -- **Need and scope:** the scope matches the issue and I found no simpler option. Fact 8 is still unverified, but the plan gives a fallback for it. - -Objections: - -1. minor — The native page-size `