Skip to content
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

Merged
merged 9 commits into from
Oct 31, 2023

Conversation

Pranshu1902
Copy link
Contributor

@Pranshu1902 Pranshu1902 commented Sep 9, 2023

WHAT

🤖 Generated by Copilot at daa88cd

Added user-based facility filtering to FacilitySelect component. This enables managing user permissions for different facilities in the ManageUsers page.

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖 Generated by Copilot at daa88cd

  • Add username property to FacilitySelectProps interface to pass the username of the selected user to the FacilitySelect component (link)
  • Destructure username prop from FacilitySelectProps object and pass it to the useEffect hook as a dependency in FacilitySelect.tsx (link)
  • Include username value in the query parameters of the listFacility API call to fetch the facilities assigned to the selected user in FacilitySelect.tsx (link)
  • Pass username prop to the FacilitySelect component from the UserFacilities component to render the facility selection for each user in the manage users page in ManageUsers.tsx (link)

@Pranshu1902 Pranshu1902 requested a review from a team September 9, 2023 08:36
@Pranshu1902 Pranshu1902 requested a review from a team as a code owner September 9, 2023 08:36
@vercel
Copy link

vercel bot commented Sep 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 30, 2023 10:21am

@netlify
Copy link

netlify bot commented Sep 9, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 252188a
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/653f83667e881a0008ff6dc8
😎 Deploy Preview https://deploy-preview-6253--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Pranshu1902
Copy link
Contributor Author

Waiting for backend

@nihal467
Copy link
Member

nihal467 commented Oct 8, 2023

@Pranshu1902 fix your backend test and mark it for testing

@nihal467
Copy link
Member

nihal467 commented Oct 16, 2023

image

LGTM the functionality , @Pranshu1902 fix the failing cypress as well

@Pranshu1902
Copy link
Contributor Author

@nihal467 done!

@nihal467
Copy link
Member

@khavinshankar upon back-end merges, the cypress will pass through,

@github-actions github-actions bot added the merge conflict pull requests with merge conflict label Oct 30, 2023
@github-actions
Copy link

👋 Hi, @Pranshu1902,
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.

@Pranshu1902
Copy link
Contributor Author

The back-end PR is merged, this PR can be merged now
@nihal467 @khavinshankar

@khavinshankar khavinshankar merged commit ed3a547 into coronasafe:develop Oct 31, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't show already Linked Facilities on Link New Facility on User page
3 participants