Skip to content

web: Gracefully handle missing element construction. - #21787

Merged
GirlBossRush merged 2 commits into
mainfrom
defensive-element-construction
May 5, 2026
Merged

GirlBossRush merged 2 commits into
mainfrom
defensive-element-construction

Conversation

@GirlBossRush

Copy link
Copy Markdown
Contributor

Details

This PR introduces a fallback to component tag names which are provided from the server. If the component fails to load, the fallback will render an error message instead of breaking the entire page.

This can be observed when a stage has been created on another branch:

Screenshot 2026-04-23 at 02 38 50

@GirlBossRush
GirlBossRush requested a review from a team as a code owner April 23, 2026 00:42
@GirlBossRush
GirlBossRush requested a review from BeryJu April 23, 2026 00:42
@GirlBossRush GirlBossRush added the area:frontend Features or issues related to the browser, TypeScript, Node.js, etc label Apr 23, 2026
@netlify

netlify Bot commented Apr 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 9cb0152
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/69f95c1824dfd40009d6306e
😎 Deploy Preview https://deploy-preview-21787--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.

@netlify

netlify Bot commented Apr 23, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit ef73bf6
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69e96af68568b00008d0132f
😎 Deploy Preview https://deploy-preview-21787--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.

@codecov

codecov Bot commented Apr 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.18%. Comparing base (805ff9f) to head (9cb0152).
⚠️ Report is 197 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21787      +/-   ##
==========================================
+ Coverage   92.22%   93.18%   +0.95%     
==========================================
  Files        1034     1024      -10     
  Lines       60024    59278     -746     
  Branches     2695      400    -2295     
==========================================
- Hits        55356    55236     -120     
+ Misses       4595     4042     -553     
+ Partials       73        0      -73     
Flag Coverage Δ
conformance 36.90% <ø> (-0.07%) ⬇️
e2e 42.10% <ø> (-0.80%) ⬇️
integration 33.29% <ø> (-0.61%) ⬇️
rust 0.00% <ø> (-60.56%) ⬇️
unit 92.09% <ø> (+0.16%) ⬆️
unit-migrate 92.12% <ø> (+0.09%) ⬆️

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

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

@BeryJu BeryJu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice QOL!

Comment thread web/src/elements/errors/boundaries.ts Resolved
@netlify

netlify Bot commented Apr 23, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit ef73bf6
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69e96af6a5da9800081010e4
😎 Deploy Preview https://deploy-preview-21787--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.

@github-actions

github-actions Bot commented Apr 23, 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-9cb01521e1a173e8f4180f22e1d9a9d89073d210
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-9cb01521e1a173e8f4180f22e1d9a9d89073d210

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

Show a developer-oriented hint when CanDebug is set, and an
end-user-friendly suggestion (refresh / clear cache) otherwise.

Co-authored-by: Agent (authentik-i21787-graceful-gross-chrome) <[email protected]>

@kensternberg-authentik kensternberg-authentik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine, but it also feels like a lot of ceremony. I'm not sure we need it. Do other applications like Spectrum, Home Assistant, and so forth have anything like this?

@GirlBossRush
GirlBossRush merged commit 2b48c27 into main May 5, 2026
113 checks passed
@GirlBossRush
GirlBossRush deleted the defensive-element-construction branch May 5, 2026 16:41
kensternberg-authentik added a commit that referenced this pull request May 6, 2026
* main: (338 commits)
  root: ensure uv sync does not update uv.lock (#22084)
  core: bump dramatiq from 1.17.1 to 2.1.0 (#22076)
  web: Fix Vendored Lex package. Add Unit Tests  (#22083)
  core, web: update translations (#22074)
  website: bump the build group in /website with 6 updates (#22075)
  web: bump ip-address from 10.1.0 to 10.2.0 in /web (#22082)
  web: bump the swc group across 1 directory with 11 updates (#22078)
  ci: bump taiki-e/install-action from 2.75.29 to 2.75.30 in /.github/actions/setup (#22077)
  web: bump country-flag-icons from 1.6.16 to 1.6.17 in /web (#22079)
  web: bump yaml from 2.8.3 to 2.8.4 in /web (#22080)
  core: bump sentry from 0.47.0 to 0.48.0 (#22081)
  packages/client-ts: Fix TypeScript config, ESBuild warnings (#21863)
  web: fix identification stage OUIA attributes (#22049)
  stages/invitation: Invitation wizard (#20399)
  Web/release202604/nits 2 (#22040)
  web: Gracefully handle missing element construction. (#21787)
  root: update django to 5.2.14 (#22064)
  tenants: add option to mark flag as deprecated (#22063)
  web/stages: better wording for webauthn authenticator attachments options (#22062)
  web: bump vite from 8.0.8 to 8.0.10 in /web (#21842)
  ...
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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants