Skip to content

fix(frontend): show group shares in Collaborators tab#386

Merged
aktech merged 1 commit into
mainfrom
fix/collaborators-tab-show-groups
Jun 5, 2026
Merged

fix(frontend): show group shares in Collaborators tab#386
aktech merged 1 commit into
mainfrom
fix/collaborators-tab-show-groups

Conversation

@aktech

@aktech aktech commented Jun 5, 2026

Copy link
Copy Markdown
Member

Problem

Sharing a workspace with a group added the group to the backend grants and showed it in the Share dialog's "Current Access" list, but the Collaborators tab on the workspace detail page rendered nothing for that group. The tab fetched both user and group grants, then only mapped over the user list, so groups were silently dropped (and the tab count excluded them).

Fix

  • Add a read-only CollaboratorsList component that renders both users and groups. Group rows show the group name, its source (Native group / OIDC group), and the role badge, matching how the Share dialog already presents groups.
  • Use it in the Collaborators tab in place of the user-only map.
  • Base the tab count on the full collaborator list instead of just users.

Backend (GET /workspaces/{id}/collaborators) already returned groups, so no server change was needed.

Tests

New CollaboratorsList.test.tsx: renders user rows, renders group rows alongside users, distinguishes native vs OIDC group labels, and shows the empty state.

The Collaborators tab on the workspace detail page fetched both user and
group grants but only rendered users, so a workspace shared with a group
showed nothing for that group, even though the Share dialog's Current
Access list and the backend collaborators endpoint both included it.

Extract a read-only CollaboratorsList component that renders users and
groups (group rows show the name, native/OIDC source, and role), use it
in the tab, and base the tab count on the full collaborator list.
@netlify

netlify Bot commented Jun 5, 2026

Copy link
Copy Markdown

Deploy Preview for nebi-docs canceled.

Name Link
🔨 Latest commit 2a4fe91
🔍 Latest deploy log https://app.netlify.com/projects/nebi-docs/deploys/6a22bb4020c67b000816a58b

@jbouder jbouder self-requested a review June 5, 2026 12:19

@jbouder jbouder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Works and looks great!

@aktech aktech merged commit ffa8c5f into main Jun 5, 2026
14 checks passed
@aktech aktech deleted the fix/collaborators-tab-show-groups branch June 5, 2026 12:34
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.

2 participants