feat: add organization member and invitation management UI#1205
Merged
feat: add organization member and invitation management UI#1205
Conversation
…itation UI Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/3cfaa60d-95bc-44d6-ab1d-973416e6c71a Co-authored-by: os-zhuang <277994282+os-zhuang@users.noreply.github.com>
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/3cfaa60d-95bc-44d6-ab1d-973416e6c71a Co-authored-by: os-zhuang <277994282+os-zhuang@users.noreply.github.com>
Claude created this pull request from a session on behalf of
os-zhuang
April 21, 2026 14:28
View session
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Implemented complete organization management UI leveraging better-auth's organization plugin. The backend already provided full CRUD APIs via better-auth—this PR adds the Studio frontend for member and invitation management.
Changes
New React Hooks (
apps/studio/src/hooks/useOrganizationMembers.ts)useOrganizationMembers(orgId)- Manages member operationsinviteMember(email, role)- Send invitationsremoveMember(userId)- Remove membersupdateMemberRole(userId, newRole)- Update rolesuseOrganizationInvitations(orgId)- Manages invitation lifecyclecancelInvitation(id)- Cancel pending invitesresendInvitation(id)- Resend invite emailsEnhanced Org Detail Page (
apps/studio/src/routes/orgs.$orgId.tsx)Example Usage
Architecture
All backend logic handled by better-auth's organization plugin—no custom API code needed. Frontend consumes better-auth endpoints via existing ObjectStack client SDK methods (
client.organizations.*).