web/forms: fix forms not resetting state when modal closes (cherry-pick #19562 to version-2025.12)#19635
Conversation
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
fdd55ac to
1425c4f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## version-2025.12 #19635 +/- ##
===================================================
- Coverage 92.96% 92.02% -0.95%
===================================================
Files 946 946
Lines 52299 52299
===================================================
- Hits 48622 48126 -496
- Misses 3677 4173 +496
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
cc7d695 to
f873b41
Compare
f873b41 to
f6f4ce6
Compare
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
* web/forms: fix forms not resetting state when modal closes Overview: Forms were not properly resetting their state when closing modals, which caused stale values to persist when reopening forms. This affected all forms with @State() decorated properties. Testing: 1. Create any item (user, token, application, etc.), close modal 2. Click Create again, form should show default/empty values 3. Edit an item, cancel, click Create - form should be empty 4. Edit an item, cancel, edit same item - should show correct data Motivation: Form inputs retained values from previous create/edit operations. * Fix linter errors, types. * Add property accessors, types. --------- Co-authored-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>
5781b86 to
d605dba
Compare
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-d605dba74402742d64e27abb7fd30f0f1525fb20
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-d605dba74402742d64e27abb7fd30f0f1525fb20Afterwards, run the upgrade commands from the latest release notes. |
Note for posterity
This cherry-pick includes the following PRs to satisfy the linter:
Dependencies
Cherry-pick of #19562 to
version-2025.12branch.Original PR: #19562
Original Author: @dominic-r
Cherry-picked commit: 66d6d88
Please resolve the conflicts in this PR before merging.