Because:
- Be able to use Sentry in Next.js on both the client and the server
This commit:
- Add Sentry to payments-next using the installation wizard
Closes #FXA-9998
Because:
- Define glean events and metrics for subplat backend events
This commit:
- Adds metrics and events to subplat backend metrics yaml
Closes #FXA-10086
Because:
- We don't want carts to be able to proceed with actions with invalid
coupon codes
This commit:
- Adds validation so that an invalid coupon code doesn't result in the
customer getting invisibly charged more than they saw in the checkout
ui.
Closes FXA-10173
Because:
- The cart was returning the incorrect type for taxaddress
This commit:
- Modifies the kysely-types entry in accordance with the example here:
https://kysely.dev/docs/getting-started#types
Closes FXA-10172
Because:
- The caching decorator was disabled in a previous PR (pre-Strapi) due to some
issues. I was unable to replicate these issues in the latest Strapi
client.
This commit:
- Re-enables the caching decorator.
Closes FXA-10175
Because:
- Several of our tests were not using the NestJS DI helper or were using
the old style.
This commit:
- Updates a few tests to the new style.
Closes FXA-10174
Because:
- After subscribe now button is pressed or paypal payment is completed
the customer should be navigated to a processing page.
This commit:
- Adds the processing page.
- Adds a Loading Spinner for payments-next
Closes #FXA-7577
Because:
- We were seeing lots of 'Incorrect Email Case' exceptions showing up in Sentry.
This Commit:
- Suppress known auth server errors
- Refactors so logic for ignoreError is easier to use and test
Note, this logic is also in place in `sentry.interceptor.ts`. After some manual testing in fxa-graphql-api it appears that it is needed in both places, since the errors can be reported from either place.
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
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
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
Because:
- ts-jest is consuming too much memory during unit test execution
This commit:
- Replace ts-jest with @swc/jest, which has better memory utilization
- Replace Nx TSC build executor with Nx esbuild build executor, for better performance.
- Reduce size of unit-test job instance size from large back to medium+
Closes #FXA-9879
Because:
- In a previous PR, a new event type was created, but we should have repurposed the profileDataChange event type
- During the previous deployment it was noted that there are different ways to configure sns, and that a topic arn and/or topic endpoint might not be required
This Commit:
- Relaxes requirements for notifier service.
- Makes snsTopicEndpoint optional
- Makes snsTopicArn optional
- Removes the `metricsChange` event type
- Augments the `profileDataChange` type schema to support, locale, metricsEnabled, totpEnabled, accountDisabled, and accountLocked states.
- Emmits the `profileDataChange` whenever corresponding account data is mutated.
Because:
* Fluent LocalizationProvider is currently initialized on the client
causing noticable load times for client components.
This commit:
* Initialize ReactLocalization on the server
* Wrap near root layout with LocalizationProvider as suggested by
Nextjs docs.
Closes #
Because:
* We want to validate cart and customer have matching credentials.
This commit:
* Completes the TODO list:
* Validates stripeCustomerId on the cart.
* Revalidates total amount against upcoming invoice.
* Validates customer eligibility for target plan.
* Validates customer address, tax eligibility, and promo code (if applicable).
* Cancels incomplete subscriptions.
* Updates tests where applicable.
Closes FXA-8951
Because:
* During development some console errors and warnings were introduced
* Improve developer experience and code quality of payments next
This commit:
* Update imports in Payments Next from root project directory
* Resolve browser console errors
* Added missing CSP content items
* Removed Layout image width to remove next/image warning
* Resolved server console error related to nest-typed-config
* Extract CheckoutForm button into PrimaryButton component
* Added Stripe Public API key config variable
* Updated checkout page headings
* Updated Stripe Payment Element to use accordion
* Added ConfigProvider for client components
Closes #FXA-9625
Because:
* Add consent checkbox, reminder error tooltip and payment section with
default disabled state.
This commit:
* Adds a new client component for the consent checkbox and implements
a Radix holdover component for the error tooltip.
* Adds PaymentSection client component.
Closes: #FXA-7806
Because:
* Queries should search for apiIdentifiers that equal input param
This commit:
* Queries using apiIdentifier updated to search for offering with
apiIdentifier that matches the input parameter
Closes #