How itsfoxxy08/yours-clinic works
Yours-Clinic is a patient-facing homeopathic clinic website with an administrative dashboard. Visitors explore conditions and clinic information, then use booking or medicine-order features; administrators authenticate and manage patient records, reports, orders, and clinicians. The map preserves the documented disease, clinician, awards, testimonial, video, and booking capabilities. Service excerpts show Supabase-backed data operations, but several UI and integration implementations were not sampled; those areas are represented only where route imports or explicit references establish their role.
Main entry points: admin-dashboard.tsx Admin dashboard · patient-service.ts Patient records · index.tsx Home experience · supabase.ts Supabase platform
Components 25
Clinic Website
- Home experience
src/routes/index.tsx - Clinic information
src/components/home/About.tsx - Awards and testimonials
src/components/home/Awards.tsx - Video showcase
src/components/home/YouTubeShowcase.tsx
Clinical Content
- Disease catalog
src/routes/diseases.index.tsx - Disease categories
src/routes/diseases.category.$category.tsx - Disease details
src/routes/diseases.$slug.tsx - Condition content
src/data/diseases.ts
Patient Services
- Appointment booking
src/components/home/Booking.tsx - Quick consultation
src/components/QuickConsultDrawer.tsx - Medicine ordering
src/components/home/OrderMedicinesModal.tsx - Order management
src/lib/order-service.ts
Clinic Administration
- Admin dashboard
src/routes/admin-dashboard.tsx - Admin sign-in
src/components/AdminLoginModal.tsx - Patient records
src/lib/patient-service.ts - Patient history
src/components/PatientHistoryModal.tsx - Report management
src/components/UploadReportModal.tsx - Prescription viewing
src/components/ViewPrescriptionModal.tsx - Follow-up sheets
src/components/FollowUpSheetModal.tsx - Clinician management
src/lib/clinician-service.ts
Data and Integrations
- Supabase platform
src/lib/supabase.ts - Video query
src/lib/youtube.query.ts - Video retrieval
src/lib/youtube.functions.ts
Other components
- Website visitor
- Administrator
Connections 33
- Website visitor → Home experience: visits
src/routes/index.tsx - Home experience → Clinic information: renders
src/routes/index.tsx - Home experience → Awards and testimonials: renders
src/routes/index.tsx - Home experience → Video showcase: renders
src/routes/index.tsx - Home experience → Appointment booking: renders
src/routes/index.tsx - Website visitor → Disease catalog: browses
src/routes/diseases.index.tsx - Disease catalog → Condition content: reads
src/routes/diseases.index.tsx - Disease categories → Condition content: reads
src/routes/diseases.category.$category.tsx - Disease details → Condition content: reads
src/routes/diseases.$slug.tsx - Website visitor → Appointment booking: books
- Appointment booking → Patient records: submits patient data
src/components/home/Booking.tsx - Website visitor → Medicine ordering: orders
- Medicine ordering → Order management: places orders
src/components/home/OrderMedicinesModal.tsx - Medicine ordering → Patient records: uses patient data
src/components/home/OrderMedicinesModal.tsx - Administrator → Admin dashboard: manages clinic
src/routes/admin-dashboard.tsx - Admin dashboard → Admin sign-in: opens sign-in
src/routes/admin-dashboard.tsx - Admin sign-in → Supabase platform: authenticates
src/components/AdminLoginModal.tsx - Admin dashboard → Patient records: loads and updates
src/routes/admin-dashboard.tsx - Admin dashboard → Order management: manages orders
src/routes/admin-dashboard.tsx - Admin dashboard → Clinician management: manages clinicians
src/routes/admin-dashboard.tsx - Admin dashboard → Patient history: opens history
src/routes/admin-dashboard.tsx - Admin dashboard → Report management: opens report tools
src/routes/admin-dashboard.tsx - Admin dashboard → Prescription viewing: opens prescriptions
src/routes/admin-dashboard.tsx - Admin dashboard → Follow-up sheets: opens follow-up
src/routes/admin-dashboard.tsx - Patient history → Patient records: reads records
src/components/PatientHistoryModal.tsx - Report management → Patient records: manages reports
src/components/UploadReportModal.tsx - Prescription viewing → Patient records: reads reports
src/components/ViewPrescriptionModal.tsx - Follow-up sheets → Patient records: uses patient data
src/components/FollowUpSheetModal.tsx - Patient records → Supabase platform: reads and writes
src/lib/patient-service.ts - Order management → Supabase platform: reads and writes
src/lib/order-service.ts - Clinician management → Supabase platform: syncs clinicians
src/lib/clinician-service.ts - Home experience → Video query: loads videos
src/routes/index.tsx - Video query → Video retrieval: calls
src/lib/youtube.query.ts