Skip to content

Conversation

kantord
Copy link
Member

@kantord kantord commented Sep 1, 2025

Record_select-area_20250903153636.mp4

@kantord kantord changed the title add new failing test feat: add existing server to existing group Sep 1, 2025
@kantord kantord marked this pull request as ready for review September 3, 2025 14:14
@Copilot Copilot AI review requested due to automatic review settings September 3, 2025 14:14
Copy link
Contributor

@Copilot Copilot AI left a 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

@kantord
Copy link
Member Author

kantord commented Sep 3, 2025

💩 everything is failing now that I accepted the suggestion by github copilot ahahah let me fix that

edit: pushed a fix

Copy link
Collaborator

@peppescg peppescg left a 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

@kantord kantord enabled auto-merge (squash) September 3, 2025 15:35
@kantord kantord merged commit a8235ad into main Sep 3, 2025
17 checks passed
@kantord kantord deleted the add-server-to-group branch September 3, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants