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

26724 Коммитов

Автор SHA1 Сообщение Дата
Ankita Shrivastava de16174254
Merge pull request #14644 from mozilla/update-payment-modes
[subplat] test(subplat): add test for resubscription and update mode of payment
2022-12-19 15:06:40 -05:00
Reino Muhl 5dc1f39863
Merge pull request #14639 from mozilla/fxa-6391-hide-taxes-fees-inclusive
feat(payments): hide taxes for inclusive tax
2022-12-19 14:57:46 -05:00
Dan Schomburg 4c14d3e2c2
Merge pull request #14597 from mozilla/FXA-6344
task(ci): Use docker base images to run pipelines
2022-12-19 11:09:42 -08:00
Reino Muhl 142a608ef2
feat(payments): hide taxes for inclusive tax
Because:

* we want to hide the Taxes & Fees for countries with inclusive tax.

This commit:

* updates the PlanDetails component to hide Taxes & Fees when tax is
  inclusive.
* adds basic tests for Taxes & Fees.

Closes #FXA-6391
2022-12-19 14:03:47 -05:00
dschom 80a4c66a94
Try targeting mozilla-fxa repos again 2022-12-19 09:35:21 -08:00
Lauren Zugai ba02af0774
Merge pull request #14599 from vpomerleau/FXA-6338-reset-password-react-storybook
storybook(fxa-settings): Create ResetPassword page in React
2022-12-19 11:19:00 -06:00
Reino Muhl ad7ca38115
Merge pull request #14591 from mozilla/fxa-6187-sub-manage-display-tax
fix(Subscriptions): add tax to sub management
2022-12-19 11:38:38 -05:00
Valerie Pomerleau a7538c660d
storybook(fxa-settings): Recreate ResetPassword in React
Because:

- We want to convert content-server views to React and are starting by building out the front-end in Storybook. This PR converts the reset_password view. Additional complexity will be added in (a) later ticket(s).

This commit:

- Create ResetPassword UI in React, including l10n, storybook, initial metrics, initial tests.
- Does not include units tests for success/failure methods, error handling.
- Create additional reusable components (including l10n, storybook, initial tests): CardHeader, LinkRememberPassword, WarningMessage
- Add placeholder for ResetPassword function in models/Accounts
- Update InputText and Tooltip with new properties and updated styling for reuse in ResetPassword
- Move 'cta-xl' TW class from content-server to fxa-react
- Fix spelling of "focussed" to "focused" in InputText and Checkbox

Closes #FXA-6338, FXA-6447
2022-12-19 07:48:26 -08:00
Reino Muhl 50087fd712
fix(Subscriptions): add tax to sub management
Because:

* For exclusive tax, display the tax amount in subscription management

This commit:

* Adds a new component, PriceDetails, that can be used to display the
  price with/out tax, and price intervals with/out tax.
* Adds PriceDetails component to Subscription Management, and updates
  the copy used.
* Preview invoice for each subscription to get the current tax amount
* Update preview invoice and subsequent invoices endpoints to return
  total and subtotal *_excluding_tax amounts.

Closes #FXA-6187
2022-12-16 17:42:53 -05:00
Ankita Shrivastava 0360730a92
test(subplat): add test for resubscription and update mode of payment 2022-12-16 16:38:31 -05:00
Barry Chen ba0f48a313
Merge pull request #14642 from mozilla/FXA-6405-oauth-db-pool
feat(mysql): close idling connections in pool
2022-12-16 14:08:52 -06:00
Barry Chen 79b5592008
feat(mysql): close idling connections in pool
Because:
 - the mysql module's connection pool never close any of its connections

This commit:
 - close a connection after it idles for a configurable amount of time
2022-12-16 11:00:39 -06:00
Barry Chen a91d3d9c71
Merge pull request #14634 from mozilla/FXA-6329-reject-unblock-code
feat(gql): consume unblock code
2022-12-16 09:10:14 -06:00
Barry Chen 7771a4acbb
feat(gql): consume unblock code
Because:
 - gql-api should be able to consume an unblock code

This commit:
 - enable the gql-api to consume an unblock code by calling a db sproc
2022-12-16 08:54:20 -06:00
dschom acf3c82590
task(ci): Use docker base image
Because:
- We want to speed up pipeline startup.

This Commit:
- Optimizes docker base image builds for the smallest images possible.
- Enables hard links for yarn cache
- Enables global yarn cache
- Avoids needlessly installing playwright browsers.
- Avoids needlessly running yarn install.
- Uses mozilla/fxa-circleci:ci-base-latest image for running test pipelines
- Uses mozilla/fxa-circleci:ci-base-browsers image for running functional tests pipelines
- Creates configurable executors that can be reused across pipelines
- Upgrades to yarn 3.3.0
- Enabled direct check out of PR code to test, which is faster than circle ci’s checkout command.
- Upgrades functional test to X-Large. This was already the case for playwright tests, but is now extended to content server tests too. This decision was made due to running lots of pipelines and realizing flakiness was largely due to CPU or memory hitting 100% for long periods of time.
- Turns off tracing, since it saves a bit of runtime.
2022-12-15 15:48:16 -08:00
Lauren Zugai 9969b3cdf2
Merge pull request #14641 from mozilla/FXA-6453
fix(content): Fix path reference for close.svg rendering issue
2022-12-15 15:47:25 -06:00
Vijay Budhram eda956e88a
Merge pull request #14643 from mozilla/fxa-6276
feat(oauth): Support multiple client redirect urls
2022-12-15 15:32:39 -05:00
Vijay Budhram 5062274527
feat(oauth): Support multiple client redirect urls 2022-12-15 14:42:41 -05:00
Vijay Budhram 6eccec08b1
Merge pull request #14645 from mozilla/fix-tests
fix(tests): Tweaks playwright tests to not use `preverified`
2022-12-15 13:48:53 -05:00
Vijay Budhram 3da3a16705
fix(tests): Tweaks playwright tests to not use `preverified` since it causes issues in prod 2022-12-15 12:41:48 -05:00
Dan Schomburg d6efea1d61
Merge pull request #14628 from mozilla/FXA-6263
task(ci): Tag unit tests
2022-12-15 09:09:35 -08:00
dschom b0b64952b9
PR Feedback 2022-12-14 15:00:10 -08:00
Lauren Zugai 1437af6a6e
Merge pull request #14594 from mozilla/dependabot/npm_and_yarn/opentelemetry/exporter-trace-otlp-http-0.34.0
chore(deps): bump @opentelemetry/exporter-trace-otlp-http from 0.33.0 to 0.34.0
2022-12-14 15:06:16 -06:00
Lauren Zugai e43c5273f1
Merge pull request #14640 from mozilla/dependabot/npm_and_yarn/read-2.0.0
chore(deps-dev): bump read from 1.0.7 to 2.0.0
2022-12-14 15:05:48 -06:00
Lisa Chan c4ed0ef693
Merge pull request #14520 from mozilla/FXA-5515_Checkout
refactor(payments-server): Convert responsive design in Checkout component to use Tailwind
2022-12-14 14:40:51 -05:00
dependabot[bot] a8e4e871c3
chore(deps): bump @opentelemetry/exporter-trace-otlp-http
Bumps [@opentelemetry/exporter-trace-otlp-http](https://github.com/open-telemetry/opentelemetry-js) from 0.33.0 to 0.34.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.33.0...experimental/v0.34.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/exporter-trace-otlp-http"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-14 18:49:59 +00:00
Barry Chen 074930e62b
Merge pull request #14637 from mozilla/train-247
main <- 247.3
2022-12-14 12:42:52 -06:00
Lauren Zugai 0e9d596a57
fix(content): Fix path reference for close.svg rendering issue
This commit:
* Reverts a recent change that updated a bg-image to use an img src and uses TW to load the image. We may have a bug in content-server around updating img src image hashes in at the build step unless it's intentional to always use bg-images, and this commit inlines the SVGs instead as they are tiny and keeps a11y wins
* Adjusts bottom-padding slightly for more consistency with prod

Because:
* The close SVGs are not loading on the build step due to 'img src' path hashes not being updated in the outputted HTML

Closes: FXA-6453
2022-12-14 11:16:23 -06:00
dependabot[bot] ea0f11e18a
chore(deps-dev): bump read from 1.0.7 to 2.0.0
Bumps [read](https://github.com/npm/read) from 1.0.7 to 2.0.0.
- [Release notes](https://github.com/npm/read/releases)
- [Changelog](https://github.com/npm/read/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/read/compare/v1.0.7...v2.0.0)

---
updated-dependencies:
- dependency-name: read
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-14 06:06:49 +00:00
Barry Chen 75e2d37978
Release 1.247.3 2022-12-13 15:05:23 -06:00
Barry Chen d0a5e71942
Merge pull request #14635 from mozilla/247-uplift-3
247.3 uplift
2022-12-13 14:57:26 -06:00
Barry Chen 38c6643c4b
fix(scripts): add pushbox dep to delete acct script
Because:
 - we delete from the pushbox db directly when deleting an account now

This commit:
 - add the pushbox module to the account routes when used from the
   delete account script
2022-12-13 13:23:54 -06:00
dschom b13c38bffe
bug(auth): Email template failures
Because:
- Storybook and email tests started failing once the l10n started shipping a separate branding file.

This Commit:
- Loads the branding.ftl file as well as the auth.ftl file for when translating emails.
- Changes the l10n postAddAccountRecovery-title-2 to postAddAccountRecovery-title2, which appears to be the current state in the ftl file.
- Changes spelling from cancelled to cancelled for certain tests... This is a bit puzzling, and could use a second look.
2022-12-13 13:23:54 -06:00
Valerie Pomerleau 6c64d58528
refactor(l10n): Ensure shared FTL strings not duplicated on Pontoon
Because:

- Concatenating shared FTL strings into multiple packages before sending for localization created duplication of localization work, and we want each string to only be translated once.

This commit:

- Remove concatenation of shared files (branding.ftl, fxa-react ftl files) from grunttasks
- Add grunttasks in fxa-react to concatenate fxa-react FTL files into one react.ftl file
- Add grunt to fxa-react dev dependencies
- Update fxa-react scripts to run l10n and ftl tasks
- Update clone-l10n script to distribute react.ftl to packages
- Bundle branding and shared into AppLocalizationProvider

Closes #FXA-6388
2022-12-13 13:23:53 -06:00
Barry Chen 73adc27e26
Merge pull request #14632 from mozilla/delete-acct-script-fix
fix(scripts): add pushbox dep to delete acct script
2022-12-13 11:41:43 -06:00
Vijay Budhram 161e84e4f4
Merge pull request #14626 from mozilla/fxa-6332
feat(api): Add accountStatus check in graphql api
2022-12-13 11:24:32 -05:00
Vijay Budhram 8127158495
feat(api): Add accountStatus check in graphql api 2022-12-13 11:03:01 -05:00
Barry Chen 8d5cd8a7c7
Merge pull request #14633 from mozilla/dependabot/npm_and_yarn/postcss-import-15.1.0
chore(deps-dev): bump postcss-import from 15.0.0 to 15.1.0
2022-12-13 08:51:50 -06:00
Lisa Chan 8d1a70ee3a
Updates - includes feedback from Reino, Peter and fixes other pages 2022-12-13 09:11:33 -05:00
Lisa Chan 4b43dbffc5
refactor(payments-server): Convert responsive design in Checkout component to use Tailwind 2022-12-13 09:09:49 -05:00
dependabot[bot] 48c1744d95
chore(deps-dev): bump postcss-import from 15.0.0 to 15.1.0
Bumps [postcss-import](https://github.com/postcss/postcss-import) from 15.0.0 to 15.1.0.
- [Release notes](https://github.com/postcss/postcss-import/releases)
- [Changelog](https://github.com/postcss/postcss-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-import/compare/15.0.0...15.1.0)

---
updated-dependencies:
- dependency-name: postcss-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-13 06:14:06 +00:00
Barry Chen 4dec4ac1c0
fix(scripts): add pushbox dep to delete acct script
Because:
 - we delete from the pushbox db directly when deleting an account now

This commit:
 - add the pushbox module to the account routes when used from the
   delete account script
2022-12-12 17:22:20 -06:00
Barry Chen 1fd9fd7cb2
Merge pull request #14630 from mozilla/FXA-6335-sign-up
feat(gql): add acct sign up mutation to gql-api
2022-12-12 14:17:44 -06:00
Barry Chen 6b38e0ae38
feat(gql): add acct sign up mutation to gql-api
Because:
 - we want to allow front end clients to sign up a user through the
   gql-api

This commit:
 - add the signUp mutation to the Acccount resolver
2022-12-12 13:19:16 -06:00
Barry Chen 0917f5a364
Merge pull request #14625 from mozilla/FXA-6349-session-status
feat(gql): add session status query
2022-12-12 13:03:43 -06:00
Barry Chen 4981b91025
feat(gql): add session status query
Because:
 - a front end client should able to query the status of a session

This commit:
 - add the sessionStatus query to the Session resolver
2022-12-10 09:59:50 -06:00
dschom 9493dd2655
task(ci): Tag unit tests
Because:
- We want to separate unit tests and integrations tests

This Commit:
- Tags all unit tests, i.e. tests that can run without infrastructure and in a fairly short amount of time, with #unit.
- Adds a test:unit npm command to each package
- Adds a test:integration npm command to each package, and adds '#integration' tags to jest tests since jest has no --invert option like mocha.
2022-12-09 17:26:27 -08:00
Dan Schomburg 2dafb0eb6d
Merge pull request #14629 from mozilla/branding-bundle-fix
bug(auth): Email template failures
2022-12-09 17:06:01 -08:00
dschom a8df8d0f83
bug(auth): Email template failures
Because:
- Storybook and email tests started failing once the l10n started shipping a separate branding file.

This Commit:
- Loads the branding.ftl file as well as the auth.ftl file for when translating emails.
- Changes the l10n postAddAccountRecovery-title-2 to postAddAccountRecovery-title2, which appears to be the current state in the ftl file.
- Changes spelling from cancelled to cancelled for certain tests... This is a bit puzzling, and could use a second look.
2022-12-09 16:18:03 -08:00
Dan Schomburg 4cde864abe
Merge pull request #14567 from vpomerleau/FXA-6388-dedup-l10n
refactor(l10n): Ensure shared FTL strings not duplicated on Pontoon
2022-12-09 09:27:41 -08:00