Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Aligns multivalued user-profile field rendering across React and FreeMarker UIs.
Changes:
- Prioritizes dedicated
inputTypecontrols 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. |
69ab09c to
7265fe7
Compare
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.broker.KcOidcBrokerTest#loginWithExistingUserWithBruteForceEnabledKeycloak CI - Java Distribution IT (windows-latest - temurin - 17) |
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.broker.KcOidcBrokerTest#loginWithExistingUserWithBruteForceEnabledKeycloak CI - Java Distribution IT (windows-latest - temurin - 17) |
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>
7265fe7 to
d83fe12
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Active defects cause multiselect string defaults to crash or corrupt values, omit options configured through custom validators, and leave inferred multivalued fields without working add/remove controls.
3 open issues
1 resolved since last review
Review effort: Balanced
| inputType === "select" || | ||
| inputType === "multiselect" || | ||
| inputType === "select-radiobuttons" || | ||
| inputType === "multiselect-checkboxes"; |
| inputType === "multiselect" || | ||
| inputType === "select-radiobuttons" || | ||
| inputType === "multiselect-checkboxes"; |
| <#assign inferredMultivalued = !attribute.annotations.inputType?? && (attribute.values?size > 1)> | ||
| <#if (attribute.multivalued || inferredMultivalued) && attribute.values?has_content> |

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