MotorSignal-App/website
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
..
app fix(website): stop club rank matrix from faking a permission save (WEB-W1) 2026-10-14 11:20:29 -04:00
components fix(website): stop club rank matrix from faking a permission save (WEB-W1) 2026-10-14 11:20:29 -04:00
docs/backend-contracts fix(website): stop club rank matrix from faking a permission save (WEB-W1) 2026-10-14 11:20:29 -04:00
lib fix: resolve Android CI breakpoint overflow and address Codex PR #28 findings 2026-10-09 18:53:39 -04:00
public/images fix: restore website visual assets and shell 2026-09-13 03:45:35 -04:00
test-support fix: resolve Android CI breakpoint overflow and address Codex PR #28 findings 2026-10-09 18:53:39 -04:00
tests fix(website): stop club rank matrix from faking a permission save (WEB-W1) 2026-10-14 11:20:29 -04:00
.env.example fix(website): isolate Firebase configuration for staging and enforce safety guards 2026-10-08 10:50:28 -04:00
.gitignore Improve ride recording and telemetry workflows 2026-09-08 02:13:03 -04:00
AGENTS.md Improve ride recording and telemetry workflows 2026-09-08 02:13:03 -04:00
CLAUDE.md Improve ride recording and telemetry workflows 2026-09-08 02:13:03 -04:00
next-env.d.ts Improve ride recording and telemetry workflows 2026-09-08 02:13:03 -04:00
next.config.ts feat(website): expose and verify deployed Git revision (#13) 2026-09-20 18:59:17 -04:00
package-lock.json feat(core): reconcile local development, hybrid design, sensor fusion, and docs 2026-10-09 05:12:01 -04:00
package.json feat(core): reconcile local development, hybrid design, sensor fusion, and docs 2026-10-09 05:12:01 -04:00
tsconfig.json Improve ride recording and telemetry workflows 2026-09-08 02:13:03 -04:00
vitest.config.ts fix(website): isolate Firebase configuration for staging and enforce safety guards 2026-10-08 10:50:28 -04:00