(channel?: string)
| 508 | } |
| 509 | |
| 510 | function getChannelColor(channel?: string): string { |
| 511 | const colors: Record<string, string> = { |
| 512 | progress: '#3b82f6', |
| 513 | control: '#f59e0b', |
| 514 | monitor: '#22c55e', |
| 515 | }; |
| 516 | return colors[channel || ''] || '#94a3b8'; |
| 517 | } |
| 518 | |
| 519 | function getSummary(event: StreamEvent): string { |
| 520 | const data = event.data; |