fix(onboarding): fix broken tool-selection checkboxes and dedupe same-server picks - #2421
Open
entee28 wants to merge 6 commits into
Open
fix(onboarding): fix broken tool-selection checkboxes and dedupe same-server picks#2421entee28 wants to merge 6 commits into
entee28 wants to merge 6 commits into
Conversation
…and improve review display Signed-off-by: Thanh Nguyen <puffle.nnt@gmail.com>
…fic entries and prevent merging Signed-off-by: Thanh Nguyen <puffle.nnt@gmail.com>
…ies for same MCP server Signed-off-by: Thanh Nguyen <puffle.nnt@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes onboarding wizard tool selection behavior in the UI by correctly detecting selected MCP tools (even when server refs are namespaced) and by preventing duplicate same-server entries through server-level merging. This aligns onboarding’s tool-selection data shape with the existing create/edit flow and makes the review step accurately reflect the user’s selections.
Changes:
- Fix selection-state detection by using
serverNamesMatch()for MCP server comparisons. - Merge same-server tool picks into a single
Toolentry with a dedupedtoolNamesarray (including for the initial default preselection). - Update Review Step badges to render one badge per selected tool name (and agent name for Agent-type picks), plus add selected-row highlighting in Step 3.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ui/src/components/onboarding/steps/ToolSelectionStep.tsx | Fixes selected-state logic and merges same-server tool picks; adds selected-row highlighting. |
| ui/src/components/onboarding/steps/ReviewStep.tsx | Renders selected-tool badges per tool name (and agent name) to match merged selection shape. |
| ui/src/components/onboarding/steps/tests/ToolSelectionStep.test.tsx | Adds tests to ensure same-server selections merge, deselect behaves correctly, and different servers don’t merge. |
| ui/src/components/onboarding/steps/tests/ReviewStep.test.tsx | Adds tests validating badge rendering per selected tool and agent. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…l selection handling Signed-off-by: Thanh Nguyen <puffle.nnt@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #2411