Skip to content

feat: admin panel for group management#87

Open
opensecretsauce wants to merge 2 commits intosorosave-protocol:mainfrom
opensecretsauce:feat/admin-panel
Open

feat: admin panel for group management#87
opensecretsauce wants to merge 2 commits intosorosave-protocol:mainfrom
opensecretsauce:feat/admin-panel

Conversation

@opensecretsauce
Copy link

Closes #38

Changes

  • New AdminPanel component — visible only when connected wallet === group admin
  • Start Group — enabled once ≥2 members joined (Forming status)
  • Pause / Resume toggle based on current group status
  • Transfer Admin — address input with G… validation before enabling
  • Emergency Withdraw — two-step confirmation (prevent accidental clicks)
  • All actions have loading / success / error states
  • Integrated into /groups/[id] sidebar
  • Full dark mode support

Build

pnpm build

- 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
@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.

Implement admin panel for group management

1 participant