Sequencing
Roadmap
What we are building, in what order, and why. Keep platform/ and mobile/ aligned without duplicating the plan in the root README.
Now (shipped)
Public marketing site plus Authlogic actors (staff User, platform SuperUser), email and social signup, founder tenant provision, a staff workspace at /app (home clinic radar, settings with SaaS billing, clinic workflows from scheduling through invoicing, payments, tips, and commissions), free trial with testing credits, Stripe subscriptions, a SuperUser Admin console, a staff JSON API at /api/v1, and an Expo app.
| Item | Where |
|---|---|
| Monorepo: platform, mobile, docs, wiki | repo root |
| Rails 8.1.3.1, Ruby 4.0.2, PostgreSQL, Tailwind, Hotwire; S3 storage in every environment | platform/ |
| Register, login, Google / Apple / Facebook, founder provision | /register, /login, /auth/:provider |
| Workspace shell: greeting, clinic radar, SaaS widgets, Location switcher | GET /app, PATCH /app/workspace — Home clinic radar |
| Header breadcrumb trail (per User, persisted) and collapsible sidebar with Settings flyout | BreadcrumbTrail, UserPreference — Breadcrumbs |
| Trial days in the header; workspace lock gate (trial ended without subscription, or credits exhausted) | Home subscribe / buy-credits gate; API 402 |
| Free-trial length and 500 testing credits on provision | PlatformSetting, CreditAccount, /admin/settings |
| Organization settings, location groups (Elite), staff invite (pending), RBAC assignment, disable/enable | /app/settings, /app/staffs — Organization, Staff access |
| Stripe SaaS subscriptions, credits, proration, plan changes, auto-recharge, disputes | Billing::PlanChange, POST /webhooks/stripe — SaaS billing |
| Admin console (directories, impersonation, RBAC catalog, plans, translations, platform catalogs, audits, billing transactions) | /admin |
| Patient admission, chart tabs, intake magic link, header search | /app/patients, /app/clients, /intake/:token — Patients |
| Appointment calendar with recurrence, appointment types, deposits, walk-in bookings, check-in and undo check-in (web and API) | /app/schedule, /app/appointment_types, /api/v1/appointments — Appointments |
| Visits, whiteboard, Visit 360 workspace | /app/whiteboard, /app/visits/:id — Visits |
| SOAP notes (templates, apply last visit), diagnostic orders, treatment plans | SOAP |
| Master catalog with Location / group overrides, locks, pricing and patient groups, taxes | /app/catalog — Catalog |
| Per-Location stock (quantity / batch) and bundle availability | /app/inventory — Inventory |
| Checkout, clinic invoices, credit notes, payments, deposits | /app/checkout, /app/invoices — Billing |
| Staff tips and commissions | /app/tips, /app/commissions — Tips |
| Client email/SMS notifications and appointment reminders | /app/notification_settings, AppointmentReminderJob |
| Staff API (Bearer + org/location headers): session, social, home, billing, organization, entities, location groups, locations, staffs, clients, patients, schedule, appointments | /api/v1 — API |
| Expo SDK 58 app: login, register, Home (sample stats), Schedule, Patients, Clients, Staff, Organization settings | mobile/ — Setup |
Next
Prefer models in platform/ before duplicating behavior in Expo.
- Invite email and accept-by-token — Deliver the pending Staff invite and a public page that calls
Staff#accept!. Until then, invited emails cannot log in. - Admin console (manage tenants) — Create and manage Organizations, Legal Entities, and Locations from
/admin; let SuperUsers open any organization workspace. - Authenticated organization shell — Billing, Messages, and Reports stay disabled placeholders until specs exist. Location switching, the Settings flyout, and breadcrumbs ship.
- Geocoding — Fill Location
latitude/longitude, reusingAddressGeocoder. - Hands-off uploads for documents and captures — Extend the QR upload session to vaccine certificates and other documents, then SOAP / observation / sample captures.
- Mobile client — Subscribe the Schedule to the Action Cable refresh (Bearer cable auth and Staff id on
GET /api/v1/homefirst), then the Whiteboard, real Home stats and agenda, and API header search. Push is not the live-board path.
Later (product, not scheduled)
Promised on the landing page. Write acceptance in docs/functional first:
- Smarter scheduling: buffers and reasons (types, walk-ins, staff hours, and time zones already ship)
- SOAP voice-to-text and richer chart UX
- Two-way client messaging (templated notifications and reminders ship)
- Analytics dashboard (Organization / Legal Entity / Location)
- Inventory transfers and purchase orders — Inventory
- Clinic finance beyond invoicing: cash-up, live payment processors, PDFs, three-way reports — Billing
- Dunning / grace handling after
past_due - Elite: priority support, public API, plan gating for custom branding (branding itself ships)
- Data migration / onboarding for Business and Elite