feat: show save errors in the UI instead of console

Add syncError state to GameContext. forceSync now catches errors
and displays them in the ResourceBar for 5 seconds, replacing the
cloud save timestamp with ' Save failed'. Signature mismatches
are also cleared from localStorage so the next save can proceed.
Auto-save silently self-heals bad signatures without surfacing an error.
This commit is contained in:
2026-03-06 19:18:29 -08:00
committed by Naomi Carrigan
parent 50fe905610
commit 5aae3eb389
3 changed files with 40 additions and 4 deletions
+5
View File
@@ -1201,6 +1201,11 @@ body {
white-space: nowrap;
}
.save-error {
color: #ef4444;
font-weight: 600;
}
.force-save-button {
align-items: center;
background: rgba(255, 255, 255, 0.06);