Disclosure: this article was created with the help of AI. AI tools drafted it from my codebase and project notes, and it was edited and checked against the code before publishing. I'm the founder of the app it describes.
I'm building an estimate and invoice app for small trade businesses: plumbers, painters, handymen, crews of one to five people. The contractor writes an estimate on their phone and texts the customer a link. The customer opens it, picks an option, signs and sees how to pay the deposit.
So the app has two very different users. One opens it many times a day and has it on their home screen. The other opens it once, from a text message, maybe on one bar of signal in a basement. This post is about how I split the front end between them in one Rails 8 app, and a few choices that came out of designing for phones first.
The stack
It's one Rails 8.1 monolith on Postgres. Hotwire (Turbo and Stimulus) on the front end, Tailwind v4 for styles, importmap instead of a JS bundler.…