feat(admin): add admin panel for group management#160
Open
aunysillyme wants to merge 1 commit into
Open
Conversation
Adds AdminPanel component with admin-only controls: start group (Forming → Active), pause/resume toggle, remove member, transfer admin role, and emergency withdraw with inline confirmation. Mounts on the group detail page beside existing member actions; renders only for the connected admin wallet. Closes sorosave-protocol#11 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
/claim #11
Summary
AdminPanel.tsxwith admin-only controls: Start Group (Forming → Active), Pause/Resume, Remove Member, Transfer Admin Role, and Emergency Withdraw with an inline confirmation step.groups/[id]/page.tsxnext to the existing actions card. The panel only renders when the connected wallet matches the group admin.sorosaveClient, sign with Freighter, log the signed XDR pending tx-submission TODO that already exists elsewhere in the codebase).Notes
removeMember,transferAdmin,startGroup,pauseGroup,resumeGroup, andemergencyWithdrawcalls onsorosaveClientfollow the naming/signature conventions used bycontributeandcreateGroup. If the SDK method names differ, they're a one-line rename per action.Test plan
Forming: Start Group button appears and triggers a sign request.Active: Pause button appears.Paused: Resume button appears.Closes #11