How atharvvhanalkar/paysnap works
PaySnap is a React marketplace-style wedding-photography booking and payment-tracking interface. Customers browse photographer profiles, authenticate, create bookings, track milestone payments and delivery, and manage profiles/support; photographers review booking requests and manage customers and payment phases. The app is a client-side demo: the sampled context initializes from mock data and keeps user, booking, and phase state in React, with no evidenced backend or real payment gateway. Routes connect the role-specific screens; some page-to-context operations are omitted because their relevant source excerpts are incomplete.
Main entry points: App.jsx Route shell · Navbar.jsx Navigation · AppContext.jsx App state and actions · CustomerDashboard.jsx Customer dashboard
Components 20
App and discovery
- Route shell
src/App.jsx - Landing page
src/pages/LandingPage.jsx - Pricing
src/pages/PricingPage.jsx
Customer journey
- Customer dashboard
src/pages/CustomerDashboard.jsx - Photographer profile
src/pages/PhotographerPublicProfile.jsx - Login and signup
src/pages/LoginPage.jsx - Booking creation
src/pages/BookingFlow.jsx - Booking list
src/pages/MyBookings.jsx - Booking and payments
src/pages/BookingDetail.jsx - Customer profile
src/pages/CustomerProfile.jsx - Customer support
src/pages/CustomerSupport.jsx
Photographer workspace
- Studio dashboard
src/pages/PhotographerDashboard.jsx - Customer and phases
src/pages/PhotographerCustomerDetail.jsx
Shared client state
- App state and actions
src/context/AppContext.jsx - Demo records
src/data/mockData.js - Navigation
src/components/Navbar.jsx - Brand mark
src/components/Logo.jsx - Status display
src/components/StatusBadge.jsx - Rating display
src/components/StarRating.jsx
Other components
- Visitor / user
Connections 45
- Visitor / user → Route shell: opens
src/App.jsx - Route shell → App state and actions: provides state
src/App.jsx - Route shell → Landing page: routes to
src/App.jsx - Route shell → Login and signup: routes to
src/App.jsx - Route shell → Pricing: routes to
src/App.jsx - Route shell → Customer dashboard: routes to
src/App.jsx - Route shell → Photographer profile: routes to
src/App.jsx - Route shell → Booking creation: routes to
src/App.jsx - Route shell → Booking list: routes to
src/App.jsx - Route shell → Booking and payments: routes to
src/App.jsx - Route shell → Customer profile: routes to
src/App.jsx - Route shell → Customer support: routes to
src/App.jsx - Route shell → Studio dashboard: routes to
src/App.jsx - Route shell → Customer and phases: routes to
src/App.jsx - App state and actions → Demo records: initializes from
src/context/AppContext.jsx - Login and signup → App state and actions: uses auth actions
src/pages/LoginPage.jsx - Customer dashboard → App state and actions: reads app state
src/pages/CustomerDashboard.jsx - Photographer profile → App state and actions: reads app state
src/pages/PhotographerPublicProfile.jsx - Booking creation → App state and actions: uses app state
src/pages/BookingFlow.jsx - Booking list → App state and actions: reads app state
src/pages/MyBookings.jsx - Booking and payments → App state and actions: uses app state
src/pages/BookingDetail.jsx - Customer profile → App state and actions: reads app state
src/pages/CustomerProfile.jsx - Customer support → Demo records: reads records
src/pages/CustomerSupport.jsx - Studio dashboard → App state and actions: uses app state
src/pages/PhotographerDashboard.jsx - Customer and phases → App state and actions: manages phases
src/pages/PhotographerCustomerDetail.jsx - Landing page → Navigation: renders
src/pages/LandingPage.jsx - Pricing → Navigation: renders
src/pages/PricingPage.jsx - Customer dashboard → Navigation: renders
src/pages/CustomerDashboard.jsx - Photographer profile → Navigation: renders
src/pages/PhotographerPublicProfile.jsx - Login and signup → Navigation: renders
src/pages/LoginPage.jsx - Booking creation → Navigation: renders
src/pages/BookingFlow.jsx - Booking list → Navigation: renders
src/pages/MyBookings.jsx - Booking and payments → Navigation: renders
src/pages/BookingDetail.jsx - Customer profile → Navigation: renders
src/pages/CustomerProfile.jsx - Customer support → Navigation: renders
src/pages/CustomerSupport.jsx - Studio dashboard → Navigation: renders
src/pages/PhotographerDashboard.jsx - Customer and phases → Navigation: renders
src/pages/PhotographerCustomerDetail.jsx - Navigation → App state and actions: reads user state
src/components/Navbar.jsx - Navigation → Brand mark: renders
src/components/Navbar.jsx - Booking and payments → Status display: renders
src/pages/BookingDetail.jsx - Booking list → Status display: renders
src/pages/MyBookings.jsx - Studio dashboard → Status display: renders
src/pages/PhotographerDashboard.jsx - Customer and phases → Status display: renders
src/pages/PhotographerCustomerDetail.jsx - Customer dashboard → Rating display: renders
src/pages/CustomerDashboard.jsx - Photographer profile → Rating display: renders
src/pages/PhotographerPublicProfile.jsx