mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
✨ feat(skill): add delete/remove actions to settings/skill items (#15708)
* ✨ feat: add delete/uninstall actions to settings/skill items - LobehubSkillItem: show compact `...` dropdown in list mode for connected items with Disconnect action (revokes OAuth) - KlavisSkillItem: show compact `...` dropdown in list mode for connected/pending servers with Remove action (true delete via removeKlavisServer) - ConnectorDetail: add Delete button for custom (mcp) connectors; calls deleteConnector + notifies parent via onDelete - SkillDetail / Page: thread onDelete callback so selecting null after deletion triggers auto-select of next item - Locales: add tools.klavis.remove / removeConfirm.title / removeConfirm.desc in en-US, zh-CN, and default source Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(skill): gate Klavis remove by canEdit and clear selected after removal Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(skill): show dropdown for all Klavis/Lobehub items in list mode Previously, the ... button was gated behind `server` (Klavis) and `isConnected` (LobehubSkill), so disconnected/never-connected items showed no actions. Remove those guards so the dropdown always renders in list mode. handleRemove/handleDisconnect now skip the server call when no server instance exists and instead clear the selected item. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(skill): move delete/uninstall actions from list dropdown to detail panel - Remove heavy ... dropdown from KlavisSkillItem / LobehubSkillItem list items - Add danger Uninstall button to builtin-skill detail header (matches ConnectorDetail style) - Add slim action bar with Uninstall to agent-skill detail panel - All actions respect canEdit / canCreate permissions with confirmModal gating Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1178,6 +1178,9 @@
|
||||
"tools.klavis.disconnect": "Disconnect",
|
||||
"tools.klavis.disconnected": "Disconnected",
|
||||
"tools.klavis.error": "Error",
|
||||
"tools.klavis.remove": "Remove",
|
||||
"tools.klavis.removeConfirm.desc": "{{name}} will be permanently removed from your connected services. This action cannot be undone.",
|
||||
"tools.klavis.removeConfirm.title": "Remove {{name}}?",
|
||||
"tools.klavis.groupName": "Klavis Tools",
|
||||
"tools.klavis.manage": "Manage Klavis",
|
||||
"tools.klavis.manageTitle": "Manage Klavis Integration",
|
||||
|
||||
@@ -1178,6 +1178,9 @@
|
||||
"tools.klavis.disconnect": "断开连接",
|
||||
"tools.klavis.disconnected": "已断开连接",
|
||||
"tools.klavis.error": "错误",
|
||||
"tools.klavis.remove": "移除",
|
||||
"tools.klavis.removeConfirm.desc": "{{name}} 将从您的已连接服务中永久移除,此操作不可撤销。",
|
||||
"tools.klavis.removeConfirm.title": "移除 {{name}}?",
|
||||
"tools.klavis.groupName": "Klavis 工具",
|
||||
"tools.klavis.manage": "管理 Klavis",
|
||||
"tools.klavis.manageTitle": "管理 Klavis 集成",
|
||||
|
||||
Reference in New Issue
Block a user