feat: add queue description column to events page
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
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:
parent
5edc467d19
commit
d1661c0072
@ -49,8 +49,18 @@ function EventsPage() {
|
|||||||
qc.invalidateQueries({ queryKey: ['events'] })
|
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 = [
|
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: '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: '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" /> },
|
{ title: '进行中', dataIndex: 'active', width: 70, align: 'center' as const, render: (v: number) => <Badge count={v} showZero color="processing" /> },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user