-
Notifications
You must be signed in to change notification settings - Fork 478
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
Show only those facilties that aren't linked to user #6253
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Waiting for backend |
@Pranshu1902 fix your backend test and mark it for testing |
LGTM the functionality , @Pranshu1902 fix the failing cypress as well |
@nihal467 done! |
@khavinshankar upon back-end merges, the cypress will pass through, |
👋 Hi, @Pranshu1902, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
The back-end PR is merged, this PR can be merged now |
WHAT
🤖 Generated by Copilot at daa88cd
Added user-based facility filtering to
FacilitySelect
component. This enables managing user permissions for different facilities in theManageUsers
page.http://localhost:4000/users
Only shows those facilities in the drop-down that are not linked to the user.
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at daa88cd
username
property toFacilitySelectProps
interface to pass the username of the selected user to theFacilitySelect
component (link)username
prop fromFacilitySelectProps
object and pass it to theuseEffect
hook as a dependency inFacilitySelect.tsx
(link)username
value in the query parameters of thelistFacility
API call to fetch the facilities assigned to the selected user inFacilitySelect.tsx
(link)username
prop to theFacilitySelect
component from theUserFacilities
component to render the facility selection for each user in the manage users page inManageUsers.tsx
(link)