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) |
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
d83fe12 to
5035b55
Compare
|
Addressed the Copilot review:
|
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved rendering defects can strip textarea line breaks, make labels toggle the wrong controls, select multiple radio options, and expose unusable Add/Remove buttons for read-only attributes.
7 open issues
Namespace option control IDs by attribute name · New Check only one stored value in radio groups · New Render textarea attributes with line breaks and dimensions preserved · New Hide multivalue controls for read-only attributes · New Enable add/remove actions for inferred multivalued inputs Normalize string defaults to arrays for multiselects Resolve options from the configured custom validator
1 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
Human review is needed to assess read-only interaction and single-choice rendering risks introduced by the new precedence rules.
No open issues 🎉
7 resolved since last review
Hide multivalue controls for read-only attributes Render textarea attributes with line breaks and dimensions preserved Check only one stored value in radio groups Namespace option control IDs by attribute name Enable add/remove actions for inferred multivalued inputs Normalize string defaults to arrays for multiselects Resolve options from the configured custom validator
Review effort: Balanced
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>
Resolve options from inputOptionsFromValidation, normalize multiselect string defaults to arrays, keep multi-input for multivalued textareas, and infer kcMultivalued for FreeMarker when multiple values are present. Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Namespace option IDs, keep radios single-select, render textarea multi-inputs with rows/cols, and skip inferred kcMultivalued for read-only attributes. Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
9894c85 to
443b058
Compare
| render={({ field }) => { | ||
| const selectedValues = isMultiValue | ||
| ? asStringArray(field.value) | ||
| : field.value; |
| const shouldRenderMultiInput = | ||
| !isSelectLikeInput && |


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