shop approvals groups - BevvyTech/BrewskiDocs GitHub Wiki
Shop – Group Approvals (/shop/approvals/groups)
Purpose
Review queue for marketplace groups created by breweries. Newly created groups stay hidden (shopVisible=false) until a super user or support admin publishes them.
Data & Dependencies
Fetches /groups/system via groupsService.listSystem using SU credentials and filters results to hidden, non-retired groups.
Table pagination uses the shared PaginationFooter; the server still supplies the overall total/pages metadata.
Detail dialog calls groupsService.get(groupId) for full membership + content info and updates visibility through groupsService.updateShopVisibility(groupId, { shopVisible: true }).
Temporary feature flag admin.shop.auto-approve-groups (default off) can auto-publish new groups, skipping this review queue until the UI workflow is fully staffed.
Key Interactions
Only members of the SU or Support admin teams can access the route; everyone else is redirected to /shop/store-requests.
Search input (debounced) filters the server-side query by name/slug; a manual Refresh button refetches pending groups.
Table columns show hero thumbnail, slug, submission timestamp (from the pending content version), member count, and a status chip that stays “Hidden” until approved.
Selecting a row opens the review dialog with:
Latest hero image (or placeholder), description, slug, and region label from the submitted content version.
List of active member breweries with their logos/links and membership status chips.
“Approve group” action that flips shopVisible to true, shows a snackbar, closes the dialog, and refreshes the list so the approved group disappears from the queue.