-
Notifications
You must be signed in to change notification settings - Fork 345
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
Add location filter for patients #6456
Conversation
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Passing run #1502 ↗︎Details:
Review all test suite changes for PR #6456 ↗︎ |
Issue fixed. |
LGTM |
@Ashesh3 We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌. |
WHAT
🤖 Generated by Copilot at 9d9c810
This pull request adds a new location filter feature to the patient management module. It also adds a
disabled
prop to theLocationSelect
component and its dependent components to control the visibility of the location input based on the facility selection. This improves the user experience and reduces unnecessary API calls.Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
HOW
🤖 Generated by Copilot at 9d9c810
disabled
to theLocationSelect
component to control its enabled state based on the facility selection (link, link, link, link)LocationSelect
component if the facility id is not defined (link)AutoCompleteAsync
,Autocomplete
, andAutocompleteMultiselect
components when thedisabled
prop istrue
(link, link, link)getFacilityAssetLocation
action in theManagePatients.tsx
file to fetch the location name based on the facility and location ids (link)locationBadgeName
in thePatientManager
component to store and display the location name as a badge in the patient list filter (link, link)location
to thefilter
object and theuseQuery
hook in thePatientManager
component to filter the patient list by the location id (link, link)useCallback
hook to define thefetchLocationBadgeName
function in thePatientManager
component to dispatch thegetFacilityAssetLocation
action and set thelocationBadgeName
state (link)LocationSelect
component in thePatientFilter
component to create a form field with a label and a location select input (link, link)location
to thefilter
,initialFilterData
, andfilterState
objects in thePatientFilter
component to store and update the location id value (link, link, link, link)