-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
feat(#6543): only show assigned facilities without children for users with multiple facilities #9094
Conversation
Hi @dianabarsan one change I did in the webapp is to add a method to typecast string facility_id to array
So that everywhere in the code we work with one data type. I'm curious whether that is something we should change at the API level for consistency, or its fine just making the change in webapp ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So that everywhere in the code we work with one data type. I'm curious whether that is something we should change at the API level for consistency, or its fine just making the change in webapp ?
When I push my latest changes, the API will only create users with array facility_id fields, and I'm probably going to add a migration too, but I think it's safe to have the typecast in webapp just in case.
I left one philosophical question inline. Nice work!
Code looks good to me - trying to test this locally |
8e29718
to
04463ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this locally alongside @Benmuiruri and it looks good functionally 👍
114252d
to
da011a6
Compare
da011a6
to
03c645a
Compare
03c645a
to
d2abe9b
Compare
Description
This PR updates the UI according to the following:
facility_id
:light-grey
background for the homeplacesfacility_id
light-grey
background for the homeplaceVideo
facility_ids
anarray
of ['id-1', 'id-2']. The user's LHS contact-list only displays the homeplaces without the children of the homeplacesfacility_id
anarray
['id-1']. The user's LHS contact-list displays the homeplace and the children of that one homeplaceScreen.Recording.2024-05-09.at.11.43.54.mov
Image
facility_ids
. They do not have the sort option in the search bar.facility_id
. They have the sort option in the search bar.Image
facility_ids
. Thelight-grey
background for the homeplaces is not setfacility_id
. Thelight-grey
background for the homeplace is set#6543
Code review checklist
Compose URLs
If Build CI hasn't passed, these may 404:
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.