Repository navigation
web: Flip the user interface to path-based routing - #25007
Conversation
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
b8f5189 to
584d8df
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #25007 +/- ##
==========================================
- Coverage 91.86% 91.82% -0.04%
==========================================
Files 1169 1169
Lines 75451 75451
Branches 4054 4054
==========================================
- Hits 69310 69286 -24
- Misses 6099 6123 +24
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
f5cd4f1 to
8d08cb1
Compare
34d56b9 to
e476c5d
Compare
e476c5d to
58a2d01
Compare
6f0f257 to
f00ae8c
Compare
f00ae8c to
5e52124
Compare
5e52124 to
217f06a
Compare
480f3a9 to
46f267e
Compare
46f267e to
86b2b1d
Compare
d67bf2e to
0a16265
Compare
7ab49af to
05da9f5
Compare
Route's parameter type sits in a contravariant position, so a route that declares typed path parameters is not assignable to Route<RouteParameterRecord> and a mixed table cannot be typed as Route[]. RouteLike erases the parameter type through method bivariance, so each route keeps its own typed render callback while the outlet drives them uniformly.
05da9f5 to
a5ffc82
Compare
The legacy router read `#/settings;page-sources` as a tab selector, but the shim fed the bare token to URLSearchParams, producing a valueless key that serialized away — so the tab was silently dropped. Decode it to the `page` parameter instead, which is what ak-tabs reads. This keeps the source-linking redirect in flow_manager.py landing on the Sources tab while it still emits the legacy hash form.
a5ffc82 to
e1ec1be
Compare
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-e1ec1be68f8846549da9fe454fbfe494f7cae1d7
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-e1ec1be68f8846549da9fe454fbfe494f7cae1d7Afterwards, run the upgrade commands from the latest release notes. |
Details
This PR flips
/if/user/from the legacy hash router to path-based routing on the router core.initRouter({ interfaceName: "user" })runs at boot,user/Routes.tsbecomes aURLPatternroute table (/library,/requests,/settings,/agents), and<ak-router-outlet>gives way to<ak-router-view>. Library search persists as a real?q=param, and the settings, MFA, source, and admin-wizard deep links are rebuilt with the base-path-awaretoUserInterface/toAdminInterfacehelpers.One fixture fix rides along:
SessionFixture's password locator now matches exactly, because the flow's "Show password" toggle also answers togetByLabel("Password")and was breaking every e2e login.Stacked on #24032.
Testing
110-user-routinge2e: 6/6 — deep load, history,?q=persistence, legacy-hash shim, and cross-interface full load. Unit tests,lint-check, andlint:typesclean.