feat: add queue description column to events page
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
WangDL 2026-05-24 21:00:32 +08:00
parent 5edc467d19
commit d1661c0072

View File

@ -49,8 +49,18 @@ function EventsPage() {
qc.invalidateQueries({ queryKey: ['events'] })
}
const queueDesc: Record<string, string> = {
'ai-analysis': 'AI 分析任务(主动回忆诊断、费曼评估)',
'document-import': '文档导入任务(文件解析、分块、向量化)',
'notification': '通知推送任务站内消息、Push 推送)',
'domain-events': '领域事件分发(跨模块事件异步处理)',
'audit-logs': '审计日志写入(管理员操作记录)',
'file-cleanup': '文件清理任务COS 过期文件删除、软删除清理)',
}
const overviewColumns = [
{ title: '队列', dataIndex: 'name', width: 160 },
{ title: '队列', dataIndex: 'name', width: 150, render: (n: string) => <Text code>{n}</Text> },
{ title: '说明', dataIndex: 'name', width: 300, render: (n: string) => <Text type="secondary">{queueDesc[n] || '—'}</Text> },
{ title: '总计', dataIndex: 'total', width: 60, align: 'center' as const },
{ title: '等待', dataIndex: 'waiting', width: 60, align: 'center' as const, render: (v: number) => <Badge count={v} showZero color="blue" /> },
{ title: '进行中', dataIndex: 'active', width: 70, align: 'center' as const, render: (v: number) => <Badge count={v} showZero color="processing" /> },