jeda
9ffbda241a
feat(bd-1fz): Add React Testing Library tests for WorkerGrid component
...
- Add 28 comprehensive tests covering:
- Empty state rendering
- Worker count display
- Status display (active, idle, error)
- Event count formatting
- Last seen time formatting (seconds, minutes, hours)
- Worker selection/deselection
- Collision indicators and warnings
- CSS class application
- Accessibility attributes
- Fix cleanup issue in existing test files:
- Add afterEach cleanup to ActivityStream.test.tsx
- Add afterEach cleanup to CollisionAlert.test.tsx
All 317 tests pass.
Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-03 14:59:37 +00:00
jeda
e9fbd1e68c
chore(bd-38s): update beads tracking and add WorkerGrid tests
...
Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-03 14:58:09 +00:00
jeda
469ad2cebe
feat(bd-38s): Add comprehensive tests for CollisionAlert component
...
The CollisionAlert React component was already fully implemented in
src/web/frontend/src/components/CollisionAlert.tsx. This commit adds
comprehensive test coverage including:
- Rendering tests (visibility, empty state, counts)
- Severity grouping (critical/error, warning, info)
- Type icons (F, B, T for file, bead, task)
- Severity icons (!!!, !!, !, i)
- Acknowledgment functionality
- Detail view display
- Worker display (count vs names)
- Title truncation
- CSS class application
- Selection handling
Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-03 14:57:05 +00:00
jeda
ac5e98ea85
feat(bd-ak8): Add comprehensive web server unit tests
...
- Add WebSocket connection tests with actual client connections
- Add broadcast() tests for single and multiple clients
- Add broadcastCollisions() tests
- Add WebSocket client lifecycle tests (disconnect, reconnect, errors)
- Add vitest setup file for frontend tests
All 53 tests pass including:
- HTTP endpoints (health, workers, events, collisions, xref)
- WebSocket functionality
- Error handling
- Server lifecycle
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-03 14:53:53 +00:00
jeda
3fea320e8e
chore(bd-3fs): close completed bead
...
Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-03 14:48:16 +00:00
jeda
08dccf98a2
feat(bd-3fs): Add CollisionAlert component to web frontend
...
- Create CollisionAlert.tsx component with real-time collision notifications
- Add collision alert types (FileCollision, BeadCollision, TaskCollision, CollisionAlert) to types.ts
- Integrate CollisionAlert into App.tsx with WebSocket support
- Add CSS styles for collision alert panel with severity grouping
- Add header toggle button for collision alerts with unacknowledged count badge
Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-03 14:46:56 +00:00
jeda
60975482d9
feat(bd-b0c): Add WorkerDetail component to web frontend
...
- Create src/web/frontend/src/components/WorkerDetail.tsx as dedicated component
- Port TUI WorkerDetail functionality to React web frontend
- Features:
- Worker ID and status with status icon
- Activity statistics (event count, current tool)
- Timing information (last seen)
- Recent events list (last 10 events)
- Collision warning with affected files
- Close button to deselect worker
- Update App.tsx to use new WorkerDetail component
- Add comprehensive CSS styles for new component
Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-03 14:40:32 +00:00
jeda
df5e54cd87
refactor(bd-5d8): Centralize SessionReplay types in types.ts
...
Move ReplaySpeed and ReplayState types to central types file for
consistency and re-export them from the component for external use.
Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-03 14:39:39 +00:00
jeda
942aacc465
feat(bd-2uo): Add Vitest tests for web server API endpoints
...
- Add comprehensive tests for /api/health endpoint
- Add tests for /api/workers and /api/workers/:id endpoints
- Add tests for /api/events with filtering (worker, level, limit)
- Add tests for /api/collisions and /api/workers/:id/collisions
- Add tests for cross-reference API endpoints (/api/xref/*)
- Add tests for WebSocket functionality exposure
- Add tests for server lifecycle and error handling
- All 42 new tests pass (225 total tests)
Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-03 14:36:44 +00:00
jeda
5fab75708f
feat(bd-xig): Implement worker collision detection
...
- Add BeadCollision, TaskCollision, CollisionAlert types
- Extend WorkerInfo to track activeBead and activeDirectories
- Implement bead collision detection ( detectBeadCollision, getBeadCollisions, getWorkerBeadCollisions)
- Implement task collision detection ( detectTaskCollision, getTaskCollisions
- Implement getWorkerTaskCollisions
- Generate collision alerts with suggestions
- Add getCollisionStats for statistics
- Add cleanupStaleCollisions for bead and task collisions
- Create CollisionAlert TUI component
- Add unit tests for collision detection
🚀 Generated with Claude Worker <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-03 13:50:02 +00:00
jeda
57e8193f7b
feat(bd-2kf): Add comprehensive test coverage for parser and store
...
- Add 36 parser tests covering:
- parseLogLine with valid/invalid inputs
- parseLogLines for multi-line parsing
- formatEvent with all options
- Edge cases: malformed JSON, missing fields, colorization
- Add 35 store tests covering:
- InMemoryEventStore add/query operations
- Worker status tracking (active/idle/error)
- Event filtering by worker, level, bead, timestamp
- maxEvents limit and LRU trimming
- getStore/resetStore singleton management
- Close phase beads (bd-2pa, bd-n8l, bd-2nu) as infrastructure complete
- Close test beads (bd-5eh, bd-2en) with comprehensive coverage
- Total: 91 tests passing across parser, store, and tailer
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-03 10:43:24 +00:00