Skip to content

feat(frontend): expandable member lists on team rows - #13569

Closed
ntindle wants to merge 1 commit into
fix/org-ui-product-feedbackfrom
feat/org-teams-expandable-members
Closed

feat(frontend): expandable member lists on team rows#13569
ntindle wants to merge 1 commit into
fix/org-ui-product-feedbackfrom
feat/org-teams-expandable-members

Conversation

@ntindle

@ntindle ntindle commented Jul 14, 2026

Copy link
Copy Markdown
Member

Note

Top of the org-UI stack (#13496 → … → #13566 → this). Review the top commit only. Pairs with the roster-visibility gate added to #13541 — expanding a private team you can't inspect shows a muted join hint driven by that 403/404.

Why / What / How

Why: Product ask — on the Teams tab you should be able to expand "Engineering (1 member)" and see who's in it, without opening the manage panel.

What: Each team row gains a chevron disclosure. Expanding lazily fetches the roster (same hook + query key as the manage panel — cache shared, no double fetch) and renders read-only compact member rows: avatar, name, email, neutral Admin badge. Loading = skeleton rows; private teams the caller can't inspect render "Private — join this team to see its members" inline (no toast/ErrorCard); other failures get a muted fallback. Multi-open, default collapsed.

How: Chevron disclosure button as a sibling of the kebab (the design-system Collapsible/Accordion use a single full-width Radix trigger button which can't host the kebab without button-in-button nesting; interaction/visuals mirror the molecule). New TeamMembersPreview/ sub-component + hook per conventions.

Checklist 📋

For code changes:

  • I have clearly listed my changes in the PR description
  • I have made a test plan
  • I have tested my changes according to the test plan:
    • pnpm lint / pnpm types clean; org settings suites 42/42, exit 0 (4 new scenarios: lazy fetch, roster render, admin badges, private hint)

For configuration changes: n/a

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jm3mCG9okfdGtAXtFaDF9A


Note

Low Risk
Org-settings UI only; reuses existing list-members API and query cache with no new auth or data-model changes.

Overview
Adds chevron disclosure on each team row in org settings so users can see who’s on a team without opening Manage. Rows stay collapsed by default; several rows can be open at once, separate from the manage panel.

Expanding mounts TeamMembersPreview, which lazily loads the roster via the same workspace-members query as the manage panel (shared cache). The UI shows skeletons while loading, compact read-only rows (avatar, name, email, Admin badge), and for 403/404 a muted “Private — join this team to see its members.” hint inline instead of toasts or error cards.

Integration tests cover lazy fetch, roster display, admin badges, and the private-team hint.

Reviewed by Cursor Bugbot for commit 4739cd6. Bugbot is set up for automated code reviews on this repo. Configure here.

Product ask: see who is in a team from the Teams tab without opening the
manage panel. Each row gains a chevron disclosure (sibling of the kebab
- Radix single-button collapsible triggers can't nest the menu) that
lazily fetches the roster on first expand, sharing the manage panel's
query cache. Read-only compact rows (avatar, name, email, Admin badge);
private teams the caller can't inspect show a muted join hint instead of
an error surface.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jm3mCG9okfdGtAXtFaDF9A
@ntindle
ntindle requested a review from a team as a code owner July 14, 2026 18:11
@ntindle
ntindle removed the request for review from a team July 14, 2026 18:11
@ntindle
ntindle requested review from Pwuts and Swiftyos July 14, 2026 18:11
@github-project-automation github-project-automation Bot moved this to 🆕 Needs initial review in AutoGPT development kanban Jul 14, 2026
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • dev

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: aab687f9-5d2a-414a-8709-c85e26eeb1a9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/org-teams-expandable-members

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ntindle

ntindle commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

/batch

@github-actions github-actions Bot added the platform/frontend AutoGPT Platform - Front end label Jul 14, 2026
@ntindle ntindle added the batch PR is queued in the batch-deploy rollup (batch-bot source of truth) label Jul 14, 2026
@ntindle ntindle mentioned this pull request Jul 14, 2026
11 tasks
@ntindle

ntindle commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

🤖 Added #13569 to the batch. Current batch (9): #13566, #13542, #13541, #13540, #13539, #13533, #13532, #13530, #13569.

Deploying the combined preview (#13537); /batch-merge lands them together.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4739cd6. Configure here.

{isMembersOpen ? (
<TeamMembersPreview orgId={orgId} team={team} />
) : null}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Leave omits member preview cleanup

Medium Severity

Leaving a team via the manage panel only closes that panel and refetches the team list; it does not collapse the new member preview when that row was expanded. The preview can stay mounted with cached roster data even after the user left, unlike delete which clears openMemberTeamIds.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4739cd6. Configure here.

@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.71%. Comparing base (3edbea5) to head (4739cd6).

Additional details and impacted files
@@                       Coverage Diff                       @@
##           fix/org-ui-product-feedback   #13569      +/-   ##
===============================================================
+ Coverage                        75.69%   75.71%   +0.01%     
===============================================================
  Files                             2666     2668       +2     
  Lines                           201662   201693      +31     
  Branches                         19494    19484      -10     
===============================================================
+ Hits                            152650   152706      +56     
+ Misses                           44750    44729      -21     
+ Partials                          4262     4258       -4     
Flag Coverage Δ
platform-frontend 45.73% <80.00%> (+0.01%) ⬆️
platform-frontend-e2e 32.23% <ø> (+0.37%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Platform Backend 82.66% <ø> (ø)
Platform Frontend 49.72% <80.00%> (+0.11%) ⬆️
AutoGPT Libs ∅ <ø> (∅)
Classic AutoGPT 28.43% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ntindle

ntindle commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

Superseded by the re-cut org-UI stack (#13570#13574): each replacement PR carries its feature in final form — no ship-then-restyle, and the cut aliases feature never merges. Stack tip verified byte-identical to this chain's final tree.

@ntindle ntindle closed this Jul 14, 2026
@github-project-automation github-project-automation Bot moved this to Done in Frontend Jul 14, 2026
@github-project-automation github-project-automation Bot moved this from 🆕 Needs initial review to ✅ Done in AutoGPT development kanban Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

batch PR is queued in the batch-deploy rollup (batch-bot source of truth) platform/frontend AutoGPT Platform - Front end size/l

Projects

Status: ✅ Done
Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant