Skip to content

feat: implement member contribution modal and group detail page (Closes #12) - #20

Open
therealsaitama0 wants to merge 1 commit into
coopfinance:mainfrom
therealsaitama0:feat/contribute-modal
Open

feat: implement member contribution modal and group detail page (Closes #12)#20
therealsaitama0 wants to merge 1 commit into
coopfinance:mainfrom
therealsaitama0:feat/contribute-modal

Conversation

@therealsaitama0

Copy link
Copy Markdown

$## Summary\n\n- Created src/components/groups/contribute-modal.tsx with full Soroban contribution flow\n- Created src/app/groups/[id]/page.tsx group detail page wired to the modal\n\n## Changes\n\n### ContributeModal\n- Amount input (USDC) validated against group minContribution rule\n- Period selector auto-populated with current cycle, editable\n- Displays connected wallet USDC balance before submitting\n- Full Soroban transaction: builds contribute(member, amount, period), signs via useWallet().signTransaction(), submits via server.sendTransaction()\n- Polls for result with server.getTransaction()\n- All 5 transaction states: idle / signing / pending / success / error\n- On success: shows tx hash with Stellar Explorer link, invalidates group/balance queries\n\n### GroupDetailPage\n- /groups/[id] page with group info, rules, member list, and contribution button\n\n## Checklist\n\n- [ ] Wallet balance displayed before submitting\n- [ ] Amount validated against group minimum contribution\n- [ ] All 4 transaction states handled: idle / signing / pending / success / error\n- [ ] Tx hash displayed on success with explorer link\n- [ ] Group balance and member history refresh after success\n- [ ] Full Soroban transaction built correctly (not simulated — actually submitted)\n\n## Wallet\n\n0x5e1040927a1E28D740f92De27a3d493b81682D88

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