feat: implement member contribution modal and group detail page (Closes #12) - #20
Open
therealsaitama0 wants to merge 1 commit into
Open
feat: implement member contribution modal and group detail page (Closes #12)#20therealsaitama0 wants to merge 1 commit into
therealsaitama0 wants to merge 1 commit into
Conversation
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.
$## Summary\n\n- Created
src/components/groups/contribute-modal.tsxwith full Soroban contribution flow\n- Createdsrc/app/groups/[id]/page.tsxgroup detail page wired to the modal\n\n## Changes\n\n###ContributeModal\n- Amount input (USDC) validated against groupminContributionrule\n- Period selector auto-populated with current cycle, editable\n- Displays connected wallet USDC balance before submitting\n- Full Soroban transaction: buildscontribute(member, amount, period), signs viauseWallet().signTransaction(), submits viaserver.sendTransaction()\n- Polls for result withserver.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