groups system - BevvyTech/BrewskiDocs GitHub Wiki

Groups – System Directory (/groups/system)

Purpose

  • Provide super users with a read-only view of every brewery group in the platform.
  • Surface key metadata (region, membership counts, Shop visibility, approval status) without requiring membership in the group.

Data & Dependencies

  • Fetches aggregated group summaries via GET /groups/system, which is restricted to super-user (teamRoleType === "su") memberships.
  • Response mirrors the standard /groups payload so existing table styling and chips stay in sync with the team-scoped directory.

Key Interactions

  • Row click navigates to the usual group detail route; access is still enforced server-side, so super users rely on privileged endpoints to inspect deeper data.
  • Table actions (accept/decline/leave) and the “Start a group” CTA are hidden to keep the view read-only.
  • Count chips continue to show active, invited, and pending membership totals for quick scanning.
⚠️ **GitHub.com Fallback** ⚠️