Closed sainak closed 6 days ago
The pull request introduces significant updates to the ConsultationNursingTab
component, including the addition of a new NursingPlot
component for asynchronous data fetching and improved data display. The existing table structure has been replaced with a new LogUpdateAnalyseTable
component for rendering routine analysis results. Additionally, the type definition for NursingPlotRes
has been refined for better type safety. The changes streamline the component's architecture and enhance the overall data handling and presentation.
File Path | Change Summary |
---|---|
src/components/Facility/ConsultationDetails/ConsultationNursingTab.tsx |
Introduced NursingPlot for data fetching, updated ConsultationNursingTab to use NursingPlot , and modified RoutineSection to utilize LogUpdateAnalyseTable . |
src/components/Facility/Consultations/NursingPlot.tsx |
Deleted the previous NursingPlot component. |
src/components/Facility/models.tsx |
Updated NursingPlotRes type definition to enforce a structured array for the nursing property. |
src/components/Facility/Consultations/LogUpdateAnalyseTable.tsx |
Added LogUpdateAnalyseTable component for rendering a dynamic table with internationalization support. |
Objective | Addressed | Explanation |
---|---|---|
Make the Nursing Care section similar to the Routine Section by switching to a table layout (#8562) | β | |
Lock the first row of the field name in routine section table (#8562) | β | This feature was not implemented. |
Have fixed width for time columns (#8562) | β | This feature was not implemented. |
Improve overall UI (borders or colors, etc.) (#8562) | β | UI improvements are not explicitly detailed. |
NursingPlot
component.changes required
π° In the Nursing Tab, we now fetch with ease,
New components added, as smooth as a breeze.
Data displayed in a table so neat,
With every log update, our work is complete!
Hopping along, we improve and refine,
For better care, our code will shine! β¨
[!WARNING] There were issues while running some tools. Please review the errors and either fix the toolβs configuration or disable the tool if itβs a critical failure.
π§ eslint
> If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.src/components/Facility/ConsultationDetails/ConsultationNursingTab.tsx
Oops! Something went wrong! :( ESLint: 8.57.1 Error: Failed to load parser '@typescript-eslint/parser' declared in '.eslintrc.json': Cannot find module '@typescript-eslint/parser' Require stack: - /.eslintrc.json at Module._resolveFilename (node:internal/modules/cjs/loader:1248:15) at Function.resolve (node:internal/modules/helpers:145:19) at Object.resolve (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2346:46) at ConfigArrayFactory._loadParser (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3325:39) at ConfigArrayFactory._normalizeObjectConfigDataBody (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3099:43) at _normalizeObjectConfigDataBody.next () at ConfigArrayFactory._normalizeObjectConfigData (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3040:20) at _normalizeObjectConfigData.next ( ) at ConfigArrayFactory.loadInDirectory (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2886:28) at CascadingConfigArrayFactory._loadConfigInAncestors (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3871:46)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | 1cabe0a21b47150e17a1cba12e0954c0cbed46ed |
Latest deploy log | https://app.netlify.com/sites/care-ohc/deploys/67349961cf222c0008fb6c17 |
Deploy Preview | https://deploy-preview-9079--care-ohc.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Passed #3904
•
1cabe0a21b: Enhancements to the nursing care procedures and routines tables
Project |
CARE
|
Branch Review |
issues/8562/Nursing_tab_ui
|
Run status |
Passed #3904
|
Run duration | 04m 52s |
Commit |
1cabe0a21b: Enhancements to the nursing care procedures and routines tables
|
Committer | Aakash Singh |
View all properties for this run βοΈ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
126
|
View all changes introduced in this branch βοΈ |
Latest commit: |
1cabe0a
|
Status: | β Deploy successful! |
Preview URL: | https://b7314b95.care-fe.pages.dev |
Branch Preview URL: | https://issues-8562-nursing-tab-ui.care-fe.pages.dev |
@coderabbitai full review
@coderabbitai full review
LGTM
@sainak @sainak Your efforts have helped advance digital healthcare and TeleICU systems. :rocket: Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! :raised_hands:
Picked up changes from https://github.com/ohcnetwork/care_fe/pull/8608
Changes made fixes: https://github.com/ohcnetwork/care_fe/issues/8562
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
New Features
NursingPlot
component for enhanced display of nursing round data.LogUpdateAnalyseTable
component for improved rendering of routine analysis results.Improvements
ConsultationNursingTab
.Bug Fixes