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

feat: improve camera selection behavior #39

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

rickstaa
Copy link
Collaborator

@rickstaa rickstaa commented Feb 5, 2025

This pull request enhances the camera selection functionality to prevent user confusion due
to lack of solid error handling. It includes the following improvements:

  • Ensures the camera field is required, displaying a warning if no camera is selected.
  • Fixes the camera state setting to correctly select the first device, preventing it
    from being overwritten with an empty string.
  • Displays a descriptive label when no camera devices are available.
    Additionally, this commit improves the codebase structure for better maintainability
    and readability.

This commit enhances the camera selection functionality to prevent user confusion due
to lack of solid error handling. It includes the following improvements:
- Ensures the camera field is required, displaying a warning if no camera is selected.
- Fixes the camera state setting to correctly select the first device, preventing it
from being overwritten with an empty string.
- Displays a descriptive label when no camera devices are available.
Additionally, this commit improves the codebase structure for better maintainability
and readability.
Copy link
Collaborator

@eliteprox eliteprox left a comment

Choose a reason for hiding this comment

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

Tested successfully with/without device permissions. Improved UX. LGTM!

@eliteprox eliteprox merged commit 497ce69 into yondonfu:main Feb 6, 2025
@rickstaa rickstaa deleted the ui_make_camera_required branch February 6, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants