[PR #2457] [MERGED] feat: add team memberships section to admin user detail page #2318

Closed
opened 2026-02-26 20:33:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2457
Author: @Mythie
Created: 2/8/2026
Status: Merged
Merged: 2/9/2026
Merged by: @dguyen

Base: mainHead: feat/admin-user-team-memberships


📝 Commits (1)

  • 9f5ce27 feat: add team memberships section to admin user detail page

📊 Changes

5 files changed (+316 additions, -1 deletions)

View changed files

apps/remix/app/components/tables/admin-user-teams-table.tsx (+146 -0)
📝 apps/remix/app/routes/_authenticated+/admin+/users.$id.tsx (+30 -1)
packages/trpc/server/admin-router/find-user-teams.ts (+107 -0)
packages/trpc/server/admin-router/find-user-teams.types.ts (+31 -0)
📝 packages/trpc/server/admin-router/router.ts (+2 -0)

📄 Description

Summary

  • Adds a collapsible "Team Memberships" accordion section to the admin user detail page (/admin/users/:id)
  • Shows all teams a user belongs to with their role (Admin/Manager/Member), parent organisation, and created date
  • Hovering a team name shows a popover with the team ID and URL
  • Data is loaded lazily via a new admin.user.findTeams TRPC route that resolves team roles through the organisation group membership chain

Changes

  • New: packages/trpc/server/admin-router/find-user-teams.ts + .types.ts — admin TRPC query route with pagination/search
  • New: apps/remix/app/components/tables/admin-user-teams-table.tsx — DataTable component with HoverCard on team name
  • Modified: packages/trpc/server/admin-router/router.ts — registered findTeams under admin.user
  • Modified: apps/remix/app/routes/_authenticated+/admin+/users.$id.tsx — added collapsible team memberships section
image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/2457 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 2/8/2026 **Status:** ✅ Merged **Merged:** 2/9/2026 **Merged by:** [@dguyen](https://github.com/dguyen) **Base:** `main` ← **Head:** `feat/admin-user-team-memberships` --- ### 📝 Commits (1) - [`9f5ce27`](https://github.com/documenso/documenso/commit/9f5ce2753d64f051547b0f416393d57c58499523) feat: add team memberships section to admin user detail page ### 📊 Changes **5 files changed** (+316 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `apps/remix/app/components/tables/admin-user-teams-table.tsx` (+146 -0) 📝 `apps/remix/app/routes/_authenticated+/admin+/users.$id.tsx` (+30 -1) ➕ `packages/trpc/server/admin-router/find-user-teams.ts` (+107 -0) ➕ `packages/trpc/server/admin-router/find-user-teams.types.ts` (+31 -0) 📝 `packages/trpc/server/admin-router/router.ts` (+2 -0) </details> ### 📄 Description ## Summary - Adds a collapsible "Team Memberships" accordion section to the admin user detail page (`/admin/users/:id`) - Shows all teams a user belongs to with their role (Admin/Manager/Member), parent organisation, and created date - Hovering a team name shows a popover with the team ID and URL - Data is loaded lazily via a new `admin.user.findTeams` TRPC route that resolves team roles through the organisation group membership chain ## Changes - **New:** `packages/trpc/server/admin-router/find-user-teams.ts` + `.types.ts` — admin TRPC query route with pagination/search - **New:** `apps/remix/app/components/tables/admin-user-teams-table.tsx` — DataTable component with HoverCard on team name - **Modified:** `packages/trpc/server/admin-router/router.ts` — registered `findTeams` under `admin.user` - **Modified:** `apps/remix/app/routes/_authenticated+/admin+/users.$id.tsx` — added collapsible team memberships section <img width="931" height="359" alt="image" src="https://github.com/user-attachments/assets/2bc0029d-4a70-406e-94ac-a558188e60cd" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:33:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#2318
No description provided.