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

190 Коммитов

Автор SHA1 Сообщение Дата
Lisa Chan c33d786bc6
Merge pull request #17334 from mozilla/FXA-7579
fix(libs): Add Coupon component
2024-09-11 12:38:53 -04:00
Lisa Chan e66d0a6042
feat(apps/libs): Add CouponForm Component 2024-09-11 11:57:51 -04:00
Reino Muhl 73bd174c9d
Merge pull request #17550 from mozilla/fxa-9998-add-sentry-payments
feat(next): add sentry to payments-next
2024-09-09 17:25:20 -04:00
Reino Muhl 54fefd2872
feat(next): add sentry to payments-next
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
2024-09-09 13:21:21 -04:00
julianpoyourow ba65ee49d2
chore(payments): split payments-stripe into payments-customer 2024-09-06 23:00:01 +00:00
Reino Muhl d5526d8b05
feat(next): add subplat glean server yaml
Because:

- Define glean events and metrics for subplat backend events

This commit:

- Adds metrics and events to subplat backend metrics yaml

Closes #FXA-10086
2024-09-04 14:05:01 -04:00
Lisa Chan d0cd5bd6f8
Merge pull request #17480 from mozilla/polish_pr
fix(libs): Revise file name/structure for client and server components
2024-08-28 09:07:52 -04:00
Lisa Chan 79f0f04727
fix(libs): Revise file structure for client and server components 2024-08-27 13:38:26 -04:00
Julian Poyourow 1f21b561f9
Merge pull request #17384 from mozilla/fxa-10175
fix(shared-cms): re-enable caching decorator
2024-08-27 09:25:13 -07:00
Julian Poyourow 1cadefc176
Merge pull request #17448 from mozilla/FXA-10173
feat(cart): validate promo code prior to cart actions
2024-08-27 09:23:22 -07:00
julianpoyourow 11e2fc7f81
feat(cart): validate promo code prior to cart actions
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
2024-08-26 21:35:31 +00:00
Lisa Chan 31234efc75
feat(payments-cart): Increment statsd counters 2024-08-26 10:46:21 -04:00
julianpoyourow 584bf462d9
fix(payments-cart): update cart taxAddress type
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
2024-08-20 19:55:39 +00:00
julianpoyourow 40484a6dd6
fix(shared-cms): re-enable caching decorator
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
2024-08-19 18:22:07 +00:00
Julian Poyourow 3fc4e60806
Merge pull request #17387 from mozilla/fxa-10174
chore(libs): update tests to use NestJS DI helper
2024-08-14 08:00:51 -07:00
julianpoyourow 9dd6247668
chore(libs): update tests to use NestJS DI helper
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
2024-08-14 14:02:31 +00:00
Reino Muhl e15e7e718b
feat(next): add glean-generate script
Because:

- Have project target to generate glean code.

This commit:

- Adds glean metrics library.
- Adds blank subplat-backend-metrics.yaml
- Add glean-generate target to project.

Closes #FXA-9996
2024-08-09 15:05:16 -04:00
Reino Muhl a4003c3e6e
feat(payments-next): add processing page
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
2024-08-08 16:26:00 -04:00
dschom a205a8cd40
bug(graphql-api): Prevent known auth-server errors from percolating.
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.
2024-08-02 10:57:22 -07:00
Reino Muhl a7a70cf6ee
Merge pull request #17294 from mozilla/fxa-9980-replace-contentful-env
feat(auth): replace cms config
2024-07-31 11:16:25 -04:00
Reino Muhl a35b0e0dd5
feat(auth): replace cms config
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
2024-07-31 10:23:48 -04:00
Lauren Zugai c620899a7b
fix(signin): Display Pocket text logo (instead of Pocket logo) for signin
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
2024-07-30 10:21:57 -05:00
Reino Muhl b0d25576db
Merge pull request #17247 from mozilla/fxa-9797-cleanup-contentful-band-aids
feat(cms): cleanup contentful cms band aids
2024-07-26 17:13:04 -04:00
Reino Muhl c428a61a49
feat(cms): cleanup contentful cms band aids
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
2024-07-26 12:37:49 -04:00
Ben Bangert d39fca36e5
chore: update nx to 19.5.1 and typescript to 5.5.3
Because:

* nx 19.5.1 has been released
* typescript 5.5.3 has been released

This commit:

* updates nx to 19.5.1
* updates typescript to 5.5.3
2024-07-23 22:37:41 +00:00
julianpoyourow 158beb4828
fix(payments-next): add StrapiClientConfig to nestapp config 2024-07-17 19:55:13 +00:00
julianpoyourow ba3a4399f8
feat(shared-cms): switch to Strapi 2024-07-15 20:08:33 +00:00
Lisa Chan 10ac0451bb
refactor(libs): Move methods out of ContentfulService 2024-06-28 17:31:08 -04:00
Lisa Chan 66d28d6e16
refactor(libs): Rename Contentful library to generic name 2024-06-28 17:00:27 -04:00
Reino Muhl f47d120d71
feat(libs): convert libs/* to esbuild and swc/jest
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
2024-06-27 15:28:55 -04:00
Lisa Chan 93c3d6c209
Merge pull request #17138 from mozilla/FXA-9457
feat(payments-server): Show coupon name in in Subscription Management
2024-06-21 12:34:16 -04:00
Lisa Chan c467ce4a4f
feat(payments-server): Show coupon name in in Subscription Management 2024-06-21 09:42:29 -04:00
Ben Bangert 39efc8ddf4
chore: update nx to 19.3
Because:

* We want to use the latest version of Nx.

This commit:

* Updates Nx to 19.3.
2024-06-20 17:34:39 +00:00
Lisa Chan f05d73021b
fix(libs): Refactor Stripe Plan usage to Stripe Price 2024-06-13 14:23:35 -04:00
Julian Poyourow 1f9be8cdf0
Merge pull request #17072 from mozilla/FXA-9705
chore(libs): restructure stripe lib into responsibility-driven structure
2024-06-05 11:17:05 -07:00
Lisa Chan f9f670fb2e
fix(payments-next): Implement a11y improvements 2024-06-05 10:55:43 -04:00
julianpoyourow de2ad977c9
chore(libs): restructure stripe lib into responsibility-driven structure 2024-06-04 16:53:26 +00:00
dschom 40615780f1
task(auth, graphql-api, admin-server): Update event-broker's profileDataChange data schema and remove the metrics-change event
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.
2024-05-23 18:39:15 -07:00
Reino Muhl 154d2b3154
feat(next): move localization provider
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 #
2024-05-22 11:10:50 -04:00
Meghan Sardesai 6dbc8950e9
feat(checkoutService): update CheckoutService prePaySteps
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
2024-05-22 10:31:11 -04:00
Reino Muhl 954b17071c
feat(next): cleanup tasks
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
2024-05-16 15:37:23 -04:00
Lisa Chan b0bdf9f861
feat(libs): Add InvoicePreview to getCart Action 2024-05-16 14:37:46 -04:00
Reino Muhl 4ac4a6fd79
Merge pull request #16818 from mozilla/fxa-7806-next-checkbox
feat(next): add consent checkbox
2024-05-14 13:06:09 -04:00
Lisa Chan f9e3a36b4b
fix(shared-contentful): Update index to add page-content-for-offering 2024-05-14 12:26:44 -04:00
Lisa Chan d84c1e8260
Merge pull request #16936 from mozilla/FXA-7513
feat(payments,shared): Add ContentfulService to Nest.js AppSingleton
2024-05-14 09:15:32 -04:00
Reino Muhl 6409c5e422
feat(next): add consent checkbox
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
2024-05-14 08:52:06 -04:00
Reino Muhl cd6b386a06
fix(contentful): fix queries using apiIdentifier
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 #
2024-05-14 08:12:58 -04:00
Lisa Chan 9c03da39fc
feat(payments,shared): Add ContentfulService to Nest.js AppSingleton 2024-05-13 16:37:17 -04:00
Lisa Chan 655adfa184
Merge pull request #16885 from mozilla/FXA-7511
feat(shared-contentful): Update ContentfulManager to return page content from API identifier
2024-05-10 11:16:54 -04:00
Lisa Chan fd7125b88b
feat(shared-contentful): Update ContentfulManager to return page content from API identifier 2024-05-10 10:42:46 -04:00