How lacaba-bry/carefurapp works
CareFur is a mobile companion for pet owners with an active boarding stay: users sign in or enter a boarding code, then view stay information and use pet, care, room, camera, profile, and messaging features. App.tsx owns session and access-code initialization and navigation; BottomNav dispatches the main tabs. Screens access Supabase through a shared client, while photo selection and upload are factored into a media helper. The README is empty; several screens and backend functions are unsampled, so their internal relationships are not inferred.
Main entry points: supabase.ts Supabase client · App.tsx App coordinator · BottomNav.tsx Main tabs · ChatScreen.tsx Boarding chat
Components 22
Access and navigation
- App coordinator
App.tsx - Welcome
Login/WelcomeScreen.tsx - Sign in
Login/LoginScreen.tsx - Sign up
Login/SignupScreen.tsx - Boarding code
Login/CodeScreen.tsx - Main tabs
Login/Nav/BottomNav.tsx
Boarding stay
- Stay dashboard
Login/HomeScreen.tsx - Booking history
Login/BookingHistory.tsx - Room availability
Login/Rooms.tsx - Boarding chat
Login/ChatScreen.tsx
Pet care
- Pet list
Login/Pets.tsx - Pet profile
Login/PetProfile.tsx - Feeding activity
Login/FeedingLogsScreen.tsx - Camera screen
Login/CameraScreen.tsx
Owner account
- Owner profile
Login/ProfileScreen.tsx - Edit profile
Login/EditProfileScreen.tsx
Backend services
- Load chat function
supabase/functions/get-booking-chat/index.ts - Send message function
supabase/functions/send-booking-message/index.ts - Photo media helper
lib/media.ts - Supabase client
lib/supabase.ts - Supabase services
Other components
- Pet owner
Connections 30
- Pet owner → App coordinator: opens
- App coordinator → Welcome: routes to
App.tsx - App coordinator → Sign in: routes to
App.tsx - App coordinator → Sign up: routes to
App.tsx - App coordinator → Boarding code: routes to
App.tsx - App coordinator → Boarding chat: routes to
App.tsx - App coordinator → Main tabs: routes to
App.tsx - App coordinator → Supabase client: checks session
App.tsx - Main tabs → Stay dashboard: dispatches
Login/Nav/BottomNav.tsx - Main tabs → Pet list: dispatches
Login/Nav/BottomNav.tsx - Main tabs → Camera screen: dispatches
Login/Nav/BottomNav.tsx - Main tabs → Feeding activity: dispatches
Login/Nav/BottomNav.tsx - Main tabs → Owner profile: dispatches
Login/Nav/BottomNav.tsx - Boarding code → Supabase client: verifies code
Login/CodeScreen.tsx - Stay dashboard → Supabase client: loads stay data
Login/HomeScreen.tsx - Boarding chat → Supabase client: verifies access
Login/ChatScreen.tsx - Pet list → Supabase client: loads pet data
Login/Pets.tsx - Pet profile → Supabase client: loads pet record
Login/PetProfile.tsx - Pet profile → Photo media helper: uploads photo
Login/PetProfile.tsx - Feeding activity → Supabase client: loads feeding data
Login/FeedingLogsScreen.tsx - Camera screen → Supabase client: accesses backend
Login/CameraScreen.tsx - Room availability → Supabase client: accesses backend
Login/Rooms.tsx - Booking history → Supabase client: accesses backend
Login/BookingHistory.tsx - Owner profile → Supabase client: accesses backend
Login/ProfileScreen.tsx - Edit profile → Supabase client: loads and saves
Login/EditProfileScreen.tsx - Edit profile → Photo media helper: uploads avatar
Login/EditProfileScreen.tsx - Photo media helper → Supabase services: uploads images
lib/media.ts - Supabase client → Supabase services: connects
lib/supabase.ts - Boarding chat → Load chat function: loads messages
- Boarding chat → Send message function: sends messages