Skip to content

feat(react): add organizationmemberdetail hook and container component#224

Draft
chakrihacker wants to merge 5 commits intofeat/member-detail-componentsfrom
feat/member-detail-container
Draft

feat(react): add organizationmemberdetail hook and container component#224
chakrihacker wants to merge 5 commits intofeat/member-detail-componentsfrom
feat/member-detail-container

Conversation

@chakrihacker
Copy link
Copy Markdown
Contributor

Changes

Add useOrganizationMemberDetail hook with a single memberQuery (roles returned inline from /members/{user_id}), mutations for remove-from-org, delete member, and assign/remove roles. Role mutations invalidate the member query key to re-fetch updated inline roles.

Add OrganizationMemberDetail container component wiring the hook into
the view, and export both from the package index files.

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

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.

1 participant