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

23961 Коммитов

Автор SHA1 Сообщение Дата
Ben Bangert eca85d30a8
Merge pull request #17280 from mozilla/dependabot/npm_and_yarn/aws-sdk-2.1664.0
chore(deps): bump aws-sdk from 2.1616.0 to 2.1664.0
2024-07-29 10:26:32 -07:00
Ben Bangert 1835bcfe0f
Merge pull request #17281 from mozilla/dependabot/npm_and_yarn/ts-jest-29.2.3
chore(deps-dev): bump ts-jest from 29.1.2 to 29.2.3
2024-07-29 10:26:08 -07:00
Vijay Budhram 4680f6184b
feat(delete): Add notice marketing email notice on delete account page 2024-07-29 12:42:51 -04:00
Dan Schomburg 424a7bf36b
Merge pull request #17264 from mozilla/FXA-9973
bug(content): Fix broken source maps
2024-07-29 09:25:10 -07:00
Vijay Budhram 6e474cbc08
Merge pull request #17257 from mozilla/fxa-9723
feat(metrics): Add Glean page load events when navigating
2024-07-29 12:16:42 -04:00
dependabot[bot] 56a4ea6a7a
chore(deps-dev): bump core-js from 3.36.0 to 3.37.1
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.36.0 to 3.37.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.37.1/packages/core-js)

---
updated-dependencies:
- dependency-name: core-js
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 06:39:14 +00:00
dependabot[bot] 00161972ea
chore(deps-dev): bump ts-jest from 29.1.2 to 29.2.3
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.1.2 to 29.2.3.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.1.2...v29.2.3)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 06:38:44 +00:00
dependabot[bot] 9275da91d9
chore(deps): bump aws-sdk from 2.1616.0 to 2.1664.0
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1616.0 to 2.1664.0.
- [Release notes](https://github.com/aws/aws-sdk-js/releases)
- [Commits](https://github.com/aws/aws-sdk-js/compare/v2.1616.0...v2.1664.0)

---
updated-dependencies:
- dependency-name: aws-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 06:38:18 +00:00
Reino Muhl b0d25576db
Merge pull request #17247 from mozilla/fxa-9797-cleanup-contentful-band-aids
feat(cms): cleanup contentful cms band aids
2024-07-26 17:13:04 -04:00
Valerie Pomerleau 9ecd95489e
fix(fxa-dev-launcher): Prevent fxa browser prefs from getting reset on sync signout
Because:

* FxA environment prefs were reset in dev-launcher on sign out from sync
* This caused sync to revert to FxA prod values (instead of local or stage as defined on startup with fxa-dev-launcher)

This commit:

* Add identity.fxaccounts.autoconfig.uri to the fxa-dev-launcher startup profile

Closes #FXA-10195
2024-07-26 13:14:15 -07:00
Lauren Zugai 1a498e1bc3
Merge pull request #17214 from mozilla/canlinkaccount-fix
fix(sync): Adjust conditions for sending can_link_account on signin
2024-07-26 14:43:55 -05:00
Dan Schomburg ad5080721a
Merge pull request #17273 from mozilla/FXA-10171
bug(settings): Emit login enage metric only once
2024-07-26 12:09:22 -07:00
dschom fd5cd891e9
bug(settings): Emit login enage metric only once
Because:
- The login engage metric was being emitted too many times

This Commit:
- Ensures the metric can only be emitted once
2024-07-26 11:13:23 -07:00
Barry Chen b08955ba02
Merge pull request #17258 from mozilla/fxa-10096-content-server-metrics
feat(metrics): populate metric values for content server backend Glean
2024-07-26 13:06:17 -05:00
Lauren Zugai d2300052cc
fix(sync): Adjust conditions for sending can_link_account on signin
Because:
* In the 'account disconnected' Sync state, users are now taken to /signin instead of /force_auth, so our logic needed to be updated

This commit:
* Adjusts the logic for when we send the message. Only send if the user didn't first hit content-server (we will know based on a temporary query param until email-first is converted to React). The browser decides when to automatically respond with ok: true or prompt the user
* Displays an error message when the user cancels

fixes FXA-10176
2024-07-26 12:46:03 -05:00
Reino Muhl c428a61a49
feat(cms): cleanup contentful cms band aids
Because:

- Some temporary band aids were added to support out of date Contentful
  data that could no longer be changed, due to the Contentful instance
  being changed to read-only.

This commit:

- Removes temporary band aids now that support for Strapi has been added

Closes #FXA-9797
2024-07-26 12:37:49 -04:00
Vijay Budhram 3d9a80dee2
Merge pull request #17251 from mozilla/fxa-10056
fix(pairing): Give users option to login with email if pair failed
2024-07-26 10:27:23 -04:00
Barry Chen 13a4b2d8ce
Merge pull request #17266 from mozilla/auth-server-glean-options
fix(metrics): enclose the event function options
2024-07-26 09:21:59 -05:00
dependabot[bot] 5f79d96cc0
chore(deps): bump @googlemaps/google-maps-services-js
Bumps [@googlemaps/google-maps-services-js](https://github.com/googlemaps/google-maps-services-js) from 3.3.16 to 3.4.0.
- [Release notes](https://github.com/googlemaps/google-maps-services-js/releases)
- [Changelog](https://github.com/googlemaps/google-maps-services-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googlemaps/google-maps-services-js/compare/v3.3.16...v3.4.0)

---
updated-dependencies:
- dependency-name: "@googlemaps/google-maps-services-js"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-26 07:16:27 +00:00
Barry Chen 352e1b7c2b
feat(metrics): populate metric values for content server backend Glean
Because:
 - the content server backend Glean pings did not have actual values for
   most of their metrics

This commit:
 - populates the "common" metrics in the ping
   - the approach is currently based on the /metrics-flow request; we
     can evolve it as necessary as we support more events
 - combines the node-uap based useragent lib in auth server into the one
   in fxa-shared, since the content server backend need the "device
   type"
2024-07-25 20:22:25 -05:00
Barry Chen 4e0bbc6c19
fix(metrics): enclose the event function options
Because:
 - the options for an event's function was not enclosed with the
   returned event function in the auth server, leading to the optional
   callback not being called

This commit:
 - ensure the options for the event function is enclosed with the
   created event function
2024-07-25 20:03:55 -05:00
dependabot[bot] 0c36225cb4
chore(deps): bump postcss in the npm_and_yarn group
Bumps the npm_and_yarn group with 1 update: [postcss](https://github.com/postcss/postcss).


Updates `postcss` from 8.4.39 to 8.4.40
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.39...8.4.40)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 23:56:56 +00:00
dschom f5dcf727e1
bug(content): Fix broken source maps
Because:
- Sourcemaps weren't showing up on stage, yet were being deployed.
- The files in `fxa-settings/build` were effectively being webpacked twice.
- The ending comment, `//# sourceMapURL=` was being stripped off when webpacked the second time.

This Commit:
- Just copies over the files from `settings/build` without sending them through webpack.
2024-07-25 16:47:15 -07:00
dependabot[bot] 87f1d7e24e
chore(deps): bump the npm_and_yarn group with 8 updates
Bumps the npm_and_yarn group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [graphql](https://github.com/graphql/graphql-js) | `16.8.0` | `16.9.0` |
| [jose](https://github.com/panva/jose) | `5.3.0` | `5.4.0` |
| [mysql2](https://github.com/sidorares/node-mysql2) | `3.9.7` | `3.9.8` |
| [semver](https://github.com/npm/node-semver) | `7.6.2` | `7.6.3` |
| [postcss](https://github.com/postcss/postcss) | `8.4.38` | `8.4.39` |
| [ws](https://github.com/websockets/ws) | `8.17.0` | `8.17.1` |
| [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) | `7.2.1` | `7.3.0` |
| [@grpc/grpc-js](https://github.com/grpc/grpc-node) | `1.9.12` | `1.9.15` |


Updates `graphql` from 16.8.0 to 16.9.0
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.8.0...v16.9.0)

Updates `jose` from 5.3.0 to 5.4.0
- [Release notes](https://github.com/panva/jose/releases)
- [Changelog](https://github.com/panva/jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/panva/jose/compare/v5.3.0...v5.4.0)

Updates `mysql2` from 3.9.7 to 3.9.8
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.7...v3.9.8)

Updates `semver` from 7.6.2 to 7.6.3
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.6.2...v7.6.3)

Updates `postcss` from 8.4.38 to 8.4.39
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.38...8.4.39)

Updates `ws` from 8.17.0 to 8.17.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.17.0...8.17.1)

Updates `webpack-dev-middleware` from 7.2.1 to 7.3.0
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v7.2.1...v7.3.0)

Updates `@grpc/grpc-js` from 1.9.12 to 1.9.15
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@1.9.12...@grpc/grpc-js@1.9.15)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: jose
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: mysql2
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: semver
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: postcss
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: ws
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: webpack-dev-middleware
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: "@grpc/grpc-js"
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 22:51:33 +00:00
Ben Bangert 588120b212
Merge pull request #17262 from mozilla/chore/dependency/apollos-to-3.11.1-and-4.10.5
chore: update apollo/client and server to 3.11.1 and 4.10.5
2024-07-25 15:10:23 -07:00
Barry Chen 4b3345d702
Merge pull request #17259 from mozilla/auth-server-glean-event-method-scope
fix(metrics): resolve the event metric method at server start
2024-07-25 16:39:03 -05:00
Ben Bangert 97b45f6ae3
chore: update apollo/client and server to 3.11.1 and 4.10.5 2024-07-25 21:20:25 +00:00
dschom 12566d9fbe
task(event-broker): Update profile-change event payload 2024-07-25 14:00:43 -07:00
Valerie Pomerleau cabf30a6ff
Merge pull request #17242 from mozilla/revert-17235-FXA-10102
Revert "chore(functional-tests): add fixme to verified account with cached login, no email confirmation required"
2024-07-25 13:37:48 -07:00
Vijay Budhram f9b1c29dfb
fix(image): Fix issue with Pocket logo in cache signin page 2024-07-25 15:04:52 -04:00
Vijay Budhram b643d20723
feat(metrics): Add Glean page load events when navigating 2024-07-25 13:04:31 -04:00
Barry Chen e22f7db5cc
fix(metrics): resolve the event metric method at server start
Because:
 - for the auth server backend Glean events, we resolve the event metric
   method based on the string event name
   - but we currently do that in the created function for the event

This commit:
 - resolves the method during the initial function creation for the
   event functions, e.g. during server startup
2024-07-25 11:53:35 -05:00
Lauren Zugai 7c643ce1ff
fix(sync): Check and set sessionToken from browser only when provided
Because:
* There's a case where the session token given back from requestSignedInUser is undefined

This commit:
* Makes sure the sessionToken is defined before checking its validity and using it

fixes FXA-10156
2024-07-24 10:24:17 -05:00
Vijay Budhram 091d64ffb6
fix(pairing): Give users option to login with email if pair failed 2024-07-24 10:51:15 -04:00
Ben Bangert 01987a515a
Merge pull request #17245 from mozilla/chore/update-nx-19.5.1
chore: update nx to 19.5.1 and typescript to 5.5.3
2024-07-23 16:06:15 -07:00
Ben Bangert d39fca36e5
chore: update nx to 19.5.1 and typescript to 5.5.3
Because:

* nx 19.5.1 has been released
* typescript 5.5.3 has been released

This commit:

* updates nx to 19.5.1
* updates typescript to 5.5.3
2024-07-23 22:37:41 +00:00
Valerie Pomerleau 77621304dd
Revert "chore(functional-tests): add fixme to verified account with cached login, no email confirmation required"
Re-enable test and add possible fix for navigation
2024-07-23 10:25:47 -07:00
Valerie Pomerleau 38399858b5
fix(settings): Handle multiple signins to settings
Because:

* If multiple accounts were signed in on different tabs, operations could be applied to the wrong account
* Current account uid was not correctly updating to reflect the account in use in the focused tab

This commit:

* On tab focus, check if the account uid matches the current account uid. If not, update current account uid.
* Only check for destroyed session after updating the current account uid to ensure the correct session is signed out on tab focus.

Closes #FXA-9984
2024-07-23 10:16:56 -07:00
Valerie Pomerleau c39506ef7a
Merge pull request #17248 from mozilla/FXA-10085
fix(storybook): Fix fxa settings storybooks
2024-07-23 09:53:01 -07:00
Barry Chen 945b84046e
Merge pull request #17231 from mozilla/fxa-10095-content-server-backend-glean
feat(metrics): integrate Glean into content server backend
2024-07-23 10:57:15 -05:00
Valerie Pomerleau 09cf015125
fix signin storybook 2024-07-22 15:06:25 -07:00
Valerie Pomerleau 84bd7bb65d
remove unused and broken ThirdPartyAuthCallback storybook 2024-07-22 14:27:15 -07:00
Valerie Pomerleau a67469f15e
fix signup storybook 2024-07-22 14:27:15 -07:00
Valerie Pomerleau 5820078cf0
fix signinRecoveryCode storybook 2024-07-22 14:27:14 -07:00
Valerie Pomerleau 27c4cf3a08
fix connected services storybook 2024-07-22 14:27:14 -07:00
Valerie Pomerleau f78ab6822d
fix brand messaging storybook 2024-07-22 14:27:14 -07:00
Valerie Pomerleau dacbe443c8
fix(storybook): Fix broken settings storybooks
Because:

* Some stories are broken and not loading

This commit:

* Update image imports for image components
* Add React import where missing
* Move use of useSensitiveDataClient hook to container level

Closes #FXA-10085
2024-07-22 14:27:14 -07:00
dschom c05d73f150
bug(settings): Fix android manage account settings glitch
Because:
- If you signout and the browser isn't notified, users can end up in a wierd state when accessing settings

This Commit:
- Asks firefox for the current user
- Checks the current session token
- If the current session is token, uses it thereby letting the user access settings
- If the current session is not valid, a message is displayed saying to signout from sync.
2024-07-22 13:37:59 -07:00
Barry Chen fa1c6b63a6
feat(metrics): integrate Glean into content server backend
Because:
 - the content server backend needs Glean to record some RP related
   events at a minimum

This commit
 - adds, configures, and initializes Glean for the content server
   backend
2024-07-22 15:01:08 -05:00
Barry Chen b58a560cab
Merge pull request #17238 from mozilla/bye-switch-auth
chore(metrics): remove the switch to call event metrics in auth-server
2024-07-18 15:06:32 -05:00
Barry Chen a28d6a24c8
chore(metrics): remove the switch to call event metrics in auth-server
Because:
 - it's unwieldy

This commit:
 - calls the metric event record method based on the string event name
2024-07-18 12:41:53 -05:00
Vijay Budhram 37a3d583d4
fix(sync): Don't await the `firefox.fxaLogin` 2024-07-18 13:32:26 -04:00
Dan Schomburg d86419a683
Merge pull request #17230 from mozilla/fxa-10074
task(settings): Stop using window.addEventListener for web channel messages
2024-07-17 08:52:50 -07:00
Katrina Anderson 2be35ab5b2
Merge pull request #17235 from mozilla/FXA-10102
chore(functional-tests): add fixme to verified account with cached login, no email confirmation required
2024-07-17 11:44:21 -04:00
Barry Chen 42d425cc2e
Merge pull request #17218 from mozilla/deng-3273
fix(metrics): DENG-3273 Update event names for consistency between `accounts-events` and `events` pings
2024-07-17 10:38:24 -05:00
Katrina Anderson c637ae06c8
chore(functional-tests): add fixme to verified account with cached login, no email confirmation required
Because:

* We want to minimize disruption to CI workflows

This commit:

* Adds a fixme annotation to a failing test

Relates to #FXA-10102
2024-07-17 11:13:28 -04:00
Valerie Pomerleau a9c58b801a
Merge pull request #17232 from mozilla/FXA-9816-9818
feat(glean): Add backend google/apple reg complete events
2024-07-17 08:08:37 -07:00
Arkadiusz Komarzewski 6957826869
fix(metrics): DENG-3273 Update event names for consistency between `accounts-events` and `events` pings 2024-07-17 09:24:40 -05:00
dschom c9b91ea4ac
task(settings): Stop using window.addEventListener for web channel messages
Because:
- We saw positive results from doing the same thing for the CanLinkAcocunt web channel message

This Commit:
- Updates the Login webchannel message
2024-07-16 17:19:23 -07:00
Valerie Pomerleau 675b75fddd
feat(glean): Add frontend glean events for settings profile CTAs
Because:

* We want to track metrics for clicks to add/change display name and add a secondary email

This commit:

* Adds and implements glean events account_pref_display_name_submit and account_pref_secondary_email_submit

Closes #FXA-10041, FXA-10042
2024-07-16 14:47:52 -07:00
Lauren Zugai ce156275fa
feat(glean): Add unlink account submit and confirm submit events
Because:
* We want to track metrics events on Unlink click from settings, and Unlink confirm, with 'create_password' reason if the user needed to first set a password

This commit:
* Adds events account_pref_google_unlink_submit, account_pref_google_unlink_submit_confirm, account_pref_apple_unlink_submit, account_pref_apple_unlink_submit_confirm
* Includes 'reason' in events if user does not have a password set
* Updates some tests and one warning

closes FXA-10050, closes FXA-10051
2024-07-16 15:57:27 -05:00
Ankita Shrivastava 9d75a0d67a
Merge pull request #17210 from mozilla/fix-10028
fix(functional): integrate html reporting for smoke tests
2024-07-16 16:07:42 -04:00
Ankita Shrivastava 79d1cc4ca8
chore(functional): integrate html reporting with smoke tests 2024-07-16 15:19:45 -04:00
Valerie Pomerleau c731cf0575
feat(glean): Add backend google/apple reg complete events
Because:

* We want to track successful registrations with google/apple auth

This commit:

* Adds backend glean events for third_party_auth_google_reg_complete and third_party_auth_apple_reg_complete
* Add relevant tests
* Standardize naming of other backend third party auth events

Closes #FXA-9816, FXA-9818
2024-07-16 11:52:45 -07:00
Vijay Budhram dc26cb27c0
feat(metrics): add "Add 2FA" button clean metrics 2024-07-16 13:34:38 -04:00
Lauren Zugai 86a980765e
Merge pull request #17228 from mozilla/revert-17208-FXA-10029
Revert "bug(settings): Skip checkOauthData for sync"
2024-07-16 11:11:54 -05:00
Lauren Zugai abfde6fe5e
Merge pull request #17227 from mozilla/FXA-9983
fix(settings): Remove obsolete 'send download link' link
2024-07-16 10:15:41 -05:00
Valerie Pomerleau 84b17ce669
Merge pull request #17221 from mozilla/FXA-10037
feat(glean): Add account_delete_complete backend glean event
2024-07-15 16:37:15 -07:00
Julian Poyourow 24796a70c3
Merge pull request #17222 from mozilla/FXA-9795
feat(shared-cms): switch to Strapi
2024-07-15 13:57:46 -07:00
julianpoyourow ba3a4399f8
feat(shared-cms): switch to Strapi 2024-07-15 20:08:33 +00:00
Lauren Zugai 6acacc2d3f
Revert "bug(settings): Skip checkOauthData for sync" 2024-07-15 11:27:50 -05:00
Lauren Zugai 05c165ac05
fix(settings): Remove obsolete 'send download link' link
Because:
* This link no longer allows users to get a text via SMS, so we're removing it

This commit:
* Removes the link and updates copy

fixes FXA-9983
2024-07-15 11:20:28 -05:00
Vijay Budhram 705c8e3ac1
feat(metrics): add "Add 2FA" button clean metrics 2024-07-15 10:35:29 -04:00
Valerie Pomerleau 71971493c5
feat(glean): Add frontend account deletion metrics
Because:

* We want metrics about account deletions

This commit:

* Add metrics for settings page view (account_pref_view) and account deletion (frontend) funnel (delete_account_settings_submit, delete_account_view, delete_account_engage, delete_account_submit, delete_account_password_view, delete_account_password_submit)
* Implement metrics in fxa-settings and include metrics tests

Closes #FXA-10031, FXA-10032, FXA-10033, FXA-10034, FXA-10035, FXA-10036
2024-07-12 14:28:02 -07:00
Arkadiusz Komarzewski 675ee62af6
fix(metrics): DENG-3273 Send cad_ events in events ping 2024-07-12 13:43:15 +02:00
Valerie Pomerleau 0490242fa2
feat(glean): Add account_delete_complete backend glean event
Because:

* We want to add metrics for successful deletions

This commit:

* Add backend glean event and associated tests

Closes #FXA-10037
2024-07-11 15:48:02 -07:00
dschom d8067acd52
Bug(settings): Fix for 'stuck' sign in button p2
Because:
- When signing into sync on Android, the signin button can become 'stuck'
- Yesterday we uncovered a race condition that seemed to help, but didn't totally fix the problem.
- The event handler in fxaCanLinkAccount was too general and could pick up events that were not intended for it.

This Commit:
- Uses `this.addEventListener(FirefoxCommand.CanLinkAccount` instead of `window.addEventListener('WebChannelMessageToContent'...`
- Doing so ensures that only responses for the CanLinkAccount command are handled.

Note, we should avoid using `window.addEventListener('WebChannelMessageToContent'`
2024-07-11 13:35:18 -07:00
Valerie Pomerleau 3dcf99ed7d
Merge pull request #17206 from mozilla/FXA-10044
fix(settings): Only show custom avatar for cached sign in
2024-07-11 09:20:57 -07:00
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
Valerie Pomerleau 4c0e2f3057
fix(settings): Only show custom avatar for cached sign in
Because:

* Avatar for a different cached account was shown after clicking on "Use a different account"
* We want to match parity with backbone where avatar is only shown for cached sign in

This commit:

* Show the default avatar if there is no session token
* Update unit tests to test for custom avatar shown for cached sign in with session token, and default avatar without session token, including tests for both scenarios with passwordless accounts

Closes #FXA-10044
2024-07-10 17:15:54 -07: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
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 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 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 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
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
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
Barry Chen 81718a0a6e
feat(metrics): add "deeplink" 3rd party auth Glean events 2024-07-01 15:41:02 -05:00
Barry Chen 9d3ebf8392
Merge pull request #17180 from mozilla/fxa-9990-thirdparty-auth-set-password
fix(metrics): s/setPasswordThirdPartyAuth/thirdPartyAuthSetPassword/ for event metrics
2024-07-01 15:29:44 -05:00
dschom 24471d3b8c
task(settings): Add marketing section engagement glean event
Because:
- We want an event to know if users selected options in the marketing section

This Commit:
- Creates a reg_marketing_engage glean event
- Adds it to the signup page
- Adds labels for standard.marketing that follow the pattern set forth by sync.ctws
2024-07-01 11:24:02 -05:00
Barry Chen 2fb554093b
Merge pull request #17190 from mozilla/FXA-9421
task(settings): Add reg_age_invalid glean metric
2024-07-01 11:10:19 -05:00
Barry Chen 87f952554e
Merge pull request #17186 from mozilla/FXA-9825
task(auth): Add third_party_accounts_set_password_complete metric
2024-07-01 10:56:20 -05:00
dschom 2e5c786cf8
task(settings): Add reg_age_invalid glean metric
Because:
- We want a metric recorded when a user enters an invalid age

This Commit:
- Creates the reg_age_invalid glean metric
- Fires the event on the cannot_create_account page
2024-06-28 16:58:28 -07:00
Lauren Zugai 0441d0da0e
Merge pull request #17185 from mozilla/FXA-10001
fix(functional-tests): Await confirmation of totp setup in tests
2024-06-28 17:26:21 -05:00
Lauren Zugai 586b56303c
Merge pull request #17187 from mozilla/FXA-9919-v2
fix(sync): Send fxaLogout message on settings sign out if sync
2024-06-28 17:17:48 -05:00
Lisa Chan 66d28d6e16
refactor(libs): Rename Contentful library to generic name 2024-06-28 17:00:27 -04:00
Lauren Zugai 9cce52b93b
fix(sync): Send fxaLogout message on settings sign out if sync
Because:
* Users that sign out from within account settings destroy their session token but we don't tell the browser it's become invalid. Users trying to access settings again in mobile run into a case where we redirect them to oauth signin, causing problems with at least 2FA login in this scenario

This commit:
* Sends the integration down as a prop into DropDownAvatarMenu so we can conditionally send the webchannel message if the flow is Sync
* Adds unit tests, updates all stories/tests/mocks

closes FXA-9919
2024-06-28 16:00:26 -05:00
Lauren Zugai a996f42c54
chore(tests): Add fixme to flaky signup oauth webchannel test
Because:
* This test is not reliably passing

This commit:
* Adds a fixme to this test temporarily
2024-06-28 15:20:47 -05:00
dschom 6d1deb987c
task(auth): Add third_party_accounts_set_password_complete metric
Becuase:
- When a user sets their password after signing in with a third party, we want to emit a metirc.

This Commit:
- Adds the third_party_accounts_set_password_complete metric.
2024-06-27 14:41:00 -07:00
Jonathan Almeida 1432a39b69
Merge pull request #17178 from mozilla/FXA-9809
fix(metrics): Update viewName for sign-in metrics
2024-06-27 17:18:20 -04:00
Valerie Pomerleau 7a6772a0f5
Merge pull request #17176 from mozilla/FXA-9975
fix(content): Email from subscriptions redirect not passed to react
2024-06-27 14:08:50 -07:00
Valerie Pomerleau 5e21bba7a2
fix(functional-tests): Await confirmation of totp setup in tests
Because:

* We were not await confirmation that totp was enabled before signing out of settings in tests
* This could cause a race condition where totp setup was incomplete before sign out, causing flakiness in tests

This commit:

* Add assertion for totp enabled after forms are filled out

Closes #FXA-10001
2024-06-27 13:44:56 -07:00
Reino Muhl 77ee1620e3
Merge pull request #17133 from mozilla/tsjest-to-swc-swap
feat(libs): convert libs/* projects to use esbuild and swc/jest
2024-06-27 16:09:16 -04:00
Reino Muhl f47d120d71
feat(libs): convert libs/* to esbuild and swc/jest
Because:

- ts-jest is consuming too much memory during unit test execution

This commit:

- Replace ts-jest with @swc/jest, which has better memory utilization
- Replace Nx TSC build executor with Nx esbuild build executor, for better performance.
- Reduce size of unit-test job instance size from large back to medium+

Closes #FXA-9879
2024-06-27 15:28:55 -04:00
Valerie Pomerleau b1deae2ab3
Merge pull request #17181 from mozilla/FXA-9991
fix(functional-tests): Improve specificity of settings heading locator
2024-06-27 11:16:43 -07:00
Katrina Anderson 9ad24f91fc
Merge pull request #17173 from mozilla/FXA-9689
fix(functional-tests): subscription coupon tests failing on stage
2024-06-27 14:11:56 -04:00
Reino Muhl 2c39b5d11e
Merge pull request #17157 from mozilla/fxa-9886-paypal-button-error
fix(payments): hide paypal on paypal init failure
2024-06-27 14:05:08 -04:00
Reino Muhl 2419c8eb9c
Hide PayPal button until init success 2024-06-27 13:07:33 -04:00
Reino Muhl 6c358bbd06
fix(payments): hide paypal on paypal init failure
Because:

- When the paypal button fails to load during initialization, for
  example when there is a PayPal sandbox outage, the subscription
  checkout page loads into an error, instead of hiding the PayPal
  button.
- This has resulted in a confusing user experience, as well as causing
  unrelated functional test failures due to the error page being shown.

This commit:

- If the PayPal button does not successfully finish it's onInit
  function, then hide the PayPal button instead of showing an error
  message.
- If any other PayPal error occurs, continue showing the error page.

Closes #FXA-9886
2024-06-27 13:07:33 -04:00
Valerie Pomerleau 758c460dc2
fix(functional-tests): settingsHeading locator is not specific enough
Because:

* The locator for the settings heading, intended to confirm that the Settings page is viewed, is not specific enough and matching headings on other pages.
* This is causing false positives on functional-tests.

This commit:

* Update the locator.

Closes #FXA-9991
2024-06-27 10:00:29 -07:00
Reino Muhl cf16e08fe9
fix(admin): handle no invoice error
Because:

- Admin panel rejects with an error if it can't find a Stripe invoice.
- Stripe typically does not allow invoice deletion, and therefore this
  error is usually only seen on Stage after Stripe cleans up test data.

This commit:

- Catches the error on invoice failure, and if its due to missing
  invoice, log the error, and assume customer subscription data is stale,
  and simply return void.

Closes #FXA-9051
2024-06-27 12:54:56 -04:00
Barry Chen 5e76960071
fix(metrics): s/setPasswordThirdPartyAuth/thirdPartyAuthSetPassword/ for event metrics 2024-06-27 11:15:36 -05:00
Jonathan Almeida ee6c355952
fix(metrics): Update viewName for sign-in metrics 2024-06-26 21:56:50 -04:00
dschom 8b428d52d5
task(content, settings): Add more cad glean events 2024-06-26 15:26:16 -07:00
Katrina Anderson 7e11f5a3ca
fix(functional-tests): subscription coupon tests failing on stage
Because:

* on the stage environment applying coupons fails with the error message 'An error occured processing the code. Please try again.' indicating that we've hit a rate limit. Since adding fixmes improvements restricting the number of retries and updating tests to use auto-awaiting asserts have been implemented.

This commit:

* removes the fixmes to see if rate limiting is still an issue

Closes #FXA-9689
2024-06-26 16:57:43 -04:00
Valerie Pomerleau 6bb888420a
fix(content): Email from subscriptions redirect not passed to react
Because:

* Email address is lost when accessing the “here” link from “Automatic renewal notice” email with the force experiment parameter added

This commit:

* Set the email on emailFromIndex instead of email to ensure it is passed to React force_auth/signin

Closes #FXA-9975
2024-06-26 10:32:21 -07:00
Valerie Pomerleau f16bad2cc4
Merge pull request #17165 from mozilla/FXA-9878
fix(fxa-settings): Ensure confirmation emails are sent for cached signin
2024-06-26 09:02:53 -07:00
Barry Chen de544bce02
Merge pull request #17164 from mozilla/FXA-9974
fix(metrics): record Glean event metrics for some 3rd party auth events
2024-06-26 07:38:54 -05:00
Valerie Pomerleau c5a15749a8
Merge pull request #17160 from mozilla/FXA-9911
fix(settings): ConfirmResetPassword image cut off on small screens
2024-06-25 17:10:03 -07:00
Valerie Pomerleau 1265749ff9
Merge pull request #17168 from mozilla/FXA-9931
fix(functional-tests): Fix oauth signin token code tests
2024-06-25 16:49:02 -07:00
Valerie Pomerleau 7bcc45cefb
fix(functional-tests): Fix oauth signin token code tests
Because:

* Oauth signin token code tests were failing on the step to fill the input

This commit:

* Add a more specific locator for the input on the signin token code page
* Split the test into 3 tests for better compartimentalizarion: valid code, invalid code and resend code
* Remove fixme annotation

Closes #FXA-9931
2024-06-25 11:44:28 -07:00
Katrina Anderson 99267c0751
fix(functional-tests): smoke test failures on train 283
Because:

* Tests are no longer flaking or failing

This commit:

* re-enables them

Closes #FXA-9518
2024-06-25 13:33:07 -04:00
Katrina Anderson 632c038af9
Merge pull request #17167 from mozilla/FXA-9306
fix(functional-tests):  remove fixmes from webchannel tests
2024-06-25 13:07:49 -04:00
Katrina Anderson f066ce41d4
fix(functional-tests): remove fixmes from webchannel tests
Because:

* many updates have been made to improve isolation since March and the tests no longer exhibit flake locally

This commit:

* removes the fixme annotation from:
    * react-conversion/oauthSignup.spec.ts:96:9 › severity-1 #smoke › signup react › signup oauth webchannel - sync mobile or FF desktop 123+
    * react-conversion/signup.spec.ts:53:9 › severity-1 #smoke › signup react › signup sync desktop v3, verify account
* removes waitForRoot from SignupPage
* removes CWTSEngineOpenTabs from LoginPage

Closes #FXA-9306
2024-06-25 09:11:41 -04:00
Katrina Anderson cb5e7eb774
fix(functional-tests): resubscribe successfully with the same coupon after canceling for stripe
Because:

* the test fails due to the incorrect comparison of the total with the resubscriptionPrice

This commit:

* fixes the test by comparing resubscriptionPrices

Closes #FXA-9912
2024-06-25 08:03:51 -04:00
Valerie Pomerleau 120d7f6dca
Merge pull request #17156 from mozilla/FXA-9932
fix(functional-tests): Await oauth prompt none error
2024-06-24 17:09:17 -07:00
Valerie Pomerleau 47e50cc985
fix(fxa-settings): Ensure confirmation emails are sent for cached signin
Because:

* Confirmation code emails (either for unverified session or unverified account) were not sent out during cached signin with React (but clicking "Email new code" worked
* We want to ensure that an email is immediately sent out
* We want to match parity with Backbone

This commit:

* Send out the email during cached signin if the account or session are unverified
* Update the cached signin functional test
* Add a new functional test for unverified signin

Closes #FXA-9878
2024-06-24 16:56:58 -07:00
Barry Chen 4d9db41fe9
fix(metrics): record Glean event metrics for some 3rd party auth events 2024-06-24 17:00:35 -05:00
Barry Chen 3c7d07cf42
Merge pull request #17162 from mozilla/fxa-9815-google-auth-complete
feat(metrics): add google_login_complete backend Glean event
2024-06-24 14:55:25 -05:00
Barry Chen 0097d964fc
Merge pull request #17158 from mozilla/fxa-9813-google-auth-reg
feat(metrics): add glean event for google auth from registration
2024-06-24 14:48:17 -05:00
Barry Chen 31bf475907
feat(metrics): add google_login_complete backend Glean event 2024-06-24 14:12:36 -05:00
Barry Chen 32970470c3
feat(metrics): add glean event for google auth from registration 2024-06-24 14:02:55 -05:00
Valerie Pomerleau 27104deb47
fix(settings): ConfirmResetPassword image cut off on small screens
Because:

* We want the entire image to be visible

This commit:

* Update styling of the image

Closes #FXA-9911
2024-06-21 13:38:44 -07:00
Valerie Pomerleau ad10eb22b7
feat(glean): Connect another device glean front-end metrics
Because:

* We are adding new glean events for connect another device flow

This commit:

* Adds cad_view, cad_submit, cad_startbrowsing_submit, cad_firefox_choice_notnow_submit
* Fix a react error spotted during development (React keys must be passed directly to JSX without using spread)

Closes #FXA-9600, FXA-9601, FXA-9602, FXA-9785
2024-06-21 12:50:22 -07:00
Vijay Budhram a435d98616
feat(metrics): Add Glean metrics for "set password" screen for third party auth 2024-06-21 13:30:13 -04:00
Vijay Budhram 25e15d2de2
Merge pull request #17151 from mozilla/fxa-9810
fix(metrics): Add Glean metrics for third party auth start
2024-06-21 13:13:03 -04:00
Valerie Pomerleau 7a428e31a5
fix(functional-tests): Await oauth prompt none error
Because:

* Error message was not awaited properly causing tests to error

This commit:

* Await error message without using class selector

Closes #FXA-9932
2024-06-21 10:06:07 -07:00
Lisa Chan 93c3d6c209
Merge pull request #17138 from mozilla/FXA-9457
feat(payments-server): Show coupon name in in Subscription Management
2024-06-21 12:34:16 -04:00
Vijay Budhram da90cdf199
fix(metrics): Add Glean metrics for third party auth start 2024-06-21 12:07:54 -04:00
Lisa Chan c467ce4a4f
feat(payments-server): Show coupon name in in Subscription Management 2024-06-21 09:42:29 -04:00
Valerie Pomerleau dab0ab6823
fix(functional-tests): Mark Oauth SigninTokenCode tests with fixme
Because:

* This test was failing on the latest tag

This commit:

* Marks test as fixme to not block the tag

Closes #
2024-06-20 15:20:53 -07:00
Lauren Zugai b1d6f78246
Merge pull request #17152 from mozilla/FXA-9916
fix(inline-totp): Display totp code for manual entry
2024-06-20 16:35:10 -05:00
Valerie Pomerleau 2794232b22
use syncBrowswerPages 2024-06-20 14:02:13 -07:00
Lauren Zugai d643724f6f
fix(inline-totp): Display totp code for manual entry
Because:
* We were not properly displaying this code on the inline TOTP page

This commit:
* Creates a new component to share with where we display this code inside Settings, and uses it in both locations
* Adds new component to Storybook, updates test

fixes FXA-9916
2024-06-20 15:50:50 -05:00
Ben Bangert 2cb0f284d0
Merge pull request #17141 from mozilla/chore/update-nx-to-19.3
chore: update nx to 19.3
2024-06-20 11:19:38 -07:00
Ben Bangert 39efc8ddf4
chore: update nx to 19.3
Because:

* We want to use the latest version of Nx.

This commit:

* Updates Nx to 19.3.
2024-06-20 17:34:39 +00:00
Valerie Pomerleau b24bae28ec
mark tests with possible isolation issues as fixme 2024-06-20 08:40:54 -07:00
Valerie Pomerleau 00a90c7494
fix(functional-tests): fix test failures on train 287.1 tag
Because:

* Some functional tests were failing for the tag
* Some failure traces missing on CI

This commit:

* Increase timeout for assertions
* Update trace config to always retain trace on failure

Closes #FXA-9909
2024-06-19 15:12:50 -07:00
Valerie Pomerleau 8c8782ff8f
revert react signin full prod flag 2024-06-19 08:58:19 -07:00
Jonathan Almeida 75439904d0
Merge pull request #17137 from mozilla/FXA-9809
fix(metrics): Add Google and Apple signin telemetry
2024-06-18 15:07:22 -04:00
Lauren Zugai 52d2b1bc5e
Merge pull request #17144 from mozilla/FXA-9870
fix(fxa-settings): Enable sync after password reset
2024-06-18 13:55:14 -05:00
Jonathan Almeida d9435da90f
Merge pull request #17076 from mozilla/FXA-9788
task(content): Add cirrus integration to Backbone
2024-06-18 14:52:26 -04:00
Jonathan Almeida 98d290768f
fix(metrics): Add Google and Apple signin metrics
Fixes FXA-9809, fixes FXA-9808.
2024-06-18 14:51:52 -04:00
Dan Schomburg 20162158c8
Merge pull request #17143 from mozilla/FXA-9760
bug(settings): Force multiple tabs to logout of settings.
2024-06-18 11:35:52 -07:00
Valerie Pomerleau 4432ff57cf
fix(fxa-settings): Enable sync after password reset
Because:

* Sync was disabled after resetting password during a sync sign in

This commit:

* Add services to the FxaLoginSignedInUserRequest webchannel message used by reset password

Closes #FXA-9870
2024-06-18 11:26:35 -07:00
Dan Schomburg 13e635e0d7
Merge pull request #17136 from mozilla/FXA-9848 2024-06-18 11:25:27 -07:00
Valerie Pomerleau ec7045a662
fix(functional-test): Functional tests failing on main
Because:

* changeEmailBlocked tests were failing when run on CI

This commit:

* Add assertions to make sure correct state is awaited

Closes #
2024-06-18 10:24:26 -07:00
Jonathan Almeida 1862dd6ec7
task(content): Add cirrus integration to Backbone
We fetch the experiments as a passthrough between the app and server
so we don't have to expose another service.

In this patch, we've also added the experiments to the sign-in page
context.

Co-authored-by: dschom <dschomburg@mozilla.com>
2024-06-18 09:55:34 -07:00
dschom 0e42b8367d
bug(settings): Fix unnecessary bounce to signup page
Because:
- When 2FA is required, and user did not have 2FA enabled yet, they would get bounced to the signup page

This Commit:
- Allows isSessionVerified to settle before redirecting
- Allows totpStatus to settle before redirecting
- Puts redirect logic in separate useEffect to consolidate redirect logic
- Removes that catch block that was using an undefined error state to control user flow
- Cleans up tests:
  - Made mocks accessible
  - Made sure implementations were defined in setMocks
  - Use mockReturnValue where appropriate
  - Make sure waitFor is used as needed

fixes: FXA-9848
2024-06-18 09:53:55 -07:00
dschom 09ca5b8e75
bug(settings): Force multiple tabs to logout of settings.
Because:
- When two tabs are open, logging out of one tab, would not impact the second tab
- Some level interaction would still be possible in the second tab.

This Commit:
- Makes sure that after logging out of one tab, another active tab will also log out

Fixes: FXA-970 by addressing the UX issue. See ticket for more discussion about API level restrictions.
2024-06-18 09:48:04 -07:00
Vijay Budhram c16e4bcd57
Merge pull request #17139 from mozilla/fxa-9116
fix(metrics): Add metrics for `set_password` view, in glean and amplitude
2024-06-18 11:59:03 -04:00
Valerie Pomerleau 5405bec1ac
Merge pull request #17119 from mozilla/FXA-9519-take-2
task(functional-tests) : Update functional tests for react signin rollout
2024-06-18 08:31:26 -07:00
Lauren Zugai f64132dd9e
Merge pull request #17140 from mozilla/FXA-9834
fix(glean): Tweak view/submit CAD Glean events
2024-06-18 10:10:20 -05:00
Ankita Shrivastava 6b0e150597
chore(functional): integrate html reporting with Playwright 2024-06-17 22:27:45 -04:00
Valerie Pomerleau bc28b928e7
update fixme comments woth ticket numbers 2024-06-17 16:49:41 -07:00
Lauren Zugai 6202393479
fix(glean): Tweak view/submit CAD Glean events
Because:
* There are a couple of bugs we want to address

This commit:
* Swaps the event reason on choice submission, as they were inversed
* Fixes the Glean event map to cad_firefox_choice_view, as it referenced cad_firefox_view
* Only emits the 'cad_firefox_sync_device_submit' event when user reaches the "needs mobile" screen and clicks "Continue to sync"

fixes FXA-9834, fixes FXA-9833, fixes FXA-9832
2024-06-17 16:43:59 -05:00
Vijay Budhram a149eac05f
fix(metrics): Add metrics for `set_password` view, in glean and amplitude 2024-06-17 16:53:54 -04:00
Dan Schomburg 0b4e607e11
Merge pull request #17131 from mozilla/FXA-9861
task(auth-server): Fix invalid call
2024-06-17 13:21:02 -07:00
Dan Schomburg fd0d15c995
Merge pull request #17130 from mozilla/FXA-9802-p2-fix-clientid-none
bug(auth,event-broker): Don't allow invalid client ids through
2024-06-17 13:20:44 -07:00
Valerie Pomerleau 9230b2de5c
update cached signin tests with new react behaviour, skip until fullProdRollout 2024-06-17 12:59:18 -07:00
Lisa Chan bd067ed91e
Merge pull request #17124 from mozilla/FXA-9789
refactor(payments-stripe, auth): Update Coupon API endpoint
2024-06-17 13:34:53 -04:00
Valerie Pomerleau 96f504c4ef
removing oauth permissions tests, not supported in React 2024-06-17 10:06:05 -07:00
Valerie Pomerleau ee55f64028
remove login hint from params on change email click 2024-06-17 09:28:02 -07:00
Lisa Chan fc3e40888c
refactor(payments-stripe, auth): Update Coupon API endpoint 2024-06-17 12:03:21 -04:00
Valerie Pomerleau 081b5323f0
fix(functional-tests): Update tests for react signin
Because:

* Many tests were failing when react signin is switched to full prod rollout
* Login page object model was a bit of a grab bag that was used for signin, signup as well as other pages

This commit:

* Rename signinReact and signupReact POMs to signin and signup
* Discontinue use of login POM in most tests and replace with page-specific POMs

Closes #FXA-9519
2024-06-17 08:58:33 -07:00
Vijay Budhram 566c8ef9a1
Merge pull request #17129 from mozilla/fxa-9564
fix(metrics): always use the metrics flow data in `Metrics` model when redirecting in third party auth
2024-06-17 11:45:44 -04:00
Vijay Budhram 3f183283a0
Merge pull request #17121 from mozilla/fxa-sync-2
fix(login): fix sync login issue with react
2024-06-17 11:29:17 -04:00
Vijay Budhram 4539dd68c7
fix(login): fix sync login issue with react 2024-06-17 10:41:28 -04:00
Vijay Budhram 152be5bed3
fix(metrics): always use the metrics flow data in `Metrics` backbone when redirecting in third party auth 2024-06-17 10:28:58 -04:00
dschom a9b8204983
bug(auth,event-broker): Don't allow invalid client ids through
Because:
- ClientIds with values 'none' were making their way to the auth server
- This was happening because 'none' is a valid value for service, and service was a fallback for clientId.

This Commit:
- Creates stricter checks on what a valid clientId is.

FXA-9802
2024-06-14 16:49:39 -07:00
dschom 3d96709b8f
task(auth-server): Fix invalid call
Because:
- Trying to a new an object doesn't work, and results in a 'not a constructor' error.

This Commit:
- Removes the erroneous 'new' keyword.
2024-06-14 16:49:11 -07:00
Valerie Pomerleau ea04e6157e
Merge pull request #17116 from mozilla/react-signin-with-force-auth-email
fix(content): Set email for force_auth with React signin
2024-06-14 15:03:27 -07:00
Lauren Zugai 25c21f7585
Merge pull request #17134 from mozilla/glean-bump
chore(deps): Upgrade Glean for glean-generate bug fix
2024-06-14 11:54:11 -05:00
Ben Bangert 97a56fbe0e
Merge pull request #17125 from darktrojan/redirect-uris
Update client ID for Thunderbird to match stage server.
2024-06-14 08:31:26 -07:00
Lauren Zugai 3975fa45e5
chore(deps): Upgrade Glean for glean-generate bug fix
Because:
* Our 'yarn glean-generate' command was failing with 'No module named 'pkg_resources', and this is fixed in latest Glean

This commit:
* Upgrades the package
2024-06-14 10:18:07 -05:00
Vijay Budhram 50b07e32f7
Merge pull request #17123 from mozilla/fxa-9835
fix(emails): Dont use `session.isSessionVerified` in modal since it causes re-render
2024-06-13 15:53:43 -04:00
Lisa Chan 334e008d41
Merge pull request #17083 from mozilla/FXA-9778
fix(libs): Refactor Stripe Plan usage to Stripe Price
2024-06-13 14:50:44 -04:00
Lisa Chan f05d73021b
fix(libs): Refactor Stripe Plan usage to Stripe Price 2024-06-13 14:23:35 -04:00
Valerie Pomerleau 6f75e060f1
Merge pull request #17108 from mozilla/FXA-9806
fix(settings): Clear VerifyTotp error on backspace, delete, paste
2024-06-13 09:44:39 -07:00
Valerie Pomerleau f48ba0c80a
Merge pull request #17120 from mozilla/FXA-9800
fix(functional-tests): Reset password with code tests failing on stage
2024-06-12 12:07:21 -07:00
Vijay Budhram 68a745e997
fix(emails): Dont use `session.isSessionVerified` in modal since it causes a rerender 2024-06-12 13:38:48 -04:00
Katrina Anderson 5f8e8bdcd9
Merge pull request #17114 from mozilla/FXA-9851
refactor(functional-tests): consolidate email waiting and increase timeout
2024-06-12 11:38:37 -04:00
Geoff Lankow 9c1f115486
Update client ID for Thunderbird to match stage server. 2024-06-12 21:34:28 +12:00
Valerie Pomerleau 6567838694
fix(functional-tests): Reset password with code tests failing on stage
Because:

* Two tests were failing smoke tests

This commit:

* Fix the PKCE test by using the correct url by environment (removed stray localhost)
* Fix failing assertion that was causing email check to fail

Closes #FXA-9800
2024-06-11 17:25:03 -07:00
Lauren Zugai 719cf02bff
revert(sync): Revert await fxaLogin in signin utils
Because:
* Adding 'await' in front of this waits for the browser to respond. We thought this may fix an intermittent sync signin issue, but instead hangs

This commit:
* Reverts this change
2024-06-11 18:34:32 -05:00
Vijay Budhram 5274875e08
fix(login): remove webchannel login when at signin token code load 2024-06-11 15:56:04 -04:00
Valerie Pomerleau 2e3e94f225
fix(content): Set email for force_auth with React signin
Because:

* If the user reaches a page where they must reauth, for example when following a link from email, we want to suggest the provided email for signin instead of asking the user to re-enter their email (matching parity with backbone)

This commit:

* When reauth is required and there is a redirect to force_auth, set the email on the user model so it can be picked up when navigating to react
2024-06-11 09:42:09 -07:00
Vijay Budhram e22ff7ef14
Merge pull request #17111 from mozilla/add-eslint-slow
fix(eslint): Add no test.slow() eslint rule to functional tests
2024-06-11 10:50:38 -04:00
Lisa Chan ac8a3195aa
Merge pull request #17101 from mozilla/FXA-9746
fix(fxa-shared): Prioritize price metadata over product metadata
2024-06-11 10:45:26 -04:00
Katrina Anderson b3f058f08e
refactor(functional-tests): consolidate email waiting and increase timeout
Because:

* we hypothesis that the cause of intermittence in functional tests may be due to uncleared emails and inadequate wait times

This commit:

* consolidates waiting for emails to the EmailClient
* decouples the EmailClient from POMS
* increases the default timeout from 15 to 45 seconds

Closes #FXA-9851
2024-06-11 09:41:32 -04:00
Dan Schomburg aa76ad200a
Merge pull request #17110 from mozilla/fxa-9836 2024-06-10 20:27:46 -07:00
Vijay Budhram 8b2feea293
fix(eslint): Add no test.slow() rule 2024-06-10 22:24:23 -04:00
Vijay Budhram 727d5b3a04
fix(totp): pass along signin state to totp view 2024-06-10 22:06:22 -04:00
Valerie Pomerleau 87be0c1f43
Merge pull request #17106 from mozilla/add-oauth-force-auth-to-react-xsignin-routes
add missing route to react signin routes
2024-06-10 15:06:38 -07:00
Valerie Pomerleau 6c6599dc93
fix(settings): Clear VerifyTotp error on backspace, delete, paste
Because:

* We want to clear the error when the code is edited

This commit:

* Clears the error message when the users clicks backspace, delete or pastes a new code

Closes #FXA-9806
2024-06-10 14:54:58 -07:00
Valerie Pomerleau d6ea5a3362
add missing route to react signin routes 2024-06-10 14:30:17 -07:00
Lauren Zugai 6eb5c55831
Merge pull request #17103 from mozilla/FXA-9837
fix(sync): Do not send fxaLogin on login submit when next page is 2FA
2024-06-10 15:09:30 -05:00
Dan Schomburg 4560b1c120
Merge pull request #17102 from mozilla/FXA-9826-take2
fix(settings): Support subplat redirectTo for force_auth route
2024-06-10 12:53:20 -07:00
Dan Schomburg c84930d5fe
Merge pull request #17104 from mozilla/FXA-9808-p2 2024-06-10 12:36:07 -07:00
dschom 939e15aad7
bug(settings): Provide correct value for service when verifying 2fa
Because:
- We noticed that gql queries in inline_totp_setup were failing
- The value for service wasn't passing validation
- The service name was being passed instead of the service id

This Commit:
- Passes the service identifier (aka the RPs client id) in for the service value.
- Uses the integration's 'getService' function to determine this value
2024-06-10 11:55:49 -07:00
Lauren Zugai bca172176e
fix(sync): Do not send fxaLogin on login submit when next page is 2FA
Because:
* Users are not signed in to Sync after entering their 2FA code

This commit:
* Prevents the fxaLogin web channel message from being sent up if the next page in the navigation flow is TOTP since we send it up on submit on that page

fixes FXA-9837
2024-06-10 13:46:04 -05:00
Lisa Chan d4780d74db
fix(fxa-shared): Prioritize price metadata over product metadata 2024-06-10 13:55:09 -04:00
Valerie Pomerleau 45a339c7b2
fix(settings): Support subplat redirectTo for force_auth route
Because:

* Subplat subscriptions page sometimes redirects to force_auth and we need to pass params to this page as well as oauth/force_auth

This commit:

* Update router.js to route force_auth and oauth/force_auth to react
* Only pass redirectTo to navigation handler if integration is web

Closes #FXA-9826
2024-06-10 10:26:54 -07:00
Vijay Budhram c1cd08f326
fix(input): Show text keyboard for recovery code input 2024-06-10 12:36:47 -04:00