Skip to content

make multi value toggle less confusing#51110

Open
edewit wants to merge 1 commit into
keycloak:mainfrom
edewit:multi-value-toggle
Open

make multi value toggle less confusing#51110
edewit wants to merge 1 commit into
keycloak:mainfrom
edewit:multi-value-toggle

Conversation

@edewit

@edewit edewit commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Align multivalued rendering precedence across user profile UIs

Ensure inputType-specific controls (select, multiselect,
select-radiobuttons, multiselect-checkboxes, textarea) take precedence
over generic multi-input rendering in React, and mirror the same
fallback behavior in FreeMarker when inputType is unset. Clarify the
Multivalued help text in Admin UI and update the user profile Playwright
spec to assert the new precedence rules.

fixes: #34763
Signed-off-by: Erik Jan de Wit erikjan.dewit@gmail.com

Align multivalued rendering precedence across user profile UIs

Ensure inputType-specific controls (select, multiselect,
select-radiobuttons, multiselect-checkboxes, textarea) take precedence
over generic multi-input rendering in React, and mirror the same
fallback behavior in FreeMarker when inputType is unset. Clarify the
Multivalued help text in Admin UI and update the user profile Playwright
spec to assert the new precedence rules.

fixes: keycloak#34763
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Copilot AI review requested due to automatic review settings July 23, 2026 11:33
@edewit
edewit requested review from a team as code owners July 23, 2026 11:33

Copilot AI 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.

Pull request overview

Aligns multivalued user-profile field rendering across React and FreeMarker UIs.

Changes:

  • Prioritizes dedicated inputType controls over generic multi-input rendering.
  • Adds FreeMarker multivalue inference and Playwright coverage.
  • Clarifies the Admin UI help text.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
themes/src/main/resources/theme/base/login/user-profile-commons.ftl Adds inferred multivalue fallback.
js/libs/ui-shared/src/user-profile/UserProfileFields.tsx Implements dedicated-control precedence.
js/apps/admin-ui/test/realm-settings/userprofile.spec.ts Tests toggle persistence and checkbox rendering.
js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties Updates multivalued help text.

Comment on lines +86 to +87
<#assign inferredMultivalued = !attribute.annotations.inputType?? && (attribute.values?size > 1)>
<#if (attribute.multivalued || inferredMultivalued) && attribute.values?has_content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In User Profile attribute config, Multivalued toggle is confusing

2 participants