feat(web): improve MCP market UI responsiveness and add refresh after service addition

- Change getMarketTools parameter type from Query to optional Record for flexibility
- Rename marketConfig i18n key to marketConfigBtn for clarity and consistency
- Add handleRefreshAfterAdd function to refresh MCP list after successful service addition
- Update grid layout to use auto-fill responsive columns instead of fixed 3-column layout
- Disable Add button for services already in database to prevent duplicate additions
- Connect McpServiceModal refresh callback to handleRefreshAfterAdd for cache invalidation
- Improves user experience by automatically updating market list after adding services
This commit is contained in:
yujiangping
2026-03-11 17:11:16 +08:00
parent f405ac4d84
commit 168cce1678
4 changed files with 27 additions and 7 deletions

View File

@@ -1814,7 +1814,7 @@ export const zh = {
marketInDatabase: '已入库',
marketAdd: '添加',
marketRefresh: '刷新',
marketConfig: '配置',
marketConfigBtn: '配置',
marketConfigConnection: '配置连接',
marketNoServices: '暂无可用的 MCP 服务',
marketNotConnected: '尚未连接此市场',