Skip to content

web/elements: make ak-toggle-group akForm-compatible and form-associated - #27092

Merged
BeryJu merged 2 commits into
mainfrom
web/elements/toggle-group-input-form-associated
Oct 23, 2026
Merged

BeryJu merged 2 commits into
mainfrom
web/elements/toggle-group-input-form-associated

Conversation

@kensternberg-authentik

Copy link
Copy Markdown
Contributor

web/element: enable FormAssociated and HorizontalFormElement compatibility

This commit amends PR 27061: web/element/toggle-group-input:

  • Adds toJSON()
  • Adds formAssociated capability, resembling <select> in its protocol
  • Replaces the “many dynamic event handlers” with a single event handler.
  • Uses the formAssocatiated anchorRef feature for control-like focus handling
  • Updates the role on firstUpdate if not set by client code
  • Removes the “self-placement” CSS; that violates our standards and expectations that client code sets placement. This did mean that serveral forms had to be updated to restore the “centering”, but Patternfly has a stock utility for doing that. In the process, this removes the hack for justify in our code: let the form do the placement.
  • Added browser-based tests.

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.

@kensternberg-authentik kensternberg-authentik changed the title Web/elements/toggle group input form associated Web/elements: make ak-toggle-group akForm-compatible and form-associated Oct 21, 2026
@netlify

netlify Bot commented Oct 21, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

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

@BeryJu BeryJu changed the title Web/elements: make ak-toggle-group akForm-compatible and form-associated web/elements: make ak-toggle-group akForm-compatible and form-associated Oct 23, 2026
Base automatically changed from web/elements/toggle-group-input to main October 23, 2026 11:50
@BeryJu
BeryJu force-pushed the web/elements/toggle-group-input-form-associated branch from fcbb8ce to 9ce133d Compare October 23, 2026 11:50
@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.36%. Comparing base (8a8c952) to head (8eecd7d).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #27092      +/-   ##
==========================================
+ Coverage   91.89%   92.36%   +0.46%     
==========================================
  Files        1190     1190              
  Lines       80213    80213              
  Branches     4351     4351              
==========================================
+ Hits        73713    74090     +377     
+ Misses       6434     6057     -377     
  Partials       66       66              
Flag Coverage Δ
conformance 32.29% <ø> (+<0.01%) ⬆️
e2e 36.99% <ø> (+5.58%) ⬆️
integration 28.82% <ø> (-0.37%) ⬇️
rust 44.42% <ø> (ø)
unit 94.05% <ø> (+<0.01%) ⬆️
unit-migrate 94.04% <ø> (+<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.

@BeryJu
BeryJu force-pushed the web/elements/toggle-group-input-form-associated branch from 9ce133d to 8eecd7d Compare October 23, 2026 12:14
@BeryJu
BeryJu merged commit 4aef2aa into main Oct 23, 2026
131 checks passed
@BeryJu
BeryJu deleted the web/elements/toggle-group-input-form-associated branch October 23, 2026 12:29
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-8eecd7df68c8f824980304c295aa08282a051996
# Distroless image: AUTHENTIK_TAG=gh-8eecd7df68c8f824980304c295aa08282a051996-distroless
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-8eecd7df68c8f824980304c295aa08282a051996
        # Distroless image: tag: gh-8eecd7df68c8f824980304c295aa08282a051996-distroless

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

Playwright e2e

Download this run's HTML report and traces, then open the report:

gh run download 39951886523 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-report

kensternberg-authentik added a commit that referenced this pull request Oct 23, 2026
* main:
  website/docs: remove xattr workaround for agent (#27128)
  web/elements: make ak-toggle-group akForm-compatible and form-associated (#27092)
  root: bump ctutils (#27129)
  web/elements: make toggle group usable as input field (#27061)
  sources/ldap: fix password write error message (#27076)
  core, web: update translations (#27123)
  core: bump cachetools from 7.2.3 to 7.2.4 (#27125)
  sources/saml: log response processing errors and show users a generic message (#27012)
  sources/saml: Tell IDP to use AES256-GCM by default (#27010)
  website/docs: fix mention of saml 1.1 assertion support for ws-fed (#27113)
kensternberg-authentik added a commit that referenced this pull request Oct 23, 2026
…r-footer-dependency' into web/elements/sidebar-footer-dependency

* refs/remotes/origin/web/elements/sidebar-footer-dependency:
  Replace aria wayfinders used for testing with Open UI Automation identifiers.
  web/element: Move the SidebarVersion out of Elements.
  .
  .
  The test exists and passes.
  Moving the load of the AdminOverviewPage to the entrypoint. The idea is to have the dashboard as live as possible as early as possible.  Putting into Routes made Routes into a browser-only feature, and it could not be unit tested without this move.
  Formatter opinions.
  That side effect infected downstream tests. Darnit.
  web/admin: Simplify sidebar entries handling
  website/docs: remove xattr workaround for agent (#27128)
  web/elements: make ak-toggle-group akForm-compatible and form-associated (#27092)
  root: bump ctutils (#27129)
  web/elements: make toggle group usable as input field (#27061)
  sources/ldap: fix password write error message (#27076)
  core, web: update translations (#27123)
  core: bump cachetools from 7.2.3 to 7.2.4 (#27125)
  sources/saml: log response processing errors and show users a generic message (#27012)
  sources/saml: Tell IDP to use AES256-GCM by default (#27010)
  website/docs: fix mention of saml 1.1 assertion support for ws-fed (#27113)
kensternberg-authentik added a commit that referenced this pull request Nov 5, 2026
…single-shadowdom-sidebar

* web/elements/sidebar-api-disconnect:
  Replace aria wayfinders used for testing with Open UI Automation identifiers.
  web/element: Move the SidebarVersion out of Elements.
  .
  .
  The test exists and passes.
  Moving the load of the AdminOverviewPage to the entrypoint. The idea is to have the dashboard as live as possible as early as possible.  Putting into Routes made Routes into a browser-only feature, and it could not be unit tested without this move.
  Formatter opinions.
  That side effect infected downstream tests. Darnit.
  web/admin: Simplify sidebar entries handling
  website/docs: remove xattr workaround for agent (#27128)
  web/elements: make ak-toggle-group akForm-compatible and form-associated (#27092)
  root: bump ctutils (#27129)
  web/elements: make toggle group usable as input field (#27061)
  sources/ldap: fix password write error message (#27076)
  core, web: update translations (#27123)
  core: bump cachetools from 7.2.3 to 7.2.4 (#27125)
  sources/saml: log response processing errors and show users a generic message (#27012)
  sources/saml: Tell IDP to use AES256-GCM by default (#27010)
  website/docs: fix mention of saml 1.1 assertion support for ws-fed (#27113)
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.

2 participants