Repository navigation
Description
Part of #450. Depends on #451 (tokens) and on #453 (dashboard): the two values this issue removes from the top bar are shown on the dashboard from #453 on.
Problem
The layout (Components/Layout/MainLayout.razor) has a navigation drawer of up to 360 px on the left and a floating top bar card above the content. The top bar shows the logo and product name, the dark-mode toggle and two meta cards (Protected assets, Last activity) that it reloads on every navigation. On a desktop the drawer takes a quarter of the width for eight links, and the top bar repeats on every page two values that belong to the dashboard.
Target
A single header across the page with the brand, the navigation and the dark-mode toggle; the content below it uses the full width up to 1280 px.
The mockups show the layout from 1280 px on. The behavior below that width is specified in the text and has no mockup.
Scope
1. Header
- A
headerelement across the full width: background--dug-surface, a 1 px--dug-borderline at the bottom, no shadow, no radius, no margin around it. It stays at the top of the viewport while the page scrolls. - Its content is centered in a container of at most 1280 px with 32 px side padding, the same as the page content, and is 60 px high.
- Brand on the left, a link to
/: a flat, one-color shield of 26 px in--dug-primary(the outline ofwwwroot/logo-dg-shield.svgwithout gradient and letters) and the nameDockerUpdateGuardin--dug-font-display, 16 px, bold, letter spacing −0.01 em. Below 400 px the name is hidden, as today. - Navigation next to the brand, see 2.
- Dark-mode toggle on the right: an icon button of 44 × 44 px with a 1 px
--dug-border, radius--dug-radius-md; it shows a moon in the light theme and a sun in the dark theme and keepsaria-label="Toggle dark mode"and the classapp-topbar__theme-toggle. - The meta cards, the compact pill with its popover and the skeleton of the top bar are removed.
2. Navigation from 1280 px on
- A
navelement witharia-label="Main"holding the links in one row, in the order of today'sNavMenu: Dashboard, My Images, Observed Images, Runtime Containers, Docker Instances, Base Images, Vulnerabilities, Scan History. - My Images is shown only when a Docker Hub user name and token are configured, Base Images only when at least one base image is resolved — the conditions
NavMenuevaluates today, once per session start. - A link is 60 px high (the full header height), has 10 px horizontal padding and 14 px text without an icon.
- Inactive:
--dug-text-muted; hover:--dug-link. - Active:
--dug-text, semibold, a 2 px line in--dug-primaryat the bottom edge of the header, andaria-current="page". - Dashboard is active on
/only. Every other link is active on its route and on the routes below it, so a detail page keeps its list page marked (/runtime-containers/{instanceId}/{containerId}marks Runtime Containers). - Links show the 2 px focus outline of [UI] Flat refresh 1/9: design tokens, typography and MudBlazor theme #451 when focused with the keyboard.
3. Navigation below 1280 px
- The row of links is hidden. A menu button of 44 × 44 px with
aria-label="Toggle navigation"appears at the left of the brand. - The button opens a drawer from the left that lies over the content (temporary, with an overlay). It holds the same links, one below the other, each at least 44 px high, with the same active marking as a semibold link on
--dug-surface-subtle. - The drawer closes when a link is followed, on Escape and on a click outside.
- The drawer is flat:
--dug-surface, a hairline on its right, text in--dug-text. - From 1280 px on the drawer is never shown.
4. Content container
mainis centered, at most 1280 px wide (todayMaxWidth.ExtraExtraLarge), with 36 px top, 48 px bottom and 32 px side padding; the side padding shrinks to 16 px below 960 px and 12 px below 600 px, as today.
5. Version
- The application version leaves the drawer footer. It is shown as one line of 13 px muted text at the end of every page, inside the content container:
DockerUpdateGuard {version}, and at the bottom of the narrow-screen drawer. - How the version is resolved does not change (
DockerUpdateGuard:DisplayVersion, else the version of the running build, elseunknown).
6. Top bar values
- Protected assets and Last activity are no longer part of the layout; the dashboard shows them in its sub line ([UI] Flat refresh 3/9: dashboard that lists what needs attention #453).
MainLayoutno longer loadsGetDashboardSummaryAsync, no longer reloads it onNavigationManager.LocationChangedor onDashboardRefreshState.Changed, and no longer persistsMainLayout.DashboardSummary.IApplicationViewService.GetDashboardSummaryAsyncandDashboardSummaryViewDataare removed when nothing else uses them.
7. One evaluation of the navigation conditions
The header row and the drawer show the same entries. The conditions for My Images and Base Images are evaluated once and shared; HasBaseImagesAsync is not called once per variant.
Behavior that must not change
- Dark mode: toggle, persistence in protected browser storage under
dug-dark-mode, fallback to the system preference, the classdug-darkon the layout. - Routes and the pages that stay reachable by their route when their link is hidden.
- The error and not-found pages render inside the same layout.
Out of scope
- Page content.
- A redesign of the favicon; whether it follows the flat shield is an open question below.
Affected files
src/DockerUpdateGuard/Components/Layout/MainLayout.razor(.cs),NavMenu.razor(.cs)src/DockerUpdateGuard/wwwroot/app.css(the.app-drawer,.app-topbar*,.app-nav*,.app-version*,.page-containerrules),wwwroot/logo-dg-shield.svgor a second flat logo assetsrc/DockerUpdateGuard/UI/IApplicationViewService.cs,ApplicationViewService.cs,DashboardSummaryViewData.csdocs/areas/web-ui.md: General (layout, top bar, navigation, version) and Refresh without reload (the top bar no longer takes part)docs/ARCHITECTURE.md, section 9
Tests
- Existing tests that follow:
MainLayoutRenderTests(assertsapp-topbar__meta--full,app-topbar__meta--compact,app-topbar__pill,app-topbar__meta-popover,app-topbar__status-skeleton,dug-dark, and clicks.app-topbar__theme-toggle),MainLayoutTests(GetProtectedAssetCount),NavMenuTests, and the service tests ofGetDashboardSummaryAsync. - New: order and visibility of the entries for both conditions; the active entry for
/, for a list route and for a detail route (aria-current); the menu button opens and closes the drawer and a followed link closes it; the version line with a configured and with a resolved version; the layout no longer requests the dashboard summary.
Proposed acceptance criteria
- From 1280 px on the header shows brand, the navigation row and the dark-mode toggle, and no drawer exists.
- Below 1280 px the row is replaced by a menu button that opens a drawer with the same entries; the drawer closes on navigation, Escape and outside click.
- The entries, their order and the conditions of My Images and Base Images are those of today's navigation.
- Exactly one entry is marked active with
aria-current="page"; a detail page marks its list page;/marks Dashboard only. - The header shows neither Protected assets nor Last activity, and the layout does not load the dashboard summary.
- Every page shows the version line at its end.
- The dark-mode toggle works and persists as before.
- The content is at most 1280 px wide and has no horizontal overflow at 390, 768 and 1280 px.
docs/areas/web-ui.mddescribes the header, the navigation on wide and narrow screens and the version line.
Open questions for the spec
- Should the favicon and the logo asset become the flat one-color shield as well, or only the header mark? Proposal: both, so that the brand looks the same everywhere.
- Is the version line at the end of every page wanted, or should the version be shown only in the narrow-screen drawer and on one page? Proposal: on every page.


Activity
LarsLaskowski commentedon Nov 29, 2026
Squad working record
Verification matrix of feature-454-top-navigation on
9b43306MainLayoutRendersHeaderWithBrandNavigationAndThemeToggle;AppStylesheetWideLayoutHidesMenuButtonAndDrawer;AppStylesheetHeaderRowIsOneNonWrappingLineOfContentWidth; manual: Dev, local run, fact 129b43306: src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.cs, src/Tests/DockerUpdateGuard.Tests/AppStylesheetTests.csNavMenuRendersEntriesInOrderWithLabels(DataRow per condition pair);MainLayoutRendersSameEntriesInRowAndDrawer;MainLayoutCallsBaseImageCheckOnce;MainLayoutWithPersistedNavigationDoesNotCheckBaseImagesAgain;MainLayoutBaseImageCheckFailureHidesEntryAndLogs;NavMenuEntriesAreLinksWithoutInteractivity9b43306: src/Tests/DockerUpdateGuard.Tests/NavMenuTests.cs, src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.cs, src/Tests/DockerUpdateGuard.Tests/MainLayoutPersistentStateTests.csNavMenuIsActiveMatchesEntryRoute(DataRows:""/"",vulnerabilities,vulnerabilities?page=2,runtime-containers/a/b,observed-images/1,error,not-found,vulnerabilities-x,Vulnerabilities);NavMenuOnDashboardMarksOnlyDashboard;NavMenuOnHiddenEntryDetailMarksNoEntry9b43306: src/Tests/DockerUpdateGuard.Tests/NavMenuTests.csMainLayoutDrawerStartsClosed;MainLayoutMenuButtonOpensDrawerWithEntriesAndVersion;MainLayoutFollowingEntryClosesDrawer;MainLayoutEscapeClosesDrawer;MainLayoutWideViewportClosesOpenDrawer; click outside:OverlayAutoClosestays at its default, asserted inMainLayoutMenuButtonOpensDrawerWithEntriesAndVersion9b43306: src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.csMainLayoutRendersNoTopBarValues;MainLayoutNavigationAndRefreshSignalLoadNothing;ApplicationTelemetryRuntimeContainerGaugeEqualsDashboardCount(adapted, see Test files)9b43306: src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.csMainLayoutRendersVersionLineAfterBody(DataRow configured1.2.3/ unset → resolved, notunknownin a test host with an informational version)9b43306: src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.csMainLayoutTogglingDarkModeButtonAppliesDarkLayoutClass(kept);MainLayoutThemeToggleShowsMoonInLightAndSunInDark9b43306: src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.csMainLayoutBrandMarkIsInlineShieldInPrimaryColor;AppBrandAssetsAreFlatOneColorShield(DataRow per file)9b43306: src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.cs, src/Tests/DockerUpdateGuard.Tests/AppBrandAssetsTests.csAppStylesheetContentContainerHasContentWidthAndPadding;AppStylesheetHeaderControlsMeetTargetSizeAndFocusOutline;AppStylesheetNarrowestLayoutHidesProductName;AppStylesheetKeepsReducedMotionRule(kept);MainLayoutThemeStatusColorsReachMinimumContrast(kept); manual: Dev, local run, N2 widths in both themes (fact 12)9b43306: src/Tests/DockerUpdateGuard.Tests/AppStylesheetTests.cs, src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.csdocs/areas/web-ui.mdanddocs/ARCHITECTURE.md§9 against the built layout (step 8)Manual checks (AC1, AC4, AC9) are recorded in the log rows
6 Manual check (G1)and6 Implement (decide) (G1)below.log.md
Log: Feature #454 – app shell with a top navigation
One line per pipeline step: date and time of day (UTC), step, member, result. Lead decisions and escalations
are quoted in full.
Generated by Claude Code
LarsLaskowski commentedon Nov 29, 2026
Squad working record, wrap-up
Continuation of the log table of the working record above (that comment ends with the
9 PR approvaland last gate stamp rows). The6 Manual check (G1)row there was written by the Dev's report; it is recorded here as an Orchestrator row because the Dev's launch carried no usage figures.Squad run metrics
Template: LarsLaskowski/Squad-Spec-Repository-Template v2026.11.16 (commit 6faa7e3391bd)
Tokens per kind and their weighted figure (every token at its list price, in tokens of Sonnet input:
.squad/tools/session-usage.py):Session usage
Tokens per model (the session and all its subagents; Claude Code's own background calls are not in the transcripts, so this is a lower bound):
Subagents:
Orchestrator (this session without its subagents): 2,982,757 weighted, 25 % of the total, on claude-sonnet-5-5.
Orchestrator context: 121 turns, 96,732 tokens at the first, 282,287 at the last.
Weighted: every token at its list price, in tokens of Sonnet input (
PRICESin.squad/tools/session-usage.py); a model of no listed family has none (–).Generated by Claude Code