Phase 2: Mock Data Elimination — Tasks, Calendar, Knowledge #467

Closed
opened 2026-02-23 03:27:43 +00:00 by jason.woltje · 0 comments
Owner

Scope

Replace all mock/hardcoded data in existing pages with real API calls. The API client functions already exist but return mock data — wire them to the backend.

Tasks

  • PG-API-001: Wire /tasks page to real API — Replace mockTasks with fetchTasks() calls to /api/tasks, add loading/error states
  • PG-API-002: Wire /calendar page to real API — Replace mockEvents with fetchEvents() calls to /api/events, add loading/error states
  • PG-API-003: Wire /knowledge pages to real API — Replace mockEntries/mockTags with real API calls across all knowledge subpages (list, detail, search, graph, stats)

Acceptance Criteria

  • /tasks page renders real data from /api/tasks with loading/empty/error states
  • /calendar page renders real data from /api/events with loading/empty/error states
  • /knowledge pages render real data from /api/knowledge/* with loading/empty/error states
  • No mock data arrays remain in production code paths
  • All pages support light/dark theme
  • Lint, typecheck pass
## Scope Replace all mock/hardcoded data in existing pages with real API calls. The API client functions already exist but return mock data — wire them to the backend. ### Tasks - **PG-API-001**: Wire /tasks page to real API — Replace mockTasks with fetchTasks() calls to /api/tasks, add loading/error states - **PG-API-002**: Wire /calendar page to real API — Replace mockEvents with fetchEvents() calls to /api/events, add loading/error states - **PG-API-003**: Wire /knowledge pages to real API — Replace mockEntries/mockTags with real API calls across all knowledge subpages (list, detail, search, graph, stats) ## Acceptance Criteria - [ ] /tasks page renders real data from /api/tasks with loading/empty/error states - [ ] /calendar page renders real data from /api/events with loading/empty/error states - [ ] /knowledge pages render real data from /api/knowledge/* with loading/empty/error states - [ ] No mock data arrays remain in production code paths - [ ] All pages support light/dark theme - [ ] Lint, typecheck pass
jason.woltje added this to the MS16+MS17-PagesDataIntegration milestone 2026-02-23 03:27:43 +00:00
jason.woltje added the webapiapip1 labels 2026-02-23 03:27:43 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#467