The design problem
Points, stamps, permissions and reward transactions must behave consistently between business dashboard and staff mobile workflows. Diverging business rules across clients can cause inaccurate balances and unreliable redemption.
Architecture and implementation
The shared TypeScript workspace organizes domain rules for permissions, validation and loyalty calculations. The web dashboard supports administration and the Expo staff app supports QR-based check-in and loyalty operations.
The Supabase/PostgreSQL layer includes SQL migrations, tenant-aware access rules and transactional functions. Source-reviewed protections include idempotency, row locks, audit records and reversal handling for changes to balances.
Engineering and verification
The repository contains Vitest tests, SQL migration files, tenant-isolation test artifacts and continuous-integration configuration. These are implementation artifacts, not proof that every integration passes in a production environment.
The portfolio includes a high-level architecture flow describing this system.
Current scope
Orbit remains an MVP/beta. Apple Wallet is not implemented, Google Wallet requires configuration, and billing is represented through a Stripe sandbox integration rather than verified live charging.
The original code review did not independently establish every end-to-end database workflow or a production deployment.