Problem
The field team logged progress inside a chat group. Managers had no single view of what was finished today, and notes disappeared whenever the app closed on a bad connection.
Approach
- Offline-first. Every change is written to IndexedDB first and synced when connectivity returns. The interface never waits on the network.
- Idempotent sync queue. Each mutation carries a unique key, so retries never duplicate records.
- Scannable summary. One screen shows status by location, by person, and by work category.
- Performance budget. The initial bundle is capped at 90 KB compressed and enforced in CI.
Outcome
- Managers no longer compile the daily report by hand.
- Data loss from poor connectivity dropped to zero across a two-week field trial.
- First load under 2 seconds on mid-range devices.
Lessons
Conflicts came almost entirely from two devices editing the same task through different paths. A version column plus a last-write-wins rule was far cheaper than building automatic merging.