SShortSingh.
Back to feed

Rails 8 app splits front ends: Turbo for contractors, lean Stimulus-only page for customers

0
·14 views

The founder of an estimate and invoice app for small trade businesses describes building two separate front ends in one Rails 8 monolith. Contractors, who use the app daily as an installed PWA, get Hotwire with Turbo and Turbo Streams for fast, app-like navigation and live updates. Customers, who open a single text-message link once, get a dedicated layout with only Stimulus and a few controllers, with no Turbo, ActionCable or third-party scripts. The customer page targets under 50 KB of gzipped JavaScript, and forms there use plain POST and redirect round trips. The heavy signature controller is loaded on demand, only when a sign block is present or the visitor first taps Draw.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Microsoft Advisory Flags Remote Code Execution Flaw in Graphic Fonts Component (CVE-2026-119969)

Microsoft's November 2026 advisory assigns CVE-2026-119969, a remote code execution vulnerability in the Graphic Fonts component, a base score of 8.8. Malformed font files can exercise font parsing and rendering code, so the risk extends to any application that loads untrusted fonts. The available record does not detail the specific malformed structure or memory-safety primitive involved. Experts advise organizations to verify fixed builds, check third-party applications with bundled font engines, and confirm patches with post-update testing. Sandboxing and file filtering reduce exposure but do not replace the vendor fix.

0
ProgrammingDEV Community ·

Developers Ask Community Which AI Proxy Platform Works Best

A post on DEV Community asks whether other developers use AI proxy platforms and which one they consider the best. The author opens the discussion by directing the question to the community at large. The article text provided contains no further details, so no specific platforms, features, or experiences are described. The item therefore reflects a simple community query rather than a reported development or announcement.

0
ProgrammingDEV Community ·

How QR Code Cashback Systems Use Unique Codes, Fraud Checks and UPI Payouts

QR code cashback is growing fast in India, with brands printing a unique code on each product pack that buyers scan to receive money in their UPI account within minutes. Each code is generated randomly or signed cryptographically so it cannot be guessed, and is stored with its batch, product and reward details along with a status. The backend verifies each scan, claims the code atomically to prevent double redemption, and ties the reward to a verified user. Fraud is limited through rate limits, velocity and geographic checks, and holds on suspicious activity, while rewards are credited to an internal ledger wallet and paid out via bank UPI APIs using idempotency keys and asynchronous confirmation. Brands also gain first-party data on sales and repeat buyers from each scan.

0
ProgrammingDEV Community ·

Expo starter template for SDK 58 adds typed OpenAPI networking, UI kit and built-in docs

The expo-starter-pack template provides a preconfigured Expo app with a typed data layer, an auth-gated dashboard, a UI kit and a mock backend. The SDK 58 release moves the starter to Expo SDK 58 with React Native 0.88, React 19.3 and the New Architecture, using expo-router's typed routes. Networking now relies on a generated OpenAPI client, and query keys are derived from the spec through openapi-react-query instead of hand-written factories. Developers can run the app locally against the included mock server before a real backend exists. SDK 57 remains available under a separate tag on GitHub.