Photo upload gets a visible lifecycle

A phone photo is several MB — seconds of dead air in which the user
reasonably assumes it worked and moves on, losing the upload if they
navigate or lock the phone (exactly how a photo went missing today).
The dropzone now narrates: uploading with count and size ("keep this
page open"), a green ✓ naming each saved file, reverting after a few
seconds; failures keep their alert but also reset the zone. A
beforeunload guard makes the browser ask before abandoning an
in-flight upload, re-picking the same file re-fires, and the gallery
refresh is forced so the new photo appears immediately.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016jXZFSTZQKzAC8fqpWSz9g
This commit is contained in:
Eric Wagoner
2026-08-03 17:10:13 -04:00
co-authored by Claude Fable 5
parent 0401c3351b
commit cf6dd5e134
3 changed files with 47 additions and 3 deletions
+13
View File
@@ -1693,5 +1693,18 @@
"IMG_4573.jpeg"
],
"title_normalized": "blackboa rd"
},
{
"title_raw": "...and then, we held hands.",
"confidence": "high",
"publisher_hint": "LudiCreations",
"edition_hint": "",
"year_hint": null,
"language_hint": "English",
"art_notes": "Blue sky background with white stylized doves/hands motif, cursive white title text",
"source_photos": [
"image.jpg"
],
"title_normalized": "and then we held hands"
}
]