(event: StoredReportEvent, lane: 'left' | 'right')
| 505 | } |
| 506 | |
| 507 | function eventLaneContent(event: StoredReportEvent, lane: 'left' | 'right'): string { |
| 508 | const content = lane === 'left' ? leftLaneSummary(event) : rightLaneSummary(event); |
| 509 | if (!content) return ''; |
| 510 | return `<button class="event-card ${escapeHtml(event.kind)}" type="button"> |
| 511 | <span class="event-title">${escapeHtml(content.title)}</span> |
| 512 | </button>`; |
| 513 | } |
| 514 | |
| 515 | function lifecycleLaneContent(event: StoredReportEvent): string { |
| 516 | if (event.kind !== 'ws' || event.direction !== 'lifecycle') return ''; |
no test coverage detected