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",