feat(admin-web): surface monitoring platform authorization status

Dashboard and question-detail views now read platform_authorization_status
from the API. Tracking disables collect-now when the account has no
desktop client, no authorized platforms, or the selected platform is
unauthorized, and keeps the six-platform matrix stable; question-detail
replaces tabs and cards with an explicit unavailable notice when the
account is not authorized for monitoring. Adds the shared type and
en/zh strings covering each status.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-24 22:21:01 +08:00
parent c0253c98f9
commit 1b1ab7ee0c
5 changed files with 137 additions and 10 deletions
+22
View File
@@ -351,6 +351,9 @@ const enUS = {
collectTodayOnly: "Collect Now only supports today's data. Switch back to today to continue.",
collectClientChecking: "Checking whether the current account's desktop client is online.",
collectClientOnlineRequired: "The current account's desktop client must be online before collecting.",
noDesktopClientCollectReason: "This account has no registered desktop client, so collection cannot start.",
noAuthorizedPlatformsCollectReason: "This account has no authorized AI platforms, so collection cannot start.",
collectPlatformUnauthorized: "The selected platform is not authorized for this account.",
pluginMode: "Plugin sampling",
pluginHint: "Plugin-mode data depends on device uptime. Low coverage should be treated as directional only.",
awaitingSnapshot: "Waiting for the next valid snapshot",
@@ -393,6 +396,25 @@ const enUS = {
noCitationAnalysis: "No citation analysis for this platform",
noContentCitations: "No content citations for the active platform",
noTaskDebug: "No async task debug data for the current filters",
noPlatformBreakdown: "No platform data is available for the current filters",
selectedPlatformUnauthorizedTitle: "Selected Platform Not Authorized",
selectedPlatformUnauthorizedDescription: "This AI platform has no active authorization for the current account. Switch to an authorized platform or authorize it in the desktop client.",
noDetailPlatformsTitle: "No Platforms Available",
noDetailPlatformsDescription: "No AI platform data is available for the current filters.",
platformAuthorization: {
authorized: {
title: "AI Platform Authorization Active",
description: "This account has AI platform authorization available for monitoring collection.",
},
no_desktop_client: {
title: "No Desktop Client Detected",
description: "This account has not registered a desktop client. Daily tasks will wait for an eligible client before dispatch, and the dashboard will not show collection as available.",
},
no_authorized_platforms: {
title: "No Authorized AI Platforms",
description: "This account has no bound or authorized AI platform accounts. The system will not generate or dispatch collection tasks for unauthorized platforms.",
},
},
samples: "samples",
citations: "citations",
citedArticleMeta: "{count} cited articles",
+22
View File
@@ -351,6 +351,9 @@ const zhCN = {
collectTodayOnly: "立即采集只支持今天的数据,请切回今天后再操作",
collectClientChecking: "正在检查当前账号的桌面客户端状态",
collectClientOnlineRequired: "当前登录账号的桌面客户端未在线,暂时不能立即采集",
noDesktopClientCollectReason: "当前账号尚未注册桌面客户端,不能发起采集",
noAuthorizedPlatformsCollectReason: "当前账号暂无已授权 AI 平台,不能发起采集",
collectPlatformUnauthorized: "当前筛选平台未授权,不能发起采集",
pluginMode: "插件采样",
pluginHint: "插件模式下结果受设备在线率影响,低覆盖样本仅供趋势参考。",
awaitingSnapshot: "等待下一次有效快照",
@@ -393,6 +396,25 @@ const zhCN = {
noCitationAnalysis: "该平台暂无引用分析",
noContentCitations: "当前平台暂无内容引用",
noTaskDebug: "当前条件下暂无异步任务调试数据",
noPlatformBreakdown: "当前筛选条件下暂无可展示的平台数据",
selectedPlatformUnauthorizedTitle: "当前平台未授权",
selectedPlatformUnauthorizedDescription: "该 AI 平台没有当前账号的有效授权记录,请切换到已授权平台或在桌面端完成授权。",
noDetailPlatformsTitle: "暂无可展示平台",
noDetailPlatformsDescription: "当前筛选条件下没有可展示的 AI 平台数据。",
platformAuthorization: {
authorized: {
title: "AI 平台授权正常",
description: "当前账号已有可用于监控采集的 AI 平台授权。",
},
no_desktop_client: {
title: "未检测到桌面客户端",
description: "当前账号尚未注册桌面客户端。每日任务会等待有效客户端上线后再下发,仪表盘不会展示为可采集状态。",
},
no_authorized_platforms: {
title: "暂无已授权 AI 平台",
description: "当前账号没有已绑定或已授权的 AI 平台。系统不会为未授权平台生成或下发采集任务。",
},
},
samples: "次采样",
citations: "次引用",
citedArticleMeta: "{count} 篇内容被引用",