Menu

Taking over an unfinished React Native app and making sure two people can never claim the same client
📰

Taking over an unfinished React Native app and making sure two people can never claim the same client

DEV Community: postgres·Dinnes D.·about 7 hours ago
#DOtvSWdx
#devtopostgresql#devto#dev#list#client
Long article (808 words) — no AI summary yet.
Reading 0:00
15s threshold

Earlier this year I took over a mobile app that its previous programmer could not finish. The client was Premier Gaming Massage, a US company whose therapists work poker rooms and tournament floors. Players want a massage without leaving their seat, so the team needed one shared, live list of waiting clients on their own phones, with no tablet at every venue.

I redesigned every screen and rebuilt the app, The List, on a new codebase rather than patching what was there. It now runs on iOS and Android from one TypeScript codebase. This post covers the parts that were harder than they look.

The problem: one list, many phones, no collisions

A client scans a QR code at the venue and joins the list. Several therapists see that list at the same time. Every client has to land in the right list, in order, and be claimed by exactly one therapist. If two therapists claim the same person, two of them walk to the same table while another client keeps waiting.

That rule cannot live in the app.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.