How vk-prime/restaurant-booking-quickdine works
QuickDine is a React frontend for restaurant discovery and table reservations, with separate diner, restaurant-owner, and administrator portals. The main flow is browsing or filtering restaurants, viewing venue details and availability, then submitting a reservation and tracking it from the diner dashboard. Owners register venues and manage bookings and profiles; administrators review registrations and view metrics. The sampled context uses local dummy data for authentication, and the excerpts do not establish a backend integration, so external service flows are not mapped.
Main entry points: App.tsx Route application · BookingConfirmation.tsx Booking confirmation · AppContext.tsx Session context · OwnerDashboard.tsx Owner dashboard
Components 30
Discovery
- Home page
src/pages/Home.tsx - Home discovery sections
src/components/home - Restaurant search
src/pages/Search.tsx - Restaurant card
src/components/RestaurantCard.tsx - Restaurant details
src/pages/RestaurantDetail.tsx - Venue details and reviews
src/components/restaurant
Reservations
- Availability widget
src/components/restaurant/BookingWidget.tsx - Booking confirmation
src/pages/BookingConfirmation.tsx - Reservation form
src/components/booking/BookingForm.tsx - Booking summary
src/components/booking/BookingSummary.tsx - Booking success
src/components/booking/BookingSuccess.tsx
Identity and Shell
- Route application
src/App.tsx - Session context
src/context/AppContext.tsx - Sign-in modal
src/components/AuthModal.tsx - Role guard
src/components/ProtectedRoute.tsx - Navigation
src/components/Navbar.tsx - Footer links
src/components/Footer.tsx - Loading indicator
src/components/Loader.tsx
Role Portals
- Diner dashboard
src/pages/Dashboard.tsx - Owner dashboard
src/pages/owner/OwnerDashboard.tsx - Restaurant registration
src/components/owner/RestaurantWizard.tsx - Incoming bookings
src/components/owner/OwnerBookings.tsx - Venue profile management
src/components/owner/OwnerProfileDetails.tsx - Approval status views
src/components/owner - Admin dashboard
src/pages/admin/AdminDashboard.tsx - Restaurant approvals
src/components/admin/AdminApprovals.tsx - System metrics
src/components/admin/AdminStats.tsx
Other components
- Diners
- Restaurant owners
- Administrators
Connections 33
- Diners → Route application: browse and book
README.md - Restaurant owners → Route application: manage venue
README.md - Administrators → Route application: administer platform
README.md - Route application → Home page: routes
src/App.tsx - Route application → Restaurant search: routes
src/App.tsx - Route application → Restaurant details: routes
src/App.tsx - Route application → Booking confirmation: routes
src/App.tsx - Route application → Role guard: guards routes
src/App.tsx - Role guard → Session context: checks session
src/components/ProtectedRoute.tsx - Role guard → Sign-in modal: opens sign-in
src/components/ProtectedRoute.tsx - Role guard → Loading indicator: renders while loading
src/components/ProtectedRoute.tsx - Sign-in modal → Session context: uses session actions
src/components/AuthModal.tsx - Navigation → Session context: uses session
src/components/Navbar.tsx - Home page → Home discovery sections: renders
src/pages/Home.tsx - Restaurant search → Restaurant card: renders results
src/pages/Search.tsx - Restaurant details → Session context: checks sign-in
src/pages/RestaurantDetail.tsx - Restaurant details → Venue details and reviews: renders
src/pages/RestaurantDetail.tsx - Restaurant details → Availability widget: renders availability
src/pages/RestaurantDetail.tsx - Availability widget → Booking confirmation: starts reservation
README.md - Booking confirmation → Session context: uses diner details
src/pages/BookingConfirmation.tsx - Booking confirmation → Reservation form: renders form
src/pages/BookingConfirmation.tsx - Booking confirmation → Booking summary: renders summary
src/pages/BookingConfirmation.tsx - Booking confirmation → Booking success: renders success
src/pages/BookingConfirmation.tsx - Route application → Diner dashboard: routes
src/App.tsx - Route application → Owner dashboard: routes
src/App.tsx - Route application → Admin dashboard: routes
src/App.tsx - Diner dashboard → Session context: uses session
src/pages/Dashboard.tsx - Owner dashboard → Restaurant registration: renders registration
src/pages/owner/OwnerDashboard.tsx - Owner dashboard → Approval status views: renders status views
src/pages/owner/OwnerDashboard.tsx - Owner dashboard → Incoming bookings: renders bookings
src/pages/owner/OwnerDashboard.tsx - Owner dashboard → Venue profile management: renders profile editor
src/pages/owner/OwnerDashboard.tsx - Admin dashboard → Restaurant approvals: renders approvals
src/pages/admin/AdminDashboard.tsx - Admin dashboard → System metrics: renders metrics
src/pages/admin/AdminDashboard.tsx