-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add existing server to existing group #820
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
- Implement AddServerToGroupMenuItem component with dropdown support - Enhance generateSimplePrompt to handle dropdown options - Add comprehensive test for the complete workflow - Fix linting errors by replacing 'any' types with proper TypeScript types - Use existing 'groups' feature flag for feature gating - Ready for backend integration when API is available
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 adds functionality to copy existing MCP servers to existing groups through a context menu option. Users can now right-click on any server card and select "Copy server to a group" to duplicate the server configuration into a selected destination group.
- Adds a context menu item for copying servers to groups
- Implements server-to-group copy functionality with API integration
- Enhances the prompt system to support dropdown selection
- Adds comprehensive test coverage for the new workflow
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
vitest.setup.ts |
Adds pointer capture mock functions for UI testing |
use-mutation-update-workload-group.ts |
New hook implementing server copy-to-group mutation logic |
use-groups.ts |
New hook for fetching available groups data |
groups-manager/index.tsx |
Refactors to use centralized groups hook |
card-mcp-server.tsx |
Adds copy-to-group menu item to server cards |
add-server-to-group-menu-item.tsx |
New component for the copy-to-group menu item |
card-mcp-server.test.tsx |
Adds comprehensive tests for the new functionality |
handlers.ts |
Adds mock handler for workload export endpoint |
servers.ts |
Adds test server fixture data |
use-prompt.tsx |
Enhances prompt system with dropdown selection support |
use-prompt.test.tsx |
Tests for new dropdown prompt functionality |
renderer/src/features/mcp-servers/components/add-server-to-group-menu-item.tsx
Show resolved
Hide resolved
renderer/src/features/mcp-servers/components/add-server-to-group-menu-item.tsx
Show resolved
Hide resolved
…up-menu-item.tsx Co-authored-by: Copilot <[email protected]>
💩 everything is failing now that I accepted the suggestion by github copilot ahahah let me fix that edit: pushed a fix |
…r-to-group-menu-item.tsx" This reverts commit 1624a4d.
renderer/src/features/mcp-servers/components/add-server-to-group-menu-item.tsx
Show resolved
Hide resolved
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.
I don't know if the json.parse is needed for the api or it is a leftover, up to you
Record_select-area_20250903153636.mp4