Skip to content

web: Invitation Wizard Clean Up, Form Validation Fixes - #23316

Merged
GirlBossRush merged 4 commits into
mainfrom
invitation-wizard-cleanup
Jul 7, 2026
Merged

GirlBossRush merged 4 commits into
mainfrom
invitation-wizard-cleanup

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

fixes #22637

Replaces the invitation wizard with the standard model form. "New Invitation" now opens the usual form, and the enrollment flow selector gains a pinned "create new" action that opens a stacked flow form (reusing the wizard's blueprint import) and selects the created flow automatically. After saving, a confirmation modal shows the invitation link; emailing is handled by the existing send-email modal.

Supporting changes:

  • SearchSelect supports a pinned action item, used here for the flow creation entry.
  • Form dispatches AKFormSubmittedEvent with the send() response so callers can use the created object.
  • Fixed two SearchSelectView display bugs: an attribute-bound input value that never updated once the dirty flag was set, and stale display labels when options were replaced.
  • Added a browser test covering invitation creation, the link modal, and the list page.

Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

@GirlBossRush
GirlBossRush requested a review from a team as a code owner June 23, 2026 18:41
@netlify

netlify Bot commented Jun 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit ecc8d55
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a4beb5f179d9b00098e1eea
😎 Deploy Preview https://deploy-preview-23316--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 Jun 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit ecc8d55
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a4beb5f5162330007a67ce5
😎 Deploy Preview https://deploy-preview-23316--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 Jun 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit ecc8d55
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a4beb5f18eb0b00084dd45b
😎 Deploy Preview https://deploy-preview-23316--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 Jun 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.23%. Comparing base (92982cc) to head (ecc8d55).
⚠️ Report is 7 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23316      +/-   ##
==========================================
- Coverage   93.23%   93.23%   -0.01%     
==========================================
  Files        1043     1043              
  Lines       60963    60963              
  Branches      424      424              
==========================================
- Hits        56841    56836       -5     
- Misses       4122     4127       +5     
Flag Coverage Δ
conformance 36.33% <ø> (+<0.01%) ⬆️
e2e 41.53% <ø> (+<0.01%) ⬆️
integration 32.74% <ø> (+<0.01%) ⬆️
rust 0.00% <ø> (ø)
unit 92.30% <ø> (ø)
unit-migrate 92.32% <ø> (-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.

@github-actions

github-actions Bot commented Jun 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-ecc8d5590fac8a2f34d467cd284119bdb014d3e7
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-ecc8d5590fac8a2f34d467cd284119bdb014d3e7

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

@GirlBossRush
GirlBossRush force-pushed the invitation-wizard-cleanup branch from ec76199 to 992269b Compare June 29, 2026 19:05

if (!pk) return false;

state.selectedFlowPk = pk;

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.

Speaking of "renames are a code smell."

@PeshekDotDev PeshekDotDev added the backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 label Jul 1, 2026
@GirlBossRush
GirlBossRush force-pushed the invitation-wizard-cleanup branch 3 times, most recently from 41353aa to 29f2a96 Compare July 2, 2026 06:16
@GirlBossRush GirlBossRush changed the title web: Flesh out wizard clean up. web: Invitation Wizard Clean Up, form validation fixes Jul 2, 2026
@GirlBossRush GirlBossRush changed the title web: Invitation Wizard Clean Up, form validation fixes web: Invitation Wizard Clean Up, Form Validation Fixes Jul 2, 2026
GirlBossRush and others added 4 commits July 6, 2026 19:52
The multi-step wizard is gone. "New Invitation" opens the usual model
form; the flow select gains a pinned "create new..." action that opens
a stacked enrollment-flow form (same blueprint import as the wizard) and
selects the created flow automatically. A confirmation modal with the
invitation link replaces the success step, and the email step is covered
by the existing send-email modal.

Along the way: SearchSelect learns a generic action-label item, Form now
dispatches AKFormSubmittedEvent with the send() response, and two display
bugs in SearchSelectView are fixed (attribute-bound input value never
updating past the dirty flag, and the uninstrumented options setter
leaving stale display labels).
@GirlBossRush
GirlBossRush force-pushed the invitation-wizard-cleanup branch from 29f2a96 to ecc8d55 Compare July 6, 2026 17:52

@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.

Approved because my comment is not a blocker, but it's definitely a change request.

required
value="${dateTimeLocal(this.instance?.expires ?? new Date())}"
value="${dateTimeLocal(
this.instance?.expires ?? new Date(Date.now() + 48 * 60 * 60 * 1000),

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.

Mystery numbers makes baby Thor cry. Please put this in a constant so we know what it means:

DEFAULT_EXPIRES = 2 * 24 * 60 * 60 * 1000; // 2 days (48 hours in milliseconds)

@melizeche melizeche added this to the Release 2026.5.4 milestone Jul 7, 2026
@GirlBossRush
GirlBossRush enabled auto-merge (squash) July 7, 2026 15:16
@GirlBossRush
GirlBossRush merged commit cfe9179 into main Jul 7, 2026
161 of 165 checks passed
@GirlBossRush
GirlBossRush deleted the invitation-wizard-cleanup branch July 7, 2026 15:22
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2026.5 has conflicts: #23811

GirlBossRush added a commit that referenced this pull request Jul 7, 2026
This cherry-pick has conflicts that need manual resolution.

Original PR: #23316
Original commit: cfe9179

Refine.
GirlBossRush added a commit that referenced this pull request Jul 7, 2026
This cherry-pick has conflicts that need manual resolution.

Original PR: #23316
Original commit: cfe9179

Refine.
GirlBossRush added a commit that referenced this pull request Jul 7, 2026
…23316 to version-2026.5) (#23811)

Cherry-pick #23316 to version-2026.5 (with conflicts)

This cherry-pick has conflicts that need manual resolution.

Original PR: #23316
Original commit: cfe9179

Refine.

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

backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Attributes Prevent Invitation Creation in Wizard

4 participants