feat(monitoring): decouple AI platforms from media_platforms and expand catalog to 6

Add ai_platforms table + shared catalog (yuanbao/kimi/wenxin/deepseek/doubao/qwen),
drop FKs from platform_accounts and desktop_tasks to media_platforms, and wire
target_account_id + platform into DesktopTaskEvent so the desktop runtime no
longer has to infer them from local state. Desktop client gains generic AI page
detection for binding, drops stale-business-date monitor tasks at the edge, and
refactors AccountsView/AiPlatformsView around the shared catalog. Admin tracking
view surfaces per-platform sampling status cards.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-20 15:40:18 +08:00
parent 25dad49ed3
commit 09295d11a1
21 changed files with 2073 additions and 843 deletions
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ReloadOutlined, SearchOutlined } from "@ant-design/icons-vue";
import { ClockCircleOutlined, ReloadOutlined, SearchOutlined, SendOutlined } from "@ant-design/icons-vue";
import type { DesktopPublishTaskListResponse, DesktopTaskInfo, JsonValue } from "@geo/shared-types";
import { computed, onMounted, onUnmounted, ref, watch } from "vue";
@@ -400,15 +400,29 @@ const tableColumns = [
<template v-else-if="column.key === 'actions'">
<div class="action-buttons">
<a-button
<a-popconfirm
v-if="!isPendingStatus(record.status)"
size="small"
:loading="actionPendingTaskId === record.id"
@click="retryTask(record.id)"
title="确定要重试本次发布吗?"
placement="topRight"
ok-text="确定"
cancel-text="取消"
@confirm="retryTask(record.id)"
>
再次发送
</a-button>
<span v-else class="action-placeholder">排队中</span>
<a-tooltip title="再次发送" placement="top">
<a-button
type="text"
class="icon-action-btn"
:loading="actionPendingTaskId === record.id"
>
<template #icon><SendOutlined /></template>
</a-button>
</a-tooltip>
</a-popconfirm>
<a-tooltip v-else title="排队中...">
<div class="action-placeholder-icon">
<ClockCircleOutlined />
</div>
</a-tooltip>
</div>
</template>
</template>
@@ -441,10 +455,11 @@ const tableColumns = [
}
.hero-copy {
padding: 24px;
padding: 28px;
border-radius: 12px;
border: 1px solid #e6edf5;
background: #ffffff;
border: 1px solid #e2e8f0;
background: linear-gradient(135deg, #ffffff, #f8fafc);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}
.eyebrow,
@@ -487,13 +502,47 @@ h2 {
.toolbar-stats,
.toolbar-search,
.status-cell,
.action-buttons {
.status-cell {
display: flex;
align-items: center;
gap: 10px;
}
.action-buttons {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
}
.icon-action-btn {
color: #64748b;
border-radius: 6px;
transition: all 0.2s ease;
background: transparent;
width: 32px;
height: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
border: none;
}
.icon-action-btn:hover {
background: #f1f5f9;
color: #0ea5e9;
}
.action-placeholder-icon {
width: 32px;
height: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
color: #94a3b8;
font-size: 16px;
}
.toolbar-stats {
flex-wrap: wrap;
}
@@ -512,10 +561,12 @@ h2 {
min-height: 32px;
padding: 0 12px;
border-radius: 999px;
background: #f5f7fa;
color: #4b5563;
background: #f8fafc;
color: #475569;
font-size: 12px;
font-weight: 600;
border: 1px solid #e2e8f0;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.cell-primary-secondary {
@@ -599,20 +650,23 @@ h2 {
:deep(.publish-table .ant-table-thead > tr > th) {
background: #f8fafc;
color: #4b5563;
font-size: 12px;
color: #475569;
font-size: 13px;
font-weight: 600;
border-bottom: 1px solid #e6edf5;
border-bottom: 1px solid #e2e8f0;
padding: 12px 16px;
}
:deep(.publish-table .ant-table-tbody > tr > td) {
border-bottom: 1px solid #eef2f7;
border-bottom: 1px solid #f1f5f9;
vertical-align: top;
background: #ffffff;
padding: 16px;
transition: background-color 0.2s ease;
}
:deep(.publish-table .publish-row--pending > td) {
background: #fffbeb;
background: #fefce8;
}
:deep(.publish-table .ant-table-tbody > tr:hover > td) {