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:
@@ -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} 篇内容被引用",
|
||||
|
||||
Reference in New Issue
Block a user