-
Notifications
You must be signed in to change notification settings - Fork 6
feat: visual design for disabled state of mcp servers page #894
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
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 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 |
Record_select-area_20250917171525.mp4
Fallback logic when the groups feature flag is disabled:
in other words, the new design is rolled out even when the feature flag is disabled, but with a slightly different wording