Open SwanandBhuskute opened 1 week ago
[!IMPORTANT]
Review skipped
Review was skipped due to path filters
:no_entry: Files ignored due to path filters (1)
* `package-lock.json` is excluded by `!**/package-lock.json`CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including
**/dist/**
will override the default block on thedist
directory, by removing the pattern from both the lists.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The pull request involves significant modifications to various components and utilities within the codebase, primarily aimed at removing dependencies on the lodash-es
library. This includes replacing lodash functions with native JavaScript methods or custom implementations in several files, such as Notifications.js
, ExcelFileDragAndDrop.tsx
, and others. Additionally, the package.json
file has been updated to remove lodash-es
and its type definitions. New utility functions and a custom hook for debouncing have been introduced in utils.ts
.
File Path | Change Summary |
---|---|
package.json |
Removed dependency "lodash-es": "^4.17.21" and devDependency "@types/lodash-es": "^4.17.12" . |
src/Utils/Notifications.js |
Updated import statement for camelCase and startCase from lodash-es to local module @/Utils/utils . |
src/components/Common/ExcelFIleDragAndDrop.tsx |
Removed import of forIn from lodash-es and replaced with native JavaScript methods. Enhanced error handling. |
src/components/Facility/Investigations/Reports/index.tsx |
Refactored investigationList construction to use native JavaScript methods instead of lodash chaining. |
src/components/Facility/Investigations/Reports/utils.tsx |
Introduced custom memoize function and replaced lodash methods with native implementations for data transformation. |
src/components/Facility/Investigations/ShowInvestigation.tsx |
Replaced lodash's set function with a manual method for updating nested properties. |
src/components/Facility/Investigations/Table.tsx |
Updated handleValueChange to manually construct nested object structure without lodash. |
src/components/Form/AutoCompleteAsync.tsx |
Replaced lodash's debounce with a custom debounce implementation using setTimeout . |
src/components/Form/Form.tsx |
Modified error handling logic to filter errors without using omitBy from lodash. |
src/components/Patient/DiagnosesFilter.tsx |
Introduced custom hook useDebounce to replace lodash's debounce function. |
src/components/Patient/PatientRegister.tsx |
Updated import statements and modified name processing logic, replacing lodash functions with local utilities. |
src/components/Patient/SampleDetails.tsx |
Changed imports from lodash-es to local utilities and simplified rendering logic for undefined values. |
src/components/Patient/SampleTestCard.tsx |
Updated imports and modified handling of potential undefined values for itemData . |
src/Utils/utils.ts |
Added new utility functions startCase , camelCase , and a custom hook useDebounce . |
src/hooks/useDebounce.ts |
Introduced custom React hook useDebounce to manage debouncing logic without lodash. |
SampleDetails.tsx
involve updates to the rendering logic and internationalization, which may relate to the overall structure of how notifications and updates are displayed, similar to the changes in terminology for log updates.index.tsx
and utils.tsx
regarding the use of lodash and the handling of investigation reports are relevant as they reflect a shift in how data is processed and displayed, aligning with the changes in terminology for log updates.needs review
, tested
🐇 In the code where rabbits play,
We’ve hopped away from lodash today.
With native tools, we’ve made our stand,
Simplifying code, oh, isn’t it grand?
No more bunnies lost in chains,
Just clear paths where logic reigns! 🐇
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 | ed43c9cbacd08dd793bf0e50cebd4828fa970600 |
Latest deploy log | https://app.netlify.com/sites/care-ohc/deploys/67407c1395d7cc0008e89601 |
Deploy Preview | https://deploy-preview-9116--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.
:wave: Hi, @SwanandBhuskute, Conflicts have been detected against the base branch. Please rebase your branch against the base branch.
This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.
@SwanandBhuskute
Proposed Changes
i was unable to check this code on the frontend , coz i am not getting on which route the output displays kindly help
this was generated after build
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
Release Notes
New Features
useDebounce
hook for improved debouncing in various components.startCase
,camelCase
, andsetNestedValueSafely
for string manipulation and safe nested object updates.Enhancements
PatientRegister
andShowInvestigation
.ExcelFileDragAndDrop
component for better error reporting during file selection.Bug Fixes
These updates enhance performance, maintainability, and user experience across the application.