Mike Lady
f30f46192f
test(dashboard): Add unit tests for convoy dashboard fetcher
Add table-driven tests for:
- calculateWorkStatus: complete, active, stale, stuck, waiting states
- determineCIStatus: pass, fail, pending with various check combinations
- determineMergeableStatus: ready, conflict, pending states
- determineColorClass: mq-green, mq-yellow, mq-red combinations
- getRefineryStatusHint: idle, singular, multiple PR messages
- truncateStatusHint: line truncation to 60 chars with ellipsis
- parsePolecatSessionName: gt-<rig>-<polecat> parsing
- isWorkerSession: worker vs non-worker session detection
- parseActivityTimestamp: Unix timestamp parsing from tmux
Also refactors inline logic into testable helper functions.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 18:23:45 -08:00
..
2026-01-03 11:49:42 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:23:44 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:23:44 -08:00
2026-01-03 15:49:53 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-02 12:23:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 11:53:38 -08:00
2025-12-30 22:29:23 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 15:49:53 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 18:23:45 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:10:53 -08:00