Files
Heimdall/skills/ui-unknown-route/SKILL.md
T
arnaud.dartois d1dcd903d7
Heimdall Gitea / Detect CI scope (push) Successful in 4s
Heimdall Gitea / Build and tests (push) Skipped
Heimdall Gitea / Build and scan server image (push) Skipped
Heimdall Gitea / Build and scan agent image (push) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Skipped
Heimdall Gitea / Publish versioned installer release (push) Skipped
Heimdall Gitea / CI policy (push) Successful in 1s
docs: remove stale UI page count from technical spec (#400)
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-13 12:16:47 +01:00

2.3 KiB

name, description
name description
ui-unknown-route Diagnose and verify unknown-route rendering in Heimdall's interactive Blazor UI.

Unknown UI routes

Heimdall renders its root Routes component in an interactive server circuit with prerendering disabled (Components/App.razor). In .NET 10, configure Router.NotFoundPage; the legacy <NotFound> fragment is not supported by Blazor Web Apps. Unknown direct browser requests have no matched endpoint and cannot start the circuit, so Program must render a small static HTML 404 using the same NotFoundPage_* resources and /dashboard link. Skip API, hub, health, Hangfire, non-HTML, and file-like requests so their 404 responses keep their native format.

The reusable interactive error screen is Components/Pages/NotFound.razor. It owns its MainLayout, title/body localization, and the return link to /dashboard. Keep it assigned as Router.NotFoundPage for client-side unknown navigation. Keep the static HTTP fallback's resource keys and link target aligned with this component.

When maintaining route documentation or the UI summary in docs/specs.md, verify current routes against the Razor @page directives and point detailed inventories to docs/ui-pages.md instead of copying a hard page count. Also check route examples in navigation and authorization guides against the current layout links and their visibility conditions. Mark removed mockups as historical and link to the replacement pages; do not preserve a retired route such as /admin as if it were still mapped.

Acceptance workflow

  1. In tests/Heimdall.E2E.Tests/Pages/PageRenderTests.cs, verify a direct unknown URL returns HTTP 404 and displays the localized title and return link in its static response.
  2. Verify client-side navigation from a known route to an unknown URL (for example Blazor.navigateTo(...)) and confirm the same page renders.
  3. Confirm /not-found and a known route still render. Verify API 404 responses remain API responses and do not receive the UI document, even when the request accepts HTML.
  4. Run the focused Playwright E2E tests and the disposable Central + PostgreSQL Compose acceptance from compose-disposable-recipe. Use generated credentials, unique project/port/volume/image names, probe the route through a browser after the health check, and verify cleanup of project resources and every exact local image tag.