-
Notifications
You must be signed in to change notification settings - Fork 404
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
feat: improve MCP Server edit UX and i18n #4455
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4455 +/- ##
==========================================
- Coverage 53.27% 53.26% -0.01%
==========================================
Files 1661 1661
Lines 102535 102535
Branches 22188 22180 -8
==========================================
- Hits 54626 54620 -6
- Misses 39861 39866 +5
- Partials 8048 8049 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
* refactor: update class naming conventions in ChatToolRender and improve localization support * fix: html unescape * refactor: simplify MCPConfigContribution by removing unused dependencies and services * chore: use latest user message as chat title
/next |
/next |
🎉 PR Next publish successful! 3.8.2-next-1741418699.0 |
Walkthrough本次 PR 涉及多个组件的修改。Chat view 组件调整了标题生成逻辑,以便使用最后一条用户消息作为标题。ChatToolRender 组件及其样式文件统一更新了 CSS 命名规则,并引入本地化支持和图标更改。MCP 配置视图新增了 Changes
Sequence Diagram(s)sequenceDiagram
participant U as 用户
participant MCPView as MCPConfigView
participant API as 服务器接口
participant MS as MessageService
U->>MCPView: 点击服务器控制按钮(启动/停止)
MCPView->>MCPView: 设置 loadingServer 状态
MCPView->>API: 发起服务器控制请求
API-->>MCPView: 返回操作结果
alt 请求失败
MCPView->>MS: 发送错误消息
end
MCPView->>MCPView: 清除 loadingServer 状态
sequenceDiagram
participant U as 用户
participant Form as MCPServerForm
participant VF as validateForm
participant MS as MessageService
participant Save as onSave 回调
U->>Form: 填写表单并提交
Form->>VF: 调用 validateForm 进行验证
alt 验证失败
VF->>MS: 返回错误提示
else 验证通过
VF-->>Form: 返回验证结果
Form->>Form: 重置表单数据
Form->>Save: 调用 onSave 提交数据
end
Possibly related PRs
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
yarn install v1.22.22 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (9)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (35)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Types
Background or solution
Changelog
improve MCP Server edit UX and i18n
Summary by CodeRabbit
新功能
样式
重构