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

29117 Коммитов

Автор SHA1 Сообщение Дата
Meghan Sardesai 180ff290f4
chore(payments): remove legacy code
Because:

* The Payment Checkbox used to be part of the PaymentForm component. However, wherever the PaymentForm is used its PaymentCheckbox is currently hidden and not used. This seems to be legacy.

This commit:

* Removes PaymentCheckbox from PaymentForm and all applicable tests and stories.

Closes FXA-6303
2023-12-01 21:34:35 -05:00
Barry Chen 35ef2a49b2
Merge pull request #16127 from mozilla/FXA-8720-failed-to-fetch-client-info
fix(settings): skip oauth client info fetch when id is invalid
2023-12-01 12:27:54 -06:00
Lisa Chan 8e7e2b6ff9
Merge pull request #16135 from mozilla/remove_skip
test(functional): Re-enable test upon Stripe update of test card
2023-12-01 10:39:24 -05:00
Reino Muhl a320748606
Merge pull request #16138 from mozilla/dependabot/npm_and_yarn/nx/cypress-17.1.3
chore(deps-dev): bump @nx/cypress from 16.10.0 to 17.1.3
2023-12-01 09:54:25 -05:00
dependabot[bot] a9433060ed
chore(deps-dev): bump @nx/cypress from 16.10.0 to 17.1.3
Bumps [@nx/cypress](https://github.com/nrwl/nx/tree/HEAD/packages/cypress) from 16.10.0 to 17.1.3.
- [Release notes](https://github.com/nrwl/nx/releases)
- [Commits](https://github.com/nrwl/nx/commits/17.1.3/packages/cypress)

---
updated-dependencies:
- dependency-name: "@nx/cypress"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-01 06:55:55 +00:00
Dan Schomburg 8cc35e165c
Merge pull request #16121 from mozilla/FXA-8545
task(auth): Update new device login subject
2023-11-30 17:23:14 -08:00
dschom c1fda8f888
task(auth): Update new device login subject
Because:
- Want to have the subject for new device login emails read 'New sign-in to your Mozilla account' when an account is signed into directly.
- Want to have the subject for new device login emails read 'New sign-in to $clientName' when an account is signed into from an RP

This Commit:
- Adds the ability to customize the subject text for newDeviceLogin emails.
- Follows the same pattern established by lowRecoveryCodes emails.
2023-11-30 16:51:56 -08:00
Meghan Sardesai 7bced8cd94
Merge pull request #16128 from mozilla/FXA-8639__GA-opt-out
fix(payments): remove GA tracking for opted-out customers
2023-11-30 14:23:37 -08:00
Meghan Sardesai 7649a74fe8
fix(payments): remove GA tracking for opted-out customers
Because:

* Customers who have opted out of data collection and use should expect to navigate Subscription Platform without their data being tracked.

This commit:

* Updates the `useReactGA4Setup` to check whether customer has opted in to data collection before initializing.
* Adds related test.

Closes FXA-8639
2023-11-30 16:50:51 -05:00
Ben Bangert e5292adf31
Merge pull request #16134 from mozilla/dependabot/npm_and_yarn/adobe/css-tools-4.3.2
chore(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2
2023-11-30 13:49:24 -08:00
Ben Bangert f869cfa3e2
Merge pull request #16097 from mozilla/feat/add-winston-logging
feat: add winston logger and nest helper
2023-11-30 13:48:02 -08:00
Lisa Chan 637ff77f84
test(functional): Re-enable test upon Stripe update of test card 2023-11-30 16:38:33 -05:00
Lisa Chan 3ec8e283cd
Merge pull request #16133 from mozilla/FXA-8624
fix(analytics): Update consent defaults for GA
2023-11-30 16:20:58 -05:00
dependabot[bot] e7a736ca5d
chore(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2
Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.3.1 to 4.3.2.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-30 21:11:15 +00:00
Dan Schomburg 3ec6424738
Merge pull request #16122 from mozilla/FXA-8474
task(settings,auth,react,payments): Clean up deprecated l10n strings
2023-11-30 12:32:31 -08:00
Lauren Zugai 329f1f79b6
Merge pull request #16132 from mozilla/gql-follow-up
chore(all): Move gql dependencies to root package.json
2023-11-30 14:28:34 -06:00
Ben Bangert 3878034f0b
feat: add winston logger and nest helper
Because:

* We want to use winston for logging in new applications.

This commit:

* Adds winston logging and Nest helpers with a console monkey-patch.
2023-11-30 12:22:35 -08:00
Lisa Chan 9458be5524
fix(analytics): Update consent defaults for GA 2023-11-30 15:08:29 -05:00
Lauren Zugai 648e944c0d
chore(all): Move gql dependencies to root package.json
Because:
* We want to move shared deps to the root package.json

This commit:
* Removes packages from several package.jsons as they are already present in root.json
* Moves @apollo/client to root package.json
2023-11-30 12:58:53 -06:00
Lauren Zugai 6eb9b50659
Merge pull request #16130 from mozilla/chore/bump-graphql-and-root-v2
chore(all): Upgrade GQL and dependencies
2023-11-30 12:27:49 -06:00
Lauren Zugai 0cdee94037
chore(all): Upgrade GQL and dependencies
Because:
* We want to use the latest graphql dependency

This commit:
* Updates GQL dep and all packages relying on it
* Moves some dependencies to root package.json
* Removes a couple of deps we aren't using
* Addresses breaking changes, updates related tests and mocks
* Fixes type errors
* Prettifies contentful autogenerated files

closes FXA-8489

Co-authored-by: Ben Bangert <100193+bbangert@users.noreply.github.com>
Co-authored-by: Julian Poyourow <julianpoyo@gmail.com>
Co-authored-by: Reino Muhl <reino.muhl@gmail.com>
2023-11-30 11:47:57 -06:00
Valerie Pomerleau 4395c659e5
Merge pull request #16125 from mozilla/dependabot/npm_and_yarn/nx/storybook-17.1.3
chore(deps-dev): bump @nx/storybook from 16.9.1 to 17.1.3
2023-11-30 09:18:17 -08:00
Valerie Pomerleau 79e679ce44
Merge pull request #15959 from mozilla/dependabot/github_actions/actions/setup-node-4
chore(deps): bump actions/setup-node from 3 to 4
2023-11-29 15:52:07 -08:00
Valerie Pomerleau 192ef325f4
Merge pull request #16088 from mozilla/dependabot/npm_and_yarn/postcss-preset-env-9.3.0
chore(deps): bump postcss-preset-env from 7.8.3 to 9.3.0
2023-11-29 15:48:17 -08:00
Valerie Pomerleau f8af3f523d
Merge pull request #16123 from mozilla/FXA-8543
fix(tests): Re-enable React signup tests in production
2023-11-29 15:33:09 -08:00
Valerie Pomerleau fb683df9a3
fix(tests): Re-enable React signup tests in production
Because:

* Skip based on environment is not needed since we added a feature flag check

This commit:

* Remove the skip based on production environment
* Standardize check for #root to confirm page is React

Closes #FXA-8543
2023-11-29 15:09:12 -08:00
Barry Chen f4d1960715
fix(settings): skip oauth client info fetch when id is invalid
Because:
 - an oauth client id needs to be a 16 digit hex

This commit:
 - skips the graphql-api query to fetch an oauth client's info that will
   result in an HTTP 400
2023-11-29 15:56:45 -06:00
Reino Muhl 8a695720fa
Merge pull request #16126 from mozilla/update-contentful-manager-check
fix(auth): skip contentful if manager not set
2023-11-29 14:16:46 -05:00
Reino Muhl 025769b7f5
fix(auth): skip contentful if manager not set
Because:

* Only get ContentfulManager from container if it is set

This commit:

* Checks for ContentfulManager in container before getting

Closes #
2023-11-29 13:32:55 -05:00
Reino Muhl e3896f37e5
Merge pull request #16083 from mozilla/fxa-8552-invalid-stripe-key
feat(auth,admin): add stripe key error on startup
2023-11-29 11:46:37 -05:00
Barry Chen 1a5066cbee
Merge pull request #16124 from mozilla/FXA-8708-no-pref-metrics
fix(metrics): re-enable metrics for Settings
2023-11-29 08:52:03 -06:00
dependabot[bot] 549b60de40
chore(deps-dev): bump @nx/storybook from 16.9.1 to 17.1.3
Bumps [@nx/storybook](https://github.com/nrwl/nx/tree/HEAD/packages/storybook) from 16.9.1 to 17.1.3.
- [Release notes](https://github.com/nrwl/nx/releases)
- [Commits](https://github.com/nrwl/nx/commits/17.1.3/packages/storybook)

---
updated-dependencies:
- dependency-name: "@nx/storybook"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-29 06:29:26 +00:00
Lauren Zugai fbf452be05
Merge pull request #16101 from mozilla/dependabot/npm_and_yarn/storybook/nextjs-7.5.3
chore(deps-dev): bump @storybook/nextjs from 7.4.5 to 7.5.3
2023-11-28 16:39:02 -06:00
Barry Chen 942f0c8a5e
fix(metrics): re-enable metrics for Settings
Because:
 - metrics in Settings were accidentally disabled for all users

This commit:
 - (re-)enables Settings metrics according to user preference
2023-11-28 14:37:46 -06:00
dschom be22cb6f00
task(settings,auth,react,payments): Clean up deprecated l10n strings
Because:
- Now that branding has landed we can safely remove old l10n strings

This Commit:
- Removes old l10n strings referencing firefox branding
2023-11-28 12:05:00 -08:00
Reino Muhl d50888bf04
feat(auth,admin): add stripe key error on startup
Because:

* It is difficult to identify when a Stripe API key is no longer valid

This commit:

* Adds an error messsage to service logs on Stripe initialization
* In dev environment auth server propagates Stripe 401 error in response

Closes #FXA-8552
2023-11-28 14:44:13 -05:00
Valerie Pomerleau b824993a3c
Merge pull request #16074 from mozilla/FXA-8666
fix(content): Prevent infinite loop when showReactApp set to false
2023-11-28 11:41:39 -08:00
Valerie Pomerleau 88b63dd41e
Merge pull request #16118 from mozilla/FXA-8722
fix(auth): Disable GET recoveryKey/hint route
2023-11-28 11:08:26 -08:00
Valerie Pomerleau f48cf95a8a
fix(content): Prevent infinite loop when showReactApp set to false
Because:

* Changing showReactApp to false in the URL was resulting in an infinite loop preventing rendering

This commit:

* Always render React app for routes fully turned on in prod and disregard showReactApp param in request
* Update tests

Closes #FXA-8666
2023-11-28 09:12:35 -08:00
dependabot[bot] 79c9df1bbe
chore(deps-dev): bump @storybook/nextjs from 7.4.5 to 7.5.3
Bumps [@storybook/nextjs](https://github.com/storybookjs/storybook/tree/HEAD/code/frameworks/nextjs) from 7.4.5 to 7.5.3.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/v7.5.3/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.5.3/code/frameworks/nextjs)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-27 23:51:26 +00:00
dependabot[bot] 0b93923fa2
chore(deps): bump postcss-preset-env from 7.8.3 to 9.3.0
Bumps [postcss-preset-env](https://github.com/csstools/postcss-plugins/tree/HEAD/plugin-packs/postcss-preset-env) from 7.8.3 to 9.3.0.
- [Changelog](https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/CHANGELOG.md)
- [Commits](https://github.com/csstools/postcss-plugins/commits/HEAD/plugin-packs/postcss-preset-env)

---
updated-dependencies:
- dependency-name: postcss-preset-env
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-27 23:42:16 +00:00
dependabot[bot] 3c351dcf3a
chore(deps): bump actions/setup-node from 3 to 4
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-27 23:36:55 +00:00
Valerie Pomerleau f5e65a4152
fix(auth): Disable GET recoveryKey/hint route
Because:

* Rate limiting is not working as expected on this currently unused route

This commit:

* Disable (by commenting out) the GET recoveryKey/hint route and associated tests
* Add comments about intended rate limiting on this route

Closes #FXA-8722
2023-11-27 14:51:32 -08:00
Vijay Budhram 0323bb5ae7
Merge pull request #16112 from mozilla/revert-16092-fxa-8640
Revert "feat(auth): Convert auth customs/profile server lib to axios, general cleanup"
2023-11-22 20:16:53 -05:00
Vijay Budhram f9dea043c1
Revert "feat(auth): Convert auth customs/profile server lib to axios, general cleanup" 2023-11-22 19:51:03 -05:00
Dan Schomburg 96ca805e3c
Merge pull request #16068 from mozilla/fix-ci-unit-tests-maybe
bug(auth): Fix targeting of integration tests
2023-11-22 11:56:02 -08:00
Dan Schomburg f3d7f1a377
Merge pull request #16105 from mozilla/FXA-8286
task(settings): Create tests for signup container component
2023-11-22 11:55:47 -08:00
Dan Schomburg ac0342576a
Merge pull request #16107 from mozilla/FXA-8303
task(settings): Add container tests for ConfirmSignupCode
2023-11-22 11:55:31 -08:00
dschom 53f6562e60
bug(auth): Fix targeting of integration tests
Because:
- We were seeing integration tests failing in unit-test sweets
- This indicates that our we incorrectly targeted tests.

This commit:
- Makes sure that any test suite requiring a server to be started is marked as integration.
- Closes one server that may have been left open.
2023-11-22 11:26:27 -08:00
dschom 6f9bafe03f
task(settings): Create tests for signup container component
Because:
- We want to be able to test container components
- We want to establish some patterns around testing container components

This Commit:
- Adds test coverage to signup's container component
- Adds additional comments since this is the first time we are testing a container and some basic patterns are being established.
2023-11-22 11:25:42 -08:00