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(pair): Create various UX for pair/unsupported #17517

Merged
merged 1 commit into from
Sep 9, 2024
Merged

feat(pair): Create various UX for pair/unsupported #17517

merged 1 commit into from
Sep 9, 2024

Conversation

LZoog
Copy link
Contributor

@LZoog LZoog commented Sep 3, 2024

Because:

  • This page is confusing and not ideal for our users and we want to render various new UX to help them complete the pair flow

This commit:

  • Adjusts 'Pair using an app' screen according to design, only show users this when the URL reflects a state that the user tried pairing with their system camera
  • Adds a new 'Connecting your mobile device' state for when mobile users (not through system camera) reach this page, and conditionally renders an alert with 'Download Firefox now' link for iOS and Android if user is not on FF
  • Previously, the 'default state' for this page was the system camera screen. This commit adds a new generic error state
  • Tweaks pair/failure to match the new style/image, hides "Sign in with email" text if button is not shown
  • Adds automatic Glean click events cad_redirect_mobile_download and cad_redirect_mobile_learn_more, adds custom events cad_redirect_mobile_view and cad_redirect_desktop_default_view

closes FXA-10136

--

These screenshots have been sent to Eduardo and are approved from what he saw. You can see these by changing the UA in dev tools.

Edit: these are mostly up to date, but now I've added a class so firefox.com/pair is always on the same line.

image
image
image
image

bonus pair/failure updates:
image
image

@clouserw clouserw requested a review from a team September 3, 2024 23:43
@@ -1,12 +1,9 @@
<div class="card-base">
<header>
{{#isDesktopNonFirefox}}
{{#showCADHeader}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This conditional was easier than juggling it here in the mustache file.

@LZoog LZoog marked this pull request as ready for review September 4, 2024 16:54
@LZoog LZoog requested a review from a team as a code owner September 4, 2024 16:54
Copy link
Contributor

@vbudhram vbudhram left a comment

Choose a reason for hiding this comment

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

@LZoog I didn't test all of the states but overall seems to work well. Lmk your thoughts on the questions.

</h1>
</header>

<p class="mt-3">{{#t}}The setup couldn’t be completed.{{/t}}{{#showSigninLink}} {{#t}}Please sign in with your email.{{/t}}{{/showSigninLink}}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

QA recently reopened https://mozilla-hub.atlassian.net/browse/FXA-10258 and I have been stratching my head on this. I think the best thing to do is to remove the button completely and tell the user to login with their email.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should also be able to close the above ticket as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm was that a requested feature? If we shouldn't spend more time trying to fix it (I'm also not sure what's going on without investigating, I see the params are passed), I'm OK with removing it and revisiting when we do React work on that page.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Chatted in Slack and Vijay will remove this with the linked ticket in a quick follow up after this lands.

Because:
* This page is confusing and not ideal for our users and we want to render various new UX to help them complete the pair flow

This commit:
* Adjusts 'Pair using an app' screen according to design, only show users this when the URL reflects a state that the user tried pairing with their system camera
* Adds a new 'Connecting your mobile device' state for when mobile users (not through system camera) reach this page, and conditionally renders an alert with 'Download Firefox now' link for iOS and Android if user is not on FF
* Previously, the 'default state' for this page was the system camera screen. This commit adds a new generic error state
* Tweaks pair/failure to match the new style/image, hides "Sign in with email" text if button is not shown
* Adds automatic Glean click events cad_redirect_mobile_download and cad_redirect_mobile_learn_more, adds custom events cad_redirect_mobile_view and cad_redirect_desktop_default_view

closes FXA-10136
@LZoog
Copy link
Contributor Author

LZoog commented Sep 9, 2024

Going to go ahead and merge, test is an unrelated MySQL timeout.

@LZoog LZoog merged commit d30c7e7 into main Sep 9, 2024
22 of 24 checks passed
@LZoog LZoog deleted the FXA-10136 branch September 9, 2024 15:56
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