style: update MCP server picker styles and variables for improved UI consistency#342
style: update MCP server picker styles and variables for improved UI consistency#342SonyLeo wants to merge 1 commit into
Conversation
WalkthroughThis PR refactors the MCP Server Picker component's styling architecture to use CSS custom properties instead of hardcoded values, introducing granular theme tokens in ChangesMCP Server Picker Variable-Driven Styling
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/components/src/mcp-server-picker/components/PluginCard.vue`:
- Around line 116-118: The delete trigger uses a non-focusable <span> (class
"plugin-card__delete-trigger") which prevents keyboard users from activating the
popconfirm; replace the span with a semantic <button type="button"> (preserving
class "plugin-card__delete-trigger" and the IconDelete child) so it is focusable
and keyboard-operable, add an accessible name via aria-label (e.g., "Remove
plugin") and ensure any existing click handlers or popconfirm binding attached
to the span are kept on the new button; apply the same change to the other two
occurrences of the same trigger in this file (the duplicate delete triggers).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 6e5dd9f1-c6cb-4e59-b07b-55c0f812eb0c
📒 Files selected for processing (3)
packages/components/src/mcp-server-picker/components/PluginCard.vuepackages/components/src/mcp-server-picker/index.vuepackages/components/src/styles/variables.css
📦 Package Previewpnpm add https://pkg.pr.new/@opentiny/tiny-robot@dafb539 pnpm add https://pkg.pr.new/@opentiny/tiny-robot-kit@dafb539 pnpm add https://pkg.pr.new/@opentiny/tiny-robot-svgs@dafb539 commit: dafb539 |

McpServerPicker 组件 UI 整改
优化前:
亮色模式

暗色模式

优化后:
亮色模式

暗色模式

Summary by CodeRabbit