(message, type)
| 13655 | } else if (lowerStatus.startsWith('failed')) { |
| 13656 | info.label = 'Failed'; |
| 13657 | info.className = 'text-red-400'; |
| 13658 | } else if (['running', 'scanning', 'pending', 'inprogress', 'in_progress'].includes(lowerStatus)) { |
| 13659 | info.label = statusPart.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase()); |
| 13660 | info.className = 'text-yellow-400'; |
| 13661 | } else { |
| 13662 | info.label = statusPart.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase()); |
| 13663 | info.className = 'text-slate-300'; |
| 13664 | } |
| 13665 | |
| 13666 | if (timestamp) { |
| 13667 | info.timestampText = timestamp.toLocaleString(); |
| 13668 | } |
| 13669 | |
| 13670 | const tooltipParts = []; |
| 13671 | if (info.rawStatus) { |
| 13672 | tooltipParts.push(`Status: ${info.rawStatus}`); |
| 13673 | } |
| 13674 | if (info.timestampText) { |
| 13675 | tooltipParts.push(`Completed: ${info.timestampText}`); |
| 13676 | } |
| 13677 | if (info.rawTimestamp && !info.timestampText) { |
| 13678 | tooltipParts.push(`Reported: ${info.rawTimestamp}`); |
| 13679 | } |
| 13680 | info.tooltip = tooltipParts.join('\n'); |
| 13681 | |
| 13682 | return info; |
| 13683 | } |
| 13684 |
no outgoing calls
no test coverage detected