Граф коммитов

30896 Коммитов

Автор SHA1 Сообщение Дата
Lauren Zugai 8a46dfffe6
fix(sync): Use requestAnimationFrame to ensure event handler is attached before event
Because:
* Android responds immediately to the can_link_account message and we don't appear to always have the event listener attached

This fix:
* Adds requestAnimationFrame, as we have needed to use this a couple of times before for testing when the response back was immediate

fixes FXA-10057
2024-07-11 10:18:15 -05:00
Dan Schomburg 7914defaeb
Merge pull request #17215 from mozilla/fix-potential-webchannel-race
bug(settings): Make sure event handler is attached before message is sent
2024-07-10 15:41:19 -07:00
Valerie Pomerleau 91f73407e3
Merge pull request #17211 from mozilla/FXA-10039
feat(glean): Add account_pref_recovery_key_submit event
2024-07-10 15:33:25 -07:00
dschom bb1c4ad743
bug(settings): Make sure event handler is attached before message is sent
Because:
- On android mobile this response for 'CanLinkAccount' comes back immediately and no pop up is displayed.
- As result, we potentially have a result, and the eventHandler might not be bound.

This commit:
- Attach the event handler before sending the message.
2024-07-10 14:39:53 -07:00
Valerie Pomerleau 5068c1418c
Merge pull request #17213 from mozilla/FXA-10064
fix(functional-test): Cached signin test failing on redirect
2024-07-10 14:07:27 -07:00
Valerie Pomerleau 7976889035
fix(functional-test): Cached signin test failing on redirect
Because:

* Sign in cached, sign in once, use a different account test was failing on the sign out step due to redirect to cached signin

This commit:

* Update the sign out function to check for redirect away from settings but allow for different destinations (email first or sign in, for example)
* Remove the refresh in the test (not needed) and replace with URL check

Closes #FXA-10064
2024-07-10 13:26:41 -07:00
Valerie Pomerleau e4d4157615
feat(glean): Add account_pref_recovery_key_submit event
Because:

* We want to track clicks to start an account recovery key setup flow

This commit:

* Add glean event and emit in the appropriate settings page

Closes #FXA-10039
2024-07-10 11:42:01 -07:00
Dan Schomburg 866963df68
Merge pull request #17208 from mozilla/FXA-10029
bug(settings): Skip checkOauthData for sync
2024-07-10 09:01:10 -07:00
dschom 766ad0ed0e
bug(settings): Skip checkOauthData for sync
Because:
- We can hit a state where firefox will direct a user to sign in and the redirect uri, or client id won't be present
- This state is erroneous, but it'll take a bit for the fix in FF to be released.

This Commit:
- shortCircuits checkOauthData when we are dealing with a sync integration.
- Sync doesn't need to redirect back to a third party anyway, so this is probably okay.
2024-07-09 17:56:58 -07:00
Vijay Budhram 862edbb9b6
Merge pull request #17207 from mozilla/fxa-10046
fix(auth): Set state when navigating with third party auth in React
2024-07-09 13:53:58 -04:00
Vijay Budhram a59394295d
fix(auth): Set state when navigating with third party auth in React 2024-07-09 11:23:47 -04:00
Dan Schomburg 46c1fa3367
Merge pull request #17191 from mozilla/FXA-9569
task(settings): Add event when users engages with login password
2024-07-08 17:16:26 -07:00
Katrina Anderson fdb8e95ce5
Merge pull request #17205 from mozilla/FXA-10014
chore(functional-tests): add a fixme annotation to verify plan change funnel metrics & coupon feature not available when changing plans
2024-07-08 16:15:43 -04:00
Katrina Anderson c82920a16d
Merge pull request #17203 from mozilla/FXA-10045
fix(functional-tests): failures due to rate limiting in coupon tests
2024-07-08 15:36:38 -04:00
Katrina Anderson 37a8467832
chore(functional-tests): add a fixme annotation to `verify plan change funnel metrics & coupon feature not available when changing plans`
Relates to: #FXA-10014
2024-07-08 15:26:24 -04:00
dschom 1122852e0f
task(settings): Add event when users engages with login password
Because:
- We want to know when a user interacts with the password field

This Commit:
- Adds the login_engage event
- Fires the event when a user focuses on the password input
2024-07-08 10:02:23 -07:00
Katrina Anderson 0524f77752
fix(functional-tests): failures due to rate limiting in coupon tests
Because:

* coupon tests are failing in stage due to IP rate limiting

This commit:

* adds signin as a pre-requisite to coupon tests (since all subscription tests now require signin, the steps have been encapsulated in an automatic fixture to reduce code duplication)

Closes # FXA-10045
2024-07-04 09:32:10 -04:00
Lauren Zugai c22ad51c67
Merge pull request #17177 from mozilla/FXA-9427
feat(react): Enable react signin at 100%
2024-07-03 17:59:36 -05:00
Reino Muhl 3834930a97
Set crypto-relier as implicit dependency of fxa-settings 2024-07-03 18:10:28 -04:00
Reino Muhl efcd22ae8c
Add crypto-relier esm alias 2024-07-03 16:50:09 -04:00
Jonathan Almeida 3ac21de852
Merge pull request #17197 from mozilla/FXA-9817
feat(metrics): Add apple_login_complete backend Glean event
2024-07-03 15:03:23 -04:00
Jonathan Almeida 12878bd0f6
feat(metrics): Add apple_login_complete backend Glean event
Fixes FXA-9817.
2024-07-03 14:25:56 -04:00
Vijay Budhram 8e9a8d2f04
fix(deps): Update the webpack fxa-setting to point to correct version of crypto-relier 2024-07-03 14:13:30 -04:00
Barry Chen c754346e9c
Merge pull request #17175 from mozilla/FXA-9814-apple-reg-start-glean
feat(metrics): add glean event for apple auth from registration
2024-07-03 11:23:05 -05:00
Barry Chen 17a53c84cb
Merge pull request #17196 from mozilla/FXA-9572-why-we-ask-glean
feat(metrics): add Glean event for 'Why do we ask' link on signup
2024-07-03 11:15:15 -05:00
Valerie Pomerleau 9975c8e0df
feat(react): Enable react signin at 100%
Because:

* We want to roll out react signin to all users

This commit:

* Sets react signin routes to full prod rollout

Closes #FXA-9427
2024-07-03 11:00:26 -05:00
Lauren Zugai cd5bc161d1
Merge pull request #17195 from mozilla/FXA-10008
feat(pair): Add new state for non-Firefox desktop users at pair/unsupported
2024-07-03 10:56:30 -05:00
Barry Chen 9a9680ab1b
feat(metrics): add glean event for apple auth from registration 2024-07-03 10:54:40 -05:00
Lauren Zugai 2f507d99e6
Merge pull request #17198 from mozilla/FXA-9868
fix(sync): Send fxaCanLinkAccount in force_auth signin submit
2024-07-03 10:51:41 -05:00
Lauren Zugai 7b3a1940e6
remove console log 2024-07-03 10:50:17 -05:00
Barry Chen 36f15823a3
Merge pull request #17171 from mozilla/FXA-9978-login-backup-code-events
feat(metrics): record Glean event metrics for login backup code events.
2024-07-03 10:48:48 -05:00
Lauren Zugai e7649aa571
feat(pair): Add new state for non-Firefox desktop users at pair/unsupported
Because:
* Users on non-Firefox desktop should be shown a more helpful page

This commit:
* Creates a new state on pair/unsupported for non-Firefox, non-Android and non-iOS users to inform them they need to download Firefox to proceed
* Adds cad_redirect_desktop_view and cad_redirect_desktop_download glean events. Ran glean-generate, creating a couple other glean reg.js events

closes FXA-10008
2024-07-03 10:26:26 -05:00
Lauren Zugai 7d60ddedf2
Merge pull request #17201 from mozilla/glean-generate-content
chore(glean): Run glean-generate in content-server
2024-07-03 10:16:18 -05:00
Barry Chen 2873deefce
feat(metrics): record Glean event metrics for login backup code events. 2024-07-03 10:02:24 -05:00
Ben Bangert 5a6b3488c0
Merge pull request #17199 from mozilla/chore/update-devcontainer-for-missing-py3-deps
chore: add missing deps for glean-generate
2024-07-03 07:46:35 -07:00
Barry Chen c065170000
Merge pull request #17200 from mozilla/prettier-glean-generate
chore(Glean): run prettier after generate Glean code
2024-07-03 09:45:43 -05:00
Lauren Zugai 5cc6391855
chore(glean): Run glean-generate in content-server
Because:
* The generated files are behind the latest changes

This commit:
* Runs glean-generate in content-server
2024-07-03 09:15:51 -05:00
Reino Muhl 762cb9647d
Merge pull request #17183 from mozilla/fxa-9051-no-such-invoice
fix(admin): handle no invoice error
2024-07-03 09:51:44 -04:00
Reino Muhl 856281001e
Merge pull request #17193 from mozilla/fxa-9219-paypal-sentry-error
fix(paypal-processor): use initSentry helper
2024-07-03 09:51:28 -04:00
Barry Chen dea6371e94
chore(Glean): run prettier after generate Glean code
Because:
 - the diff looks large because the Glean generated code uses double
   quotes whereas our code base uses single quotes

This commit:
 - runs the same prettier fix that's part of the pre-commit hook
   immediately after generating the code
2024-07-03 07:28:11 -05:00
Ben Bangert b34fbc5deb
chore: add missing deps for glean-generate
Because:

* glean-generate needs venv and pip to run correctly

This commit:

* Add missing Python venv/pip dependencies.
2024-07-03 00:11:51 +00:00
Lauren Zugai 877a5aead2
fix(sync): Send fxaCanLinkAccount in force_auth signin submit
Because:
* In Backbone we ask users to confirm that they want to merge their Sync data on submission of password signin, if the flow is force_auth since they haven't answered the prompt at this point. We want to do the same for React

This commit:
* Modifies the fxaCanLinkAccount web channel message to return a promise waiting for the browser's response, and only proceeds if the user confirms

fixes FXA-9868
2024-07-02 18:19:31 -05:00
Barry Chen cd2ca56e89
feat(metrics): add Glean event for 'Why do we ask' link on signup 2024-07-02 15:49:04 -05:00
Barry Chen 20b3bb9bbe
Merge pull request #17194 from mozilla/FXA-9571-change-email-glean
feat(metrics): add Glean event for change email link during signup
2024-07-02 14:43:46 -05:00
Jonathan Almeida 6b96731d12
Merge pull request #17161 from mozilla/FXA-9570
feat(glean): Add login_diff_account_link_click event to login page
2024-07-02 15:17:22 -04:00
Barry Chen 571042e762
feat(metrics): add Glean event for change email link during signup 2024-07-02 14:14:14 -05:00
Barry Chen b37ca9d4c6
Merge pull request #17192 from mozilla/FXA-9799-settings-flow-metrics
feat(metrics): set metrics flow data via data attrs
2024-07-02 12:47:06 -05:00
Jonathan Almeida b08fc38d39
feat(glean): Add login_diff_account_link_click event to login page
Fixes FXA-9570
2024-07-02 13:32:42 -04:00
Barry Chen 0885f3fef4
feat(metrics): set metrics flow data via data attrs
Because:
 - we need to able to get metrics flow data directly in React/Settings
   without relying on query params

This commit:
 - injects a flow id and begin time into the HTML of the React page
 - sets the metrics flow data for the app in the precedence of 0) direct
   argument, 1) query params, 2) body data attrs
2024-07-02 11:58:13 -05:00
Reino Muhl fbcecdb2f2
fix(paypal-processor): use initSentry helper
Because:

- Sentry errors logged by the paypal processor did not include
  additional error information.

This commit:

- Update paypal processor script to use initSentry, which includes
  additional Sentry integrations, such as ExtraErrorData.
- Replace deprecated ExtraErrorData integration with
  Sentry.extraErrorDataIntegration()

Closes #FXA-9219
2024-07-01 18:06:01 -04:00