Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
49ad121
Start the working record of feature 454
claude Nov 29, 2026
61372bb
Add the spec draft of feature 454
claude Nov 29, 2026
2e71102
Log the Product Manager's answer for feature 454
claude Nov 29, 2026
ef82795
Close the spec of feature 454
claude Nov 29, 2026
2672f79
Log the spec challenge of feature 454
claude Nov 29, 2026
54b5ddc
Revise the spec of feature 454 after the challenge
claude Nov 29, 2026
945f1ae
Add plan and tasks of feature 454
claude Nov 29, 2026
f8d16d9
Log the plan security review of feature 454
claude Nov 29, 2026
40cc316
Add the plan challenge notes of feature 454
claude Nov 29, 2026
194f648
Skeleton of the top navigation (G1)
claude Nov 29, 2026
bc6581b
Remove DashboardSummaryViewData as the plan's skeleton row names
claude Nov 29, 2026
8e46a60
Log the skeleton deletion
claude Nov 29, 2026
e22e39e
Tests first for the top navigation (G1)
claude Nov 29, 2026
d42e16b
Implement the top navigation (G1)
claude Nov 29, 2026
9b07540
Cover the deferred tests of the top navigation (G1)
claude Nov 29, 2026
a40c369
Log the documentation step of feature 454
claude Nov 29, 2026
c753b3a
Log the step 6 decision of feature 454
claude Nov 29, 2026
856b250
Log the corrected step 6 decision of feature 454
claude Nov 29, 2026
69befd5
Wrap long code strings in page content at 390 px
claude Nov 29, 2026
82d1bf5
Test the code wrap rule and the NavMenu unsubscribe
claude Nov 29, 2026
bfc19af
Log the gate stamp of feature 454
claude Nov 29, 2026
9d61b85
Log the review of feature 454
claude Nov 29, 2026
4886e65
Log the review decision of feature 454
claude Nov 29, 2026
08fbdc2
Apply the stored theme before the viewport subscription
claude Nov 29, 2026
0ed5fb0
Fix the summary of the closed drawer test
claude Nov 29, 2026
16f4f8a
Log the test fix of feature 454
claude Nov 29, 2026
9d6602f
Log the second gate stamp of feature 454
claude Nov 29, 2026
8231863
Log the delta review of feature 454
claude Nov 29, 2026
9b43306
Accept decision record 0081
claude Nov 29, 2026
c26fc76
Log the stamp of the record status
claude Nov 29, 2026
84bca92
Remove squad working record
claude Nov 29, 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Rules: [Hosting and configuration](docs/areas/hosting.md).
| `ConnectionStrings:DockerUpdateGuard` | none | Yes* | Named PostgreSQL connection string used when `DockerUpdateGuard:ConnectionString` is not set |
| `DockerUpdateGuard:ConnectionString` | none | Yes* | Inline PostgreSQL connection string |
| `DockerUpdateGuard:ConnectionStringName` | `DockerUpdateGuard` | No | Name of the `ConnectionStrings` entry to resolve |
| `DockerUpdateGuard:DisplayVersion` | assembly version | No | Version string shown in the navigation drawer; the Docker image sets this automatically |
| `DockerUpdateGuard:DisplayVersion` | assembly version | No | Version string shown at the end of every page and in the narrow-screen drawer; the Docker image sets this automatically |
| `DockerUpdateGuard:Database:MaxConnectionRetryCount` | `8` | No | Retries of a transiently failing database command during normal operation |
| `DockerUpdateGuard:Database:MaxConnectionRetryDelaySeconds` | `30` | No | Maximum back-off in seconds between those retries |
| `DockerUpdateGuard:Database:MigrationStartupTimeoutSeconds` | `120` | No | How long startup waits for the database to become reachable |
Expand Down
7 changes: 7 additions & 0 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,13 @@ Pages, routes and what each page shows or triggers are specified in
to `none`
([decision 0078](decisions/0078-mudblazor-elevation-shadows-are-switched-off-in-the-theme.md)).

- **Layout** (`Components\Layout`): `MainLayout` owns the sticky header, the
temporary drawer and the navigation state (the optional entries and the
display version, evaluated once per page load and persisted for the
interactive render); `NavMenu` renders that state as the header row and as
the drawer list. CSS shows the row from 1360 px and a drawer below it, and
the layout closes an open drawer when the window reaches 1360 px
([decision 0081](decisions/0081-the-navigation-row-shows-from-1360-px-and-a-drawer-below.md)).
- **Pages** (`Components\Pages`) have one `@page` route each.
- **`IApplicationViewService` (`UI\ApplicationViewService`)** is the single
facade every page depends on. It maps `DockerUpdateGuard.Data` entities
Expand Down
38 changes: 19 additions & 19 deletions docs/areas/web-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ to read the state the other areas compute and to start manual scans; it computes
connection. Data loaded for the first render is reused when the page becomes interactive, not loaded twice.
- There is no sign-in. Everyone who can reach the application can see every page and start every action
([Hosting and configuration](hosting.md) owns the security posture).
- All pages share one layout: a navigation drawer, a top bar and the page content. The drawer collapses into a menu
button on narrow screens.
- The top bar shows the product name, the dark-mode toggle, the number of *protected assets* (manual observed images
plus own images plus runtime containers) and *last activity* (the start time of the most recent scan run, or "No
scans yet"). The top bar reloads these values on every navigation and on every dashboard refresh signal (see
*Refresh without reload*). When its first load fails the top bar shows neither the values nor a placeholder; when
a reload fails it keeps the last values.
- The navigation lists Dashboard, My Images, Observed Images, Runtime Containers, Docker Instances, Shared Base
Images, Vulnerabilities and Scan History. *My Images* is listed only when both `DockerUpdateGuard:DockerHub:UserName`
and `DockerUpdateGuard:DockerHub:Pat` are set; *Shared Base Images* only when at least one shared base image exists. Both
conditions are evaluated when the session starts. The pages stay reachable by their routes either way. When the
check for shared base images fails, *Shared Base Images* is hidden.
- All pages share one layout: a sticky header (the shield mark and product name as a link to the Dashboard, the
navigation and the dark-mode toggle) above the page content, which is at most 1280 px wide plus 32 px side padding
(16 px below 960 px, 12 px below 600 px). From a window width of 1360 px the navigation is a row in the header; below
it the row gives way to a menu button that opens a drawer over the content, closed whenever a page loads, closed again
by an entry, Escape, a click outside or a window widened to 1360 px
([decision 0081](../decisions/0081-the-navigation-row-shows-from-1360-px-and-a-drawer-below.md)).
- The navigation lists Dashboard, My Images, Observed Images, Runtime Containers, Docker Instances, Base Images,
Vulnerabilities and Scan History, the same in the row and in the drawer; the entry of the open page (a list page, a
page below it, or either with a query string) is marked as the current page. *My Images* is listed only when both
`DockerUpdateGuard:DockerHub:UserName` and `DockerUpdateGuard:DockerHub:Pat` are set; *Base Images* only when at least
one shared base image exists. Both conditions are evaluated once per page load. The pages stay reachable by their
routes either way. When the check for shared base images fails, *Base Images* is hidden.
- When the first load of the Dashboard, My Images, Observed Images, Runtime Containers, Docker Instances, Shared Base
Images, Vulnerabilities or Scan History page fails, the page shows an error alert in place of its loading skeleton
(on Observed Images inside the *Manual images* section, the registration form stays usable) until a later load
succeeds. A page whose load needs two answers (Docker Instances, Scan History) shows no part of its data when
either fails. A reload that fails after a successful load keeps what is shown.
- The drawer shows the application version: `DockerUpdateGuard:DisplayVersion` when set, otherwise the version of the
running build, otherwise "unknown".
- The version line `DockerUpdateGuard <version>` ends every page and the drawer: `DockerUpdateGuard:DisplayVersion`
when set, otherwise the version of the running build, otherwise "unknown".
- Timestamps are shown in UTC as `yyyy-MM-dd HH:mm UTC`, the same for every browser and independent of the time zone and
culture of the server process. The resource chart labels are UTC too: the first and the last label read
`MM-dd HH:mm UTC`, the visible labels between them `HH:mm`.
Expand Down Expand Up @@ -167,10 +167,10 @@ to read the state the other areas compute and to start manual scans; it computes

### Refresh without reload

- After a manual scan, registration or rescan finishes, every open dashboard and every open top bar in every browser
- After a manual scan, registration or rescan finishes, every open dashboard in every browser
session connected to the same application process reloads its data without a page reload.
- Scheduled background runs do not send this signal: their results become visible when a page is opened or
navigated to again (the top bar also refreshes on every navigation). No page polls the server.
navigated to again. No page polls the server.

### Dashboard

Expand Down Expand Up @@ -229,7 +229,7 @@ never their values.

### Light and dark mode

- The UI has a light and a dark theme, switched with the toggle in the top bar.
- The UI has a light and a dark theme, switched with the toggle in the header.
- The choice is remembered per browser in encrypted browser storage. Without a stored choice the theme follows the
operating system's color-scheme preference, determined after the first render; the server-rendered first paint
is always light.
Expand Down Expand Up @@ -289,8 +289,8 @@ never their values.

- A failed first load of a list page or the dashboard shows one error alert `<prefix>: <reason>` with the fixed
reason in place of the skeleton, no empty-state note and no rows, and is logged like a user action (event ID
4000). A failed reload after a successful load is logged and shows nothing. The layout's loads are logged the same
way and show no text: `LoadDashboardSummary` (top bar) and `LoadNavigation` (the *Shared Base Images* entry).
4000). A failed reload after a successful load is logged and shows nothing. The layout's load is logged the same
way and shows no text: `LoadNavigation` (the *Base Images* entry).

| Page load | Prefix | Logged action |
| --- | --- | --- |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 0081: The navigation row shows from 1360 px, and a drawer below

- **Status:** Accepted
- **Date:** 2026-11-29
- **Area:** Web UI
- **Source:** Issue #454
- **Supersedes:** β€”

## Context

The flat refresh (#450) replaces the navigation drawer by a row of links in a 60 px header. The issue asked for the
row from 1280 px on, with 10 px link padding and the mockup's 28 px gaps, inside a header whose content is at most
1280 px wide plus 32 px side padding. Measured on the mockup in Chrome with the shipped Inter, the eight entries do not
fit one row at a 1280 px viewport (the header grows to two rows, 121 px), and fit at 1360 px with about 30 px to spare.
1360 px is no MudBlazor breakpoint (`Lg` is 1280, `Xl` 1920), so MudBlazor's responsive drawer cannot switch there.

## Options considered

1. **Row from 1360 px, drawer below, every value of the issue kept (chosen, by the Product Manager)** β€” the look of
the mockup is kept; between 1280 and 1359 px a desktop window shows the menu button instead of the row.
2. **Row from 1280 px with 8 px link padding and 16 px header gaps** β€” fits, but with about 7 px to spare under a
classic 15 px scrollbar, so a longer label or another font metric wraps the header again.
3. **Row from 1280 px with the issue's values, allowed to wrap** β€” the header doubles its height on common laptop
widths and the sticky header covers twice as much content.
4. **MudBlazor's responsive drawer at `Lg` (1280 px)** β€” no own breakpoint code, but switches at the width where the
row does not fit (option 3).

## Decision

The layout shows the navigation row from a 1360 px viewport width on and the menu button with a temporary drawer
below it; the switch is one pair of media queries in `app.css`, and the layout closes an open drawer when the window
reaches 1360 px. The values are in [Web UI](../areas/web-ui.md#general).

## Consequences

The breakpoint is the project's own: a ninth entry or a longer label needs a new measurement and possibly a new
width. The drawer state needs a viewport subscription (MudBlazor's `IBrowserViewportService`) instead of the drawer's
own breakpoint.
1 change: 1 addition & 0 deletions docs/decisions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,5 @@ once in the [area document](../areas/README.md) of the record's area, and the re
| [0078](0078-mudblazor-elevation-shadows-are-switched-off-in-the-theme.md) | MudBlazor elevation shadows are switched off in the theme | Accepted | 2026-11-28 |
| [0079](0079-statuses-map-to-tones-in-one-mapping-beside-the-chip-colors-of-unconverted-pages.md) | Statuses map to tones in one mapping, beside the chip colors of unconverted pages | Accepted | 2026-11-28 |
| [0080](0080-the-dashboard-counts-the-containers-advisories-and-own-images-it-lists.md) | The dashboard counts the containers, advisories and own images it lists | Accepted | 2026-11-29 |
| [0081](0081-the-navigation-row-shows-from-1360-px-and-a-drawer-below.md) | The navigation row shows from 1360 px, and a drawer below | Accepted | 2026-11-29 |
<!-- project:end index -->
2 changes: 1 addition & 1 deletion docs/ui-concept/flat-refresh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ The summary cards become one *Details* column; status and available update sit n

## What the mockups do not show

- **Narrow screens.** The mockups are drawn for the desktop. Below 1280 px the navigation collapses into a menu
- **Narrow screens.** The mockups are drawn for the desktop. Below 1360 px the navigation collapses into a menu
button that opens a drawer, and below 960 px table rows keep the card layout of the responsive redesign, in the
flat style.
- **The detail pages** of My Images, Observed Images and Docker Instances, and the error and not-found pages. They
Expand Down
107 changes: 35 additions & 72 deletions src/DockerUpdateGuard/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,86 +5,49 @@
<MudDialogProvider />
<MudSnackbarProvider />

<MudLayout Class="@GetLayoutClass()">
<MudDrawer @bind-Open="_drawerOpen"
Breakpoint="Breakpoint.Lg"
ClipMode="DrawerClipMode.Never"
Elevation="1"
Variant="DrawerVariant.Responsive"
Class="app-drawer">
<MudStack Spacing="3" Class="app-drawer-content">
<NavMenu />
</MudStack>
</MudDrawer>
<div class="app-shell" @attributes="GetShellAttributes()">
<MudLayout Class="@GetLayoutClass()">
<header class="app-header">
<div class="app-header__inner">
<MudIconButton Icon="@Icons.Material.Filled.Menu"
Color="Color.Inherit"
OnClick="ToggleDrawer"
Class="app-header__menu-button"
aria-label="Toggle navigation" />

<a href="" class="app-brand">
<svg class="app-brand__mark" viewBox="0 0 128 128" role="img" aria-label="DockerUpdateGuard logo" width="28" height="28">
<path d="M64 8c20 14 37 18 52 20v34c0 28-18 47-52 58C30 109 12 90 12 62V28c15-2 32-6 52-20Z" fill="currentColor" />
</svg>
<span class="app-brand__title">DockerUpdateGuard</span>
</a>

<MudMainContent Class="app-main-content">
<MudPaper Class="app-topbar" Elevation="0">
<div class="app-topbar__content">
<div class="app-topbar__brand">
<MudIconButton Icon="@Icons.Material.Filled.Menu"
Color="Color.Inherit"
OnClick="ToggleDrawer"
Class="app-topbar__menu-button"
aria-label="Toggle navigation" />
<img src="@Assets["logo-dg-shield.svg"]" alt="DockerUpdateGuard logo" class="app-brand__logo app-topbar__logo" />
<MudText Typo="Typo.h5" Class="app-brand__title app-topbar__title">DockerUpdateGuard</MudText>
</div>
<NavMenu Navigation="_navigation" />

<MudIconButton Icon="@(_isDarkMode ? Icons.Material.Filled.LightMode : Icons.Material.Filled.DarkMode)"
Color="Color.Inherit"
OnClick="ToggleDarkModeAsync"
Class="app-topbar__theme-toggle"
aria-label="Toggle dark mode" />
</div>
</header>

@if (_dashboardSummary is null)
{
@if (_summaryLoadFailed == false)
{
<MudSkeleton Width="140px" Height="32px" Class="app-topbar__status-skeleton" />
}
}
else
{
<div class="app-topbar__meta app-topbar__meta--full">
<MudPaper Class="hero-meta-card app-topbar__meta-card" Elevation="0">
<MudText Typo="Typo.caption" Class="muted-text">Protected assets</MudText>
<MudText Typo="Typo.h6">@GetProtectedAssetCount()</MudText>
</MudPaper>
<MudPaper Class="hero-meta-card app-topbar__meta-card" Elevation="0">
<MudText Typo="Typo.caption" Class="muted-text">Last activity</MudText>
<MudText Typo="Typo.h6">@GetLatestScanLabel()</MudText>
</MudPaper>
</div>
<MudDrawer @bind-Open="_drawerOpen"
Anchor="Anchor.Start"
ClipMode="DrawerClipMode.Never"
Elevation="0"
Variant="DrawerVariant.Temporary"
Width="min(360px, 92vw)"
Class="app-drawer">
<NavMenu Navigation="_navigation" OnEntrySelected="CloseDrawer" />

<div class="app-topbar__meta--compact">
<MudMenu AnchorOrigin="Origin.BottomRight" TransformOrigin="Origin.TopRight">
<ActivatorContent>
<MudChip T="string"
Icon="@Icons.Material.Filled.Shield"
Color="Color.Primary"
Class="app-topbar__pill"
aria-label="Show protected asset metrics">@GetProtectedAssetCount()</MudChip>
</ActivatorContent>
<ChildContent>
<div class="app-topbar__meta-popover">
<div class="app-topbar__meta-popover-item">
<MudText Typo="Typo.caption" Class="muted-text">Protected assets</MudText>
<MudText Typo="Typo.h6">@GetProtectedAssetCount()</MudText>
</div>
<div class="app-topbar__meta-popover-item">
<MudText Typo="Typo.caption" Class="muted-text">Last activity</MudText>
<MudText Typo="Typo.h6">@GetLatestScanLabel()</MudText>
</div>
</div>
</ChildContent>
</MudMenu>
</div>
}
</div>
</MudPaper>
<p class="app-version">DockerUpdateGuard @_navigation.DisplayVersion</p>
</MudDrawer>

<MudContainer MaxWidth="MaxWidth.ExtraExtraLarge" Class="page-container">
<main class="page-container">
@Body
</MudContainer>
</MudMainContent>
</MudLayout>

<p class="app-version">DockerUpdateGuard @_navigation.DisplayVersion</p>
</main>
</MudLayout>
</div>
Loading