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

24014 Коммитов

Автор SHA1 Сообщение Дата
Lauren Zugai d289574708
Merge pull request #17446 from mozilla/FXA-10264
feat(glean): Enable automatic click events, add 3x GetDataTrio events
2024-08-23 09:33:09 -05:00
dependabot[bot] b92a1f3ea9
chore(deps): bump hapi-swagger from 17.2.1 to 17.3.0
Bumps [hapi-swagger](https://github.com/hapi-swagger/hapi-swagger) from 17.2.1 to 17.3.0.
- [Release notes](https://github.com/hapi-swagger/hapi-swagger/releases)
- [Commits](https://github.com/hapi-swagger/hapi-swagger/compare/v17.2.1...v17.3.0)

---
updated-dependencies:
- dependency-name: hapi-swagger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-23 07:03:50 +00:00
Lauren Zugai c2e3a067f2
feat(glean): Enable automatic click events, add 3x GetDataTrio events
Because:
* We want to add automatic Glean click events so we don't have to edit the YAML and generate files for every click interaction
* We want events for copy, download, and print actions for 2FA recovery codes

This commit:
* Adds the click event from the Glean API to be callable from our custom GleanMetrics object, sets up the global event listener once application state has settled
* Adds click events with data-glean-id and data-glean-type for all states (setup, change, inline setup) of 2FA GetDataTrio

closes FXA-10264, closes FXA-9580, closes FXA-9581, closes FXA-9582
2024-08-22 17:15:12 -05:00
Vijay Budhram 41d751d7e8
Merge pull request #17435 from mozilla/fxa-10258
feat(glean): Fix email on "Sign in" link when pairing fails
2024-08-22 15:53:18 -04:00
Vijay Budhram 123003fdc5
feat(glean): Fix email on "Sign in" link when pairing fails 2024-08-22 14:51:20 -04:00
Vijay Budhram b787b88df2
fix(tests): Mock `Date.now()` in cloud scheduler tests 2024-08-22 14:38:53 -04:00
dependabot[bot] d5872ab397
chore(deps): bump ajv from 8.13.0 to 8.17.1
Bumps [ajv](https://github.com/ajv-validator/ajv) from 8.13.0 to 8.17.1.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v8.13.0...v8.17.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 06:41:39 +00:00
Vijay Budhram 13171e7b0f
Merge pull request #17434 from mozilla/clouserw-patch-3
fix: log map instead of string to fix log ingestion
2024-08-21 10:21:51 -04:00
Wil Clouser 33c25ecb02
fix: log map instead of string to fix log ingestion 2024-08-20 15:18:52 -07:00
Ben Bangert 4a13370854
feat: remove encrypted cookie sessions from 123done
Because:

* We don't want to use an obsolete library and this
  test usage is not security sensitive.

This commit:

* Uses cookie-session instead, as this cookie is not
  security sensitive.
2024-08-20 17:30:32 +00:00
Vijay Budhram ea92c29bcb
feat(glean): Add entrypoint variation and experiment to glean metrics 2024-08-19 15:04:30 -04:00
Wil Clouser b4da45992f
Merge pull request #17411 from mozilla/dependabot/npm_and_yarn/stripe/stripe-js-4.3.0
chore(deps): bump @stripe/stripe-js from 3.3.0 to 4.3.0
2024-08-19 07:52:03 -07:00
dependabot[bot] 784a6ae32e
chore(deps): bump luxon from 3.4.4 to 3.5.0
Bumps [luxon](https://github.com/moment/luxon) from 3.4.4 to 3.5.0.
- [Changelog](https://github.com/moment/luxon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moment/luxon/compare/3.4.4...3.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-19 07:11:36 +00:00
dependabot[bot] 394da58e25
chore(deps): bump @stripe/stripe-js from 3.3.0 to 4.3.0
Bumps [@stripe/stripe-js](https://github.com/stripe/stripe-js) from 3.3.0 to 4.3.0.
- [Release notes](https://github.com/stripe/stripe-js/releases)
- [Commits](https://github.com/stripe/stripe-js/compare/v3.3.0...v4.3.0)

---
updated-dependencies:
- dependency-name: "@stripe/stripe-js"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-16 07:32:01 +00:00
dschom ae396b7200
bug(settings): Fix storybook typo for SignoutSync 2024-08-15 02:32:58 -07:00
Wil Clouser 7b42b7b5af
Merge pull request #17394 from mozilla/dependabot/npm_and_yarn/npm_and_yarn-5105dbd604
chore(deps): bump postcss from 8.4.40 to 8.4.41 in the npm_and_yarn group
2024-08-15 01:00:11 -07:00
Wil Clouser 87d2ec9bb7
Merge pull request #17391 from mozilla/dependabot/npm_and_yarn/sinon-chai-4.0.0
chore(deps-dev): bump sinon-chai from 3.7.0 to 4.0.0
2024-08-15 00:49:23 -07:00
dependabot[bot] a112b77391
chore(deps-dev): bump @testing-library/dom from 9.3.4 to 10.4.0
Bumps [@testing-library/dom](https://github.com/testing-library/dom-testing-library) from 9.3.4 to 10.4.0.
- [Release notes](https://github.com/testing-library/dom-testing-library/releases)
- [Changelog](https://github.com/testing-library/dom-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/dom-testing-library/compare/v9.3.4...v10.4.0)

---
updated-dependencies:
- dependency-name: "@testing-library/dom"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-15 07:03:48 +00:00
dependabot[bot] 4f30ecb9d0
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.40 to 8.4.41
- [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.40...8.4.41)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-14 08:26:37 +00:00
Lauren Zugai f010d5ee18
Merge pull request #17376 from mozilla/FXA-10289
fix(promo): Disable MonitorPlus piece of ProductPromo
2024-08-14 09:10:35 +01:00
dependabot[bot] e7537b6be7
chore(deps-dev): bump sinon-chai from 3.7.0 to 4.0.0
Bumps [sinon-chai](https://github.com/chaijs/sinon-chai) from 3.7.0 to 4.0.0.
- [Release notes](https://github.com/chaijs/sinon-chai/releases)
- [Changelog](https://github.com/chaijs/sinon-chai/blob/master/CHANGELOG.md)
- [Commits](https://github.com/chaijs/sinon-chai/compare/3.7.0...4.0.0)

---
updated-dependencies:
- dependency-name: sinon-chai
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-14 07:03:31 +00:00
Lauren Zugai 44dbbdc5f9
fix(promo): Disable MonitorPlus piece of ProductPromo
Because:
* Monitor Plus is not available for non-US customers and there are UX questions

This commit:
* Hides the MonitorPlus promo temporarily

closes FXA-10289
2024-08-13 13:51:35 +01:00
Valerie Pomerleau 17d081f4ed
Merge pull request #17363 from mozilla/FXA-10219
feat(glean): Add Glean events for BentoMenu
2024-08-13 13:34:34 +01:00
Wil Clouser 50408379c1
Merge pull request #17383 from mozilla/dependabot/npm_and_yarn/multi-a92cf2f9ff
chore(deps-dev): bump chai and @types/chai
2024-08-13 02:21:01 -07:00
Katrina Anderson b118b7a41c
Merge pull request #17348 from mozilla/experiment_remove_invalid_token
fix(fxa-shared): failure to injest all unit test results in CI
2024-08-12 11:25:56 -04:00
Valerie Pomerleau 6e072890b2
feat(glean): Add Glean events for BentoMenu
Because:

* We want to track views of the bento menu and clicks on suggested product links

This commit:

* Add new Glean events and implement in fxa-settings, add unit tests

Closes #FXA-10219
2024-08-12 13:02:18 +01:00
dependabot[bot] 300a442bc3
chore(deps-dev): bump chai and @types/chai
Bumps [chai](https://github.com/chaijs/chai) and [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai). These dependencies needed to be updated together.

Updates `chai` from 4.3.6 to 4.5.0
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.3.6...v4.5.0)

Updates `@types/chai` from 4.2.21 to 4.3.17
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: "@types/chai"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 07:11:39 +00:00
Dan Schomburg 72de7c9eb5
Merge pull request #17374 from mozilla/fix-key-stretch-tests
Fix key stretch tests
2024-08-09 16:41:41 -07:00
dschom 3f4b5586c6
task(functional-tests): Reneable skipped key stretching tests 2024-08-09 16:11:09 -07:00
dschom 3dec83d797
bug(CI): Fix missing assets in auth integration v2 job
This Commit:
- Fixes issue this.skip() in tests. Cannot use fat arrow function for test.
- Fixes test target names
- Makes sure keys are generated before running integration test
2024-08-09 15:19:21 -07:00
Wil Clouser 0adacf5f81
Merge pull request #17362 from mozilla/20240808
refactor(pkgs): Remove unused dependencies
2024-08-09 09:39:31 -07:00
Reino Muhl a6f53a713f
Merge pull request #17333 from mozilla/fxa-10157-payments-sentry-logging
feat(payments): add sentry reporting to apiClient
2024-08-09 12:24:41 -04:00
Vijay Budhram 932b7ad48d
Merge pull request #17361 from mozilla/fxa-10212
Add metrics for Monitor Promo
2024-08-09 12:01:28 -04:00
Vijay Budhram b9d62dbdfe
feat(promo): Add conditional for ProductPromo for Mozilla Monitor Plus 2024-08-09 11:01:53 -04:00
Wil Clouser e9dc737c3e
Merge pull request #17367 from mozilla/dependabot/npm_and_yarn/google-cloud/tasks-5.5.0
chore(deps): bump @google-cloud/tasks from 5.3.0 to 5.5.0
2024-08-09 07:47:52 -07:00
dependabot[bot] 1214d80e88
chore(deps): bump sqs-consumer from 9.1.0 to 11.0.1
Bumps [sqs-consumer](https://github.com/bbc/sqs-consumer) from 9.1.0 to 11.0.1.
- [Release notes](https://github.com/bbc/sqs-consumer/releases)
- [Commits](https://github.com/bbc/sqs-consumer/compare/v9.1.0...v11.0.1)

---
updated-dependencies:
- dependency-name: sqs-consumer
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-09 07:04:56 +00:00
dependabot[bot] 45d42329c3
chore(deps): bump @google-cloud/tasks from 5.3.0 to 5.5.0
Bumps [@google-cloud/tasks](https://github.com/googleapis/google-cloud-node/tree/HEAD/packages/google-cloud-tasks) from 5.3.0 to 5.5.0.
- [Release notes](https://github.com/googleapis/google-cloud-node/releases)
- [Changelog](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-tasks/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-node/commits/dlp-v5.5.0/packages/google-cloud-tasks)

---
updated-dependencies:
- dependency-name: "@google-cloud/tasks"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-09 07:03:52 +00:00
Wil Clouser ff8af839fa
refactor(pkgs): Remove unused dependencies 2024-08-08 15:32:19 -07:00
Katrina Anderson 489f9a317a
fix(fxa-shared): failure to injest all unit test results in CI
Because:

* an invalid token in the JUnit XML report for fxa-shared is causing test result ingestion to fail in CI

This commit:

* makes the invalid token print safe for reporting

Closes #FXA-10279
2024-08-08 14:08:25 -04:00
Valerie Pomerleau 19fc7a27cb
Merge pull request #17351 from mozilla/FXA-10213
feat(settings): Update UTM params for monitor plus promo
2024-08-08 08:35:32 -07:00
Lauren Zugai f3e9e0b899
Merge pull request #17350 from mozilla/FXA-10220
feat(settings): Update account preferences help link, add Glean click event
2024-08-08 10:04:19 -05:00
dependabot[bot] 359750db25
chore(deps): bump uuid and @types/uuid
Bumps [uuid](https://github.com/uuidjs/uuid) and [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid). These dependencies needed to be updated together.

Updates `uuid` from 9.0.1 to 10.0.0
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v9.0.1...v10.0.0)

Updates `@types/uuid` from 7.0.3 to 10.0.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/uuid)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: "@types/uuid"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-08 06:37:48 +00:00
Valerie Pomerleau 95e5e896ff
feat(settings): Update UTM params for monitor plus promo
Because:

* We want to distinguish between monitor free and monitor plus
* We want to use the Monitor stage link if coming from stage accounts

This commit:

* Switch the UTM content param in the promo link
* Check for host to select which monitor link to use

Closes #FXA-10213
2024-08-07 16:15:54 -07:00
Lauren Zugai 3a2099a66d
fix(pocket): Do not inline Pocket SVG due to text logo rendering issue
Because:
* In production the SVG is not rendering properly

This commit:
* Sends a network request for the image instead of inlining the SVG
2024-08-07 17:54:47 -05:00
Ankita Shrivastava a1d2d088d2
Merge pull request #17323 from mozilla/add-reportSlowTest
chore(functional_tests): add reportSlowTest in the config file
2024-08-07 15:37:57 -04:00
Ankita Shrivastava 897076f5fc
chore(functional_tests): add reportSlowTest in the config file 2024-08-07 15:08:26 -04:00
Jonathan Almeida ad5532bf9b
feat(metrics): Add '2FA QR Code Setup View' frontend Glean event 2024-08-07 14:14:32 -04:00
Jonathan Almeida c7847f94f5
Merge pull request #17298 from mozilla/FXA-9577
feat(metrics): Add '2FA Can't Scan Code Link' frontend event
2024-08-07 14:13:20 -04:00
Dan Schomburg 479e10a6b1
Merge pull request #17307 from mozilla/FXA-9874
task(settings,functional-tests): Review use of webchannel messages
2024-08-07 10:50:19 -07:00
Jonathan Almeida 252857c31c
feat(metrics): Add '2FA Can't Scan Code Link' frontend event 2024-08-07 13:45:14 -04:00
Lauren Zugai cfcc96394b
feat(settings): Update account preferences help link, add Glean click event
Because:
* Accounts has its own dedicated help link we should use instead
* We want a metrics event for when users click on this link

This commit:
* Updates the link and adds the Glean event

closes FXA-10220, closes FXA-10221
2024-08-07 12:14:12 -05:00
dschom 8e9b5ca681
task(settings,functional-tests): Review use of webchannel messages
Because:
- We noticed that some of the usage for webchannels was inconsistent.
- Of the web channel messages we send only FxAStatus and LinkAccount actually return responses.

This Commit:
- Removes implied response from the fxaLogin command that wasn't actually sent by firefox.
- Updates the functional tests to better reflect the actual commands and responses sent by firefox by creating some types. This should avoid mistakes
2024-08-07 10:05:24 -07:00
Vijay Budhram 7bdf024bbd
feat(promo): Add conditional for ProductPromo for Mozilla Monitor Plus 2024-08-07 11:51:37 -04:00
Valerie Pomerleau db3d150222
Merge pull request #17335 from mozilla/FXA-10053
feat(settings): Standardize UTM params for Bento Menu links
2024-08-07 07:46:27 -07:00
Wil Clouser 4d3bdb02e8
Merge pull request #17338 from mozilla/20240806-cachify
refactor(content-server): Remove connect-cachify
2024-08-07 07:31:24 -07:00
dependabot[bot] d311275e67
chore(deps): bump react-refresh from 0.11.0 to 0.14.2
Bumps [react-refresh](https://github.com/facebook/react/tree/HEAD/packages/react) from 0.11.0 to 0.14.2.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v0.14.2/packages/react)

---
updated-dependencies:
- dependency-name: react-refresh
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-07 07:03:41 +00:00
Valerie Pomerleau c9f356e204
add tests 2024-08-06 23:31:04 -07:00
Valerie Pomerleau bded1df1da
feat(settings): Standardize UTM params for Bento Menu links
Because:

* We want to standardize UTM params for relying party links in the Bento Menu

This commit:

* Update UTM params included in relying party links (except Pocket)
* Update names of constants to uppercase
* Rename HomePath to SETTINGS_PATH for more clarity now that fxa-settings includes more than Settings

Closes #FXA-10053
2024-08-06 15:51:50 -07:00
Wil Clouser 12dbb386f0
refactor(content-server): Remove connect-cachify
Because:
- we don't seem to use this library anywhere
This patch:
- removes it
2024-08-06 15:14:57 -07:00
Ben Bangert eac1a45a7d
fix(event-broker): use proper check for webhook urls
Because:

* The previous check was checking the wrong object, and not finding
  the webhook url as it should for delivery.

This commit:

* Fixes the check to use the correct object, and now finds the webhook
  url as it should for delivery.
2024-08-06 18:32:26 +00:00
Wil Clouser b2d6c5656a
Merge pull request #17277 from mozilla/dependabot/npm_and_yarn/jsdom-24.1.1
chore(deps): bump jsdom from 24.0.0 to 24.1.1
2024-08-06 11:00:40 -07:00
Wil Clouser 22be0d02f4
Merge pull request #17328 from mozilla/FXA-10266-stop-using-deprecated-package-buffer-equal-constant-time
refactor(metrics): replace outdated package
2024-08-06 10:48:52 -07:00
dependabot[bot] e0eb4b733a
chore(deps): bump jsdom from 24.0.0 to 24.1.1
Bumps [jsdom](https://github.com/jsdom/jsdom) from 24.0.0 to 24.1.1.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/main/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/24.0.0...24.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-06 16:15:41 +00:00
Reino Muhl d89aae2caa
feat(payments): add sentry reporting to apiClient
Because:

- Unknown errors increased a few months ago, without any logging or
  reporting to Sentry.

This commit:

- For unknown API errors report an issue to Sentry.
- Update fxa-profile-server to allow additional Sentry headers, similar
  to auth-server

Closes #FXA-10157
2024-08-06 10:59:54 -04:00
dependabot[bot] c9e8a94748
chore(deps-dev): bump @nestjs/cli from 10.3.2 to 10.4.2
Bumps [@nestjs/cli](https://github.com/nestjs/nest-cli) from 10.3.2 to 10.4.2.
- [Release notes](https://github.com/nestjs/nest-cli/releases)
- [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/nest-cli/compare/10.3.2...10.4.2)

---
updated-dependencies:
- dependency-name: "@nestjs/cli"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-06 06:25:56 +00:00
Wil Clouser 0e2dc37a47
refactor(metrics): replace outdated package
Because:

* buffer-equal-constant-time is no longer supported and is used
in a single place

This commit:
* Replaces it with crypto.timingSafeEqual()

Fixes FXA-10266
2024-08-05 16:30:17 -07:00
Dan Schomburg 17ac5b36d0
Merge pull request #17322 from mozilla/add-missing-license-headers
task(functional-tests): Add missing licenses
2024-08-05 15:11:13 -07:00
Lauren Zugai 9a52f88a4d
Merge pull request #17319 from mozilla/FXA-10145
feat(settings): Create ProductPromo, display for users without Monitor
2024-08-05 12:19:56 -05:00
Vijay Budhram a8e4d39a3f
Merge pull request #17324 from mozilla/dependabot/npm_and_yarn/core-js-3.38.0
chore(deps-dev): bump core-js from 3.37.1 to 3.38.0
2024-08-05 10:54:02 -04:00
Lauren Zugai cd7731e9fa
feat(settings): Create ProductPromo, display for users without Monitor
Because:
* We want to promote Moz products and services

This commit:
* Adds a new configurable ProductPromo component, sets it up for Monitor case
* Adds new Sidebar component to hold the nav and ProductPromo

closes FXA-10145
2024-08-05 09:47:49 -05:00
dependabot[bot] 1df6d5586f
chore(deps): bump @aws-sdk/client-sqs from 3.556.0 to 3.623.0
Bumps [@aws-sdk/client-sqs](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-sqs) from 3.556.0 to 3.623.0.
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-sqs/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.623.0/clients/client-sqs)

---
updated-dependencies:
- dependency-name: "@aws-sdk/client-sqs"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 06:48:47 +00:00
dependabot[bot] 2fd3e4f5f5
chore(deps-dev): bump core-js from 3.37.1 to 3.38.0
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.37.1 to 3.38.0.
- [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.38.0/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-08-05 06:23:37 +00:00
dschom 8a5ac33934
task(functional-tests): Add missing licenses 2024-08-02 15:55:35 -07:00
Dan Schomburg a17c94b98b
Merge pull request #17297 from mozilla/functional-tests-support-typescript-compilation
task(functional-test): Support typescript compilation
2024-08-02 15:53:27 -07:00
dschom 6511ffc488
task(functional-test): Support typescript compilation 2024-08-02 15:08:22 -07:00
dependabot[bot] 1df56250ca
chore(deps): bump react-router-dom from 6.23.1 to 6.26.0
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.23.1 to 6.26.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.26.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-02 06:55:22 +00:00
Lauren Zugai ba87920cc3
Merge pull request #17309 from mozilla/FXA-10027-subplat-include-both-slugs
feat(newsletters): Add back mozilla-accounts slug to SubPlat default
2024-08-01 14:23:59 -05:00
Jonathan Almeida 876b217dbe
Merge pull request #17296 from cketti/add_thunderbird_for_android
Add redirect URIs for Thunderbird sync scope
2024-08-01 12:30:01 -04:00
cketti 030ef87df3
Add redirect URIs for Thunderbird sync scope 2024-07-31 23:00:48 +02:00
Valerie Pomerleau 63d26f6aa1
Merge pull request #17237 from mozilla/FXA-9984
fix(settings): Handle multiple signins to settings
2024-07-31 12:55:24 -07:00
Lauren Zugai 91d4b4ae78
feat(newsletters): Add back mozilla-accounts slug to SubPlat default
Because:
* We want to support both default newsletters

This commit:
* Adds back previously removed 'mozilla-accounts' slug
2024-07-31 14:19:04 -05:00
Lauren Zugai 37d0d7a11d
Merge pull request #17306 from mozilla/FXA-10027-subplat
feat(newsletters): Update default newsletter slug for SubPlat
2024-07-31 13:58:43 -05:00
Lauren Zugai 70fdab31f8
feat(newsletters): Update default newsletter slug for SubPlat
Because:
* We want the default case for the switch statement handling newsletters to be shown across products, and a newsletter slug update was requested for this

This commit:
* Updates the default newsletter slug in SubPlat and updates test

fixes FXA-10027
2024-07-31 13:14:16 -05:00
Lauren Zugai 79dd9e0b66
Merge pull request #17303 from mozilla/FXA-10027
feat(newsletters): Update first checkbox slug and copy
2024-07-31 12:47:32 -05:00
Dan Schomburg 8b49aeb06b
Merge pull request #17261 from mozilla/FXA-10154
task(event-broker): Update profile-change event payload
2024-07-31 09:37:33 -07:00
Lauren Zugai 1ba414fdbc
feat(newsletters): Update first checkbox slug and copy
Because:
* We want updated copy and a new slug

This commit:
* Adjusts the copy and updates the 'security-privacy-news' slug to 'mozilla-and-you'
* Moves the MoFo checkbox to be the second checkbox
* Adjusts Glean marketing event

closes FXA-10027
2024-07-31 11:17:46 -05:00
Valerie Pomerleau ab0161b451
Merge pull request #17274 from mozilla/FXA-10195
fix(fxa-dev-launcher): Prevent fxa browser prefs from getting reset on sync signout
2024-07-31 09:02:53 -07:00
Reino Muhl a7a70cf6ee
Merge pull request #17294 from mozilla/fxa-9980-replace-contentful-env
feat(auth): replace cms config
2024-07-31 11:16:25 -04:00
Reino Muhl a35b0e0dd5
feat(auth): replace cms config
Because:

- Replace contentful config vars with cms and strapi config vars

This commit:

- Adds cms and cms.strapiClient config vars and updates usage in various
  locations

Closes #FXA-9980
2024-07-31 10:23:48 -04:00
Lauren Zugai 8cf50fd607
Merge pull request #17287 from mozilla/FXA-10119
feat(glean): Add 'third_party_links' as an option on event, add to login/cached login view events
2024-07-30 16:29:58 -05:00
Lauren Zugai 6195de97a1
Merge pull request #17289 from mozilla/FXA-10204
fix(signin): Display Pocket text logo (instead of Pocket logo) for signin
2024-07-30 16:28:12 -05:00
Ben Bangert 27eef1215f
fix: drop messages for client ids with no webhook
Because:

* We don't want to block the SQS queue or fill the PubSub backlog with
  messages if the client id has no webhookUrl configured.

This commit:

* Adds a check to the client-webhooks service to drop messages for
  client ids with no webhookUrl configured.

Closes FXA-10216
2024-07-30 20:28:11 +00:00
Lauren Zugai ddf991b125
Merge pull request #17293 from mozilla/dependabot/npm_and_yarn/golevelup/ts-jest-0.5.0
chore(deps): bump @golevelup/ts-jest from 0.4.0 to 0.5.0
2024-07-30 12:43:56 -05:00
Lauren Zugai c620899a7b
fix(signin): Display Pocket text logo (instead of Pocket logo) for signin
Because:
* We want to display the SVG that has the "pocket" text logo and not just the Pocket logo

This commit:
* Updates the SVG and updates minor styling

fixes FXA-10204
2024-07-30 10:21:57 -05:00
dependabot[bot] bfe7442fb1
chore(deps): bump @golevelup/ts-jest from 0.4.0 to 0.5.0
Bumps [@golevelup/ts-jest](https://github.com/golevelup/nestjs) from 0.4.0 to 0.5.0.
- [Commits](https://github.com/golevelup/nestjs/compare/@golevelup/ts-jest@0.4.0...@golevelup/ts-jest@0.5.0)

---
updated-dependencies:
- dependency-name: "@golevelup/ts-jest"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 06:35:02 +00:00
dependabot[bot] 1424c1b900
chore(deps): bump @emotion/styled from 11.11.0 to 11.13.0
Bumps [@emotion/styled](https://github.com/emotion-js/emotion) from 11.11.0 to 11.13.0.
- [Release notes](https://github.com/emotion-js/emotion/releases)
- [Changelog](https://github.com/emotion-js/emotion/blob/main/CHANGELOG.md)
- [Commits](https://github.com/emotion-js/emotion/compare/@emotion/styled@11.11.0...@emotion/styled@11.13.0)

---
updated-dependencies:
- dependency-name: "@emotion/styled"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-30 06:34:30 +00:00
Lauren Zugai f54d82268e
feat(glean): Add 'third_party_links' as an option on event, add to login/cached login view
Because:
* We want to know if the third party auth buttons were displayed or not when the login view event happens

This commit:
* Adds 'third_party_links' as an available boolean on extra_keys for event type
* Adds this for cachedLogin.view and login.view Glean events

fixes FXA-10119
2024-07-29 17:34:10 -05:00
Ben Bangert 7d3da47ae4
Merge pull request #17285 from mozilla/dependabot/npm_and_yarn/stylelint-16.8.0
chore(deps-dev): bump stylelint from 16.5.0 to 16.8.0
2024-07-29 15:04:59 -07:00
Ben Bangert 3421d103fe
Merge pull request #17286 from mozilla/fix/repair-genkeys
fix(auth): handle missing key comparison in genkeys
2024-07-29 15:04:40 -07:00
Lauren Zugai eed5e363bd
Merge pull request #17284 from mozilla/fxa-10187
feat(delete): Add notice marketing email notice on delete account page
2024-07-29 14:44:49 -05:00
Ben Bangert f15c0a18e3
fix(auth): handle missing key comparison in genkeys
Because:

* The key comparison was requiring the old key to exist.

This commit:

* Handles the case where the old key is missing.
2024-07-29 17:56:09 +00:00
dependabot[bot] df4250f7b8
chore(deps-dev): bump stylelint from 16.5.0 to 16.8.0
Bumps [stylelint](https://github.com/stylelint/stylelint) from 16.5.0 to 16.8.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/16.5.0...16.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 17:28:29 +00:00
Ben Bangert 1c3cd949f9
Merge pull request #17282 from mozilla/dependabot/npm_and_yarn/core-js-3.37.1
chore(deps-dev): bump core-js from 3.36.0 to 3.37.1
2024-07-29 10:26:56 -07:00
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