Skip to content

web/flow: show messages attached to flow challenges - #27901

Open
daeho-ro wants to merge 1 commit into
goauthentik:mainfrom
daeho-ro:daeho/lucid-yalow-cf7437
Open

daeho-ro wants to merge 1 commit into
goauthentik:mainfrom
daeho-ro:daeho/lucid-yalow-cf7437

Conversation

@daeho-ro

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

ak-flow-executor now shows flow_info.messages whenever it receives a new challenge, not only when the theme changes. A theme change no longer shows them again.

Why is this change needed?

Messages are only sent once, inside a challenge (#24999, #25036), but updated() checked changedProperties.has("flowInfo"). flowInfo is a getter, not a reactive property, so this was never true and messages from a submission were dropped. For example, the email stage's "Resend Email" button showed neither the success toast nor the rate limit error.

How was this tested?

Added browser tests in FlowExecutor.browser.test.ts. The new message test fails without this change.

Linked issues

closes #26217


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)
  • I have read the AI usage policy.

@daeho-ro
daeho-ro requested a review from a team as a code owner November 18, 2026 13:05
@netlify

netlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ac2fe0f
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6b0b8f3b060d0fef6cd18d2a
😎 Deploy Preview https://deploy-preview-27901--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 Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.73%. Comparing base (88d1838) to head (ac2fe0f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #27901      +/-   ##
==========================================
- Coverage   93.76%   93.73%   -0.03%     
==========================================
  Files        1260     1260              
  Lines       91195    91195              
  Branches     5752     5752              
==========================================
- Hits        85507    85482      -25     
- Misses       5602     5627      +25     
  Partials       86       86              
Flag Coverage Δ
conformance 29.34% <ø> (+<0.01%) ⬆️
e2e 33.78% <ø> (+<0.01%) ⬆️
integration 26.69% <ø> (-0.30%) ⬇️
rust 62.37% <ø> (ø)
unit 94.94% <ø> (+<0.01%) ⬆️
unit-migrate 94.95% <ø> (+<0.01%) ⬆️

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.

@daeho-ro
daeho-ro force-pushed the daeho/lucid-yalow-cf7437 branch from 5d7092d to ac2fe0f Compare November 29, 2026 02:34
@daeho-ro

Copy link
Copy Markdown
Contributor Author

This should be merged after #28193. Right now flow_info.background ignores the brand's default background (#28189). With this PR the frontend applies flow_info on every challenge, so without #28193 the brand background would be replaced by the stock image.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resend email confirmation notification is not working

1 participant