How soemyinttun/travel-ops works
Travel Ops is an offline-capable travel-operations app for managing customers, bookings, trips, visa/passport cases, tickets, and business performance. Staff sign in (when cloud mode is configured), work through the app’s routed screens, and read or change local records; changes are queued and synchronized with the cloud. The graph preserves the documented admin, backup/import, calendar, analytics, and offline-sync capabilities. Some screen-to-store and sync-engine links are based on the SOURCE INDEX or README because those implementations were not excerpted.
Main entry points: App.tsx App routing · state.tsx App data and filters · store.ts Record operations · analytics.ts Sales analytics
Components 31
App and access
- App routing
app/src/App.tsx - Sign-in and roles
app/src/auth/AuthProvider.tsx - Access gate
app/src/auth/AuthGate.tsx - Shared UI
app/src/components/ui.tsx
Travel operations
- Bookings
app/src/pages/Bookings.tsx - Customers
app/src/pages/Customers.tsx - Visa and passport cases
app/src/pages/Pipeline.tsx - Air tickets
app/src/pages/Tickets.tsx - Trips and calendar
app/src/pages/Trips.tsx - Customer selector
app/src/components/CustomerSelect.tsx - Packages and pricing
app/src/pages/Packages.tsx - Calendar export
app/src/ics.ts
Business insights
- Overview
app/src/pages/Overview.tsx - Revenue analysis
app/src/pages/Revenue.tsx - Travel heatmaps
app/src/pages/Heatmaps.tsx - Sales analytics
app/src/analytics.ts
Local data and sync
- App data and filters
app/src/state.tsx - Record operations
app/src/store.ts - Device database
app/src/db.ts - Local data preparation
app/src/seed.ts - Sync scheduling
app/src/sync/controller.ts - Sync engine
app/src/sync/engine.ts - Remote store interface
app/src/sync/remote.ts - Supabase adapter
app/src/sync/supabaseRemote.ts
Administration
- Settings and backup
app/src/pages/Settings.tsx - Admin tools
app/src/pages/Admin.tsx - Import validation
app/src/importer/validate.ts - Staff administration
app/src/auth/admin.ts - Cloud schema and rules
supabase/migrations/0001_init.sql
Other components
- Staff user
- Supabase cloud
Connections 48
- Staff user → Access gate: signs in
README.md - Access gate → Sign-in and roles: checks access
app/src/auth/AuthGate.tsx - Access gate → App routing: admits user
app/src/main.tsx - App routing → Bookings: routes to
app/src/App.tsx - App routing → Customers: routes to
app/src/App.tsx - App routing → Visa and passport cases: routes to
app/src/App.tsx - App routing → Air tickets: routes to
app/src/App.tsx - App routing → Trips and calendar: routes to
app/src/App.tsx - App routing → Overview: routes to
app/src/App.tsx - App routing → Revenue analysis: routes to
app/src/App.tsx - App routing → Travel heatmaps: routes to
app/src/App.tsx - App routing → Packages and pricing: routes to
app/src/App.tsx - App routing → Settings and backup: routes to
app/src/App.tsx - App routing → Admin tools: routes to
app/src/App.tsx - Bookings → Record operations: changes records
app/src/pages/Bookings.tsx - Customers → Record operations: changes records
app/src/pages/Customers.tsx - Visa and passport cases → Record operations: changes cases
app/src/pages/Pipeline.tsx - Air tickets → Record operations: changes records
app/src/pages/Tickets.tsx - Packages and pricing → Record operations: changes records
app/src/pages/Packages.tsx - Trips and calendar → Calendar export: exports events
app/src/pages/Trips.tsx - Bookings → Customer selector: uses selector
app/src/pages/Bookings.tsx - Visa and passport cases → Customer selector: uses selector
app/src/pages/Pipeline.tsx - Air tickets → Customer selector: uses selector
app/src/pages/Tickets.tsx - Customer selector → App data and filters: reads customers
app/src/components/CustomerSelect.tsx - Overview → App data and filters: reads app data
app/src/pages/Overview.tsx - Revenue analysis → App data and filters: reads app data
app/src/pages/Revenue.tsx - Travel heatmaps → App data and filters: reads app data
app/src/pages/Heatmaps.tsx - Overview → Sales analytics: computes metrics
app/src/pages/Overview.tsx - Revenue analysis → Sales analytics: computes revenue
app/src/pages/Revenue.tsx - Travel heatmaps → Sales analytics: computes map data
app/src/pages/Heatmaps.tsx - Packages and pricing → Sales analytics: uses sales metrics
app/src/pages/Packages.tsx - Air tickets → Sales analytics: uses sales metrics
app/src/pages/Tickets.tsx - App data and filters → Device database: reads records
app/src/state.tsx - App data and filters → Sales analytics: builds sales
app/src/state.tsx - App data and filters → Local data preparation: prepares local data
app/src/state.tsx - Record operations → Device database: writes records
app/src/store.ts - Local data preparation → Device database: loads local data
app/src/seed.ts - Sign-in and roles → Sync scheduling: starts sync
app/src/auth/AuthProvider.tsx - Sync scheduling → Record operations: tracks local writes
app/src/sync/controller.ts - Sync scheduling → Sync engine: runs sync
app/src/sync/controller.ts - Sync engine → Device database: reads and updates
app/src/sync/engine.ts - Sync engine → Remote store interface: syncs through
app/src/sync/engine.ts - Supabase adapter → Remote store interface: implements
app/src/sync/supabaseRemote.ts - Sign-in and roles → Supabase adapter: configures adapter
app/src/auth/AuthProvider.tsx - Supabase adapter → Supabase cloud: transfers records
- Settings and backup → Device database: backs up data
app/src/pages/Settings.tsx - Settings and backup → Sync scheduling: requests sync
app/src/pages/Settings.tsx - Settings and backup → Calendar export: uses calendar export
app/src/pages/Settings.tsx