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

31850 Коммитов

Автор SHA1 Сообщение Дата
Reino Muhl c8156174c1
Merge pull request #18049 from mozilla/fix-payments-next-analyzer
fix(next): add bundle analyzer as dep
2024-11-20 19:39:15 -05:00
Reino Muhl 75d2d3c8ce
fix(next): add bundle analyzer as dep
Because:

- Since bundle analyzer is used in next.js config, it needs to be added
  as a package dependency.

This commit:

- Moves bundle analyzer from dev dependency to dependency.

Closes #
2024-11-20 18:33:07 -05:00
Dan Schomburg e482c1b550
Merge pull request #18043 from mozilla/FXA-10777 2024-11-20 08:42:47 -08:00
Valerie Pomerleau 7c9c5559d5
Merge pull request #18030 from mozilla/settings-appErrorDialogue-sentry-capture
feat(settings): Add sentry capture for AppErrorDialog
2024-11-20 08:36:19 -08:00
Reino Muhl 1df676143c
Merge pull request #18036 from mozilla/fxa-10712-next-memory-leak-fix
feat(next): reduce bundle size
2024-11-19 18:01:05 -05:00
Reino Muhl 1b9d7fff86
feat(next): reduce bundle size
Because:

- The `payments-next` builds are taking very long and using many system
  resources.
- Under normal operation, the `payments-next` service in dev mode is
  using a lot of memory and at times running into its 7gb memory limit,
  causing a service restart.

This commit:

- Adds Next.js bundle analyzer to `payments-next`
- Adds additional packages to serverComponentsExternalPackages.
  - By default Nextjs automatically bundles dependencies used in Server
    Components and Route Handlers. As a result, all dependencies used in
    the NestApp were being bundled by Next.js, which bloated the Next.js
    nodejs bundle.
  - All dependencies used in the NestApp, should not be included in the
    Next.js bundle, and should therefore be added to
    `serverComponentsExternalPackages` going forward.
  - Dependencies that are potentially used by Next.js as part of server
    side rendering or hydration of pages should still be included in the
    Next.js bundle, and should not be added to
    `serverComponentsExternalPackages`.

Closes #FXA-10712
2024-11-19 17:08:39 -05:00
Julian Poyourow 0b7c299e0f
Merge pull request #18042 from mozilla/random-spread-strapi-memcache-bust
feat(auth): fixes for Strapi
2024-11-19 13:55:12 -08:00
Davey Alvarez b42e55ddb9
Merge pull request #17961 from mozilla/FXA-10189-payPal-processNonZeroInvoice
setup paypal processnonzeroinvoice
2024-11-19 12:56:31 -08:00
julianpoyourow a76ced3e04
feat(auth): various Strapi fixes
Because

- We want to spread out any flood of cache resets (unlikely since servers take varying amounts of time to spin up, but possible)
- We want to wait on a pending cachable request between reset periods, simply due to the sheer number of requests that could go through in the interval during a cache reset period.
- We want to enable Strapi in "shadow mode" to log potential mismatches

This commit

- Adds a random spread to cache reset interval
- Waits on pending cachable requests
- Enables Strapi in key_server if config is present
2024-11-19 20:49:37 +00:00
Dan Schomburg fbba52068a
task(customs): Alter customs rules for getCredentialStatus action
Because:
- We've seen an increase in 'unblock sign in' page views, which led to investigating the customs config.
- If a key stretching upgrade occurs, we will trigger a getCredentialsStatus, passwordChange & accountLogin action.
- Therefore we potentially have 3x the number actions during an upgrade scenario.

This Commit:
- Moves the getCredentialStatus action into the ACCOUNT_STATUS_ACTION set, which more correctly fits the nature of this action.
- The default for maxAccountStatusCheck has been increased, because key stretching changes need a bit more overhead for these types of actions.
2024-11-19 12:48:26 -08:00
Davey Alvarez 5a753ffaf0
setup paypal processnonzeroinvoice 2024-11-19 11:47:40 -08:00
Julian Poyourow cc70f3d98c
Merge pull request #17980 from mozilla/FXA-10593
fix(auth): disable stripe tax when currency/country incompatible
2024-11-19 09:41:52 -08:00
Valerie Pomerleau 4a2d9b9518
feat(settings): Add sentry capture for AppErrorDialog
Because:

* We want to measure how often users see this screen from an error on retrieving initial settings state, and compare with AppErrorBoundary

This commit:

* Add Sentry capture exception, add tags for source

Closes #
2024-11-19 09:36:27 -08:00
Vijay Budhram 387cf9e11c
Merge pull request #18031 from mozilla/fxa-10729
fix(errors): Always emit glean settings view event if glean metrics is enabled
2024-11-19 11:21:23 -05:00
Dan Schomburg 91c20d82ef
Merge pull request #18022 from mozilla/FXA-10348
task(recovery-phone): Add confirmCode method
2024-11-18 17:06:33 -08:00
Vijay Budhram 13777a2ab2
Merge pull request #18032 from mozilla/dependabot/npm_and_yarn/npm_and_yarn-3af81c524d
chore(deps): bump postcss from 8.4.47 to 8.4.48 in the npm_and_yarn group
2024-11-18 11:33:03 -05:00
dependabot[bot] 60c26e5c5c
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.47 to 8.4.48
- [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.47...8.4.48)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-16 05:47:01 +00:00
Lauren Zugai ea8f8b1e9d
Merge pull request #18029 from mozilla/session-expired-fix
fix(sync): Always send firefox.fxaLogout on sign out
2024-11-15 18:24:00 -06:00
Lauren Zugai 2a4e264623
fix(sync): Always send firefox.fxaLogout on sign out
Because:
* If users are signed into the browser but they've accessed account settings in a non-Sync context, the browser holds onto the old session token, leading to a 'Session Expired' page when they try to access CAD or account settings from the browser

This commit:
* Removes the isSync() check around the firefox.fxaLogout call
* Cleans up stuff no longer needed

fixes FXA-10770
2024-11-15 17:12:38 -06:00
Valerie Pomerleau 3ad136a5d5
Merge pull request #18020 from mozilla/FXA-10613
style(settings): General style updates
2024-11-15 14:33:33 -08:00
Vijay Budhram 2b8a3b7ca0
fix(errors): Always emit glean settings view event if glean metrics is enabled 2024-11-15 16:26:38 -05:00
Barry Chen eb6f2259be
Merge pull request #18019 from mozilla/fxa-10568-fxa-10569-inactives
feat(scripts): add script to find and notifiy inactive accounts
2024-11-15 13:48:34 -06:00
Reino Muhl 09096fbd0c
Merge pull request #18021 from mozilla/fxa-10548-checkout-signinup
feat(next): add email, google, apple sign in
2024-11-15 11:38:46 -05:00
Vijay Budhram a5fa00a039
Merge pull request #18018 from mozilla/fxa-10344
feat(phone): Add `getConfirmedPhoneNumber` and `removePhoneNumber` functions
2024-11-15 10:56:55 -05:00
Barry Chen 001cf3a792
Merge pull request #18026 from mozilla/dependabot/npm_and_yarn/hot-shots-10.2.1
chore(deps): bump hot-shots from 10.1.1 to 10.2.1
2024-11-15 08:51:06 -06:00
dependabot[bot] d6adedc98f
chore(deps): bump hot-shots from 10.1.1 to 10.2.1
Bumps [hot-shots](https://github.com/brightcove/hot-shots) from 10.1.1 to 10.2.1.
- [Changelog](https://github.com/brightcove/hot-shots/blob/master/CHANGES.md)
- [Commits](https://github.com/brightcove/hot-shots/compare/v10.1.1...v10.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-15 06:40:00 +00:00
Valerie Pomerleau 50b350fa2f
style(settings): General style updates
Because:

* Switching design to text-start default instead of text-center
* Some images were cut off on mobile

This commit:

* Update style for AppLayout
* Update image styling
* Various tweaks to accomodate change to text-start
* Set size for Mozilla logo in Storybook sidebar
* Replace placeholder image used in storybooks
* Increase spacing below primary buttons

Closes #FXA-10613
2024-11-14 14:35:46 -08:00
Lauren Zugai 6a04b3015d
Merge pull request #17982 from mozilla/FXA-10210
feat(ux): Update 2fa signin screens/reset PW copy, create HeadingPrimary
2024-11-14 16:21:58 -06:00
Dan Schomburg 22692ae852
task(recovery-phone): Add confirmCode method
Because:
- We want to able to confirm a user's setup code

This Commit:
- Adds a method called confirmCode to the recovery-phone service
- Register the phone number to the account in the event the code provided is valid.
2024-11-14 14:02:15 -08:00
Reino Muhl 182c00b3c1
feat(next): add email, google, apple sign in
Because:

- On the checkout page, after populating the email clicking continue
  should navigate the user to the FxA signin page for signin.
- On the checkout page, when clicking Google/Apple button, it should
  start the third party auth via FxA.
- Completion of either signin option should navigate the user back to
  the checkout page in a signed in state.

This commit:

- Updated Auth.js provider to support email, google and apple login
- Customers are redirected to the '/new' page on successful login, which
  creates a new cart with the customers uid added.
- Updates Payments Next auth config to a non-public client.

Closes #FXA-10548
2024-11-14 16:58:25 -05:00
Lauren Zugai d722c1f7eb
feat(ux): Update 2fa signin screens/reset PW copy, create HeadingPrimary
Because:
* We are prepping for SMS work and want to make some small UX improvements

This commit:
* Creates HeadingPrimary for our grey h1 text at the top of our flows that we are moving towards
* Updates copy and styling for 2FA signin and reset password

closes FXA-10210
2024-11-14 15:47:07 -06:00
Dan Schomburg 448265b44b
Merge pull request #18007 from mozilla/FXA-10347
task(recovery-phone): Create new phone number setup method
2024-11-14 13:19:14 -08:00
Barry Chen 78e68b3b7c
feat(scripts): add script to find and notifiy inactive accounts
Because:
 - we need a script to find inactive accounts and start the deletion
   process by sending a notification email

This commit:
 - scaffolds the script without enqueuing any emails
2024-11-14 12:45:12 -06:00
Barry Chen a1b137c04f
Merge pull request #18011 from mozilla/inactive-uids-concurrency
chore(script): add concurrency to inactive uids script
2024-11-14 12:06:25 -06:00
Dan Schomburg 35c0d738a0
task(recovery-phone): Create RecoveryPhoneService and new phone number setup method
Because:
- We want to be able to setup a new phone number

This Commit:
- Creates a recovery phone service
- Stubs out storeUnconfirmed in RecoveryPhoneManager
- Adds config for recovery phone service
- Adds tests for recovery phone service
- Adds new error type RecoveryNumberNotSupportedError
- Public exposes generateCode on OtpManager.
2024-11-14 10:03:12 -08:00
Vijay Budhram 88324a3b1f
feat(phone): Add `getConfirmedPhoneNumber` and `removePhoneNumber` functions 2024-11-14 12:02:39 -05:00
Wil Clouser 616c182a13
Merge pull request #18016 from mozilla/dependabot/npm_and_yarn/next-auth-5.0.0-beta.25
chore(deps): bump next-auth from 5.0.0-beta.17 to 5.0.0-beta.25
2024-11-14 08:19:01 -08:00
Wil Clouser ba822d5459
Merge pull request #18017 from mozilla/dependabot/npm_and_yarn/swc/cli-0.5.0
chore(deps-dev): bump @swc/cli from 0.3.12 to 0.5.0
2024-11-14 08:18:09 -08:00
Wil Clouser bb8ef41b72
Merge pull request #18015 from mozilla/dependabot/npm_and_yarn/cron-3.2.1
chore(deps): bump cron from 3.1.7 to 3.2.1
2024-11-14 08:17:37 -08:00
Vijay Budhram a2a8c19f45
Merge pull request #18012 from mozilla/fxa-10346
feat(phone): Add `unconfirmed` to RecoveryPhoneManager
2024-11-14 10:07:46 -05:00
Vijay Budhram d758f4939e
feat(phone): Add `unconfirmed` to RecoveryPhoneManager 2024-11-14 09:26:47 -05:00
dependabot[bot] 18c6419a4a
chore(deps-dev): bump @swc/cli from 0.3.12 to 0.5.0
Bumps [@swc/cli](https://github.com/swc-project/pkgs) from 0.3.12 to 0.5.0.
- [Commits](https://github.com/swc-project/pkgs/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-14 07:28:14 +00:00
dependabot[bot] be6b2e49c4
chore(deps): bump next-auth from 5.0.0-beta.17 to 5.0.0-beta.25
Bumps [next-auth](https://github.com/nextauthjs/next-auth) from 5.0.0-beta.17 to 5.0.0-beta.25.
- [Release notes](https://github.com/nextauthjs/next-auth/releases)
- [Commits](https://github.com/nextauthjs/next-auth/commits)

---
updated-dependencies:
- dependency-name: next-auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-14 07:27:47 +00:00
dependabot[bot] 8ac14482f2
chore(deps): bump cron from 3.1.7 to 3.2.1
Bumps [cron](https://github.com/kelektiv/node-cron) from 3.1.7 to 3.2.1.
- [Release notes](https://github.com/kelektiv/node-cron/releases)
- [Changelog](https://github.com/kelektiv/node-cron/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kelektiv/node-cron/compare/v3.1.7...v3.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-14 07:23:54 +00:00
Wil Clouser 13f7bc8202
Merge pull request #17999 from mozilla/dependabot/npm_and_yarn/app-store-server-api-0.16.0
chore(deps): bump app-store-server-api from 0.15.3 to 0.16.0
2024-11-13 07:33:35 -08:00
Wil Clouser 780ad819e8
Merge pull request #18001 from mozilla/dependabot/npm_and_yarn/css-minimizer-webpack-plugin-7.0.0
chore(deps): bump css-minimizer-webpack-plugin from 4.2.2 to 7.0.0
2024-11-13 07:29:40 -08:00
Barry Chen f849cd0d6b
Merge pull request #18010 from mozilla/dependabot/npm_and_yarn/sentry-5b30f9e29d
chore(deps): bump the sentry group with 5 updates
2024-11-13 07:53:02 -06:00
dependabot[bot] 849ee1e382
chore(deps): bump the sentry group with 5 updates
Bumps the sentry group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [@sentry/browser](https://github.com/getsentry/sentry-javascript) | `8.37.1` | `8.38.0` |
| [@sentry/nestjs](https://github.com/getsentry/sentry-javascript) | `8.37.1` | `8.38.0` |
| [@sentry/nextjs](https://github.com/getsentry/sentry-javascript) | `8.37.1` | `8.38.0` |
| [@sentry/node](https://github.com/getsentry/sentry-javascript) | `8.37.1` | `8.38.0` |
| [@sentry/opentelemetry](https://github.com/getsentry/sentry-javascript) | `8.37.1` | `8.38.0` |


Updates `@sentry/browser` from 8.37.1 to 8.38.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/8.37.1...8.38.0)

Updates `@sentry/nestjs` from 8.37.1 to 8.38.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/8.37.1...8.38.0)

Updates `@sentry/nextjs` from 8.37.1 to 8.38.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/8.37.1...8.38.0)

Updates `@sentry/node` from 8.37.1 to 8.38.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/8.37.1...8.38.0)

Updates `@sentry/opentelemetry` from 8.37.1 to 8.38.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/8.37.1...8.38.0)

---
updated-dependencies:
- dependency-name: "@sentry/browser"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry
- dependency-name: "@sentry/nestjs"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry
- dependency-name: "@sentry/nextjs"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry
- dependency-name: "@sentry/node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry
- dependency-name: "@sentry/opentelemetry"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-13 07:04:36 +00:00
Barry Chen 4b7d2235d7
chore(script): add concurrency to inactive uids script
Because:
 - the script takes a long time to run

This commit:
 - adds concurrency to the active status checks
2024-11-12 20:53:20 -06:00
Vijay Budhram 4fef7bb7ef
Merge pull request #17979 from mozilla/fxa-10341
feat(phone): Add creat methods for recovery phone lib
2024-11-12 11:22:52 -05:00