From 16e73438c4d302daa383526ab7a44467fe820e0c Mon Sep 17 00:00:00 2001 From: liangxu Date: Sun, 12 Jul 2026 14:17:27 +0800 Subject: [PATCH] feat(desktop-ui): AI platforms multi-account binding and probe view Rework the AI platforms view around multiple accounts per platform: per-account auth-state classification, status/platform filtering, and an inline health probe (verifyAccount) with pending state. Update the nav description to reflect multi-account binding, health checks and auto switching. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../src/renderer/components/DesktopShell.vue | 2 +- .../src/renderer/views/AiPlatformsView.vue | 713 ++++++++++++++---- 2 files changed, 553 insertions(+), 162 deletions(-) diff --git a/apps/desktop-client/src/renderer/components/DesktopShell.vue b/apps/desktop-client/src/renderer/components/DesktopShell.vue index 5840910..4511546 100644 --- a/apps/desktop-client/src/renderer/components/DesktopShell.vue +++ b/apps/desktop-client/src/renderer/components/DesktopShell.vue @@ -88,7 +88,7 @@ const navItems = computed(() => { { to: '/ai-platforms', title: 'AI 平台', - description: 'AI 平台一平台一授权,按卡片查看状态与归属', + description: 'AI 模型多账号绑定、健康检查与自动切换', count: accounts.filter((item) => monitoringIDs.has(item.platform)).length, icon: RobotOutlined, }, diff --git a/apps/desktop-client/src/renderer/views/AiPlatformsView.vue b/apps/desktop-client/src/renderer/views/AiPlatformsView.vue index bd039bc..fa3bd07 100644 --- a/apps/desktop-client/src/renderer/views/AiPlatformsView.vue +++ b/apps/desktop-client/src/renderer/views/AiPlatformsView.vue @@ -1,10 +1,13 @@