velxio/frontend/src/hooks
David Montero 888cb5b92b fix(autosave): only project owner triggers auto-save
Without an ownership check, viewing someone else's project (admin
inspection, browsing public projects) caused the auto-save hook to
PUT the project on every store change. The backend correctly rejects
non-owner updates with 403, but the frontend surfaced these as
"save fail" to the user — misleading and noisy in logs.

The hook now stays idle unless the authenticated user matches
currentProject.ownerUsername. Manual saves through SaveProjectModal
are unaffected.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 21:41:32 +02:00
..
useAutoSaveProject.ts fix(autosave): only project owner triggers auto-save 2026-05-03 21:41:32 +02:00
useWebcamFrames.ts feat(webcam): universal compatibility — any webcam on any PC 2026-05-03 00:48:24 -03:00