Closed yash-learner closed 1 week ago
The changes in this pull request primarily focus on updating the terminology and routing related to logging functionalities within the application. This includes renaming various routes and components from "daily rounds" to "log updates," enhancing localization entries for logging, and ensuring consistent terminology across the application. Additionally, modifications were made to related notification events and test cases to align with these updates.
File Path | Change Summary |
---|---|
public/locale/en.json | Added localization entries for log updates: "log_update" , "log_updates" , and "no_log_updates" . |
src/Routers/routes/ConsultationRoutes.tsx | Updated route paths from "daily-rounds" to "log_updates" for various consultation-related routes. |
src/common/constants.tsx | Changed notification event texts from "Patient Consultation Update" to "Patient Log Update". |
src/components/Facility/ConsultationCard.tsx | Updated button navigation from /daily-rounds to /log_updates/ and changed button label for translation. |
src/components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx | Renamed references from "daily_rounds" to "log_updates" and updated imports accordingly. |
src/components/LogUpdate/CriticalCareEditor.tsx | Changed button href from /daily-rounds/${props.id}/update to /log_updates/${props.id}/update . |
src/components/LogUpdate/CriticalCarePreview.tsx | Updated title to use {t("log_updates")} for localization and refined visibility logic. |
src/components/Notifications/NotificationsList.tsx | Updated URL paths in resultUrl function for notification events to reflect "log_updates". |
src/components/Notifications/ShowPushNotification.tsx | Modified return paths in resultUrl for notification events to use "log_updates". |
src/components/Patient/DailyRoundListDetails.tsx | Changed title and back URL to use "log_updates" instead of "daily-rounds". |
src/components/Patient/DailyRounds.tsx | Updated header and button text to reflect "log_updates" and changed navigation paths accordingly. |
src/components/Patient/PatientInfoCard.tsx | Updated button href to point to "log_updates" and added error handling for bed assignment. |
cypress/e2e/patient_spec/PatientLogUpdate.cy.ts | Renamed button identifiers from "Daily Rounds" to "Log Updates" in test cases. |
tailwind.config.js | Reformatted content array for improved readability. |
cypress/pageobject/Patient/PatientConsultation.ts | Updated selector and button text for viewing consultations to reflect "Log Updates". |
src/components/Facility/ConsultationDetails/Events/EventsList.tsx | Updated import path for LoadingLogUpdateCard . |
src/components/Facility/Consultations/LogUpdates/DefaultLogUpdateCard.tsx | Updated import path and href attributes for buttons to reflect "log_updates". |
src/components/Facility/Consultations/LogUpdates/VirtualNursingAssistantLogUpdateCard.tsx | Updated import path for LogUpdateCardAttribute . |
src/components/Facility/Consultations/LogUpdatesFilter.tsx | Renamed component from DailyRoundsFilter to LogUpdatesFilter . |
src/components/Facility/Consultations/LogUpdatesList.tsx | Renamed component from DailyRoundsList to LogUpdatesList and updated import paths. |
Objective | Addressed | Explanation |
---|---|---|
Consistency in terminology for log updates (7350) | β | |
Update routing paths to reflect log updates terminology (7350) | β | |
Update localization for log updates (7350) | β |
tested
, good to merge
In the land of logs, where updates flow,
From daily rounds to new paths we go.
With translations bright, and routes so clear,
Our logging journey brings us cheer!
Hops and jumps, we celebrate this day,
For every log update, hip-hip-hooray! πβ¨
[!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/ConsultationUpdatesTab.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 | 54c6464eaabf10a58642948095e79dbaccf5507e |
Latest deploy log | https://app.netlify.com/sites/care-ohc/deploys/6735e78d6fc9e20008ca62be |
Deploy Preview | https://deploy-preview-9089--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, @yash-learner, 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.
Things to check:
PATIENT_CONSULTATION_UPDATE_CREATED
to PATIENT_LOG_UPDATE_CREATED
requires a migration and also we may revamp this DailyRounds table to something else future based on FHIR.Actionable comments posted: 0
π§Ή Outside diff range and nitpick comments (1)
src/components/Facility/Consultations/DailyRounds/DefaultLogUpdateCard.tsx (1)> Line range hint
1-15
: Update import paths to reflect new terminology.The import path still contains "DailyRounds" which should be updated to maintain consistency with the new "LogUpdate" terminology.
- import LogUpdateCardAttribute from "@/components/Facility/Consultations/DailyRounds/LogUpdateCardAttribute"; + import LogUpdateCardAttribute from "@/components/Facility/Consultations/LogUpdates/LogUpdateCardAttribute";
Note: This change would require moving the file to the new directory structure. Would you like me to help create a GitHub issue to track this refactoring task?
π Review details
@rithviknishad Do you think this change is required as of now ?
@yash-learner yes let's do that too
@yash-learner yes let's do that too
@rithviknishad
Fixed it in https://github.com/ohcnetwork/care_fe/pull/9089/commits/eccc86a375776fb3c7f8745e0c171649113cbe2e
@yash-learner 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:
Proposed Changes
This pull request includes significant updates to the application's routing and terminology, specifically changing references from "daily rounds" to "log updates". The changes span multiple files and components, ensuring consistency across the codebase.
Key changes include:
Routing and Terminology Updates:
src/Routers/routes/ConsultationRoutes.tsx
: Updated various routes to replace "daily-rounds" with "log_updates" for patient consultations. [1] [2] [3] [4] [5]src/common/constants.tsx
: Modified notification event text to reflect the new terminology.src/components/Facility/ConsultationCard.tsx
: Updated navigation paths to use "log_updates" instead of "daily-rounds".src/components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx
: Changed tab text from "daily_rounds" to "log_updates".src/components/Facility/Consultations/DailyRounds/DefaultLogUpdateCard.tsx
: Updated URLs in theDefaultLogUpdateCard
component. [1] [2]Component Updates:
src/components/LogUpdate/CriticalCareEditor.tsx
: Adjusted links and state variables to use "log_updates". [1] [2]src/components/LogUpdate/CriticalCarePreview.tsx
: Updated text to use the new terminology.src/components/Notifications/NotificationsList.tsx
: Modified notification URLs.src/components/Notifications/ShowPushNotification.tsx
: Updated paths for push notifications.src/components/Patient/DailyRoundListDetails.tsx
: Changed titles and back URLs to reflect "log_updates". [1] [2]src/components/Patient/DailyRounds.tsx
: Updated navigation paths and text. [1] [2] [3] [4]src/components/Patient/PatientInfoCard.tsx
: Adjusted links for patient consultations.Localization:
public/locale/en.json
: Added new entries for "log_update" and "log_updates".@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Refactor
Documentation