-
Notifications
You must be signed in to change notification settings - Fork 8
feat(mcp-server-picker): add header-actions slot for custom actions #274
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
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughA new Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
docs/src/components/mcp-server-picker.md (1)
83-89: Documentation looks good!The Slots section is well-structured and correctly documents the
header-actionsslot. The placement between Props and Events sections follows standard documentation conventions.Optionally, consider adding a usage example to help developers understand how to use the slot:
Optional: Add usage example
After line 89, you could add a usage example section:
### 使用示例 ```vue <McpServerPicker v-model:visible="visible"> <template #header-actions> <button class="custom-action-btn" @click="handleCustomAction"> 自定义操作 </button> </template> </McpServerPicker></details> </blockquote></details> </blockquote></details> <details> <summary>📜 Review details</summary> **Configuration used**: Repository UI **Review profile**: CHILL **Plan**: Pro <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 77aa8b563271dfb5ade0663ca869fe79340b960c and 994aaf3b00d176a1ce47e9a26ed4fce8f8952969. </details> <details> <summary>📒 Files selected for processing (2)</summary> * `docs/src/components/mcp-server-picker.md` * `packages/components/src/mcp-server-picker/index.vue` </details> <details> <summary>⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)</summary> * GitHub Check: build / build </details> <details> <summary>🔇 Additional comments (1)</summary><blockquote> <details> <summary>packages/components/src/mcp-server-picker/index.vue (1)</summary><blockquote> `306-306`: **LGTM! Clean slot implementation.** The `header-actions` slot is correctly positioned in the header right area, allowing consumers to inject custom actions before the custom add button and close icon. The flexbox gap styling will properly space any slotted content. </blockquote></details> </blockquote></details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
📦 Package Previewpnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot@994aaf3 pnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot-kit@994aaf3 pnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot-svgs@994aaf3 commit: 994aaf3 |

McpServerPicker 增加头部操作插槽
Slots
header-actionsSummary by CodeRabbit
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.