How samyuero/room-scout works
RoomScout is an Android-first dorm-finder app. Renters sign in, complete account setup, discover and compare listings, inspect a dorm, then use rental/reservation flows; owners manage listings and booking requests, while admins moderate accounts and approval evidence. The graph preserves README-documented capabilities even where their implementation was not sampled. Edges cite shown imports/calls or README statements; unsampled feature links are omitted where no relationship is evidenced.
Main entry points: search.tsx Search and discovery · index.tsx Session routing · discovery-context.tsx Discovery state · supabase.ts Supabase client
Components 26
Identity and accounts
- Session routing
app/index.tsx - Sign-in and signup
app/(auth)/sign-in.tsx - Profile setup
app/(auth)/setup-username.tsx - Account profile
src/lib/account-profile.ts
Listing discovery
- Search and discovery
app/(tabs)/search.tsx - Search controls
src/components/discovery-search.tsx - Discovery state
src/context/discovery-context.tsx - Filter and ranking
src/lib/dorm-discovery.ts - Map and price analytics
src/components/leaflet-map-view.tsx - Dorm details and reviews
app/(tabs)/[dormId].tsx - Dorm comparison
app/(tabs)/compare.tsx - AI dorm assistant
supabase/functions/dorm-assistant/index.ts
Rental and support
- Reservation workflow
src/lib/rental-workflow.ts - Booking and tenant history
app/booking-history.tsx - Support conversations
app/chat.tsx
Owner and admin operations
- Owner listing and requests
app/owner-panel.tsx - Admin moderation
app/admin.tsx
Shared platform
- Image and document upload
src/utils/imageUpload.ts - Auth session hook
src/hooks/useAuth.ts - Supabase client
src/lib/supabase.ts
Other components
- Renter
- Dorm owner
- Administrator
- Supabase services
- OpenStreetMap tiles
- Gemini model service
Connections 30
- Renter → Session routing: opens app
app/index.tsx - Session routing → Auth session hook: reads session
app/index.tsx - Session routing → Account profile: checks registration
app/index.tsx - Session routing → Sign-in and signup: routes signed out
app/index.tsx - Session routing → Profile setup: routes incomplete
app/index.tsx - Auth session hook → Supabase client: reads auth state
src/hooks/useAuth.ts - Profile setup → Account profile: updates account
app/(auth)/setup-username.tsx - Search and discovery → Search controls: renders controls
app/(tabs)/search.tsx - Search and discovery → Discovery state: uses shared state
app/(tabs)/search.tsx - Search and discovery → Filter and ranking: ranks alternatives
app/(tabs)/search.tsx - Discovery state → Filter and ranking: normalizes listings
src/context/discovery-context.tsx - Discovery state → Supabase client: loads listings
src/context/discovery-context.tsx - Discovery state → Supabase services: refreshes listings
README.md - Search and discovery → Dorm details and reviews: opens listing
app/(tabs)/search.tsx - Renter → Search and discovery: searches dorms
README.md - Map and price analytics → OpenStreetMap tiles: loads map tiles
README.md - Dorm details and reviews → Reservation workflow: starts reservation
app/(tabs)/[dormId].tsx - Dorm details and reviews → Image and document upload: uploads review photos
app/(tabs)/[dormId].tsx - Image and document upload → Supabase client: stores files
src/utils/imageUpload.ts - Reservation workflow → Supabase services: submits transaction
README.md - Dorm owner → Owner listing and requests: manages listings
README.md - Owner listing and requests → Reservation workflow: handles requests
app/owner-panel.tsx - Owner listing and requests → Image and document upload: uploads evidence
app/owner-panel.tsx - Administrator → Admin moderation: moderates accounts
README.md - AI dorm assistant → Gemini model service: requests ranking
README.md - Search and discovery → AI dorm assistant: requests AI alternatives
README.md - Supabase client → Supabase services: connects backend
src/lib/supabase.ts - Renter → Dorm comparison: compares listings
README.md - Renter → Booking and tenant history: views rental history
README.md - Renter → Support conversations: contacts support
README.md