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

22036 Коммитов

Автор SHA1 Сообщение Дата
Ankita Shrivastava 3831002681
Merge pull request #15709 from mozilla/disable-funnel-metrics-test
test(subplat): disable the funnel metrics test
2023-08-30 13:13:03 -04:00
Dan Schomburg d29151935c
Merge pull request #15698 from mozilla/nx/ci-build-cache
task(CI): Improve nx caching for CI pipelines
2023-08-29 17:22:00 -04:00
Barry Chen 74d0dc0c4d
Merge pull request #15726 from mozilla/FXA-7405-reg-success-glean
feat(metrics): add backend Glean ping for reg_acc_created
2023-08-29 16:15:06 -05:00
Barry Chen 2658818820
feat(metrics): add backend Glean ping for reg_acc_created 2023-08-29 14:08:08 -05:00
dschom d96797ae6a
task(CI): Improve nx caching for CI pipelines
Because:
- Not all CI operations where taking advantage of NX caches

This Commit:
- Adjusts nx.json config to ensure correct caching behavior
- Adjusts nx.json config to ensure proper target chains. ie build is dependent on pre-build
- Uses nx to directly run integration tests
- Uses nx to directly run unit tests
- Phases out dependency on generated .list files
- Ensures 'start up' for services for functional tests is done with nx and uses nx caches.
- Creates nx tags to facilitate test commands
- Fixes linter errors encountered
- Updates docker images to nx for builds
- Updates nx ignore files
2023-08-29 11:19:54 -07:00
Vijay Budhram a3d72787ad
Merge pull request #15716 from mozilla/FXA-8141
fix(react): Grab service name from integration in AccountRecoveryConfirmKey
2023-08-29 12:21:02 -04:00
Ben Bangert 33ff19c697
Merge pull request #15721 from mozilla/chore/update-ts-to-522
chore: update to TS 5.2.2
2023-08-28 15:12:35 -07:00
Ben Bangert 54f0c2e7a2
chore: update to TS to 5.2.2 and Node to 18.17.1
Because:

* We want to use the latest typescript features.

This commit:

* Updates to TypeScript 5.2.2.
* Updates to Node 18.17.1 as OOM would occur frequently with 18.14.
* Updates CI to use a large instance with increased memory for Node.
2023-08-28 14:47:29 -07:00
Barry Chen b31226b2d9
Merge pull request #15702 from mozilla/FXA-8183-await-glean
fix(metrics): await Glean submissions
2023-08-28 15:01:51 -05:00
Julian Poyourow fa60097da7
Merge pull request #15717 from mozilla/polish-injectable
chore(libs): add injectable to all library classes, centralize nest
2023-08-28 12:36:00 -07:00
Julian Poyourow 5b6060df51
chore(libs): add injectable to all library classes, centralize nest
Because:

* We want to easily be able to consume library classes within NestJS.
Adding the injectable decorator to all library classes means we can do
so with ease, but also doesn't prevent us from using the class outside
of the NestJS DI system.
* We want all dependencies (such as nest) centralized to the main
package.json

This commit:

* Adds the injectable decorator to every library class.
* Centralizes the NestJS dependency to the root package.json.

Closes: no relevant issue - polish PR.
2023-08-28 11:54:12 -07:00
Vijay Budhram e31f28c49d
Merge pull request #15722 from mozilla/fxa-revert-ios-bug
revert(bug): Revert settings redirect in graphql to fix ios pairing bug
2023-08-28 14:37:02 -04:00
Vijay Budhram 15d813d80d
revert(bug): Revert settings redirect in graphql to fix ios pairing bug 2023-08-28 13:48:53 -04:00
Dan Schomburg 82218c8732
Merge pull request #15703 from mozilla/FXA-8148
task(admin): Show if password is set on account
2023-08-28 12:53:01 -04:00
dschom 4ed12f08ef
task(admin): Show if password is set on account
Because:
- We need to know if an accounts password was set

This Commit:
- Adds a row for Password Set
- Exposes the verifierSetAt field to the front end
- Uses verifierSetAt to determine if a password was set
- Fixes bug where dev mode wasn't starting due wrong path
- Fixes bug where StrictMode was stopping lazy queries from executing
2023-08-28 09:16:57 -07:00
Dan Schomburg 28ee596947
Merge pull request #15718 from mozilla/FXA-8123
bug(settings): Fix missing connected service name after password reset
2023-08-28 12:02:47 -04:00
Wil Clouser 5bb0d99131
Merge pull request #15668 from mozilla/20230808docs
chore(docs): clarify API request requirement
2023-08-28 07:50:40 -07:00
Lauren Zugai d9aaf42d4c
fix(react): Grab service name from integration in AccountRecoveryConfirmKey
Because:
* We were only rendering the default service name

This commit:
* Sets the service name from the integration
* Sets up mock integration functions for that page and creates interfaces file for that page

closes FXA-8141
2023-08-25 14:31:40 -04:00
dschom 387b951b1c
bug(settings): Fix missing connected service name after password reset
Because:
- Service name was blank for connected device after going through password reset flow

This Commit:
- Makes sure user agent propagates from graphql to auth-server
- Adds tests for our gql decorator class
- Adds logic to functional test to ensure the service name isn't blank
2023-08-25 11:06:01 -07:00
Ivo Plamenac c7057c6f2a
Merge pull request #15706 from mozilla/fix-auth-startup-tsconfig-paths
fix(auth): could not resolve ts paths on startup
2023-08-23 14:57:49 -07:00
Ben Bangert 832347e64c
refactor: switch to kysley cart manager
Because:

* We want to try out kysley for all db operations including the cart
  manager.

This commit:

* Switches the cart manager to use kysley.
2023-08-19 19:07:46 -07:00
Lauren Zugai c7c18e08e6
fix(react): class-validator decorator tweaks around query params
Because:
* Some validation checks are incorrect since params are always strings unless transformed, causing a blank page to show in some cases

This commit:
* Uses the 'isBooleanString' decorator instead of 'isBoolean' until we can better validate with (probably) a custom decorator
2023-08-18 13:35:50 -05:00
Ankita Shrivastava 024b4d7f4b
test(subplat): disable the funnel metrics test 2023-08-18 13:50:20 -04:00
Reino Muhl dd7ff9639d
fix(auth): could not resolve ts paths on startup
Because:

* auth-server was failing to start after deploy due to tsconfig paths
  not resolving to the relevant libraries.

This commit:

* Adds a tsc-alias to build step to resolve alias paths to relative
  paths.

Closes
2023-08-18 10:22:16 -04:00
Barry Chen 754bf33511
fix(metrics): await Glean submissions
Because:
 - hashing the uid is async (`crypto.subtle.digest`), thus making the
   Glean ping calls async.  And preferably we don't block the UI on
   metrics.  However, we cannot overlap (not await) multiple Glean
   pings.  When that happened with the successful registration
   submission event overlapping the registration confirmation view
   event, we "lost" all the succession registration event because that
   event has an empty event name.  And the confirmation view event was
   submitted with the properties of the successful registration
   submission event.

This commit:
 - calls and awaits the ping submissions in order inside GleanMetrics
2023-08-17 17:02:45 -05:00
Vijay Budhram 295130c0b3
Merge pull request #15701 from mozilla/dependabot/npm_and_yarn/storybook-addon-mock-4.2.1
chore(deps-dev): bump storybook-addon-mock from 4.0.0 to 4.2.1
2023-08-17 10:30:37 -04:00
dependabot[bot] 14be29217e
chore(deps-dev): bump storybook-addon-mock from 4.0.0 to 4.2.1
Bumps [storybook-addon-mock](https://github.com/nutboltu/storybook-addon-mock) from 4.0.0 to 4.2.1.
- [Release notes](https://github.com/nutboltu/storybook-addon-mock/releases)
- [Commits](https://github.com/nutboltu/storybook-addon-mock/compare/4.0.0...4.2.1)

---
updated-dependencies:
- dependency-name: storybook-addon-mock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-17 08:10:16 +00:00
dependabot[bot] d39f63ce3a
chore(deps-dev): bump mjml-browser from 4.13.0 to 4.14.1
Bumps [mjml-browser](https://github.com/mjmlio/mjml/tree/HEAD/packages/mjml-browser) from 4.13.0 to 4.14.1.
- [Release notes](https://github.com/mjmlio/mjml/releases)
- [Commits](https://github.com/mjmlio/mjml/commits/v4.14.1/packages/mjml-browser)

---
updated-dependencies:
- dependency-name: mjml-browser
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-17 06:58:18 +00:00
Vijay Budhram 4df8bda415
Merge pull request #15681 from mozilla/dependabot/npm_and_yarn/expose-loader-4.1.0
chore(deps): bump expose-loader from 1.0.3 to 4.1.0
2023-08-16 14:04:01 -04:00
Vijay Budhram b56326bb18
Merge pull request #15647 from mozilla/dependabot/npm_and_yarn/storybook/testing-library-0.2.0
chore(deps-dev): bump @storybook/testing-library from 0.0.14-next.2 to 0.2.0
2023-08-16 13:54:15 -04:00
Valerie Pomerleau db7ad2f269
fix(settings): Pass correct error message to banner in CompleteResetPassword page (React)
Because:

* Generic error banners were displayed on CompleteResetPassword page, ConfirmWithLink component and LinkExpired component.
* We want to display relevant and localized auth error messages where possible, and otherwise default to "Unexpected error"
* We were repeating similar error handling in multiple pages/components.

This commit:

* Standardize error handling for CompleteResetPassword, ResetPassword, FlowRecoveryKeyConfirmPwd, LinkExpired, ConfirmWithLink to handle throttled errors with localizedRetryAfter, throttled errors without retryAfter value, other recognized authUiErrors as well as unexpected errors
* Create a reusable `getLocalizedErrorMessage` function in lib/auth-errors to simplify error handling in pages/components.
* Updates tests/stories.
* Update content-server readme to reflect the disabled by default state of rate limiting in dev environment.

Closes #FXA-8089
2023-08-16 00:09:47 -07:00
Dan Schomburg 14fb200d7a
Merge pull request #15677 from mozilla/add-class-validator
task(settings): Finish model / validation pattern
2023-08-15 16:32:02 -07:00
dschom eb2c1bbc55
task(settings): Finish model / validation pattern
Because:
- We want to use class-validator for more standardized validation support
- We want to the link validator to leverage model validation

This Commit:
- Applies class-validator to all models
- Makes minor tweaks to the bind-decorator to support class-validator
- Makes minor tweaks to model-data-store to support class-validator
- Adds DIP to
- Ensures undefined is returned for unspecified values
- Cleans up link validator to use model.validate().
- Removes direct access to underlying model data used by ModelDataProvider
- Adds dirty flag to ModelDataProvider to reduce unnecessary validations
2023-08-15 15:11:05 -07:00
Reino Muhl 9c1afee646
feat(carts): refactor cart manager to match layers
Because:
- Refactor the Cart Manager to serve as higher level logic for the
  cart db model.

This commit:
- Removes service level logic.
- Adds common methods to be used by Cart Manager consumers.
- Adds checks for valid state by action and valid state transitions.
- Reverts playwright tests back to xlarge instance size

Closes FXA-8128
2023-08-15 18:03:36 -04:00
Barry Chen e61b71909a
Merge pull request #15691 from mozilla/new-glean-js-test-fails
fix(tests): stub out more Glean calls
2023-08-15 16:51:10 -05:00
Barry Chen 9228f96be3
fix(tests): stub out more Glean calls
Also extend timeout for flaky tests
2023-08-15 16:40:55 -05:00
Lisa Chan 2269a1cff9
Merge pull request #15680 from mozilla/FXA-7631_contentful_script
chore(contentful): Update content model
2023-08-15 17:32:25 -04:00
Lisa Chan 6f41a1e38e
chore(contentful): Update content model 2023-08-15 16:41:02 -04:00
Lisa Chan d4c6384f2b
Merge pull request #15663 from mozilla/FXA-7796_remove
chore(auth&payments): Remove feature flag
2023-08-15 14:14:41 -04:00
Lauren Zugai 850c531164
Merge pull request #15684 from mozilla/show-react-app-updatesv2
chore(react): Update local.json-dist for React routes, remove console log
2023-08-15 09:22:16 -05:00
Bianca Danforth 871c560767
Merge pull request #15678 from mozilla/FXA-7941
fix(payments): record checkout "engage" event for consent checkbox
2023-08-14 15:08:55 -04:00
Barry Chen dba8d028b4
Merge pull request #15672 from mozilla/FXA-8138-ua-ip-for-glean
feat(metrics): pass useragent and client ip to Glean
2023-08-14 13:56:10 -05:00
Lisa Chan a39d69372b
chore(auth&payments): Remove feature flag 2023-08-14 14:51:06 -04:00
Barry Chen 086e029a9d
Merge pull request #15514 from mozilla/FXA-7271-login-fail-glean
chore(metrics): add Glean ping for login submit error
2023-08-14 08:58:10 -05:00
Barry Chen 4564097671
chore(metrics): add Glean ping for login submit error
Because:
 - we want know when a user failed to log into their account and why

This commit:
 - adds a string metric for the event reason property
 - adds a function for the failed login event
2023-08-14 08:30:46 -05:00
Bianca Danforth df25ef34f9
fix(payments): record checkout "engage" event for consent checkbox
Because:
* We are seeing fewer "engage" events relative to "submit", even though "engage" occurs upstream in the conversion funnel.
* We were not recording an "engage" event for clicking the consent checkbox.
* This is the only form field present in all scenarios and checkout flows on the payments server, so it likely makes up the majority of the missed events across all flows.

This commit:

* Records the "fxa_pay_setup - engage" event when clicking the consent checkbox.

Closes #FXA-7941
2023-08-11 17:58:36 -04:00
Valerie Pomerleau 032839c68c
Merge pull request #15588 from mozilla/FXA-7223
feat(settings): Account recovery key PDF download
2023-08-11 12:39:49 -07:00
Dan Schomburg bb63cca0e1
Merge pull request #15667 from mozilla/FXA-7319
task(settings): Use form component in ThirdpartyAuth component
2023-08-11 11:48:41 -07:00
dschom e6ece61ec9
task(settings): Use React Form component to submit google / apple auth form
Because:
- We wanted the code in the third party auth to use react conventions

This Commit:
- Creates a third party sign in form that is rendered.
- Submits this form when click 'continueWith' buttons.
2023-08-11 11:29:42 -07:00
Lauren Zugai c061409e24
chore(react): Update local.json-dist for React routes, remove console log
Because:
* We've rolled out React reset PW routes and are working on signup and signin and don't wish to reset the config after every yarn install

This commit:
* Turns resetPasswordRoutes, signUpRoutes, and signInRoutes 'on' for local dev
* Removes stray console log
2023-08-11 12:47:12 -05:00