-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix resource request #9935
Fix resource request #9935
Conversation
Caution Review failedThe pull request is closed. WalkthroughThis pull request introduces comprehensive changes across multiple files, focusing on enhancing the localization, facility management, and resource request functionality. The modifications include updating the English locale JSON with new descriptive keys, removing the Changes
Possibly related PRs
Suggested Labels
Suggested Reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (9)
Finishing Touches
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Deploying care-fe with Cloudflare Pages
|
@bodhish Your efforts have helped advance digital healthcare and TeleICU systems. 🚀 Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! 🙌 |
Proposed Changes
This pull request includes updates to localization strings and refactors the facility API integration. The most important changes include adding new localization entries, modifying existing entries for consistency, and refactoring the API calls for facility data.
Localization updates:
public/locale/en.json
: Added new entries such as "basic_information", "category_description", "contact_information_description", "emergency_description", "facility_for_care_support", "file_upload_error", "file_upload_success", "request_reason_description", "request_title_description", and "select_facility_description". Modified existing entries for consistency, such as "is_this_an_emergency" and "password_length_met". [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]API refactoring:
src/Utils/request/api.tsx
: Removed thegetAllFacilities
route.src/components/Common/FacilitySelect.tsx
: Replaced the old API route with the newfacilityApi.getAllFacilities
and removed unnecessary parameters. [1] [2] [3] [4]src/pages/Facility/FacilitiesPage.tsx
: Updated the API call to usefacilityApi.getAllFacilities
and replacedFacilityModel
withFacilityData
. [1] [2]src/pages/Facility/components/FacilityCard.tsx
: ReplacedFacilityModel
withFacilityData
.src/pages/Facility/hooks/useFacilityQueries.ts
: Removed theuseFacilityQueries
hook that used the old API route.src/types/facility/facility.ts
: Madephone_number
andpincode
fields required in theFacilityData
interface.src/types/facility/facilityApi.ts
: Added a new API definition forgetAllFacilities
.@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Refactor