Skip to content

feat: add groups column to members page in organizations #14620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 10, 2024

Conversation

DanielleMaywood
Copy link
Contributor

Fixes #14315

This adds a 'Groups' column to the table on the organizations/<name>/members page.

Before change

Screenshot 2024-09-09 at 16 29 39

After change

Screenshot 2024-09-09 at 16 25 44

@DanielleMaywood DanielleMaywood marked this pull request as ready for review September 10, 2024 14:12
@@ -22,6 +23,8 @@ const OrganizationMembersPage: FC = () => {
};
const { user: me } = useAuthenticated();

const groupsByUserIdQuery = useQuery(groupsByUserId());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note how this query doesn't take the organizationName as a parameter: this is not scoped to an organization, this shows every group a user is in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops 🤦‍♀️ Thank you for catching that

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me but it is best to wait for the Kayla's approval 👍

Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beautiful! thank you!

@DanielleMaywood DanielleMaywood merged commit 90b29df into main Sep 10, 2024
25 of 27 checks passed
@DanielleMaywood DanielleMaywood deleted the dm-org-members-groups branch September 10, 2024 18:05
@github-actions github-actions bot locked and limited conversation to collaborators Sep 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Organization members page should have a "Groups" column that quickly shows their groups
3 participants