Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5a8ca59
Start working record for feature 451
claude Nov 28, 2026
e8d13ac
Add spec for feature 451
claude Nov 28, 2026
8cbd335
Log spec challenge for feature 451
claude Nov 28, 2026
8617317
Revise spec for feature 451
claude Nov 28, 2026
dcc6a3e
Add plan and tasks for feature 451
claude Nov 28, 2026
678c453
Add plan challenge notes for feature 451
claude Nov 28, 2026
2c96e4a
Log skipped skeleton for feature 451
claude Nov 28, 2026
1fe6726
Add failing tests for stylesheet and font of feature 451
claude Nov 28, 2026
29b3c5e
Flatten app.css tokens and add Space Grotesk
claude Nov 28, 2026
8a895fe
Add deferred stylesheet tests for feature 451
claude Nov 28, 2026
62596cc
Log G2 skeleton skip for feature 451
claude Nov 28, 2026
5ea50ce
Add failing theme tests for feature 451
claude Nov 28, 2026
87dbd01
Set flat MudBlazor theme for feature 451
claude Nov 28, 2026
e395e7d
Log coverage gate for feature 451
claude Nov 28, 2026
3e435ea
Document flat token layer and fonts for feature 451
claude Nov 28, 2026
588dc6a
Record gate stamp for feature 451
claude Nov 28, 2026
65c4cd2
Log manual check for feature 451
claude Nov 28, 2026
706cd3e
Apply verbatim review doc fixes for feature 451
claude Nov 28, 2026
eb80e29
Raise active drawer link specificity over MudBlazor
claude Nov 28, 2026
89570e6
Record gate stamp after review fix for feature 451
claude Nov 28, 2026
6f56ee6
Log delta review for feature 451
claude Nov 28, 2026
6e4fb12
Accept decision records 0077 and 0078
claude Nov 28, 2026
ff9aca9
Record gate stamp for decision status
claude Nov 28, 2026
019aafd
Remove squad working record
claude Nov 28, 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
25 changes: 23 additions & 2 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,32 @@ behavior is in [Registries](areas/registries.md).

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 design-system layer
(`wwwroot\app.css`, light/dark via a `.dug-dark` class) on top of it.
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).

- **Design tokens** (`wwwroot\app.css`) are the `--dug-*` custom properties
for colors, radii, fonts and the transition. The light values sit in
`:root`; the dark values sit in one block with the selector
`:is(.dug-dark, :root:has(.dug-dark))`, which applies while the layout
carries `dug-dark` and reaches the whole document, so menus, popovers and
dialogs that MudBlazor renders beside the layout take the dark values too
([decision 0077](decisions/0077-the-dark-theme-tokens-apply-to-the-whole-document-while-the-layout-is-dark.md)).
Every rule outside the two token blocks uses tokens only, with no blur,
gradient or drop shadow.
- **Fonts** are self-hosted from `wwwroot\fonts` and declared with
`@font-face` and `font-display: swap`: Inter for text and Space Grotesk
(variable latin subset, with its SIL Open Font License text) for page
titles, entity names and figures. `App.razor` preloads both files; the
page loads no font or style from another host.
- **MudBlazor theme** is the private `_theme` of `MainLayout`; it mirrors
the tokens: a 6 px default radius, the Inter stack as default font with
Space Grotesk for headings `h1`–`h4`, 14 px text with a line height of
1.45, both palettes with the token colors, the page ground color as
contrast text of the dark status colors, and all 26 elevation shadows set
to `none`
([decision 0078](decisions/0078-mudblazor-elevation-shadows-are-switched-off-in-the-theme.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
14 changes: 14 additions & 0 deletions docs/areas/web-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,16 @@ never their values.
- If the browser storage cannot be read or written, the toggle still works for the session and the choice is not
remembered.
- Users who ask their system for reduced motion get (practically) no transitions or animations.
- Both themes are flat and come from one set of design values with a light and a dark variant: opaque surfaces
with a 1 px hairline border, no blur, gradient or drop shadow (including the shadows MudBlazor draws under tables,
the drawer and filled buttons), and no lift, scaling or shadow when a card, link or button is hovered or pressed.
Menus, popovers (tooltips excepted) and dialogs are separated from the content by a hairline border; dialogs and snackbars also keep the drop shadow MudBlazor's own stylesheet gives them.
- In the dark theme the dark values apply to the whole document, so menus, popovers and dialogs are dark too.
- Text and status labels keep a contrast of at least 4.5:1 against their background in both themes; filled status
chips and buttons of the dark theme draw their label in the dark page color.
- Text is set in Inter; page titles, entity names, the figures of the dashboard's metric cards and the product name
are set in Space Grotesk. Both fonts and the styles are served by the application itself; the browser loads
nothing from another host for them, and until a font has loaded the text shows in a fallback font.

### Secrets

Expand Down Expand Up @@ -258,6 +268,10 @@ never their values.
missing record or a failed load inline.
- [0060](../decisions/0060-a-detail-page-acts-only-on-the-state-of-its-current-route.md) β€” A detail page
acts only on the state of its current route.
- [0077](../decisions/0077-the-dark-theme-tokens-apply-to-the-whole-document-while-the-layout-is-dark.md) β€” The dark
theme's tokens apply to the whole document while the layout is dark.
- [0078](../decisions/0078-mudblazor-elevation-shadows-are-switched-off-in-the-theme.md) β€” MudBlazor elevation
shadows are switched off in the theme.

## Not here

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 0077: The dark theme's tokens apply to the whole document while the layout is dark

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

## Context

The dark theme sets the class `dug-dark` on the layout element, and `app.css` overrides the `--dug-*` tokens under
that class. MudBlazor renders menus, popovers and dialogs in providers that sit beside the layout, not inside it
(`Components/Layout/MainLayout.razor`), and the page body is outside it too, so their tokens resolve to the light
values while the rest of the page is dark. Once the flat refresh colors these surfaces from the tokens, a muted text in
the top bar's compact menu would read 2.9:1 on the dark surface. The class must stay on the layout: the layout tests
and the toggle rely on it ([Web UI](../areas/web-ui.md#light-and-dark-mode)).

## Options considered

1. **The dark token block also matches the document root while it contains the dark layout (chosen)** β€” one selector
in `app.css`, no markup or script; the body and every provider inherit the dark values. It needs `:has()`
(all current browsers); wrapped in the forgiving `:is()`, an older browser keeps at least the dark layout.
2. **Carry the class to an element that wraps the providers and the layout** β€” works for the providers, but changes
the layout's markup and where the class sits, and leaves the body light.
3. **Set the class on `<html>` through JavaScript interop** β€” reaches everything, but adds a script no unit test
covers, a second source of the theme state and a flash before the call runs.

## Decision

The dark token block's selector is `:is(.dug-dark, :root:has(.dug-dark))`, so the dark values apply to the whole
document while the layout carries `dug-dark`; the class stays on the layout. Theme switching itself is unchanged
([Web UI](../areas/web-ui.md#light-and-dark-mode)).

## Consequences

Later sub-issues of #450 may color any surface, also one MudBlazor renders outside the layout, from the tokens. A
browser without `:has()` shows the dark layout with light menus and dialogs. Moving the theme state off the layout
element would make this selector obsolete.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 0078: MudBlazor elevation shadows are switched off in the theme

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

## Context

The flat refresh (#450) draws no shadows: panels are separated by hairlines. Besides the shadows of `app.css`,
MudBlazor draws its own: every surface with an elevation above zero (each table, the dashboard's hero panel, the
drawer) takes it from the theme's elevation levels, and filled buttons carry shadows written into MudBlazor's
stylesheet. Menus and popovers use the same elevation levels to stand out from the content below; dialogs and snackbars carry shadows written into MudBlazor's stylesheet. The pages
themselves are rebuilt only in later sub-issues, so this one may not change their markup.

## Options considered

1. **Every elevation level of the theme is `none`, filled buttons lose their shadow in `app.css`, and menus,
popovers and dialogs get a hairline border (chosen)** β€” one place for all present and future surfaces, checkable
in the theme; floating layers are separated the flat way.
2. **Override the shadow of each affected surface in `app.css`** β€” keeps the shadows of floating layers, but is a list
every new component of the later sub-issues must extend.
3. **Set `Elevation="0"` on each surface in the markup** β€” about twenty edits in pages this sub-issue must not
change, and filled buttons keep their shadow.

## Decision

The MudBlazor theme sets all of its elevation levels to `none`; `app.css` removes the shadow of filled buttons in
every state and borders menus, popovers and dialogs with the border token
([Web UI](../areas/web-ui.md#light-and-dark-mode)).

## Consequences

No component can show a shadow through its elevation any more; one that needs to stand out gets a border. A MudBlazor
update that adds literal shadows to another component needs a rule in `app.css`.
2 changes: 2 additions & 0 deletions docs/decisions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,6 @@ once in the [area document](../areas/README.md) of the record's area, and the re
| [0074](0074-a-docker-engine-stats-or-image-inspect-answer-that-is-not-a-json-object-is-an-invalid-response.md) | A Docker Engine stats or image inspect answer that is not a JSON object is an invalid response | Accepted | 2026-11-28 |
| [0075](0075-a-docker-engine-container-list-or-image-history-that-is-not-a-json-array-is-an-invalid-response.md) | A Docker Engine container list or image history that is not a JSON array is an invalid response | Accepted | 2026-11-28 |
| [0076](0076-the-dotnet-release-index-is-parsed-as-a-remote-json-object-and-an-entry-that-is-not-one-is-left-out.md) | The .NET release index is parsed as a remote JSON object, and an entry that is not one is left out | Accepted | 2026-11-28 |
| [0077](0077-the-dark-theme-tokens-apply-to-the-whole-document-while-the-layout-is-dark.md) | The dark theme's tokens apply to the whole document while the layout is dark | Accepted | 2026-11-28 |
| [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 |
<!-- project:end index -->
1 change: 1 addition & 0 deletions src/DockerUpdateGuard/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<base href="/" />
<ResourcePreloader />
<link rel="preload" href="@Assets["fonts/InterVariable.woff2"]" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="@Assets["fonts/SpaceGrotesk-Variable-latin.woff2"]" as="font" type="font/woff2" crossorigin />
<link rel="stylesheet" href="@Assets["_content/MudBlazor/MudBlazor.min.css"]" />
<link rel="stylesheet" href="@Assets["app.css"]" />
<link rel="icon" type="image/svg+xml" href="@Assets["favicon.svg"]" />
Expand Down
Loading