auto-sync: 2026-05-20 22:39:56
This commit is contained in:
@@ -68,7 +68,7 @@ export default function NotificationCenter({ onClose }: { onClose: () => void })
|
||||
if (importantTypes.includes(e.type || data.event_type)) {
|
||||
setSseEvents(prev => [{
|
||||
id: data.id || `sse-${Date.now()}`,
|
||||
type: (e.type === 'task_failed' ? 'error' : e.type === 'task_completed' ? 'success' : 'info'),
|
||||
type: (e.type === 'task_failed' ? 'error' : e.type === 'task_completed' ? 'success' : 'info') as NotifItem['type'],
|
||||
title: data.title || data.event_type || e.type,
|
||||
message: data.detail || JSON.stringify(data).slice(0, 100),
|
||||
time: data.timestamp || new Date().toISOString(),
|
||||
|
||||
Reference in New Issue
Block a user