nmemmert 81a05bc145 Fix sync: consistent lastEdited timestamp + persistent error + retry button
Three bugs fixed:

1. lastEdited mismatch: saveProjectToStorage stamped Date.now() in
   localStorage but saveRemoteProject sent the React state's stale
   lastEdited — server and localStorage had different timestamps, so
   the "Pull latest" stale detection on a second device never fired.
   Fix: stamp lastEdited once before both calls so they're identical.

2. saveProjectToStorage now returns the stamped object so callers don't
   have to re-compute the timestamp.

3. Sync errors were auto-clearing after 2.5s making failures invisible.
   Now the "⚠ Sync failed" badge stays visible until the next successful
   sync, and a Retry button lets you force a re-push without making an edit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 14:59:29 -04:00
2026-05-27 09:41:53 -04:00
S
Description
No description provided
22 MiB
Languages
JavaScript 97%
Shell 2.4%
Dockerfile 0.2%
HTML 0.2%
CSS 0.2%