Skip to content

web: Session UI Config Lifecycle#19788

Merged
GirlBossRush merged 1 commit intomainfrom
fix-session-ui-config
Jan 28, 2026
Merged

web: Session UI Config Lifecycle#19788
GirlBossRush merged 1 commit intomainfrom
fix-session-ui-config

Conversation

@GirlBossRush
Copy link
Contributor

Details

This PR fixes an issue which prevented the UI config from synchronizing after the session context is refreshed:

  • Added a generic applyThemeChoice function to validate and assign values to document.dataset.themeChoice. This can also be used in a future UI element to toggle the preferred scheme

@GirlBossRush GirlBossRush added this to the Release 2025.12.2 milestone Jan 27, 2026
@GirlBossRush GirlBossRush added the area:frontend Features or issues related to the browser, TypeScript, Node.js, etc label Jan 27, 2026
@GirlBossRush GirlBossRush requested a review from a team as a code owner January 27, 2026 06:18
@GirlBossRush GirlBossRush added the backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12 label Jan 27, 2026
@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 6d0d909
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/697858b837dd5e0008833e96
😎 Deploy Preview https://deploy-preview-19788--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.

@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 6d0d909
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/697858b8ab154e0008345353
😎 Deploy Preview https://deploy-preview-19788--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.

context: UIConfigContext,
subscribe,
})
@property({ attribute: false, useDefault: true })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kensternberg-authentik After a few rounds of testing I can confirm that useDefault: true without reflect appears to have a desired effect, preventing the host's updated callback from invoking on the first render.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool. Leave as is. :-)

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.42%. Comparing base (f080a82) to head (6d0d909).
⚠️ Report is 33 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19788      +/-   ##
==========================================
- Coverage   93.23%   92.42%   -0.82%     
==========================================
  Files         954      954              
  Lines       52443    52443              
==========================================
- Hits        48894    48468     -426     
- Misses       3549     3975     +426     
Flag Coverage Δ
conformance 38.23% <ø> (+<0.01%) ⬆️
e2e 44.03% <ø> (-0.05%) ⬇️
integration ?
unit 91.47% <ø> (-0.02%) ⬇️
unit-migrate 91.48% <ø> (-0.04%) ⬇️

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.

@github-actions
Copy link
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-6d0d90915618cbb4148146d1a3b4e4ce717789cc
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-6d0d90915618cbb4148146d1a3b4e4ce717789cc

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

context: UIConfigContext,
subscribe,
})
@property({ attribute: false, useDefault: true })
Copy link
Contributor

Choose a reason for hiding this comment

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

Cool. Leave as is. :-)

@GirlBossRush GirlBossRush merged commit 6d18f91 into main Jan 28, 2026
103 checks passed
@GirlBossRush GirlBossRush deleted the fix-session-ui-config branch January 28, 2026 17:52
@authentik-automation
Copy link
Contributor

🍒 Cherry-pick to version-2025.12 created: #19821

melizeche pushed a commit that referenced this pull request Jan 30, 2026
…12) (#19821)

web: Session UI Config Lifecycle (#19788)

Co-authored-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>
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 backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants