Skip to content

feat: align error pages with the design system#83

Merged
andregoepel merged 2 commits into
mainfrom
feature/design-pages-misc
Jul 9, 2026
Merged

feat: align error pages with the design system#83
andregoepel merged 2 commits into
mainfrom
feature/design-pages-misc

Conversation

@andregoepel

Copy link
Copy Markdown
Owner

Final small slice of the design migration — the error/utility pages.

  • Error (/Error): the raw Bootstrap-styled markup (text-danger headings, bare <p>s) becomes the design page skeleton — heading + muted subtitle and a card for the development-mode note — and uses AppFoundationPageTitle.
  • ErrorPage (404 / 403): uses AppFoundationPageTitle for a brand-suffixed title (already used the reskinned Radzen card).
  • NotFound (delegates to ErrorPage) and EmptyLayout (pass-through layout) need no changes.

Verification

  • dotnet build: 0 errors · unit tests: 56/56 (incl. the ErrorPage/NotFound tests) · csharpier: passes

With this, all of app-foundation's own pages use the design system. The identity flows (login, 2FA, manage, admin dialogs) come designed from the AndreGoepel.Marten.Identity.Blazor package.

- Error (/Error): replace the raw Bootstrap-styled markup with the design page
  skeleton (heading + muted subtitle, a card for the development-mode note) and use
  AppFoundationPageTitle.
- ErrorPage (404/403): use AppFoundationPageTitle for a brand-suffixed title.

NotFound (delegates to ErrorPage) and EmptyLayout (a pass-through layout) need no
changes.
…re-execute

The 404 surface had been unwired since the flip to a packable RCL: the
sample host's Routes.razor lost the old <NotFound> section and
NotFound.razor had no route, so unknown URLs returned a bare 404.

- NotFound.razor gets @page "/not-found" and reads an optional ?code=
  query so a re-executed 403 renders its own copy
- the sample Router points NotFoundPage at it (interactive navigations)
- UseAppFoundation adds UseStatusCodePagesWithReExecute("/not-found",
  "?code={0}") so hard requests that match no endpoint render the
  designed page for every consumer
@andregoepel
andregoepel merged commit a8d30ef into main Jul 9, 2026
3 checks passed
@andregoepel
andregoepel deleted the feature/design-pages-misc branch July 9, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant