Implement Mantine UI and fix claims.filter crash#235
Open
harshiill wants to merge 2 commits into
Open
Conversation
… tables, ErrorBoundary, route standardization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive Health Center module, adding both a compounder (staff) dashboard and a patient dashboard, along with supporting components and routing integration. The main focus is on providing a tab-based interface for managing and viewing health center operations, including doctor management, schedules, prescriptions, inventory, and more. Additionally, a new
AlertsTabcomponent is introduced for inventory alerts.The most important changes are:
Health Center Dashboards:
CompoundDashboardinsrc/Modules/HealthCenter/CompoundDashboard.jsx, providing a multi-tab interface for compounders to manage doctors, schedules, attendance, medicine stock, inventory requisitions, batch returns, consultations, prescriptions, ambulances, reimbursements, announcements, and reports. Some tabs for complaints and admissions are present but commented out.PatientDashboardinsrc/Modules/HealthCenter/PatientDashboard.jsx, offering patients a tabbed view for announcements, doctor schedules, today's schedule, prescriptions, and (if employee) reimbursement claims. Includes logic to fetch and display today's doctor schedule and conditionally show the reimbursement tab.Component Additions:
AlertsTabcomponent insrc/Modules/HealthCenter/components/AlertsTab.jsxto display low stock alerts for medicines, with an action to order more stock.Routing and App Integration:
HealthCenterRoutesand adding the/health-center/*route insrc/App.jsx. [1] [2]ModalsProviderfrom Mantine to support modal dialogs, which may be used in the new dashboards. [1] [2]These changes lay the foundation for a robust Health Center feature, providing both staff and patient interfaces with clear separation of concerns and extensible tab-based navigation.