How mohammadabdulaziz-074/pashurakshak-farmer-veternarian works
This is a React veterinary and animal-health administration portal, despite the README describing only the Vite starter template. The visible workflow is officer sign-in, access to a routed dashboard, complaint review and status updates, with map-based field dispatch and animal medical-history views as related workflows. The sampled source confirms those page-to-API calls; the dashboard, analytics, and profile implementations were not sampled, so their internal data wiring is not shown.
Main entry points: App.jsx Application routes · api.js API client and fallbacks · DashboardLayout.jsx Dashboard shell · Login.jsx Officer sign-in
Components 19
Access and routing
- Application routes
src/App.jsx - Officer sign-in
src/pages/Login.jsx - Dashboard shell
src/layouts/DashboardLayout.jsx - Dashboard
src/pages/Dashboard.jsx - Officer profile
src/pages/Profile.jsx
Complaint operations
- Complaint list
src/pages/Complaints.jsx - Complaint detail
src/pages/ComplaintDetail.jsx - Visit map
src/pages/VisitMap.jsx
Animal health and insights
- Animal history
src/pages/AnimalHistory.jsx - Analytics
src/pages/Analytics.jsx
Shared UI and API
- API client and fallbacks
src/services/api.js - Navigation sidebar
src/components/Sidebar.jsx - Top navigation
src/components/Navbar.jsx - Complaint table
src/components/ComplaintTable.jsx - Status and priority badges
src/components/StatusBadge.jsx - Summary cards
src/components/SummaryCard.jsx
Other components
- Officer
- Application API
- Browser local storage
Connections 23
- Officer → Officer sign-in: signs in
- Officer sign-in → API client and fallbacks: requests role login
- API client and fallbacks → Application API: sends API requests
- Officer sign-in → Browser local storage: stores session
- Application routes → Officer sign-in: routes to
- Application routes → Dashboard shell: routes protected pages
- Dashboard shell → Browser local storage: checks session
- Dashboard shell → Navigation sidebar: renders
- Dashboard shell → Top navigation: renders
- Application routes → Dashboard: routes to
- Application routes → Complaint list: routes to
- Application routes → Complaint detail: routes to
- Application routes → Visit map: routes to
- Application routes → Animal history: routes to
- Application routes → Analytics: routes to
- Application routes → Officer profile: routes to
- Complaint detail → API client and fallbacks: loads and updates complaint
- Visit map → API client and fallbacks: loads complaints
- Animal history → API client and fallbacks: loads animal records
- Complaint list → Complaint table: renders list
- Complaint table → Status and priority badges: renders status and priority
- Complaint detail → Status and priority badges: renders status and priority
- Visit map → Status and priority badges: renders status and priority