Skip to content

web: Add the path-router outlet. - #24032

Merged
GirlBossRush merged 4 commits into
mainfrom
web/router-view
Sep 8, 2026
Merged

GirlBossRush merged 4 commits into
mainfrom
web/router-view

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Details

This PR adds <ak-router-view>, the outlet that renders the new path-based route table, plus the two core hooks it needs. It strips the interface prefix from location.pathname, matches through the router core, intercepts in-interface clicks, re-matches on popstate, redirects / to a configurable default-path, falls back to <ak-router-404> with the URL preserved, and owns the loading and error states, so a rejecting route renders an error state instead of escaping as an unhandled rejection. Sentry pageload and navigation spans mirror the legacy hash outlet.

Two supporting changes come with it: Route.resolve() exposes a route's render callback as a promise so the outlet can own the async states, and navigate() falls back to a full-page assign for cross-origin destinations instead of letting pushState throw.

Nothing mounts the element yet. The user-interface flip lands on top of this.

@GirlBossRush
GirlBossRush requested a review from a team as a code owner July 14, 2026 17:49
@netlify

netlify Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit a486db2
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6aa01020877cb00008a06f88
😎 Deploy Preview https://deploy-preview-24032--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit a486db2
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6aa01020311f090008452f3f
😎 Deploy Preview https://deploy-preview-24032--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@GirlBossRush
GirlBossRush requested a review from a team as a code owner August 7, 2026 17:28
@codecov

codecov Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.67%. Comparing base (a5eaa11) to head (a486db2).
⚠️ Report is 8 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #24032   +/-   ##
=======================================
  Coverage   91.67%   91.67%           
=======================================
  Files        1160     1160           
  Lines       73938    73938           
  Branches     4054     4054           
=======================================
  Hits        67781    67781           
  Misses       6115     6115           
  Partials       42       42           
Flag Coverage Δ
conformance 34.34% <ø> (+<0.01%) ⬆️
e2e 39.04% <ø> (+<0.01%) ⬆️
integration 30.97% <ø> (+<0.01%) ⬆️
rust 42.92% <ø> (ø)
unit 93.21% <ø> (ø)
unit-migrate 93.23% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-a486db271307bf8759ccbd0799681ab5d1b3bbe9
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-a486db271307bf8759ccbd0799681ab5d1b3bbe9

Afterwards, run the upgrade commands from the latest release notes.

@GirlBossRush
GirlBossRush removed the request for review from a team August 11, 2026 14:02
Base automatically changed from web/router-core to main August 21, 2026 03:36
@netlify

netlify Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit a486db2
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6aa0102068a5d80008634665
😎 Deploy Preview https://deploy-preview-24032--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@GirlBossRush GirlBossRush self-assigned this Aug 24, 2026
@GirlBossRush GirlBossRush added the area:frontend Features or issues related to the browser, TypeScript, Node.js, etc label Aug 24, 2026
@GirlBossRush GirlBossRush moved this from Todo to Needs review in authentik Core Aug 24, 2026
@GirlBossRush
GirlBossRush force-pushed the web/router-view branch 4 times, most recently from 08ac794 to 23fcdc1 Compare August 26, 2026 22:49
@GirlBossRush
GirlBossRush force-pushed the web/router-view branch 2 times, most recently from 906bce1 to 9c35666 Compare September 7, 2026 15:30
Both router outlets decided whether to open a tracing span by re-deriving
the policy from `process.env.NODE_ENV`, in two places that had drifted
apart: the page-load span was gated on the environment, the navigation
span only on the client existing.

Adds `sentryReporting()`, a leaf module over the Sentry SDK, and points
both gates in both outlets at it. Sentry initialization already decides
once and leaves the result on the client; reading it back keeps a single
copy of the policy.

The predicate mirrors the SDK's own `_isEnabled()` — `enabled` is
optional, and an unset value means enabled — so it stays correct if
initialization moves the decision ahead of `init()` and stops passing an
explicit flag. No behavior change here: `enabled` is currently set from
the same NODE_ENV expression the outlets were testing.

The helper is a leaf on purpose — `#common/sentry` pulls in `globalAK`
and the API client, which `RouterView` is documented not to import.
@github-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Sep 8, 2026
@GirlBossRush
GirlBossRush merged commit 95826ea into main Sep 8, 2026
145 checks passed
@GirlBossRush
GirlBossRush deleted the web/router-view branch September 8, 2026 23:11
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants