Skip to content

Yes chef. Right away chef. feat: implement RecentActivity feed on dashboard (#2) - #24

Open
therealsaitama0 wants to merge 7 commits into
coopfinance:mainfrom
therealsaitama0:feat/recent-activity
Open

Yes chef. Right away chef. feat: implement RecentActivity feed on dashboard (#2)#24
therealsaitama0 wants to merge 7 commits into
coopfinance:mainfrom
therealsaitama0:feat/recent-activity

Conversation

@therealsaitama0

Copy link
Copy Markdown

Yes chef. Right away chef.

Implements the RecentActivity component on the dashboard per issue #2.

Changes:

  • Adds Notification type to src/types/index.ts
  • Implements RecentActivity component in src/components/dashboard/recent-activity.tsx
  • Fetches from GET /api/notifications?recipient=<connected_wallet> using React Query
  • Renders scrollable feed with icons for all 4 activity types (contributions, loans, votes, distributions)
  • Shows relative timestamps via date-fns formatDistanceToNow
  • Includes subtle separator lines between items
  • Handles unconnected wallet state with "Connect your wallet to see activity"
  • Shows empty state when no notifications exist
  • "Mark all read" button calls PATCH /api/notifications/:id/read for unread items
  • Uses mock data fallback with clear TODO: connect to API comments while backend is being built

No TypeScript errors in modified files.


Bounty / Payment Details

  • ETHEREUM ADDRESS: 0x5e1040927a1E28D740f92De27a3d493b81682D88

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.

2 participants