Skip to content

feat: wire activity feed to real api data (Closes #822)#940

Open
liufang88789-ui wants to merge 1 commit intoSolFoundry:mainfrom
liufang88789-ui:feat/bounty-822-activity-feed
Open

feat: wire activity feed to real api data (Closes #822)#940
liufang88789-ui wants to merge 1 commit intoSolFoundry:mainfrom
liufang88789-ui:feat/bounty-822-activity-feed

Conversation

@liufang88789-ui
Copy link
Copy Markdown

Replaces the home page activity feed mock data with a real API-backed query and keeps the UX resilient when the activity endpoint is unavailable.

Highlights:

  • adds GET /api/activity integration via api/activity.ts
  • adds useActivity() hook with 30s auto-refresh
  • supports real activity events from the backend
  • shows No recent activity for empty responses
  • gracefully falls back to demo activity when the API is unavailable
  • keeps the component self-contained and lightweight for the home page

Validation:

  • npm test -- --run src/__tests__/activity-feed-home.test.tsx

Closes #822

Wallet: 7UqBdYyy9LG59Un6yzjAW8HPcTC4J63B9cZxBHWhhHsg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🏭 Bounty T1: Wire Activity Feed to Real API Data

1 participant