fix(web): remove mock data from dashboard telemetry/tasks/calendar #656

Merged
jason.woltje merged 1 commits from fix/dashboard-widget-mock-data into main 2026-03-02 14:19:28 +00:00
Owner

Summary

  • switched fetchUsageSummary to real GET /api/llm-usage/analytics and removed telemetry mock generators
  • replaced TasksWidget timeout/mock tasks with fetchTasks() from @/lib/api/tasks
  • replaced CalendarWidget hardcoded events with fetchEvents() from @/lib/api/events
  • updated widget/telemetry tests for API-backed behavior

Verification

  • pnpm turbo lint typecheck --filter=@mosaic/web
  • pnpm --filter @mosaic/web exec vitest run src/components/widgets/__tests__/TasksWidget.test.tsx src/components/widgets/__tests__/CalendarWidget.test.tsx src/lib/api/telemetry.test.ts
## Summary - switched `fetchUsageSummary` to real `GET /api/llm-usage/analytics` and removed telemetry mock generators - replaced `TasksWidget` timeout/mock tasks with `fetchTasks()` from `@/lib/api/tasks` - replaced `CalendarWidget` hardcoded events with `fetchEvents()` from `@/lib/api/events` - updated widget/telemetry tests for API-backed behavior ## Verification - `pnpm turbo lint typecheck --filter=@mosaic/web` - `pnpm --filter @mosaic/web exec vitest run src/components/widgets/__tests__/TasksWidget.test.tsx src/components/widgets/__tests__/CalendarWidget.test.tsx src/lib/api/telemetry.test.ts`
jason.woltje added 1 commit 2026-03-02 14:18:02 +00:00
fix(web): remove dashboard widget mock telemetry/task/calendar data
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
a8930317ce
jason.woltje merged commit 5b77774d91 into main 2026-03-02 14:19:28 +00:00
Sign in to join this conversation.