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

Fix: Permission Handling Issues in Microphone and Camera Capture Dialogs #8830

Merged

Conversation

shauryag2002
Copy link
Contributor

Proposed Changes

  • Fixes Permission Handling Issues in Microphone and Camera Capture Dialogs #8829
  • In the Record audio modal, the recording timer now starts only after the user grants microphone access. If permission is denied, an appropriate error message is displayed to the user.
  • In the Open Camera modal, when camera access is blocked, a proper error message is shown instead of an empty container. The camera no longer freezes after clicking the Switch button, and a clear message is displayed if the camera cannot be switched.

Video:

record_audio.mp4

@ohcnetwork/care-fe-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

@shauryag2002 shauryag2002 requested a review from a team as a code owner October 19, 2024 16:46
Copy link

netlify bot commented Oct 19, 2024

Deploy Preview for care-ohc ready!

Name Link
🔨 Latest commit 72b7861
🔍 Latest deploy log https://app.netlify.com/sites/care-ohc/deploys/671ebaa316a12500084a7333
😎 Deploy Preview https://deploy-preview-8830--care-ohc.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

LGTM

Copy link
Member

@khavinshankar khavinshankar left a comment

Choose a reason for hiding this comment

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

LGTM, Nicely done, just a minor i18n change

Comment on lines 48 to 49
msg: "Please grant microphone permission to record audio.",
});
Copy link
Member

Choose a reason for hiding this comment

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

i18n

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

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

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

@github-actions github-actions bot added Deploy-Failed Deplyment is not showing preview and removed merge conflict pull requests with merge conflict labels Oct 23, 2024
Copy link
Member

@bodhish bodhish left a comment

Choose a reason for hiding this comment

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

LGTM

@bodhish bodhish merged commit b9aff5e into ohcnetwork:develop Oct 27, 2024
23 checks passed
Copy link

@shauryag2002 Your efforts have helped advance digital healthcare and TeleICU systems. 🚀 Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes required Deploy-Failed Deplyment is not showing preview tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permission Handling Issues in Microphone and Camera Capture Dialogs
4 participants