fix: use neutral drawing task labels

This commit is contained in:
CaIon
2026-06-24 22:15:29 +08:00
parent c12e5db4f9
commit b191f47375
8 changed files with 13 additions and 8 deletions
@@ -79,10 +79,14 @@ const TYPE_LABEL: Record<string, string> = {
log_cleanup: 'Log cleanup',
channel_test: 'Batch channel test',
model_update: 'Batch upstream model update',
midjourney_poll: 'Midjourney task polling',
midjourney_poll: 'Drawing task polling',
async_task_poll: 'Async task polling',
}
const TYPE_DISPLAY_ID: Record<string, string> = {
midjourney_poll: 'drawing_task_poll',
}
function isActiveStatus(status: SystemTaskStatus) {
return status === 'pending' || status === 'running'
}
@@ -136,7 +140,7 @@ function SystemTasksTable(props: SystemTasksTableProps) {
{t(TYPE_LABEL[task.type] ?? task.type)}
</div>
<div className='text-muted-foreground font-mono text-[11px]'>
{task.type}
{TYPE_DISPLAY_ID[task.type] ?? task.type}
</div>
</div>
</TableCell>