Experiment · LAB-003
Offline Form Drafts
When the connection drops, form input stays on the phone and submits once the signal is back. Born from a real problem on a factory floor.
Active
- IndexedDB
- Service Worker
- TypeScript
Where it came from
On the workshop inspection board, staff fill in inspection forms on their phones. The shop-floor signal is patchy, submissions failed, and a filled-in form was simply lost.
What it is
A small module that drops into any form:
- Every keystroke is saved as a draft in IndexedDB;
- Failed submissions go into a local queue, with an "Offline — draft saved" banner;
- Retries automatically when the signal returns, then clears the draft;
- Attached photos are cached too.
Still thinking about
If the same form is edited on two phones, which one wins? Right now it's "last submit wins" with a conflict notice. Not good enough yet.
> This experiment may break.