How yanis312/ride-with-yan works
Ride with Yan is a bilingual passenger-facing tablet app: passengers browse entertainment and a shoe shop during a ride, then submit an order for WhatsApp follow-up. The README also describes administration, advertising destinations, and AI assistance; sampled Supabase handlers substantiate chat, speech, and advertiser-link services. Flutter implementation details were not sampled, so app nodes use supported source directories and app-flow edges rely on README statements. The labs and presentation-video code are separate supporting projects, not stages in the passenger workflow.
Main entry points: chat/index.ts Chat Function · speak/index.ts Speech Function · Root.tsx Video Compositions · screens Shop Screensaver
Components 20
Passenger App
- Shop Screensaver
app/lib/screens - Lounge
app/lib/screens - Product Shop
app/lib/screens - Cart
app/lib/data - Order QR
app/lib/screens - Admin Panel
app/lib/admin - App Data Access
app/lib/backend
Backend Services
- Supabase Database
supabase - Chat Function
supabase/functions/chat/index.ts - Chat Prompt
supabase/functions/chat/prompt.ts - Message Validation
supabase/functions/chat/validate.ts - Speech Function
supabase/functions/speak/index.ts - SSML Builder
supabase/functions/speak/voice.ts - Ad Destinations
supabase/functions/go/destination.ts
Presentation Media
- Project Presentation
video/src/Presentation.tsx - Demo Reels
video/src/Reel.tsx - Video Compositions
video/src/Root.tsx
Other components
- Passenger
- Azure AI
Connections 17
- Passenger → Shop Screensaver: opens
README.md - Shop Screensaver → Lounge: browses to
README.md - Lounge → Product Shop: browses to
README.md - Product Shop → Cart: adds items
- Cart → Order QR: creates order
README.md - Order QR → WhatsApp: shares order
README.md - Admin Panel → App Data Access: manages data
- App Data Access → Supabase Database: accesses
- Chat Function → Message Validation: cleans messages
supabase/functions/chat/index.ts - Chat Function → Chat Prompt: uses prompt
supabase/functions/chat/index.ts - Chat Function → Supabase Database: checks quota
supabase/functions/chat/index.ts - Chat Function → Azure AI: requests completion
supabase/functions/chat/index.ts - Speech Function → SSML Builder: builds SSML
supabase/functions/speak/index.ts - Speech Function → Azure AI: requests speech
- Ad Destinations → Passenger: resolves ad links
- Video Compositions → Project Presentation: registers
video/src/Root.tsx - Video Compositions → Demo Reels: registers
video/src/Root.tsx