ADR-0005: Use Rails and Hotwire for the v1 interface
- Status: proposed
- Date: 2026-11-05
Context
Section titled “Context”NotiFi v1 needs operational interfaces for visitor registration, presence, incidents and live delivery status. We want a responsive interface without the cost of maintaining a separate single-page application at this stage.
Decision
Section titled “Decision”The v1 interface is rendered by Rails and uses Hotwire:
- Turbo Drive provides fast navigation and form submissions.
- Turbo Frames provide scoped updates for forms and operational lists.
- Turbo Streams provide progressive live updates to presence and delivery views.
- Stimulus provides small browser behaviours, including kiosk-specific interactions and progressive enhancement.
Turbo Streams improve the live interface but are not the source of truth. Every screen must recover its correct state from the server after a refresh or lost connection.
Consequences
Section titled “Consequences”NotiFi can build operational workflows quickly with a single application and small amounts of JavaScript. Rich client-side behaviour remains possible as an isolated addition when an actual user need justifies it.
No component library or design system is selected by this decision.