Skip to content

Conversation

kantord
Copy link
Member

@kantord kantord commented Sep 17, 2025

Record_select-area_20250917171525.mp4

Fallback logic when the groups feature flag is disabled:

Screenshot_select-area_20250917195634

in other words, the new design is rolled out even when the feature flag is disabled, but with a slightly different wording

@kantord kantord marked this pull request as ready for review September 17, 2025 15:18
@Copilot Copilot AI review requested due to automatic review settings September 17, 2025 15:18
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 implements a visual design for the disabled state of MCP servers page. The changes introduce conditional UI states based on whether a group has registered clients, showing visual feedback and appropriate actions for disabled groups.

  • Adds visual styling (opacity and grayscale) for MCP server cards when groups are disabled
  • Conditionally renders management buttons based on group state
  • Introduces a new "Enable Group" button for disabled groups

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
renderer/src/routes/group.$groupName.tsx Adds logic to determine if group is disabled and conditionally renders buttons
renderer/src/routes/tests/group.$groupName.menu.confirm.test.tsx Adds test coverage for disabled group UI states and updates existing tests
renderer/src/features/mcp-servers/components/grid-cards-mcp-server.tsx Passes disabled state prop to individual cards
renderer/src/features/mcp-servers/components/card-mcp-server/index.tsx Applies visual styling for disabled state
renderer/src/features/clients/hooks/use-manage-clients-dialog.tsx Extracts reusable dialog logic for managing clients
renderer/src/features/clients/components/manage-clients-button.tsx Refactors to use extracted dialog hook
renderer/src/features/clients/components/enable-group-button.tsx New component for enabling disabled groups
renderer/src/features/clients/components/tests/manage-clients-button.test.tsx Removes outdated comments from test file
renderer/src/features/clients/components/tests/enable-group-button.test.tsx Adds test coverage for the new enable group functionality
renderer/src/common/components/ui/button.tsx Adds new "enable" variant styling for buttons

@kantord kantord changed the title feat: visual design for disbled state of mcp servers page feat: visual design for disabled state of mcp servers page Sep 17, 2025
@kantord kantord marked this pull request as draft September 17, 2025 16:54
@kantord kantord marked this pull request as ready for review September 18, 2025 11:21
@kantord kantord requested a review from samuv September 18, 2025 12:54
@kantord kantord enabled auto-merge (squash) September 18, 2025 13:12
@kantord kantord merged commit ab213ea into main Sep 18, 2025
12 checks passed
@kantord kantord deleted the add-disabled-state-for-mcp-servers branch September 18, 2025 13:29
kantord added a commit that referenced this pull request Sep 18, 2025
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