How pardhavkrishna21/park_spheree works
This is a React parking marketplace UI: drivers find a space, check availability, configure a timed reservation and add-ons, then manage the booking; hosts list spaces and review occupancy and earnings. The app also exposes subscriptions, valet, services, account, help, and authentication views. The sampled code and README describe a Vite template rather than product behavior; the product map is inferred from source names and the available imports. Data appears to be local mock data, with no backend or persistent store evidenced.
Main entry points: App.jsx App state and routing · bookingTime.js Booking time rules · index.jsx Reservation and add-ons · availability.js Availability calculation
Components 24
Application shell
- App state and routing
src/App.jsx - Navigation
src/components/Navbar/index.jsx - Sample marketplace data
src/data/mockData.js - Authentication UI
src/components/AuthPortal/index.jsx
Driver experience
- Find parking
src/components/FindParking/index.jsx - Parking spot cards
src/components/SpotCard/index.jsx - Reservation and add-ons
src/components/BookingModal/index.jsx - Booking management
src/components/BookingsView/index.jsx - Date and time selection
src/components/DateTimePicker/index.jsx - Plans and subscriptions
src/components/Subscriptions/index.jsx - EV and wash services
src/components/ServicesView/index.jsx - Captain valet service
src/components/CaptainValet/index.jsx - Valet selection
src/components/ValetPicker/index.jsx - Account view
src/components/AccountView/index.jsx - Help and feedback
src/components/HelpFeedback/index.jsx
Host experience
- Create space listing
src/components/HostListings/index.jsx - Host earnings dashboard
src/components/HostDashboard/index.jsx
Domain logic
- Availability calculation
src/utils/availability.js - Booking time rules
src/utils/bookingTime.js - Plan and add-on pricing
src/utils/plans.js - Valet distance calculation
src/utils/geo.js - Violation rules
src/utils/violations.js
Other components
- Driver
- Space host
Connections 33
- Driver → App state and routing: uses
- Space host → App state and routing: uses
- App state and routing → Navigation: renders
src/App.jsx - App state and routing → Sample marketplace data: loads sample data
src/App.jsx - App state and routing → Authentication UI: renders
src/App.jsx - App state and routing → Find parking: renders
src/App.jsx - App state and routing → Reservation and add-ons: opens reservation
src/App.jsx - App state and routing → Booking management: renders
src/App.jsx - App state and routing → Plans and subscriptions: renders
src/App.jsx - App state and routing → Captain valet service: renders
src/App.jsx - App state and routing → EV and wash services: renders
src/App.jsx - App state and routing → Create space listing: renders
src/App.jsx - App state and routing → Host earnings dashboard: renders
src/App.jsx - App state and routing → Account view: renders
src/App.jsx - App state and routing → Help and feedback: renders
src/App.jsx - Find parking → Parking spot cards: renders
src/components/FindParking/index.jsx - Find parking → Date and time selection: uses
src/components/FindParking/index.jsx - Find parking → Availability calculation: checks availability
src/components/FindParking/index.jsx - Reservation and add-ons → Availability calculation: checks availability
src/components/BookingModal/index.jsx - Reservation and add-ons → Booking time rules: checks time conflicts
src/components/BookingModal/index.jsx - Reservation and add-ons → Plan and add-on pricing: prices add-ons
src/components/BookingModal/index.jsx - Reservation and add-ons → Valet selection: offers valet selection
src/components/BookingModal/index.jsx - Booking management → Availability calculation: checks availability
src/components/BookingsView/index.jsx - Booking management → Booking time rules: formats booking times
src/components/BookingsView/index.jsx - Booking management → Plan and add-on pricing: uses plan pricing
src/components/BookingsView/index.jsx - Valet selection → Plan and add-on pricing: prices valet
src/components/ValetPicker/index.jsx - Valet selection → Valet distance calculation: calculates distance
src/components/ValetPicker/index.jsx - EV and wash services → Availability calculation: checks availability
src/components/ServicesView/index.jsx - EV and wash services → Plan and add-on pricing: checks plan perks
src/components/ServicesView/index.jsx - EV and wash services → Booking time rules: uses booking windows
src/components/ServicesView/index.jsx - Availability calculation → Booking time rules: uses time ranges
src/utils/availability.js - Account view → Booking time rules: formats booking times
src/components/AccountView/index.jsx - App state and routing → Booking time rules: checks booking conflicts
src/App.jsx