fix: separate per-tool import and import-all buttons in MCP server setup#79
Open
yanniszhou wants to merge 1 commit intodataelement:mainfrom
Open
fix: separate per-tool import and import-all buttons in MCP server setup#79yanniszhou wants to merge 1 commit intodataelement:mainfrom
yanniszhou wants to merge 1 commit intodataelement:mainfrom
Conversation
Fixes dataelement#74 - Each tool row now has an "Import" button (btn-secondary) that imports only that specific tool, with proper error handling via try/catch - Added a single "Import All" button (btn-primary) below the tool list that imports all discovered tools at once, shows a summary on partial failures, and closes the form on completion Made-with: Cursor
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
Fixes #74
The "Import All" (
导入全部) button in the MCP Server setup was inside the tool list.map()loop, creating N identical "Import All" buttons — each only importing a single tool, contradicting the label.Changes
btn-secondary) — imports only that one tool, withtry/catcherror handlingbtn-primary) outside the loop, below the tool list — imports all tools at once, shows a failure summary if any fail, then closes the formBefore / After
Before: N × "Import All" buttons, each importing 1 tool, no error feedback
After:
Test plan
Made with Cursor