feat: add bulk visibility controls to admin players page #188
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/westside-app!188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "111-admin-players-public"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds team-grouped bulk visibility toggles and public/hidden filter tabs to the admin players page, so Marcus can quickly control which players appear on the public /teams page.
Changes
src/routes/(app)/admin/players/+page.svelte— Added "Team Visibility" bulk action section with "Make All Public" and "Hide All" per team; added Public/Hidden filter tabs with counts; updated subtitle to show public player count; callsPATCH /admin/players/bulk-visibilityfor team-level operationsTest Plan
npm run build— successnpm run check— 0 errors, 7 pre-existing warnings (none from this file)Review Checklist
Related Notes
Related
Adds team-grouped bulk toggle buttons ("Make All Public" / "Hide All") and public/hidden filter tabs so Marcus can quickly control which players appear on the /teams page. Individual toggles preserved. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>Self-Review
Found and fixed during review:
ce59a69.Changes summary:
bulkToggleTeam()function that callsPATCH /admin/players/bulk-visibilitywith all player IDs for a given team{publicCount}/{total} publicand "Make All Public" / "Hide All" buttons"4 pipeline stages"to show public player countteam_nameinstead ofpayment_method(which was never in the API response — always showed undefined)aria-labelattributesVerification:
npm run build— successnpm run check— 0 errors, 7 pre-existing warnings (none from this file)Dependency: Requires basketball-api#246 to be merged first (adds
is_publicto GET /admin/players response). Without it, toggles render but initial state will beundefined(treated as falsy/hidden).ce59a69e878e6bb8b889Force-pushed to clean up branch. The original branch accidentally included 2 unrelated commits from a dirty worktree (
fix: update jersey deadlineandfeat: replace hardcoded schedule). Recreated from clean main with only the 2 relevant commits:c9b37b5feat: add bulk visibility controls to admin players page8e6bb8bfix: restore missing Paid filter tab dropped during rewriteDiff is now 1 file, 271 lines changed. Build and svelte-check both pass clean.