Commit graph

2 commits

Author SHA1 Message Date
jeda
9a015ffa42 fix: ESM/CommonJS blessed import compatibility
Changed all blessed imports from namespace import (import * as blessed)
to default import (import blessed from 'blessed') in 28 files.

This fixes "blessed.screen is not a function" runtime error that occurs
when ESM modules import CommonJS blessed package with namespace syntax.

Also includes WorkerAnalyticsPanel property additions for type compliance.

Fixes: bd-31x

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-04 23:47:19 +00:00
jeda
2811c3cde2 feat(bd-2ox): Add comprehensive unit tests for FileHeatmap component
Added 51 unit tests covering:
- Heatmap calculation from file access events
- Color gradient rendering (cold, warm, hot, critical heat levels)
- File path truncation with various edge cases
- Sort mode cycling (modifications, recent, workers, collisions)
- Collision filtering and indicators
- Navigation (selectNext, selectPrevious, g/G keys)
- Worker contribution display
- Statistics header rendering
- Edge cases (empty entries, many workers, zero modifications)

All tests pass successfully.

Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-04 03:15:48 +00:00