Phase 2: Task Ingestion Pipeline (#459) #460

Merged
jason.woltje merged 5 commits from feat/phase-2-ingestion into main 2026-02-23 00:54:56 +00:00

5 Commits

Author SHA1 Message Date
5b1f61b7ea chore(orchestrator): phase-2 verification complete, all quality gates green
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 18:54:14 -06:00
3dab677524 fix: remediate dashboard API integration review blockers (#459)
All checks were successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/api Pipeline was successful
- Fix race condition: guard useEffect when workspaceId is null, prevent
  infinite loading state by setting isLoading=false on null workspace
- Fix TypeScript strict typing: @Workspace() returns string|undefined,
  controller now matches with BadRequestException guard
- Narrow details DTO type from unknown to Record<string, unknown>|null
- Add error state UI for API fetch failures
- Add error-path test with static mock import pattern

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 18:51:46 -06:00
7c762e64c2 feat(web): wire dashboard widgets to real API data (#459)
All checks were successful
ci/woodpecker/push/web Pipeline was successful
- Create dashboard API client with TypeScript interfaces
- Update page.tsx to fetch from GET /api/dashboard/summary on mount
- DashboardMetrics: accept metrics prop, map to 6 cells with real data
- ActivityFeed: accept items prop, map actions to icons/timestamps
- OrchestratorSessions: accept jobs prop, render steps as agent nodes
- TokenBudget: accept budgets prop, compute percentages
- All widgets have empty/zero fallback states
- Update page tests to mock API fetch

Task: MS-P2-002

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 18:36:32 -06:00
e38aaa950b feat(api): add dashboard summary endpoint (#459)
All checks were successful
ci/woodpecker/push/api Pipeline was successful
Create GET /api/dashboard/summary aggregating 10 parallel Prisma
queries: task metrics, active agents, project counts, error rate,
recent activity, active runner jobs with steps, token budget entries.

Guarded by AuthGuard + WorkspaceGuard + PermissionGuard.
Includes DTO classes and unit tests.

Task: MS-P2-001

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 18:27:04 -06:00
90bef728e6 chore(orchestrator): phase-1 complete, bootstrap phase-2 tasks
Phase-1 complete: PR #458 merged, issue #457 closed.
Phase-2 planned: 3 tasks (MS-P2-001 through MS-P2-003), issue #459.
Focus: wire existing API endpoints to dashboard widgets.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 18:20:28 -06:00