Skip to content

feat: member dashboard page#84

Open
opensecretsauce wants to merge 2 commits intosorosave-protocol:mainfrom
opensecretsauce:feat/member-dashboard
Open

feat: member dashboard page#84
opensecretsauce wants to merge 2 commits intosorosave-protocol:mainfrom
opensecretsauce:feat/member-dashboard

Conversation

@opensecretsauce
Copy link

Closes #9

Changes

  • New /dashboard page with stats, group list, and action highlights
  • Stats row: total contributed, total received, active group count, next payout date
  • Needs Contribution section — active groups with due badges
  • Forming section — groups waiting for members
  • Completed section — historical groups
  • "Your turn next" 🎉 badge when user is next in payout order
  • Wallet-gated: shows connect prompt if no wallet connected
  • Dashboard link added to Navbar
  • Full dark mode support via Tailwind dark: classes

Build

pnpm build ✅ — /dashboard renders as static page

- Add WalletAdapter interface (src/lib/wallets/index.ts)
- Add FreighterAdapter, xBullAdapter, AlbedoAdapter
- Refactor providers.tsx to support multiple wallets + localStorage persistence
- Update ConnectWallet.tsx with wallet selection modal
- Create src/lib/sdk.ts as local stub for @sorosave/sdk
- Create src/lib/wallet.ts with multi-wallet signTransaction routing
- Fix all @sorosave/sdk missing module errors — build passes clean
- New /dashboard page showing all user groups
- Stats: total contributed, total received, active groups, next payout date
- Groups sorted by status: Active (needs contribution) → Forming → Completed
- 'Your turn next' badge when user is next in payout order
- 'Contribute due' badge on active groups
- Wallet not connected → gated prompt screen
- Dashboard link added to Navbar
- Full dark mode support
@opensecretsauce
Copy link
Author

⚠️ Dependency note: This PR should be reviewed after #81 merges. PR #81 introduces the foundational infrastructure (wallet adapters, local SDK stub, import fixes) that this feature builds on. Once #81 is merged, I will rebase this branch and the diff will only show the feature-specific changes.

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.

Add member dashboard page

1 participant