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

@@ -1818,7 +1818,7 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re
marketInDatabase: 'In Database',
marketAdd: 'Add',
marketRefresh: 'Refresh',
marketConfig: 'Configure',
marketConfigBtn: 'Configure',
marketConfigConnection: 'Configure Connection',
marketNoServices: 'No MCP Services Available',
marketNotConnected: 'Not Connected to This Market',