Skip to content

web/elements: Add preserve-order, no-search and no-status attributes to ak-dual-select - #20749

Merged
melizeche merged 2 commits into
mainfrom
akdualselect_improvements
Mar 13, 2026
Merged

melizeche merged 2 commits into
mainfrom
akdualselect_improvements

Conversation

@melizeche

Copy link
Copy Markdown
Member

Details

Add optional boolean attributes to ak-dual-select, ak-dual-select-provider, and ak-dual-select-dynamic-selected for preserving the insertion order instead of alphabetical (preserve-order), hiding the search bars (no-search), and item count status displays (no-status). All default to false, preserving existing behavior.

Rationale: When we have just a few items, we want a cleaner interface. Used in the WebAuthn authenticator stage form to simplify the device type hints selector. #20700

Originally:
Screenshot 2026-03-05 at 20-22-38 default-authenticator-webauthn-setup - Admin - authentik
After this PR:
Screenshot 2026-03-05 at 20-21-57 default-authenticator-webauthn-setup - Admin - authentik


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

@melizeche
melizeche requested a review from a team as a code owner March 5, 2026 23:44
@netlify

netlify Bot commented Mar 5, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 84e0730
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/69aa1557d9fdf10008e8ba85
😎 Deploy Preview https://deploy-preview-20749--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 Mar 5, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 84e0730
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69aa155785124d0008ed8504
😎 Deploy Preview https://deploy-preview-20749--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.

@github-actions

github-actions Bot commented Mar 6, 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-84e0730e3e6a2121661511f89f8fd44092a4102b
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-84e0730e3e6a2121661511f89f8fd44092a4102b

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

@codecov

codecov Bot commented Mar 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.35%. Comparing base (ea3c56a) to head (84e0730).
⚠️ Report is 74 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20749      +/-   ##
==========================================
+ Coverage   93.16%   93.35%   +0.18%     
==========================================
  Files         983      983              
  Lines       55475    55475              
==========================================
+ Hits        51683    51787     +104     
+ Misses       3792     3688     -104     
Flag Coverage Δ
conformance 37.69% <ø> (+<0.01%) ⬆️
e2e 43.27% <ø> (+0.60%) ⬆️
integration 22.39% <ø> (-0.05%) ⬇️
unit 91.54% <ø> (+<0.01%) ⬆️
unit-migrate 91.63% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@melizeche melizeche self-assigned this Mar 6, 2026
@melizeche melizeche added the area:frontend Features or issues related to the browser, TypeScript, Node.js, etc label Mar 6, 2026

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

Looks good. I made a code improvement suggestion, but it's not a requirement or a request for a change.

<span class="pf-c-dual-list-selector__status-text"
>${selectedStatus}</span
>
</div>`}

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.

Literally the same code in both Available and Selected delta some configuration details. Maybe wrap these in a function with parameters?

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Mar 6, 2026
@melizeche
melizeche merged commit 0ff3869 into main Mar 13, 2026
101 checks passed
@melizeche
melizeche deleted the akdualselect_improvements branch March 13, 2026 20:11
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Mar 13, 2026
kensternberg-authentik added a commit that referenced this pull request Mar 16, 2026
* main: (178 commits)
  lifecycle/aws: bump aws-cdk from 2.1110.0 to 2.1111.0 in /lifecycle/aws (#20847)
  web: bump the bundler group across 1 directory with 7 updates (#20876)
  web: bump @types/node from 25.4.0 to 25.5.0 in /web (#20878)
  web: bump flatted from 3.3.3 to 3.4.1 (#20891)
  web: bump flatted from 3.3.3 to 3.4.1 in /web (#20923)
  core: expiring model: ignore DoesNotExist error (#20922)
  core: bump astral-sh/uv from 0.10.9 to 0.10.10 in /lifecycle/container (#20913)
  core, web: update translations (#20899)
  core: bump goauthentik.io/api/v3 to 3.2026.5.0-rc1-1773518508 (#20897)
  stages/authenticator_webauthn: Update FIDO MDS3 & Passkey aaguid blobs (#20905)
  ci: bump softprops/action-gh-release from 2.5.0 to 2.6.1 (#20912)
  ci: bump actions/create-github-app-token from 2.2.1 to 3.0.0 (#20914)
  core: bump goauthentik/fips-python from `1ef7bd9` to `9d550e1` in /lifecycle/container (#20915)
  endpoints: fix tasks failing (#20904)
  providers/scim: use modified GroupMember class to support extra attributes on it (#20827)
  events: add option to configure webhook CA (#20823)
  stages/authenticator_webauthn: Add WebAuthn client hints support (#20700)
  web/elements: Add preserve-order, no-search and no-status attributes to ak-dual-select (#20749)
  docs: Add note on skipping object syncing (#20882)
  core: bump orjson from 3.11.5 to 3.11.6 (#20870)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants