Repository navigation
web: Invitation Wizard Clean Up, Form Validation Fixes - #23316
Conversation
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your 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)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your 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-ecc8d5590fac8a2f34d467cd284119bdb014d3e7Afterwards, run the upgrade commands from the latest release notes. |
ec76199 to
992269b
Compare
|
|
||
| if (!pk) return false; | ||
|
|
||
| state.selectedFlowPk = pk; |
There was a problem hiding this comment.
Speaking of "renames are a code smell."
41353aa to
29f2a96
Compare
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).
29f2a96 to
ecc8d55
Compare
kensternberg-authentik
left a comment
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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)
|
|
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:
SearchSelectsupports a pinned action item, used here for the flow creation entry.FormdispatchesAKFormSubmittedEventwith thesend()response so callers can use the created object.SearchSelectViewdisplay bugs: an attribute-bound input value that never updated once the dirty flag was set, and stale display labels when options were replaced.Checklist
make all)make docs)