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

414 Коммитов

Автор SHA1 Сообщение Дата
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
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
Davey Alvarez 5a753ffaf0
setup paypal processnonzeroinvoice 2024-11-19 11:47:40 -08: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
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
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
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
Vijay Budhram d758f4939e
feat(phone): Add `unconfirmed` to RecoveryPhoneManager 2024-11-14 09:26:47 -05:00
Vijay Budhram 80b607482e
feat(phone): Add create, get methods for recovery phone lib 2024-11-12 10:40:52 -05:00
Julian Poyourow c1622a0445
Merge pull request #17981 from mozilla/FXA-10542
feat(cart): add needs_input state
2024-11-06 13:31:16 -08:00
julianpoyourow 81b8bbff0d
feat(cart): add needs_input state
Because:

- We want to track a cart state where the cart waits on a user input

This commit:

- Adds the needs_input state

Closes FXA-10542
2024-11-06 16:59:54 +00:00
Dan Schomburg 4f125ec31d
task(accounts): Create sms.manager
Because:
- We want a SMS manager to send messages

This Commit:
- Creates an sms manager that wraps sending of twilio messages
- Ensures that manager is injectable with NestJS
- Creates a twilio provider
- Ensures that provider is injectable with NestJS
- Introduces the twilio as a root level package dependency
2024-11-05 15:09:08 -08:00
Reino Muhl 7da1197d19
Merge pull request #17927 from mozilla/fxa-10564-glean-enable-env-var
feat(payments-metrics): add glean enabled env var
2024-11-05 16:04:30 -05:00
Reino Muhl 914440bd7e
feat(payments-metrics): add glean enabled env var
Because:

- Need to be able to enable or disable glean recording of events.

This commit:

- Adds enabled value to payments metrics glean config
- Updates payments metrics glean manager to respect enabled config value

Closes #FXA-10564
2024-11-05 15:07:55 -05:00
Vijay Budhram 320a84f436
feat(2fa): Add `backup-code` libs 2024-11-05 12:40:30 -05:00
Dan Schomburg 73b710023e
Merge pull request #17938 from mozilla/FXA-10460-admin-server
task(admin-server): Fix admin server startup times and some refactor
2024-10-31 14:31:54 -07:00
Reino Muhl b9e5cef7e8
Merge pull request #17949 from mozilla/fxa-10503-update-payment-provider
feat(next): update cart payment info logic
2024-10-31 15:43:59 -04:00
Reino Muhl 912c24c282
feat(next): update cart payment info logic
Because:

- Update emitter and glean records with actual payment provider
- Add paypal payment provider logic to success page

This commit:

- Updates emitter calls to include payment provider
- Updates emitter event for a failure to allow for undefined payment
  provider
- Removes ConfirmationDetail component from success page and moves logic
  into page JSX.
- Adds card and paypal images

Closes #FXA-10503 FXA-10608
2024-10-31 11:59:37 -04:00
Ben Bangert 88d94a6764
Merge pull request #17941 from mozilla/FXA-10333
feat: add recovery-phone library
2024-10-31 07:41:14 -07:00
Lisa Chan 02b4c184c1
Merge pull request #17900 from mozilla/FXA-10546
feat(payments-ui): Add error messaging for invalid email input
2024-10-31 09:11:24 -04:00
Ben Bangert 904923e113
feat: add recovery-phone library
Because:

* We want a root recovery-phone library for related functionality.

This commit:

* Adds a new recovery-phone library.
2024-10-31 01:19:54 +00:00
Dan Schomburg 14c64e18b7
task(admin-server): Fix startup times and some refactor
Because:
- We want to improve startup performance of admin-server
- We determined using the @sentry/node package in the admin-server was source of slowdown
- Using @sentry/nestjs made a big improvement in startup time.

This Commit:
- Switches to using @sentry/nestjs integration for admin-server
- Refactors libs/sentry into three distinct contexts libs/sentry-nestjs, libs/sentry-node, libs/sentry-browser, and libs/sentry-utils
- Extracts common functions to libs/sentry-utils so they can be reused.
2024-10-30 12:32:46 -07:00
Lisa Chan ad18990d4a
fix(payments-cart): Remove stub account logic 2024-10-29 11:13:09 -04:00
Lisa Chan aee838bd61
feat(payments-ui): Add error messaging for invalid email input 2024-10-25 14:41:39 -04:00
Reino Muhl 1a64d9078b
feat(next): use confirmation token in checkout
Because:

- Update Stripe checkout to use confirmation token instead of payment
  method while creating subscription and confirming the payment intent.

This commit:

- Updates the frontend to create a ConfirmationToken instead of payment
  method
- Updates Stripe Checkout to use ConfirmationToken
- Updates Stripe Checkout to confirm payment intent

Closes #FXA-7581
2024-10-23 12:30:08 -04:00
Lisa Chan a12ceb916e
Merge pull request #17867 from mozilla/FXA-10547
feat(payments-next): Component: SignedIn
2024-10-23 12:13:48 -04:00
Lisa Chan 322fccaa0d
feat(payments-next): Component: SignedIn 2024-10-23 10:20:36 -04:00
Julian Poyourow 2d204e7f92
Merge pull request #17860 from mozilla/FXA-10536
fix(eligibility): use offeringId instead of productId for eligibility
2024-10-23 00:12:34 -07:00
Davey Alvarez 4c3a787aaa
Update success page 2024-10-22 12:10:57 -07:00
julianpoyourow 05ccfcd7ff
fix(eligibility): use offeringId instead of productId for eligibility
Because:

- Product IDs can be shared between multiple offerings

This commit:

- Switches to comparing offering apiIdentifiers (offering IDs) rather
  than productIds

Closes FXA-10536
2024-10-18 21:30:46 +00:00
Lisa Chan 5bf120eb6d
Merge pull request #17846 from mozilla/FXA-7580
feat(payments-next): Sign-in/sign-up form
2024-10-18 14:31:13 -04:00
Lisa Chan 05906c16c8
feat(payments-next): Sign-in/sign-up form 2024-10-18 09:33:06 -04:00
Reino Muhl 10588e1120
feat(next): paypal createOrder and onApprove hooks
Because:

- Submit PayPal checkout to payments-next

This commit:

- Add logic to PayPal button createOrder and onApprove hooks.

Closes #FXA-7586
2024-10-17 15:11:31 -04:00
Davey Alvarez c24345d5ee
Add enabled and onError hooks to paypal component 2024-10-17 09:50:28 -07:00
Davey Alvarez c9100171f2
Set up cart status polling 2024-10-11 15:25:45 -07:00
Reino Muhl f5d65d327e
fix(next): create accountCustomer record on sub
Because:

- accountCustomer record is not created for uid and stripeCustomerId for
  a new customer.

This commit:

- Updates the CheckoutServic to create accountCustomer record when uid
  and stripeCustomerId exist.

Closes #
2024-10-10 12:43:47 -04:00
Lisa Chan c20c754e4e
feat(libs/payments): Implement customerChanged 2024-10-09 20:41:56 -04:00
Reino Muhl ef40a17022
fix(payments-ui): use actions ts alias
Because:

- Use the payments ui actions TS alias for all actions imports

This commit:

- Updates imports to make use of the payments ui actions TS alias

Closes #
2024-10-09 15:20:07 -04:00
Vijay Budhram 2ded7a7250
Merge pull request #17787 from mozilla/fxa-9352-v4
feat(totp): Add frontend 2FA before password reset screens
2024-10-09 07:47:42 -04:00
Vijay Budhram aa712ec7cf
feat(totp): Add frontend 2FA before password reset screens 2024-10-09 00:21:03 -04:00
Lisa Chan e499e564af
Merge pull request #17786 from mozilla/FXA-10511
feat(libs): Create NestLogger wrappers
2024-10-08 16:06:31 -04:00
Julian Poyourow a7127f14ec
Merge pull request #17788 from mozilla/FXA-10454
chore(shared-cms): strapi 5 upgrade
2024-10-08 12:38:12 -07:00
Lisa Chan b82c02273f
feat(libs): Create NestLogger wrappers 2024-10-08 14:49:08 -04:00
Ben Bangert 398c76733e
Merge pull request #17764 from mozilla/fix/use-proper-nest-logging-signature
fix: standardize logging on Nest LoggerService in /libs
2024-10-08 09:20:21 -07:00
Ben Bangert f67355e892
fix: standardize logging on Nest LoggerService in /libs
Because:

* We want consistent logging that is compliant with the Nest
  LoggerService.

This commit:

* Updates the MozLoggerService to implement the Nest LoggerService
  interface.
* Updates consumers of MozLoggerService to use standard LoggerService
  methods.
2024-10-08 15:43:03 +00:00
Reino Muhl e23da68baf
feat(payments-next): remaining p1 metrics
Because:

- payments-next should be be recording all P1 metrics.

This commit:

- Renames PaymentsGleanService to PaymentsEmitterService to more
  accurately indicate that this service will be used to handle all
  Emitter events.
- Restructure EmitterService to reuse common functionality.
- Restructure EmitterService to reuse common functionality.
- Renames recordGleanEvents to recordEmitterEvents to more accurately
  indicate that this action should be used to emit Emittery events on
  the server.
- Emit CheckoutView/Engage/Submit/Success/Error events from pages and
  components where necessary.
- Record the appropriate Glean event for each of the Emittery events.

Closes #FXA-10088
2024-10-07 16:22:46 -04:00
julianpoyourow b32169036f
chore(shared-cms): strapi 5 upgrade
Because:

- We want to use Strapi 5

This commit:

- Upgrades our queries and libraries to use Strapi 5

Closes FXA-10454
2024-10-07 18:19:58 +00:00