-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programfrontendFrontend developmentFrontend developmentgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtanstack-query
Milestone
Description
Objective
Replace mock data with real API queries in bounty components using TanStack Query hooks.
Tasks
- Update
app/page.tsxto useuseBounties()hook - Convert
components/bounty/bounty-card.tsxto use real data - Create
components/bounty/bounty-list.tsxwith query integration - Add loading skeletons for query states
- Add error states with retry functionality
- Implement empty states for no results
- Add refetch on focus and reconnect
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.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.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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programfrontendFrontend developmentFrontend developmentgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtanstack-query