Objective
Replace mock data with real API queries in bounty components using TanStack Query hooks.
Tasks
Implementation Details
- Remove all mock/hardcoded bounty data
- Add proper loading states (skeletons)
- Handle error states with toast notifications
- Show empty state when no bounties found
- Enable background refetching
Files to Modify
app/page.tsx
components/bounty/bounty-card.tsx
components/bounty/bounty-list.tsx (new)
Files to Create
components/bounty/bounty-skeleton.tsx
components/bounty/bounty-error.tsx
components/bounty/bounty-empty.tsx
Acceptance Criteria
- All components fetch real data from API
- Loading states show appropriate skeletons
- Errors display with retry options
- Empty states guide users appropriately
- Data automatically refetches on window focus
NOTE: Leave a guide on how to test with mock data and provide a screen record of your working implementation
Objective
Replace mock data with real API queries in bounty components using TanStack Query hooks.
Tasks
app/page.tsxto useuseBounties()hookcomponents/bounty/bounty-card.tsxto use real datacomponents/bounty/bounty-list.tsxwith query integrationImplementation Details
Files to Modify
app/page.tsxcomponents/bounty/bounty-card.tsxcomponents/bounty/bounty-list.tsx(new)Files to Create
components/bounty/bounty-skeleton.tsxcomponents/bounty/bounty-error.tsxcomponents/bounty/bounty-empty.tsxAcceptance Criteria
NOTE: Leave a guide on how to test with mock data and provide a screen record of your working implementation