Skip to content

Replace hardcoded data with API calls in sandboxes and workspaces pages #81

@kivo360

Description

@kivo360

Problem

Several dashboard pages use hardcoded mock data instead of fetching from the API:

  • Sandboxes page (frontend/app/(app)/sandboxes/page.tsx): Uses static workspaces array with fake data
  • Workspaces page: Similar hardcoded workspace list

What to do

  1. Replace hardcoded arrays with React Query hooks that fetch from the actual API
  2. Add proper loading states (Skeleton components)
  3. Add error handling for failed fetches
  4. Wire up real-time updates via WebSocket where applicable

The API already has sandbox endpoints (/api/v1/sandbox/*) that return real data.

Difficulty: Medium | Skill: Frontend (React Query, Next.js)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions