How lacaba-bry/testing works
CareFur is a staff dashboard for managing pet boarding and related operations, with administrative hardware controls. The main workflow is staff sign-in, protected navigation, and use of boarding and operational pages; booking creation is supported by dedicated hooks and a Supabase function. The tree and excerpts show the frontend, Supabase-backed services, and camera-gateway client. Several listed pages and functions were not sampled, so their internal behavior and connections are not inferred.
Main entry points: App.jsx Route application · supabaseClient.js Supabase client · cameraGateway.js Camera gateway client · NewBoarding.jsx New boarding
Components 30
Dashboard and access
- Route application
src/App.jsx - Authentication state
src/context/AuthContext.jsx
Boarding workflow
- New boarding
src/pages/NewBoarding.jsx - Booking creation
src/hooks/useCreateBooking.js - Booking review
src/components/boarding/ReviewStep.jsx - Feeding validation
src/utils/feedingValidation.js - Boarding records
src/pages/Boardings.jsx
Care operations
- Dashboard
src/pages/Dashboard.jsx - Dashboard data
src/hooks/useDashboard.js - Pet records
src/pages/Pets.jsx - Room management
src/pages/Rooms.jsx - Feeding schedules
src/pages/FeedingSchedule.jsx - Booking messages
src/pages/Messages.jsx - Message data
src/hooks/useMessages.js - Staff management
src/pages/StaffManagement.jsx
Hardware controls
- Camera monitoring
src/pages/Cameras.jsx - Camera diagnostics
src/pages/CameraTest.jsx - Camera gateway client
src/services/cameraGateway.js - Camera setup
src/pages/HardwareSetup.jsx - Feeder Wi-Fi status
src/pages/FeederWiFiManager.jsx - Feeder motor test
src/pages/MotorTest.jsx
Backend services
- Staff authentication
src/services/authService.js - Supabase client
src/services/supabaseClient.js - Booking function
supabase/functions/create-booking/index.js - Booking chat function
supabase/functions/get-booking-chat/index.ts - Send message function
supabase/functions/send-booking-message/index.ts - Feeder rotate function
supabase/functions/feeder-rotate/index.ts - Feeder test function
supabase/functions/feeder-test-command/index.ts
Other components
- Staff user
- Camera gateway
Connections 35
- Staff user → Route application: opens dashboard
src/App.jsx - Route application → Authentication state: gates routes
src/App.jsx - Route application → Dashboard: routes to
src/App.jsx - Route application → New boarding: routes to
src/App.jsx - Route application → Boarding records: routes to
src/App.jsx - Route application → Pet records: routes to
src/App.jsx - Route application → Room management: routes to
src/App.jsx - Route application → Feeding schedules: routes to
src/App.jsx - Route application → Booking messages: routes to
src/App.jsx - Route application → Staff management: admin route
src/App.jsx - Route application → Camera monitoring: routes to
src/App.jsx - Route application → Camera diagnostics: admin route
src/App.jsx - Route application → Camera setup: admin route
src/App.jsx - Route application → Feeder Wi-Fi status: admin route
src/App.jsx - Route application → Feeder motor test: admin route
src/App.jsx - Authentication state → Staff authentication: calls
src/context/AuthContext.jsx - Authentication state → Supabase client: tracks auth changes
src/context/AuthContext.jsx - Staff authentication → Supabase client: auth and profiles
src/services/authService.js - Dashboard → Dashboard data: loads data
src/pages/Dashboard.jsx - Dashboard data → Supabase client: queries
src/hooks/useDashboard.js - New boarding → Booking creation: submits booking
src/pages/NewBoarding.jsx - New boarding → Booking review: renders step
src/pages/NewBoarding.jsx - New boarding → Feeding validation: validates feeding
src/pages/NewBoarding.jsx - Booking creation → Feeding validation: validates schedules
src/hooks/useCreateBooking.js - Booking creation → Supabase client: reads and writes
src/hooks/useCreateBooking.js - Booking creation → Booking function
- Booking messages → Message data: loads conversations
src/pages/Messages.jsx - Message data → Supabase client: reads and updates
src/hooks/useMessages.js - Camera monitoring → Camera gateway client: requests camera
src/pages/Cameras.jsx - Camera diagnostics → Camera gateway client: tests gateway
src/pages/CameraTest.jsx - Camera gateway client → Supabase client: gets auth session
src/services/cameraGateway.js - Camera gateway client → Camera gateway: sends requests
src/services/cameraGateway.js - Feeder Wi-Fi status → Supabase client: checks status
src/pages/FeederWiFiManager.jsx - Camera setup → Camera gateway client: uses gateway
src/pages/HardwareSetup.jsx - Feeder motor test → Supabase client: uses client
src/pages/MotorTest.jsx