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

677 Коммитов

Автор SHA1 Сообщение Дата
Lauren Zugai 02c19ef4b4
Merge pull request #14652 from mozilla/train-247
Release 1.247.4 -> main
2022-12-19 15:31:37 -06: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
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
Vijay Budhram c651574626
Release 1.247.5 2022-12-16 15:18:49 -05: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 dfc62847c5
Release 1.247.4 2022-12-15 15:57:29 -06: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
Barry Chen 074930e62b
Merge pull request #14637 from mozilla/train-247
main <- 247.3
2022-12-14 12:42:52 -06:00
Barry Chen 75e2d37978
Release 1.247.3 2022-12-13 15:05:23 -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
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
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 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
Valerie Pomerleau 499a41a410
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-08 15:45:34 -08:00
Mill 11b9d720f9
Release 1.247.2 2022-12-08 13:15:41 -08:00
Mill a3099d64a9
Release 1.247.1 2022-12-07 16:33:37 -08:00
Mill 1df034ef87
Release 1.247.0 2022-12-07 12:02:28 -08:00
Dan Schomburg 3b04ff3dc8
Merge pull request #14557 from mozilla/FXA-6001
task(fxa-react): Create l10n.getString wrapper
2022-12-07 11:34:04 -08:00
dschom 39d40c82e4
task(fxa-react): Create l10n.getString wrapper
Because:
- We want to ensure that calls to l10n.getString are safe
- We want to catch errors preemptively

This Commit:
- Adds a new class for resolving l10n strings. Resolving strings through this class:
  - Ensures there are no straight quotes
  - Ensures l10n id exists in the 'en' bundle
  - Ensures fallback text matches text in 'en' bundle
  - Ensures there are no errors resolving parameters in the l10n string
- Adds a hook for easy access to the FtlMsgResolver.
- Adds config that controls whether or not we run in strict mode. Note, that run time errors will result if a violation is detected when `strict=true`.
- Applies mechanism to one component in settings, the bento box.
2022-12-06 08:57:48 -08:00
Barry Chen 3c34f69394
chore(deps): upgrade to TS 4.9 2022-12-02 10:33:12 -06:00
Valerie Pomerleau e9cded0ba7
feat(tailwind): Update Tailwind config for Tailwind v3
Because:

- Tailwind v3 provides more classes by default, so many custom variations included in our Tailwind config are no longer needed.
- Tailwind v3 enables JIT engine by default, and purges all unused utilites from the css build. While this reduces file size, it also becomes difficult to debug styling with browser dev tools.

This commit:

- Removes custom variations in fxa-react's tailwind.js when they are included by default in Tailwind v3.
- Removes custom variations that are no longer in use in fxa packages.
- Updates bento menu component to use default TW inset class.
- Tested build-css to ensure output css compiles with no errors.
- Does not remove fontSize definitions even though provided by Tailwind v3, as explicit declaration is currently needed for fxa-settings's design guide.
- Safelist all tailwind patterns in dev mode to enable in-browser styling with tailwind utilities.

Closes #FXA-5448, FXA-6235
2022-11-30 10:59:02 -08:00
Meghan Sardesai 46ecffe40b
Release 1.246.1 2022-11-29 17:39:56 -05:00
Meghan Sardesai 61284ccdaa
Release 1.246.0 2022-11-23 13:36:04 -05:00
Reino Muhl 4d3bc8313a
Merge pull request #14493 from mozilla/payment-form-followup
feat(payments): update PaymentForm storybook
2022-11-23 12:32:29 -05:00
Reino Muhl a317976bc0
feat(payments): update PaymentForm storybook
Because:

* As part of tailwind conversion we are updating storybook as well.

This commit:

* Updates PaymentForm and LoadingSpinner storybooks.
* Update webpack config not to remove viewbox from SVGs.

Closes #
2022-11-23 11:54:47 -05:00
Valerie Pomerleau efb2e9a375
feat(fxa-react): Add missing l10n to fxa-react
Because:

- All messages served to the user should be localized, including screen reader messages. Fxa-react components were partially localized, but some messages were missed.

This commit:

- Add l10n to AppErrorDialog, LinkExternal, LoadingSpinner and LogoLockup for all messages, including alt text, aria labels and screen-reader only messages.
- Create en.ftl for each component, when needed.

Closes #
2022-11-22 11:09:52 -08:00
Barry Chen 33e8327205
Merge pull request #14503 from vpomerleau/FXA-5507-fix-focus-border-style-settings-getdatatrio
feat(fxa-settings): Update focus border on CTA and GetDataTrio
2022-11-21 13:40:57 -06:00
Lauren Zugai 0ba604221a
Merge pull request #14500 from mozilla/FXA-6275
feat(settings): Create content-server version of AppLayout and move styles
2022-11-18 11:29:17 -06:00
Lauren Zugai 95790b4500
feat(settings): Create content-server version of AppLayout and move styles
This commit:
* Adds AppLayout with Tailwind styles and moves Moz logo from fxa-settings into fxa-react for use in Reactified content-server routes
* Adds postcss-assets to settings for future background-images
* Moves .card styles into fxa-react
* README update on inlining SVGs vs src

Closes FXA-6275
2022-11-18 09:19:04 -06:00
Lauren Zugai d43170b4e1
Merge pull request #14439 from vpomerleau/FXA-5997-create-ftl-files-for-fxa-react
refactor(fxa-react): Create FTL files in fxa-react and concat to settings, payments
2022-11-17 17:36:24 -06:00
Valerie Pomerleau 39fee47ec6
feat(fxa-settings): Update focus border on CTA and GetDataTrio
Because:

- The focus style applied to caution CTA and GetDataTrio buttons (black dotted outline) did not match the style used for other buttons (solid blue). The discrepency may have become more obvious with the upgrade to Tailwind v3. We would like all button focus styles to be consistent.

This commit:

- Replace the focus and active styles used for fxa-settings' caution cta and GetDataTrio buttons.

Closes #FXA-5507
2022-11-17 15:22:22 -08:00
Reino Muhl 8ba01a6a1a
Merge branch 'main' into train-245-merge-main 2022-11-15 15:19:31 -05:00
Reino Muhl 20218a8230
Release 1.245.1 2022-11-15 15:10:47 -05:00
Valerie Pomerleau de19541bb4
feat(l10n): Split payments-server single FTL file into per-component files
Because

* Organizing l10n strings in per-component files aligns payments-server with the setup used for auth-server and settings. Splitting the FTL files also improves maintability by more tightling coupling the strings with the components where the strings are used.

This commit

* Create a temporary branding file in fxa-payments-server/src
* Create a gruntfile with tasks for FTL concatenation and watching
* Rename the destination file from main.ftl to payments.ftl
* Switch payments-server's default locale from en-US to en and update all references of en-US to en
* Create individual FTL files per component and move messages to their respective component FTL file
* Add a l10n entry in the package readme
* Update clone-l10n.sh to copy 'payments' ftl files instead of 'main'
* Update AppLocalizationProvider to use 'payments' bundles
* Replace setupFluentLocalizationTest with getFtlBundle/getFtlFromPackage from fxa-react
* Remove setupFluentLocalizationTest function (no longer used in fxa-settings)
* Add merge-ftl:test task to package.json start and test:frontend scripts
* Remove legacy strings from FTL files
* Update currency and date formats to use 'en' as default locale
* Remove legacy paths from .gitignore files in payments-server
* Move remaining paths to global .gitignore
* Delete .gitignore files in payments-server

Closes #FXA-5996 and #FXA-6255
2022-11-15 14:04:53 -05:00
Valerie Pomerleau c2bde4c0f0
refactor(fxa-react): Create FTL files in fxa-react and concat to settings, payments
Because:

- L10n strings used in fxa-react components were stored in other packages (e.g., fxa-settings) and we want to bring them closer to the component where they are used for easier maintenance.

This commit:

- Create an en.ftl file for each fxa-react component with exisiting l10n
- Move the the FTL IDs and messages contained in other packages to these new files
- Update fxa-settings' merge task to concat all fxa-react FTL files into settings.ftl
- Update fxa-payments-server's merge task to concat all fxa-react FTl files into payments.ftl

Closes #FXA-5997
2022-11-15 10:37:53 -08:00
Reino Muhl 4758aff972
Merge pull request #14443 from mozilla/train-245
Train 245
2022-11-10 13:04:28 -05:00
Bryan Olsson c76c831bf9
chore(l10n): fix ellipsis
Because:

* According to mozilla l10n guidelines strings should use a unicode
ellipsis (…) instead of three periods (...)

This commit:

* Fixes a missing ellipsis in fxa-payments-server/src/en.ftl
2022-11-09 19:01:21 -06:00
Valerie Pomerleau d79c30d50a
feat(l10n): Split payments-server single FTL file into per-component files
Because

* Organizing l10n strings in per-component files aligns payments-server with the setup used for auth-server and settings. Splitting the FTL files also improves maintability by more tightling coupling the strings with the components where the strings are used.

This commit

* Create a temporary branding file in fxa-payments-server/src
* Create a gruntfile with tasks for FTL concatenation and watching
* Rename the destination file from main.ftl to payments.ftl
* Switch payments-server's default locale from en-US to en and update all references of en-US to en
* Create individual FTL files per component and move messages to their respective component FTL file
* Add a l10n entry in the package readme
* Update clone-l10n.sh to copy 'payments' ftl files instead of 'main'
* Update AppLocalizationProvider to use 'payments' bundles
* Replace setupFluentLocalizationTest with getFtlBundle/getFtlFromPackage from fxa-react
* Remove setupFluentLocalizationTest function (no longer used in fxa-settings)
* Add merge-ftl:test task to package.json start and test:frontend scripts
* Remove legacy strings from FTL files
* Update currency and date formats to use 'en' as default locale
* Remove legacy paths from .gitignore files in payments-server
* Move remaining paths to global .gitignore
* Delete .gitignore files in payments-server

Closes #FXA-5996 and #FXA-6255
2022-11-09 13:26:40 -08:00
Reino Muhl 747aad5fd9
Release 1.245.0 2022-11-09 14:12:19 -05:00
Reino Muhl 4463bb488b
Merge pull request #14418 from mozilla/fxa-5633-tailwind-payment-form-conversion
refactor(payments): payment form tailwind convert
2022-11-09 12:48:39 -05:00
Reino Muhl ac0345f645
refactor(payments): payment form tailwind convert
Because:

- We want to convert the PaymentForm to using Tailwind classes

This commit:

- Replaces all existing classes with Tailwind classes
- Updates fxa-react LoadingSpinner component to support multiple images

Closes #fxa-5633
2022-11-09 12:33:16 -05:00
Dan Schomburg 4785a7dd38
Merge pull request #14432 from mozilla/train-244
Train 244
2022-11-09 08:58:36 -08:00
dschom 2daa6bdd32
Release 1.244.3 2022-11-08 15:39:11 -08:00
Ivo Plamenac 8673c53c9b
Merge pull request #14417 from mozilla/train-244
Train 244
2022-11-04 15:29:44 -07:00
dschom 8efe4648a8
Release 1.244.2 2022-11-04 14:48:14 -07:00
Reino Muhl f6177d287f
Revert "chore(deps): bump babel-loader from 8.2.2 to 9.0.0" 2022-11-02 19:16:56 -04:00
Dan Schomburg 2cae770329
Merge branch 'main' into train-244 2022-11-01 13:44:34 -07:00
dschom 77387ba2b4
Release 1.244.1 2022-10-31 15:02:05 -07:00
Bianca Danforth 6c5a265266
Merge branch 'main' into train-243 2022-10-31 14:42:30 -04:00
dependabot[bot] 15b1df908c
chore(deps): bump babel-loader from 8.2.2 to 9.0.0
Bumps [babel-loader](https://github.com/babel/babel-loader) from 8.2.2 to 9.0.0.
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel-loader/compare/v8.2.2...v9.0.0)

---
updated-dependencies:
- dependency-name: babel-loader
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 17:12:58 +00:00