The challenge
TaskFlow already had a tested Laravel API and a React web app. I wanted to prove I could add a native-feeling mobile client on top of the same contract: reachable by anyone with no server, honest about connectivity, and tested against the real API rather than only against mocks.
The interesting part was the unglamorous middle: what happens to a change made on a train with no signal, and what the app does when the server later disagrees.
How I approached it
- 01
One interface, three backends
Screens only see an
Apiinterface. A demo backend inside the app, an HTTP adapter and an offline wrapper all implement it, so the same contract suite proves each of them and no screen knows which one it uses. - 02
Proved against the real API in CI
A CI job starts Laravel on SQLite and runs the shared contract through the mobile HTTP adapter, so drift between the API and the app fails the build.
- 03
Offline as a decorator
Reads fall back to a cache. Task create, update, move and delete are applied locally, queued and replayed in order. A change the server rejects is dropped (the server wins); a lost connection or a 5xx keeps it queued.
- 04
Reordering without drag and drop
Up, Down and a Move to dialog with 44 dp targets and screen-reader labels. Moves are optimistic and roll back from a snapshot if the server refuses.
- 05
Secure by default
The bearer token lives in the Android keystore through
expo-secure-store. Plain HTTP is allowed only so a local server works, and the Connect screen warns when the address is not HTTPS. - 06
Delivered in reviewed phases
Five phases, each a branch and pull request with a plan, tests and CI, plus a decisions log that records why each choice was made.
Deliberate trade-offs
- Offline covers task changes only. Project changes and sign in need the network.
- Conflicts are last-write-wins. There is no merge screen.
- Replaying the queue after reconnecting is covered by unit tests but I did not watch it against a live server on a device.
- Android only so far, and reordering is button based rather than drag and drop.
What I built
- Planned the app in phases with a written scope, decisions log and risks before writing code.
- Built session handling, server URL validation with a connection test, sign in and register, and project and task screens.
- Wrote the HTTP adapter, the demo backend and the offline cache and write queue, with 66 unit tests.
- Added a CI job that runs the contract suite against the real Laravel API.
- Fixed a release-only bug (Android blocks plain HTTP in built apps) and a queue bug (a server error must not discard queued changes) before publishing.
- Built, signed and published an Android APK with a published checksum.
What this project demonstrates
- Shipping a second client for an existing API with a shared, tested contract
- Offline-first design with a queue, ordering and conflict rules
- React Native, Expo and strict TypeScript
- Testing against the real backend in CI, not only mocks
- Finding and fixing bugs that only appear in release builds



