Commit graph

16 commits

Author SHA1 Message Date
jeda
68624b081a feat(bd-1fe): Add RecoveryPanel component to web frontend
Port TUI RecoveryPanel.ts to React web frontend:
- Add RecoverySuggestion, RecoveryAction, and related types to types.ts
- Create RecoveryPanel.tsx component with:
  - Recovery suggestions list with expandable actions
  - Priority badges and category icons
  - Automated/manual action indicators
  - Execute and dismiss buttons for actions
  - Detail panel for selected suggestion
- Add CSS styles for recovery panel and toggle button
- Integrate RecoveryPanel into App.tsx with toggle button in header

All 442 tests pass.

Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-03 15:33:24 +00:00
jeda
dc4421603f feat(bd-129): Add blessed TUI tests for ActivityStream component
- Add comprehensive test suite with 52 test cases covering:
  - Constructor and initialization
  - Event addition and formatting
  - Pause/unpause functionality
  - Filtering by worker, level, and search
  - Key bindings (p for pause, C-c for clear)
  - Edge cases (empty messages, unicode, special chars)
  - Position options (string and numeric)

Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-03 15:30:52 +00:00
jeda
7f813ae99d feat(bd-396): Integrate DependencyDag component into web dashboard
- Import and render DependencyDag component in App.tsx
- Add showDependencyDag state toggle
- Add DAG button in header with 🔗 icon
- Add CSS styles for dag-toggle button
- All 390 tests pass including 14 DependencyDag tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-03 15:26:44 +00:00
jeda
595a174ce4 feat(bd-2vc): Add FileHeatmap component to web frontend
Port TUI FileHeatmap.ts to React web frontend with:
- Full component implementation with heat visualization
- Sort mode cycling (modifications, recent, workers, collisions)
- Collision filtering and directory filtering
- Entry selection with detail panel
- Worker display and modification statistics
- Comprehensive test suite (15 tests)
- API endpoints already integrated in server

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-03 15:22:47 +00:00
jeda
ccbe8e7a36 feat(bd-1mh): Add DependencyDag component to web frontend
- Create DependencyDag.tsx with interactive task dependency visualization
- Add DAG types to web frontend types
- Add /api/dag endpoint to server.ts
- Add CSS styles for DAG panel
- Add unit tests

Co-Authored-By: Claude Worker <noreply@anthropic.com>
2026-03-03 15:13:13 +00:00
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