feat(platform): add member count and created date to teams table#1556
Conversation
Extend team queries (getMyTeams, listOrgTeams) to return memberCount and createdAt alongside id/name. Add member count and relative created date columns to the teams table. Wrap the table in PageSection for consistent layout. Add TeamMembersPreloader to eagerly subscribe to team member data so detail/edit/delete dialogs open instantly. Update test fixtures to include the new fields and mock the member count queries.
The TeamMembersPreloader component uses useTeamMembers which requires a QueryClient. Add a mock to prevent the "No QueryClient set" error in tests.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThis PR extends team data returned by backend queries to include Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
getMyTeamsandlistOrgTeamsConvex queries to returnmemberCountandcreatedAtfor each teamTeamMembersPreloadercomponent to eagerly subscribe to team member data, so detail/edit/delete dialogs open instantlyPageSectionfor consistent settings page layoutTest plan
convex/members/__tests__/queries.test.ts— all tests passSummary by CodeRabbit