Repository navigation
web: Add path-router primitives. - #23990
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
4ac5811 to
6f93948
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #23990 +/- ##
=======================================
Coverage 91.37% 91.37%
=======================================
Files 1137 1137
Lines 71591 71591
Branches 3875 3875
=======================================
+ Hits 65416 65417 +1
+ Misses 6140 6139 -1
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-175b5bbe5b7e446a3aa98df5894b33fa88af2db0
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-175b5bbe5b7e446a3aa98df5894b33fa88af2db0Afterwards, run the upgrade commands from the latest release notes. |
6f93948 to
c6afab3
Compare
c6afab3 to
711009f
Compare
getRouterConfig returns a copy so callers cannot mutate the stored config; numeric deserialization only coerces digit strings that round-trip safely (leading zeros and unsafe integers stay strings); the matcher documents its leading-slash pathname contract.
711009f to
175b5bb
Compare
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Details
What does this PR change?
Adds the dependency-free building blocks of the new path-based router under
web/src/elements/router/core/, all new files with co-located unit tests:constants.ts— slug/ID/UUID pathname-group patternsparameters.ts— search-param serialization with typed round-tripsconfig.ts— base path and interface name injected by entrypoints (initRouter), so the router core never reads globalsRoute.ts—URLPattern-backed route, pattern compiled once at constructionmatcher.ts— pure first-match-wins scan over pre-compiled patternsNothing is wired into an entrypoint; the hash router is untouched and remains active.
Why is this change needed?
Part of moving the web UI from hash routing (
/if/admin/#/core/applications;{"page":2}) to real paths and query strings (/if/admin/core/applications?page=2), staged interface by interface. Server-side catch-alls: #23987. Navigation layer (click interception, href builders, legacy-hash translator): #23988, stacked on this PR.How was this tested?
26 unit tests across the five modules (Unit Tests vitest project), plus the full project run and typecheck. Depends on the transform fix in #23991 and the CI gating in #23989 (the base chain of this PR).
Linked issues
Checklist
make all)make docs)