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

🔧 Hide Camera Feed Tab for bed with no camera attached. #6536

Merged

Conversation

shyamprakash123
Copy link
Contributor

@shyamprakash123 shyamprakash123 commented Nov 2, 2023

WHAT

🤖 Generated by Copilot at 8d8a8a3

Added camera-related features for patient beds in ConsultationDetails component. This allows users to view live feed and initiate video calls with patients who have cameras attached to their beds.

Proposed Changes

Before:

before

After:

after

@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 8d8a8a3

  • Import listAssetBeds action to fetch the list of assets attached to a bed (link)
  • Declare and initialize isCameraAttached state variable to store the camera status of the current bed (link)
  • Dispatch listAssetBeds action with the current bed id and filter the response to check for camera type assets (link)
  • Use isCameraAttached as a condition to render the "Feed" link in the src/Components/Facility/ConsultationDetails/index.tsx file (link)
  • Use isCameraAttached as a condition to render the "Video Call" button in the src/Components/Facility/ConsultationDetails/index.tsx file (link)

@shyamprakash123 shyamprakash123 requested a review from a team November 2, 2023 16:13
@shyamprakash123 shyamprakash123 requested a review from a team as a code owner November 2, 2023 16:13
Copy link

vercel bot commented Nov 2, 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 Nov 3, 2023 3:51pm

Copy link

netlify bot commented Nov 2, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 65a5cc0
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/654516cfb787540008d327aa
😎 Deploy Preview https://deploy-preview-6536--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.

@nihal467
Copy link
Member

nihal467 commented Nov 3, 2023

LGTM

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

github-actions bot commented Nov 3, 2023

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

@nihal467
Copy link
Member

nihal467 commented Nov 3, 2023

@shyamprakash123 can you make the changes requested and resolve the merge conflicts

@nihal467 nihal467 removed the tested label Nov 3, 2023
@shyamprakash123
Copy link
Contributor Author

@rithviknishad @Ashesh3 I made the suggested changes. Can you once review this?

@github-actions github-actions bot removed the merge conflict pull requests with merge conflict label Nov 3, 2023
@rithviknishad
Copy link
Member

@shyamprakash123 you've not solved this: #6536 (comment)

Copy link
Member

@rithviknishad rithviknishad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nihal467
Copy link
Member

nihal467 commented Nov 6, 2023

LGTM

@khavinshankar khavinshankar merged commit e7fbde8 into ohcnetwork:develop Nov 7, 2023
31 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hide Camera Feed Tab for bed with no camera attached
5 participants