-
Notifications
You must be signed in to change notification settings - Fork 96
fix(ui): multi-select combobox selection not updated when options/keys change #8707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
✅ Impact of Change
✅ Test Plan
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | None needed |
| Commit Type | ✅ | None needed |
| Risk Level | ✅ | None needed |
| What & Why | ✅ | Optional: add a one-line before/after example |
| Impact of Change | ✅ | Add brief Developer/System notes (recommended) |
| Test Plan | ✅ | Consider E2E if component is critical |
| Contributors | Add contributors or leave intentionally blank | |
| Screenshots/Videos | Optional: add if UX validation required |
Final message:
This PR is good to go from a PR title/body compliance perspective. The title is clear, the commit type is correct, the risk label matches the body, and the unit test for the new multiSelect behavior is present in the diff. Please consider these small improvements before merging:
- Add brief notes under Developers/System in the Impact section (even if just "none").
- Optionally add an E2E test if this component is used in critical UI flows.
- Add contributors if anyone else helped (for proper credit).
- Optionally attach a screenshot showing the updated UI state if you want UX reviewers to validate visuals quickly.
Thank you — please update if you make additional changes and want a re-review of the PR body.
Last updated: Fri, 16 Jan 2026 06:14:22 GMT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a bug where multi-select combobox components didn't update their displayed selections when the options changed (e.g., when display names were updated). The fix adds the missing setSelectedKeys call in the options-change effect handler, mirroring the existing logic for single-select mode.
Changes:
- Fixed multi-select combobox selection state not updating when options change
- Added missing dependency to useEffect dependency array
- Added comprehensive unit test to verify the fix
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| libs/designer-ui/src/lib/combobox/index.tsx | Added setSelectedKeys call when options change in multiSelect mode and included multiSelect in dependency array |
| libs/designer-ui/src/lib/combobox/test/combobox.spec.tsx | Added test case to verify selectedKeys updates when options change in multiSelect mode |
|
📊 Coverage check completed. See workflow run for details. |
Commit Type
Risk Level
What & Why
When parameter got changed for multi-select combo box, the selected keys are not updated in UI. The combo box selected key is updated when option changes for single selection, however we doesn't have the code to handle multi-selection combo box. This PR added the missing logic to handle multi-select scenario.
Impact of Change
Now user see the new value shown correctly in UI.
Test Plan
Contributors
Screenshots/Videos