How rrohan419/kittyp-fe works
Kittyp is a veterinary practice and pet-care application, with clinic/doctor workflows alongside pet-parent tools and an ecommerce storefront. Users enter through the React application and routed pages; available workflows cover account access, clinic operations and appointments, pet health and nutrition, and product ordering. The sampled code confirms selected routing, authentication, featured-content loading, availability saving, and nutrition data operations. Other product branches are represented from the tree and Terms of Service; their internal service wiring was not sampled and is therefore not inferred.
Main entry points: AnimatedRoutes.tsx Route pages · authService.ts Authentication · App.tsx App shell · Index.tsx Home highlights
Components 26
Application entry
- App shell
src/App.tsx - Route pages
src/components/layout/AnimatedRoutes.tsx - Home highlights
src/pages/Index.tsx
Practice operations
- Clinic workspace
src/pages/clinic - Doctor workspace
src/pages/DoctorAppointments.tsx - Availability editor
src/components/vet/availability/VetAvailabilityManager.tsx - Vet booking
src/components/vet/VetBookingFlow.tsx - Clinical records
src/components/chart/VisitChartTabs.tsx - Clinic invoices
src/pages/clinic/ClinicInvoices.tsx
Pet care
- Pet-parent pages
src/pages/parent - Pet health
src/components/health/PetHealthTimeline.tsx - Nutrition tracking
src/hooks/useNutrition.ts
Commerce and content
- Product storefront
src/pages/Products.tsx - Checkout
src/pages/Checkout.tsx - Order history
src/services/orderService.ts - Articles
src/pages/Articles.tsx
Identity and data
- Authentication
src/services/authService.ts - Auth storage
src/utils/authStorage.ts - Redux state
src/module/store/store.ts - Product service
src/services/productService.ts - Article service
src/services/articleService.ts - Nutrition services
src/services/petNutritionService.ts - Pet dashboard service
src/services/petDashboardService.ts - Availability service
src/services/availabilityService.ts
Other components
- User
- Kittyp API
Connections 21
- User → App shell: uses
- App shell → Route pages: renders outlet
- App shell → Authentication: initializes auth
- Route pages → Home highlights: routes home
- Route pages → Clinic workspace: routes clinic
- Route pages → Doctor workspace: routes doctor
- Route pages → Pet-parent pages: routes parent
- Route pages → Product storefront: routes products
- Route pages → Checkout: routes checkout
- Route pages → Articles: routes articles
- Authentication → Auth storage: reads and writes
- Authentication → Redux state: dispatches user
- Authentication → Kittyp API: fetches profile
- Home highlights → Product service: fetches products
- Home highlights → Article service: fetches articles
- User → Availability editor: edits schedule
- Availability editor → Availability service: saves schedule
- User → Nutrition tracking: tracks pet
- Nutrition tracking → Nutrition services: loads plan
- Nutrition tracking → Pet dashboard service: logs meals and weight
- User → Vet booking: books visit