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

Refresh Consultation Beds component when bed is switched. #5811

Merged
merged 1 commit into from
Jul 1, 2023

Conversation

rithviknishad
Copy link
Member

@rithviknishad rithviknishad commented Jul 1, 2023

WHAT

🤖 Generated by Copilot at a09c3a1

Improved bed data refresh in Beds component. Added a key state variable to trigger a re-fetch of bed data when the user changes the bed status in src/Components/Facility/Consultations/Beds.tsx.

Proposed Changes

@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 a09c3a1

  • Add key state variable to Beds component to trigger re-render when bed status is updated (link)
  • Add key as a dependency to useEffect hook that calls fetchData function to fetch bed data (link)
  • Increment key when handleBedStatusChange function is called by BedCard component to change bed status (link)

@rithviknishad rithviknishad added urgent needs testing P1 breaking issue or vital feature labels Jul 1, 2023
@rithviknishad rithviknishad requested a review from a team July 1, 2023 13:05
@rithviknishad rithviknishad requested a review from a team as a code owner July 1, 2023 13:05
@vercel
Copy link

vercel bot commented Jul 1, 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 Jul 1, 2023 1:05pm

@netlify
Copy link

netlify bot commented Jul 1, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit a09c3a1
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/64a02480c9c5ba0008f8a01a
😎 Deploy Preview https://deploy-preview-5811--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.

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Jul 1, 2023
@nihal467
Copy link
Member

nihal467 commented Jul 1, 2023

LGTM

@khavinshankar khavinshankar merged commit 0b90bdc into develop Jul 1, 2023
@khavinshankar khavinshankar deleted the fix#5897 branch July 1, 2023 13:58
@github-actions
Copy link

github-actions bot commented Jul 1, 2023

@rithviknishad 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 🙌.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cypress failed pull request with cypress test failure P1 breaking issue or vital feature tested urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch bed in consultation page is malfunctioning
3 participants