MotorSignal-App/website/app/clubs/[clubId]/manage
Developer c014c2f04f fix(website): stop club rank matrix from faking a permission save (WEB-W1)
The Ranks & Roles "Operational Permission Matrix" previously waited ~400ms and
showed a "Saved" state without persisting anything. No Firestore document, API
route, or security rule stores or enforces a per-rank capability matrix; club
authorization is role-based (Owner/Admin via getPortalPermissions). Persisting
the matrix would require frozen security-rule changes and would create an
unenforced permission model that misleads owners.

Make the control truthful instead of faking success:
- Render the matrix as a read-only reference of the standard governance model
  by default (persistenceAvailable=false): no Save/Reset controls, disabled
  toggles, a "View-only reference" indicator, and a notice stating that access
  is enforced by Owner/Admin roles and per-rank customization is planned.
- Remove the fake setTimeout save handler and the unconditional success state.
- Retain a forward-compatible editable path behind persistenceAvailable for
  when a backend contract ships.
- Document the precise backend contract required to enable persistence.

Tests: read-only matrix renders no Save control, reports no save, and does not
mutate permissions even for Owner/Admin; editable path still fires toggle/save
/reset when persistenceAvailable=true.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-14 11:20:29 -04:00
..
applications fix(web): repair clubs management experience 2026-09-20 02:02:22 -04:00
chat feat(website): add club curated routes, live squad chat, and portal navigation 2026-10-02 12:39:38 -04:00
members feat: add club members and wall management 2026-10-01 08:31:45 -04:00
moderation feat(website): add club moderation, stats, and group rides management 2026-10-02 11:07:44 -04:00
profile fix(web): repair clubs management experience 2026-09-20 02:02:22 -04:00
ranks-roles fix(website): stop club rank matrix from faking a permission save (WEB-W1) 2026-10-14 11:20:29 -04:00
rides feat(group-rides): secure club join moderation and discovery (Phase 3A) (#26) 2026-09-24 12:00:48 -04:00
routes feat(website): add club curated routes, live squad chat, and portal navigation 2026-10-02 12:39:38 -04:00
settings fix(web): repair clubs management experience 2026-09-20 02:02:22 -04:00
stats feat(website): add club moderation, stats, and group rides management 2026-10-02 11:07:44 -04:00
wall feat: add club members and wall management 2026-10-01 08:31:45 -04:00
page.tsx feat(clubs): add public syndicates directory, club discovery, and founder management portal 2026-09-18 18:35:21 -04:00