# atharvvhanalkar/paysnap architecture

> Architecture diagram of the GitHub repository atharvvhanalkar/paysnap, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/atharvvhanalkar/paysnap
- Repository: https://github.com/atharvvhanalkar/paysnap

## Overview

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: [`src/App.jsx`](https://github.com/atharvvhanalkar/paysnap/blob/main/src/App.jsx) (Route shell), [`src/components/Navbar.jsx`](https://github.com/atharvvhanalkar/paysnap/blob/main/src/components/Navbar.jsx) (Navigation), [`src/context/AppContext.jsx`](https://github.com/atharvvhanalkar/paysnap/blob/main/src/context/AppContext.jsx) (App state and actions), [`src/pages/CustomerDashboard.jsx`](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/CustomerDashboard.jsx) (Customer dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App and discovery"]
  node_app["Route shell<br/>[App.jsx]"]
  node_landing["Landing page<br/>[LandingPage.jsx]"]
  node_pricing["Pricing<br/>[PricingPage.jsx]"]
end

subgraph group_customer["Customer journey"]
  node_browse["Customer dashboard"]
  node_profile_public["Photographer profile"]
  node_login["Login and signup<br/>[LoginPage.jsx]"]
  node_booking_flow["Booking creation<br/>[BookingFlow.jsx]"]
  node_my_bookings["Booking list<br/>[MyBookings.jsx]"]
  node_booking_detail["Booking and payments<br/>[BookingDetail.jsx]"]
  node_customer_profile["Customer profile"]
  node_support["Customer support"]
end

subgraph group_studio["Photographer workspace"]
  node_studio_dashboard["Studio dashboard"]
  node_studio_customer["Customer and phases"]
end

subgraph group_shared["Shared client state"]
  node_state["App state and actions<br/>[AppContext.jsx]"]
  node_seed_data[("Demo records<br/>[mockData.js]")]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_logo["Brand mark<br/>[Logo.jsx]"]
  node_status_badge["Status display<br/>[StatusBadge.jsx]"]
  node_star_rating["Rating display<br/>[StarRating.jsx]"]
end

node_visitor(("Visitor / user"))

node_visitor -->|"opens"| node_app
node_app -->|"provides state"| node_state
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_pricing
node_app -->|"routes to"| node_browse
node_app -->|"routes to"| node_profile_public
node_app -->|"routes to"| node_booking_flow
node_app -->|"routes to"| node_my_bookings
node_app -->|"routes to"| node_booking_detail
node_app -->|"routes to"| node_customer_profile
node_app -->|"routes to"| node_support
node_app -->|"routes to"| node_studio_dashboard
node_app -->|"routes to"| node_studio_customer
node_state -->|"initializes from"| node_seed_data
node_login -->|"uses auth actions"| node_state
node_browse -->|"reads app state"| node_state
node_profile_public -->|"reads app state"| node_state
node_booking_flow -.->|"uses app state"| node_state
node_my_bookings -->|"reads app state"| node_state
node_booking_detail -.->|"uses app state"| node_state
node_customer_profile -->|"reads app state"| node_state
node_support -->|"reads records"| node_seed_data
node_studio_dashboard -.->|"uses app state"| node_state
node_studio_customer -.->|"manages phases"| node_state
node_landing -->|"renders"| node_navbar
node_pricing -.->|"renders"| node_navbar
node_browse -->|"renders"| node_navbar
node_profile_public -->|"renders"| node_navbar
node_login -->|"renders"| node_navbar
node_booking_flow -->|"renders"| node_navbar
node_my_bookings -->|"renders"| node_navbar
node_booking_detail -->|"renders"| node_navbar
node_customer_profile -->|"renders"| node_navbar
node_support -->|"renders"| node_navbar
node_studio_dashboard -->|"renders"| node_navbar
node_studio_customer -->|"renders"| node_navbar
node_navbar -->|"reads user state"| node_state
node_navbar -->|"renders"| node_logo
node_booking_detail -->|"renders"| node_status_badge
node_my_bookings -->|"renders"| node_status_badge
node_studio_dashboard -->|"renders"| node_status_badge
node_studio_customer -->|"renders"| node_status_badge
node_browse -->|"renders"| node_star_rating
node_profile_public -->|"renders"| node_star_rating

click node_app "https://github.com/atharvvhanalkar/paysnap/blob/main/src/App.jsx"
click node_landing "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/LandingPage.jsx"
click node_pricing "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/PricingPage.jsx"
click node_browse "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/CustomerDashboard.jsx"
click node_profile_public "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/PhotographerPublicProfile.jsx"
click node_login "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/LoginPage.jsx"
click node_booking_flow "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/BookingFlow.jsx"
click node_my_bookings "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/MyBookings.jsx"
click node_booking_detail "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/BookingDetail.jsx"
click node_customer_profile "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/CustomerProfile.jsx"
click node_support "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/CustomerSupport.jsx"
click node_studio_dashboard "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/PhotographerDashboard.jsx"
click node_studio_customer "https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/PhotographerCustomerDetail.jsx"
click node_state "https://github.com/atharvvhanalkar/paysnap/blob/main/src/context/AppContext.jsx"
click node_seed_data "https://github.com/atharvvhanalkar/paysnap/blob/main/src/data/mockData.js"
click node_navbar "https://github.com/atharvvhanalkar/paysnap/blob/main/src/components/Navbar.jsx"
click node_logo "https://github.com/atharvvhanalkar/paysnap/blob/main/src/components/Logo.jsx"
click node_status_badge "https://github.com/atharvvhanalkar/paysnap/blob/main/src/components/StatusBadge.jsx"
click node_star_rating "https://github.com/atharvvhanalkar/paysnap/blob/main/src/components/StarRating.jsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_landing,node_pricing,node_visitor toneBlue
class node_browse,node_profile_public,node_login,node_booking_flow,node_my_bookings,node_booking_detail,node_customer_profile,node_support toneAmber
class node_studio_dashboard,node_studio_customer toneMint
class node_state,node_seed_data,node_navbar,node_logo,node_status_badge,node_star_rating toneRose
```

## Components

### App and discovery

- [Route shell](https://github.com/atharvvhanalkar/paysnap/blob/main/src/App.jsx): `src/App.jsx`
- [Landing page](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/LandingPage.jsx): `src/pages/LandingPage.jsx`
- [Pricing](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/PricingPage.jsx): `src/pages/PricingPage.jsx`

### Customer journey

- [Customer dashboard](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/CustomerDashboard.jsx): `src/pages/CustomerDashboard.jsx`
- [Photographer profile](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/PhotographerPublicProfile.jsx): `src/pages/PhotographerPublicProfile.jsx`
- [Login and signup](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/LoginPage.jsx): `src/pages/LoginPage.jsx`
- [Booking creation](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/BookingFlow.jsx): `src/pages/BookingFlow.jsx`
- [Booking list](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/MyBookings.jsx): `src/pages/MyBookings.jsx`
- [Booking and payments](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/BookingDetail.jsx): `src/pages/BookingDetail.jsx`
- [Customer profile](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/CustomerProfile.jsx): `src/pages/CustomerProfile.jsx`
- [Customer support](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/CustomerSupport.jsx): `src/pages/CustomerSupport.jsx`

### Photographer workspace

- [Studio dashboard](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/PhotographerDashboard.jsx): `src/pages/PhotographerDashboard.jsx`
- [Customer and phases](https://github.com/atharvvhanalkar/paysnap/blob/main/src/pages/PhotographerCustomerDetail.jsx): `src/pages/PhotographerCustomerDetail.jsx`

### Shared client state

- [App state and actions](https://github.com/atharvvhanalkar/paysnap/blob/main/src/context/AppContext.jsx): `src/context/AppContext.jsx`
- [Demo records](https://github.com/atharvvhanalkar/paysnap/blob/main/src/data/mockData.js): `src/data/mockData.js`
- [Navigation](https://github.com/atharvvhanalkar/paysnap/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Brand mark](https://github.com/atharvvhanalkar/paysnap/blob/main/src/components/Logo.jsx): `src/components/Logo.jsx`
- [Status display](https://github.com/atharvvhanalkar/paysnap/blob/main/src/components/StatusBadge.jsx): `src/components/StatusBadge.jsx`
- [Rating display](https://github.com/atharvvhanalkar/paysnap/blob/main/src/components/StarRating.jsx): `src/components/StarRating.jsx`

### Other components

- **Visitor / user**

## Connections

- Visitor / user → Route shell: opens (evidence: `src/App.jsx`)
- Route shell → App state and actions: provides state (evidence: `src/App.jsx`)
- Route shell → Landing page: routes to (evidence: `src/App.jsx`)
- Route shell → Login and signup: routes to (evidence: `src/App.jsx`)
- Route shell → Pricing: routes to (evidence: `src/App.jsx`)
- Route shell → Customer dashboard: routes to (evidence: `src/App.jsx`)
- Route shell → Photographer profile: routes to (evidence: `src/App.jsx`)
- Route shell → Booking creation: routes to (evidence: `src/App.jsx`)
- Route shell → Booking list: routes to (evidence: `src/App.jsx`)
- Route shell → Booking and payments: routes to (evidence: `src/App.jsx`)
- Route shell → Customer profile: routes to (evidence: `src/App.jsx`)
- Route shell → Customer support: routes to (evidence: `src/App.jsx`)
- Route shell → Studio dashboard: routes to (evidence: `src/App.jsx`)
- Route shell → Customer and phases: routes to (evidence: `src/App.jsx`)
- App state and actions → Demo records: initializes from (evidence: `src/context/AppContext.jsx`)
- Login and signup → App state and actions: uses auth actions (evidence: `src/pages/LoginPage.jsx`)
- Customer dashboard → App state and actions: reads app state (evidence: `src/pages/CustomerDashboard.jsx`)
- Photographer profile → App state and actions: reads app state (evidence: `src/pages/PhotographerPublicProfile.jsx`)
- Booking creation → App state and actions: uses app state (evidence: `src/pages/BookingFlow.jsx`)
- Booking list → App state and actions: reads app state (evidence: `src/pages/MyBookings.jsx`)
- Booking and payments → App state and actions: uses app state (evidence: `src/pages/BookingDetail.jsx`)
- Customer profile → App state and actions: reads app state (evidence: `src/pages/CustomerProfile.jsx`)
- Customer support → Demo records: reads records (evidence: `src/pages/CustomerSupport.jsx`)
- Studio dashboard → App state and actions: uses app state (evidence: `src/pages/PhotographerDashboard.jsx`)
- Customer and phases → App state and actions: manages phases (evidence: `src/pages/PhotographerCustomerDetail.jsx`)
- Landing page → Navigation: renders (evidence: `src/pages/LandingPage.jsx`)
- Pricing → Navigation: renders (evidence: `src/pages/PricingPage.jsx`)
- Customer dashboard → Navigation: renders (evidence: `src/pages/CustomerDashboard.jsx`)
- Photographer profile → Navigation: renders (evidence: `src/pages/PhotographerPublicProfile.jsx`)
- Login and signup → Navigation: renders (evidence: `src/pages/LoginPage.jsx`)
- Booking creation → Navigation: renders (evidence: `src/pages/BookingFlow.jsx`)
- Booking list → Navigation: renders (evidence: `src/pages/MyBookings.jsx`)
- Booking and payments → Navigation: renders (evidence: `src/pages/BookingDetail.jsx`)
- Customer profile → Navigation: renders (evidence: `src/pages/CustomerProfile.jsx`)
- Customer support → Navigation: renders (evidence: `src/pages/CustomerSupport.jsx`)
- Studio dashboard → Navigation: renders (evidence: `src/pages/PhotographerDashboard.jsx`)
- Customer and phases → Navigation: renders (evidence: `src/pages/PhotographerCustomerDetail.jsx`)
- Navigation → App state and actions: reads user state (evidence: `src/components/Navbar.jsx`)
- Navigation → Brand mark: renders (evidence: `src/components/Navbar.jsx`)
- Booking and payments → Status display: renders (evidence: `src/pages/BookingDetail.jsx`)
- Booking list → Status display: renders (evidence: `src/pages/MyBookings.jsx`)
- Studio dashboard → Status display: renders (evidence: `src/pages/PhotographerDashboard.jsx`)
- Customer and phases → Status display: renders (evidence: `src/pages/PhotographerCustomerDetail.jsx`)
- Customer dashboard → Rating display: renders (evidence: `src/pages/CustomerDashboard.jsx`)
- Photographer profile → Rating display: renders (evidence: `src/pages/PhotographerPublicProfile.jsx`)
