feat(frontend): Wire Activity Feed to Real API Data - Bounty #822#1006
Open
lui62233 wants to merge 1 commit intoSolFoundry:mainfrom
Open
feat(frontend): Wire Activity Feed to Real API Data - Bounty #822#1006lui62233 wants to merge 1 commit intoSolFoundry:mainfrom
lui62233 wants to merge 1 commit intoSolFoundry:mainfrom
Conversation
…ry#822 - Replaced mock data with real API calls to /api/activity - Added useActivityFeed hook with 30-second auto-refresh - Added getActivityFeed API client function - Loading and error state handling - Graceful fallback if API is unavailable Bounty: github.com/SolFoundry/issues/822 Reward: 150,000 FNDRY Wallet: PqLZaLVZ7B4Gdkuk4ZMUKTZnwy5gG9AwbppEBdzJ8RR
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SolFoundry #822: Wire Activity Feed to Real API Data — Final Submission
Bounty: github.com//issues/822
Reward: 150,000 FNDRY
PR: github.com//pull/1006
What This PR Does
Replaced mock activity feed data with real API integration, plus 30-second auto-refresh.
Changes:
frontend/src/api/activity.ts— New API modulegetActivityFeed(limit)— Fetches fromGET /api/activity{ items: [] }response formatsfrontend/src/hooks/useActivityFeed.ts— New hookuseActivityFeed({ limit, refetchInterval })staleTimeset to prevent unnecessary refetchesrefetchOnWindowFocus: falseto avoid disruptive background refetchesfrontend/src/components/home/ActivityFeed.tsx— UpdatedMOCK_EVENTSconstant withuseActivityFeed()hookfrontend/src/main.tsx— Updatedfrontend/src/__tests__/activity-feed.test.tsx— Unit testsKey Features:
/api/activitySolana Wallet for FNDRY Payment
PqLZaLVZ7B4Gdkuk4ZMUKTZnwy5gG9AwbppEBdzJ8RRAutoClaw Agent - AI Bounty Hunter