Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a4c97b4
Start feature 457 working record
claude Dec 1, 2026
6ead943
Spec
claude Dec 1, 2026
cfd8ff0
Spec challenge notes
claude Dec 1, 2026
81fb550
Plan and tasks
claude Dec 1, 2026
4546b01
Plan challenge notes
claude Dec 1, 2026
66add9f
G1 skeleton
claude Dec 1, 2026
239ee8c
G1 tests first
claude Dec 1, 2026
a454bb4
G1 implementation
claude Dec 1, 2026
eb1e565
G1 coverage
claude Dec 1, 2026
80171f4
G2 skeleton skipped
claude Dec 1, 2026
477ea79
G2 tests first
claude Dec 1, 2026
3de6a90
G2 implementation and documentation
claude Dec 1, 2026
aa9a11f
G2 coverage
claude Dec 1, 2026
755b5f6
Log documentation step
claude Dec 1, 2026
eea17f4
Gate stamp
claude Dec 1, 2026
13a5a67
Manual test result
claude Dec 1, 2026
177213d
G3 plan amendment
claude Dec 1, 2026
7bc18ce
G3 skeleton skipped
claude Dec 1, 2026
a10ad13
G3 tests first
claude Dec 1, 2026
e15b619
G3 implementation
claude Dec 1, 2026
48e50ae
Log coverage skip
claude Dec 1, 2026
6be3fa0
Gate stamp
claude Dec 1, 2026
6ef6cbe
Manual test pass
claude Dec 1, 2026
7441ede
Review round 1
claude Dec 1, 2026
9f100ca
Review round 1 verbatim documentation fixes
claude Dec 1, 2026
5a15be5
Log verbatim fixes
claude Dec 1, 2026
5ac30b3
Review decision
claude Dec 1, 2026
a1675c9
Pager disabled color important
claude Dec 1, 2026
0e51a95
Adapt pager color test
claude Dec 1, 2026
6ead542
Gate stamp
claude Dec 1, 2026
0941393
Delta review approved
claude Dec 1, 2026
8591075
Accept decision 0084
claude Dec 1, 2026
3395e09
PR approval
claude Dec 1, 2026
8fb6510
Remove squad working record
claude Dec 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ Blazor Server (**Interactive Server** render mode, applied at the `App`
root β€” no WebAssembly, no Auto mode) with **MudBlazor** as the component
library, plus a hand-rolled CSS token layer (`wwwroot\app.css`) on top of it.
Pages, routes and what each page shows or triggers are specified in
[Web UI](areas/web-ui.md).
[Web UI](areas/web-ui.md); the list and detail page layouts in
[List pages](areas/list-pages.md) and [Detail pages](areas/detail-pages.md).

- **Design tokens** (`wwwroot\app.css`) are the `--dug-*` custom properties
for colors, radii, fonts and the transition. The light values sit in
Expand Down Expand Up @@ -434,8 +435,7 @@ Pages, routes and what each page shows or triggers are specified in
fairly wide surface (one method per page/section).
- **`Components\Common`** holds cross-page building blocks: loading
skeletons (the detail page skeleton among them) and the vulnerability
widgets shared between the
Vulnerabilities page and image/container detail pages, the
widgets shared between the image and container detail pages, the
`ContainerActionConfirmation` dialog, the resource history chart (SVG paths
from one path builder shared with the Runtime Containers list,
[decision 0083](decisions/0083-resource-histories-are-drawn-as-svg-sparklines-from-one-shared-path-builder.md)),
Expand Down
1 change: 1 addition & 0 deletions docs/areas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ operator or another component can rely on β€” formats, limits, error behavior, g
| [Scan engine](scan-engine.md) | Background jobs and their intervals, dynamic own-image interval, overlap rules, scan runs, crash recovery, retention and cleanup, single-instance assumption | What a scan evaluates (the feature areas) |
| [Web UI](web-ui.md) | Pages and routes, what each page shows and triggers, dashboard refresh, error and not-found pages, theme | How the shown values are computed (the feature areas) |
| [Detail pages](detail-pages.md) | Layout and contents of the detail pages: header, details column, panels in order, resource history charts | Routes, actions table, shared display and errors (Web UI); how values are computed (the feature areas) |
| [List pages](list-pages.md) | Layout and contents of the list pages, so far Vulnerabilities: header, severity overview, filters, table, expanded rows, pager | Routes, actions table, shared display and errors (Web UI); how values are computed (the feature areas) |
| [Telemetry](telemetry.md) | Logs, traces and metrics, OTLP export, activity and instrument names, inventory gauges, what never reaches telemetry | Deployment of the observability stack (`INSTALL.md`) |
<!-- project:end area-index -->
71 changes: 71 additions & 0 deletions docs/areas/list-pages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# List pages

## Scope

The layout and contents of the list pages, so far the Vulnerabilities page: its header, the severity overview, the
filters, the table, the expanded rows and the pager. Users rely on it to see how the active advisories are spread
over the severities and to find the ones that matter.

## Behavior

### Vulnerabilities page header and panel

- The page header shows the title `Vulnerabilities` and the description `Active advisories across all images, with the
images and running containers each one affects.`, without an eyebrow. One panel `Active advisories` follows; it has
no description line.
- The panel title is followed by a muted count: `{n}` for the number of advisories, or `{matching} of {all}` while a
filter hides some of them. A filter that hides nothing shows `{n}`.
- Under the title the severity bar and its legend show every active advisory once, at its highest severity; an
advisory without a known severity counts as low. The bar is at most 360 px wide and does not follow the filters.
- On the right of the panel header stand the field `Filter` (placeholder `Advisory, title or package`, clearable) and
the select `Severity` (`All`, `Critical`, `High`, `Medium`, `Low`), each with its label above. The filter field
matches the advisory identifier, the title and the packages, case-insensitively. The severity select lists an
advisory without a known severity only under `All`.
- Without any active advisory the page shows the empty panel `No active vulnerability findings have been recorded
yet.` with no count and no bar. While loading it shows the table skeleton of the panel; a failed load shows the
alert of [Web UI](web-ui.md#limits-and-errors).

### Table

- A row shows the expand button; the advisory identifier in semibold, as a link that opens in a new tab only 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 the severity, with `CVSS {score}` (one decimal) 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. An advisory
without a known severity reads `Unknown` in the low tone. Rows carry no colored rail.
- The expand button shows a downward chevron and is announced as `Show affected images` with `aria-expanded` false.
Activated, 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 then shows an upward chevron and is
announced as `Hide affected images` with `aria-expanded` true. A row that a filter hides stays expanded when it shows
again.
- A filter without a match shows `No advisories match the current filter.`, a count `0 of {all}` and no pager.

### Paging

- The pager shows only when more than 25 advisories match. It stands right-aligned below a hairline: `Rows per page`
with a select (25, 50, 100), the range (`1–25 of 31`, with an en dash) and the two buttons `Previous page` and
`Next page`. A button that cannot move is disabled and keeps a muted icon and its border.
- A change of the filter text, the severity or the rows per page shows the first page. A page size the client sends
that is not 25, 50 or 100 is ignored. The chosen size stays when the pager hides and returns.

### 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. 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

- Paging is done on the page, not by the table component: the table is given only the rows of the shown page.
- The page shows the error and empty states above and no other.

## Related decisions

- [`decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md`](../decisions/0084-the-vulnerabilities-page-pages-its-advisories-itself-and-draws-its-own-pager.md)
β€” the page keeps the page index and size and draws its own pager.

## Not here

- Routes, the actions table, shared display and error behavior in [Web UI](web-ui.md).
- How severities, CVSS scores and fix status are computed in [Vulnerabilities](vulnerabilities.md).
- The detail pages in [Detail pages](detail-pages.md); the other list pages join this area when they are converted.
10 changes: 4 additions & 6 deletions docs/areas/web-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,14 @@ to read the state the other areas compute and to start manual scans; it computes
| `/docker-instances` | Docker Instances | Configured Docker instances with endpoint, connection kind, latest runtime scan status and time, current resource usage and number of containers; with exactly one instance its current usage and usage history are shown on this page directly |
| `/docker-instances/{id}` | Docker Instance detail | The containers currently observed on one instance with linked own image and resource usage |
| `/base-images` | Shared Base Images | Base images used by two or more enabled images or containers, with the images built on them, the containers and number of enabled observed images that use them, and their vulnerability status |
| `/vulnerabilities` | Vulnerabilities | Active advisories across all images, one row per advisory, with severity and CVSS score, affected packages, fixed versions, number of affected images and running containers; a row expands to the affected images |
| `/vulnerabilities` | Vulnerabilities | Active advisories across all images, one row per advisory, with severity and CVSS score, affected packages, fixed versions, number of affected images and running containers; a row expands to the affected images; a severity bar of all advisories ([List pages](list-pages.md)) |
| `/scan-history` | Scan History | The 20 most recent scan runs (observed image scans, runtime container scans and vulnerability refreshes, [Scan runs](scan-engine.md#scan-runs)) with type, status, trigger, target, start time and error message |
| `/error` | Error | "Unexpected error" β€” the request could not be completed |
| `/not-found` | Not found | "Page not found" with a link back to the dashboard |

- Detail routes accept only identifiers in GUID format (the container identifier of the runtime container route is
free text); any other path renders the not-found page.
- Resource usage histories on detail pages show up to the 48 most recent samples of the last 24 hours.
- The Vulnerabilities page filters by free text (advisory identifier, title or package, case-insensitive) and by
severity (All, Critical, High, Medium, Low), shows 25 rows per page with page sizes 25, 50 and 100, and links an
advisory to its reference only when the reference is an absolute `http` or `https` address; the link opens in a
new tab.
- Which values the pages show and how they are computed (update state, recommended tag, vulnerability status,
derived runtime, base image chain, resource values) is owned by the feature areas listed under *Not here*.

Expand Down Expand Up @@ -319,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; 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
Expand Down Expand Up @@ -349,6 +346,7 @@ never their values.

## Not here

- The layout and contents of the list pages in [List pages](list-pages.md).
- How update states, recommended tags, tag candidates and manual tag preferences are evaluated in
[Update detection](update-detection.md).
- Image registration rules and reference formats in [Image catalog](image-catalog.md).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 0084: The Vulnerabilities page pages its advisories itself and draws its own pager

- **Status:** Accepted
- **Date:** 2026-12-01
- **Area:** List pages
- **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.
1 change: 1 addition & 0 deletions docs/decisions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | Accepted | 2026-12-01 |
<!-- project:end index -->
15 changes: 14 additions & 1 deletion src/DockerUpdateGuard/Components/Common/SectionPanel.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<section class="@CssClass">
<div class="dug-panel__header">
<h2 class="dug-panel__title">@Title</h2>
@if (TitleContent is not null || SubtitleContent is not null)
{
<div class="dug-panel__title-group">
<div class="dug-panel__title-row">
<h2 class="dug-panel__title">@Title</h2>
@TitleContent
</div>
@SubtitleContent
</div>
}
else
{
<h2 class="dug-panel__title">@Title</h2>
}
@if (HeaderContent is not null)
{
<div class="dug-panel__header-content">@HeaderContent</div>
Expand Down
12 changes: 12 additions & 0 deletions src/DockerUpdateGuard/Components/Common/SectionPanel.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ public partial class SectionPanel
[Parameter]
public string? Meta { get; set; }

/// <summary>
/// Content shown beside the title heading
/// </summary>
[Parameter]
public RenderFragment? TitleContent { get; set; }

/// <summary>
/// Content shown below the title heading
/// </summary>
[Parameter]
public RenderFragment? SubtitleContent { get; set; }

/// <summary>
/// Header content shown instead of the meta text
/// </summary>
Expand Down
Loading