How jineshprajapat/dristidocs-client works
DristiDocs is a React/Redux frontend for pharmacy operations. The main workflow is role-based sign-in, then chemists manage stock and orders or upload invoices for review; administrators manage pharmacy participants and view analytics. Domain screens and services are grouped below, with Redux state and the API client as internal layers. README documents invoice extraction and inventory synchronization, but sampled source does not establish the extraction provider or the complete upload-to-inventory wiring, so those links are omitted.
Main entry points: App.tsx App routes · api.ts API client · auth.ts Authentication requests · AdminDashboard.tsx Admin dashboard
Components 23
Access and routing
- App routes
src/App.tsx - Login and signup
src/features/auth/components/LoginForm.tsx - Authentication requests
src/services/auth.ts
Pharmacy operations
- Inventory view
src/pages/Inventory.tsx - Stock management
src/features/inventory/warehouse.tsx - Stock actions
src/common/WareHouseSideModal.tsx - Product management
src/features/products/createProduct.tsx - Orders view
src/pages/Order.tsx - Order creation
src/features/order/createOrder.tsx - Operations timeline
src/features/inventory/timeline.tsx
Invoice workflow
- Invoice upload
src/pages/UploadDocuments.tsx - Invoice review
src/features/upload-documents/InvoiceEditor.tsx
Administration and insights
- Admin dashboard
src/pages/AdminDashboard.tsx - Chemist management
src/features/dashboard/admin/PharmacyManagement.tsx - Reports and insights
src/features/dashboard/admin/ReportsAndInsights.tsx - Analytics requests
src/services/analytics.ts
Client data layer
- Session state
src/store/reducers/authReducer.ts - Invoice state
src/store/reducers/invoiceReducer.ts - API client
src/api/api.ts - Redux store
src/store/store.ts
Other components
- Chemist
- Administrator
- Pharmacy backend
Connections 27
- Chemist → App routes: opens
- Administrator → App routes: opens
- App routes → Login and signup: routes to
- Login and signup → Authentication requests: dispatches
- App routes → Authentication requests: fetches session
- Authentication requests → API client: sends requests
- API client → Pharmacy backend: HTTP requests
- Authentication requests → Session state: updates
- App routes → Inventory view: routes to
- App routes → Orders view: routes to
- App routes → Invoice upload: routes to
- App routes → Admin dashboard: routes to
- Inventory view → Stock management: presents
- Stock actions → API client: dispatches stock actions
- Stock actions → Order creation: creates stock-in order
- Product management → API client: requests product data
- Orders view → Order creation: offers creation
- Order creation → API client: submits order
- Stock management → Operations timeline: links to
- Invoice upload → Invoice review: presents review
- Invoice review → Invoice state: reads invoice
- Admin dashboard → Chemist management: offers management
- Admin dashboard → Reports and insights: presents reports
- Reports and insights → Analytics requests: requests analytics
- Analytics requests → API client: sends requests
- Redux store → Session state: combines reducer
- Redux store → Invoice state: combines reducer