Skip to content

web/stages: Fix stage type errors - #25689

Merged
GirlBossRush merged 4 commits into
mainfrom
fix-stage-type-errors
Sep 16, 2026
Merged

GirlBossRush merged 4 commits into
mainfrom
fix-stage-type-errors

Conversation

@GirlBossRush

Copy link
Copy Markdown
Contributor

This PR fixes several issues reported by lit-analyzer, as well as a few back-portable refinements:

  • The Enter-to-redirect handler was added to document on every challenge update and never removed, leaking a listener per update and firing redirect() once per accumulated listener.
  • Fixed use of public on overridden protected methods.
  • Fixed issue where generic type for BaseStage can't infer FlowErrorChallenge as a valid StageChallengeLike.

The Enter-to-redirect handler was added to `document` on every challenge
update and never removed, leaking a listener per update and firing
redirect() once per accumulated listener. Register it a single time and
tear it down on disconnect via an AbortController.
@GirlBossRush GirlBossRush added this to the Release 2026.8.2 milestone Sep 3, 2026
@GirlBossRush GirlBossRush added the area:frontend Features or issues related to the browser, TypeScript, Node.js, etc label Sep 3, 2026
@GirlBossRush
GirlBossRush requested a review from a team as a code owner September 3, 2026 00:25
@GirlBossRush GirlBossRush added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Sep 3, 2026
@GirlBossRush GirlBossRush moved this from Todo to Needs review in authentik Core Sep 3, 2026
@netlify

netlify Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 6272365
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a98c0efee04c800081c6689
😎 Deploy Preview https://deploy-preview-25689--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 Sep 3, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

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

@codecov

codecov Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.67%. Comparing base (770ecc0) to head (6272365).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25689      +/-   ##
==========================================
- Coverage   91.71%   91.67%   -0.05%     
==========================================
  Files        1154     1154              
  Lines       73568    73568              
  Branches     4054     4054              
==========================================
- Hits        67474    67443      -31     
- Misses       6052     6083      +31     
  Partials       42       42              
Flag Coverage Δ
conformance 34.37% <ø> (+<0.01%) ⬆️
e2e 39.01% <ø> (+<0.01%) ⬆️
integration 30.52% <ø> (-0.45%) ⬇️
rust 42.92% <ø> (ø)
unit 93.26% <ø> (+3.42%) ⬆️
unit-migrate 93.27% <ø> (-0.02%) ⬇️

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 Sep 3, 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-62723650a4705375918e2abc7e86e33a1b89f605
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-62723650a4705375918e2abc7e86e33a1b89f605

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

@GirlBossRush GirlBossRush changed the title web/stages: Fix stage type errors, web/stages: Fix stage type errors Sep 3, 2026
@github-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Sep 15, 2026
@GirlBossRush
GirlBossRush merged commit 5330062 into main Sep 16, 2026
144 checks passed
@GirlBossRush
GirlBossRush deleted the fix-stage-type-errors branch September 16, 2026 06:28
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Sep 16, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #26194

GirlBossRush added a commit that referenced this pull request Oct 14, 2026
….8) (#26194)

web/stages: Fix stage type errors (#25689)

* web/flow: fix leaked keydown listener in RedirectStage

The Enter-to-redirect handler was added to `document` on every challenge
update and never removed, leaking a listener per update and firing
redirect() once per accumulated listener. Register it a single time and
tear it down on disconnect via an AbortController.

* Clean up.

* Fix method accessors.

* Fix static challenge type check.

Co-authored-by: Teffen Ellis <[email protected]>
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-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants