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(liveness): fix camera select showing up with one camera, fix came… #5845

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

thaddmt
Copy link
Member

@thaddmt thaddmt commented Sep 26, 2024

…ra changing weirdness with hair check screen

Description of changes

  • Fixes camera select showing up with one camera only
  • Fixes static oval weirdness when changing cameras on hair check screen

Issue #, if available

Description of how you validated changes

Checklist

  • Have read the Pull Request Guidelines
  • PR description included
  • yarn test passes and tests are updated/added
  • PR title and commit messages follow conventional commit syntax
  • If this change should result in a version bump, changeset added (This can be done after creating the PR.) This does not apply to changes made to docs, e2e, examples, or other private packages.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…ra changing weirdness with hair check screen
@thaddmt thaddmt requested a review from a team as a code owner September 26, 2024 22:04
Copy link

changeset-bot bot commented Sep 26, 2024

⚠️ No Changeset found

Latest commit: 7f67a55

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

UPDATE_DEVICE_AND_STREAM: { actions: 'updateDeviceAndStream' },
UPDATE_DEVICE_AND_STREAM: {
actions: 'updateDeviceAndStream',
target: 'start',
Copy link
Member

Choose a reason for hiding this comment

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

Info: is this setting it so that when the device and stream are updated, we return to the start state?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct!

@@ -507,6 +507,31 @@ describe('LivenessCameraModule', () => {
).toBeInTheDocument();
});

it('should render hair check screen when isStart = true, should not render camera selector if only one camera', () => {
Copy link
Member

@jordanvn jordanvn Sep 26, 2024

Choose a reason for hiding this comment

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

Nit: do we need to check if the hair check screen is rendered when isStart = true here when that's the purpose of the preceding test?

Copy link
Member

@jordanvn jordanvn left a comment

Choose a reason for hiding this comment

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

Looks like reasonable changes to me. Approved with a couple questions

@thaddmt thaddmt merged commit bd05bab into liveness/alpha Sep 27, 2024
34 checks passed
@thaddmt thaddmt deleted the liveness-alpha-camera-select branch September 27, 2024 16:20
thaddmt added a commit that referenced this pull request Sep 30, 2024
* chore(liveness): allow selecting all cameras, allow camera selection … (#5833)

* chore(liveness): allow selecting all cameras, allow camera selection on mobile

* only show on mobile with facemovement challenge only

* relax e2e tests on alpha

* make more reaadable

* fix

* update names

* refactor, add tests

* Update packages/react-liveness/src/components/FaceLivenessDetector/LivenessCheck/LivenessCameraModule.tsx

Co-authored-by: Caleb Pollman <cpollman@amazon.com>

* refactor

---------

Co-authored-by: Caleb Pollman <cpollman@amazon.com>

* fix(liveness): fix camera select showing up with one camera, fix camera changing weirdness with hair check screen (#5845)

---------

Co-authored-by: thaddmt <68032955+thaddmt@users.noreply.github.com>
Co-authored-by: Caleb Pollman <cpollman@amazon.com>
esauerbo added a commit that referenced this pull request Nov 1, 2024
* chore(liveness): allow selecting all cameras, allow camera selection … (#5833)

* chore(liveness): allow selecting all cameras, allow camera selection on mobile

* fix(liveness): fix camera select showing up with one camera, fix camera changing weirdness with hair check screen (#5845)

* fix(liveness): Only apply transform style on user-facing video (#5953)

* fix(liveness): Fix oval render when switching cameras  (#5954)

---------

Co-authored-by: thaddmt <68032955+thaddmt@users.noreply.github.com>
Co-authored-by: Caleb Pollman <cpollman@amazon.com>
Co-authored-by: Emma Sauerborn <70536670+esauerbo@users.noreply.github.com>
Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>
@ayush987goyal ayush987goyal mentioned this pull request Nov 6, 2024
5 tasks
esauerbo added a commit that referenced this pull request Nov 6, 2024
* chore(liveness): allow selecting all cameras, allow camera selection … (#5833)

* chore(liveness): allow selecting all cameras, allow camera selection on mobile

* only show on mobile with facemovement challenge only

* relax e2e tests on alpha

* make more reaadable

* fix

* update names

* refactor, add tests

* Update packages/react-liveness/src/components/FaceLivenessDetector/LivenessCheck/LivenessCameraModule.tsx

Co-authored-by: Caleb Pollman <cpollman@amazon.com>

* refactor

---------

Co-authored-by: Caleb Pollman <cpollman@amazon.com>

* fix(liveness): fix camera select showing up with one camera, fix camera changing weirdness with hair check screen (#5845)

* fix(liveness): Only apply transform style on user-facing video (#5953)

Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>

* fix(liveness): Fix oval render when switching cameras  (#5954)

* chore(liveness): update video constraints for selected camera (#6009)

---------

Co-authored-by: thaddmt <68032955+thaddmt@users.noreply.github.com>
Co-authored-by: Caleb Pollman <cpollman@amazon.com>
Co-authored-by: Emma Sauerborn <70536670+esauerbo@users.noreply.github.com>
Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>
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.

3 participants