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 #
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
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
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.
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 #
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
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
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.
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
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
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
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.