How ashishkrgupta/sanatansanskar-ui works
SanatanSanskar is a React frontend for discovering Hindu rituals and related cultural information, then booking a service. The main user path runs from the service catalog to service details and the protected booking flow. Separate branches cover authentication, priests, temples, festivals, sanskar education, panchang, knowledge, search, notifications, and role-based administration. The sampled source confirms routing, service-detail retrieval, authentication, and search over mock records; other page-to-service wiring is inferred from module names and routes, so those connections are left out.
Main entry points: index.tsx Route map · BookingFlow.tsx Booking flow · App.tsx App entry · ServiceDetails.tsx Service details
Components 28
App shell
- App entry
src/App.tsx - App providers
src/providers/AppProviders.tsx - Route map
src/routes/index.tsx - App layout
src/components/layout/AppLayout.tsx
Ritual booking
- Service catalog
src/pages/Services.tsx - Service details
src/pages/ServiceDetails.tsx - Service access
src/services/index.ts - Service records
src/data/mock/services.ts - Booking flow
src/pages/BookingFlow.tsx - Booking operations
src/services/bookingService.ts - Booking state
src/store/bookingStore.ts
Cultural discovery
- Search page
src/pages/Search.tsx - Search service
src/services/searchService.ts - Mock content
src/data/mock/index.ts - Culture pages
src/pages/Sanskar.tsx - Festival pages
src/pages/Festivals.tsx - Temple pages
src/pages/Temples.tsx - Priest pages
src/pages/Priests.tsx - Panchang
src/pages/Panchang.tsx - Knowledge pages
src/pages/Knowledge.tsx
Accounts and operations
- Login and register
src/pages/Login.tsx - Authentication
src/services/authService.ts - Auth state
src/store/authStore.ts - Role protection
src/components/layout/ProtectedRoute.tsx - Admin console
src/pages/admin/Bookings.tsx - Priest dashboard
src/pages/priest/Dashboard.tsx - Notifications
src/pages/Notifications.tsx
Other components
- Visitor
Connections 29
- Visitor → App entry: opens
- App entry → App providers: wraps
- App entry → Route map: mounts router
- Route map → App layout: renders routes
- Route map → Service catalog: routes to
- Route map → Service details: routes to
- Route map → Booking flow: routes to
- Route map → Login and register: routes to
- Route map → Search page: routes to
- Route map → Culture pages: routes to
- Route map → Festival pages: routes to
- Route map → Temple pages: routes to
- Route map → Priest pages: routes to
- Route map → Panchang: routes to
- Route map → Knowledge pages: routes to
- Route map → Notifications: routes to
- Route map → Admin console: routes to
- Route map → Priest dashboard: routes to
- Route map → Role protection: guards routes
- Service details → Service access: requests service
- Service access → Service records: reads records
- Service details → Booking flow: links to book
- Booking flow → Booking operations: submits booking
- Booking flow → Booking state: updates draft
- Login and register → Authentication: requests auth
- Login and register → Auth state: updates session
- Role protection → Auth state: checks role
- Search page → Search service: searches
- Search service → Mock content: searches records