feat(web): wire tasks page to real API data #473

Merged
jason.woltje merged 1 commits from feat/tasks-real-api into main 2026-02-23 03:51:09 +00:00
Owner

Summary

Replace mock data in /tasks page with real API calls via fetchTasks().

  • Wire fetchTasks() to real /api/tasks endpoint using apiGet client
  • Add workspace-aware data fetching via useWorkspaceId hook
  • Add MosaicSpinner loading state, empty state card, and error state with retry
  • Remove mock task data array from tasks.ts (no longer needed)
  • Use design tokens throughout (--surface, --border, --text, --text-muted, --danger)

Test plan

  • Verify tasks page loads with MosaicSpinner while fetching
  • Verify tasks display after API returns data
  • Verify empty state card shows when no tasks exist
  • Verify error state shows with retry button on API failure
  • Verify retry button re-fetches tasks

Refs #467

## Summary Replace mock data in /tasks page with real API calls via fetchTasks(). - Wire fetchTasks() to real /api/tasks endpoint using apiGet client - Add workspace-aware data fetching via useWorkspaceId hook - Add MosaicSpinner loading state, empty state card, and error state with retry - Remove mock task data array from tasks.ts (no longer needed) - Use design tokens throughout (--surface, --border, --text, --text-muted, --danger) ## Test plan - [ ] Verify tasks page loads with MosaicSpinner while fetching - [ ] Verify tasks display after API returns data - [ ] Verify empty state card shows when no tasks exist - [ ] Verify error state shows with retry button on API failure - [ ] Verify retry button re-fetches tasks Refs #467
jason.woltje added 1 commit 2026-02-23 03:50:51 +00:00
feat(web): wire tasks page to real API data
Some checks failed
ci/woodpecker/push/web Pipeline failed
c510d6fbc6
Replace mock data with real fetchTasks() API call. Add workspace-aware
data fetching, MosaicSpinner loading state, empty state card, and
error state with retry using design tokens throughout.

Refs #467
jason.woltje merged commit 97606713b5 into main 2026-02-23 03:51:09 +00:00
Sign in to join this conversation.