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

28758 Коммитов

Автор SHA1 Сообщение Дата
dschom d45d30e756
bug(settings): Margin bottom should only be applied to mobile
Because:
- When the brand messaging banner is enabled, there's  extra white space at the bottom of the doc in the react flows.

This Commit:
- Only applies the extra margin for mobile flows with a sticky banner in the footer.
2023-10-10 14:07:42 -07:00
Reino Muhl 159e31b3c9
Merge pull request #15893 from mozilla/fxa-8445-ga-consent-denied
feat(payments): google analytics deny consent
2023-10-10 16:52:31 -04:00
Ankita Shrivastava 7818badcab
Merge pull request #15895 from mozilla/intern-outdated-files-deletion
delete files
2023-10-10 16:19:06 -04:00
Ankita Shrivastava 5a5e8e7b49
test(functional): remove old functional intern tests and files
This reverts commit 375aeb0570c8b7ecf424079153637d9c36824d32.
2023-10-10 15:54:48 -04:00
Lisa Chan c3f4a9249b
Merge pull request #15891 from mozilla/disable_test
test(functional): Disable failing test on stage
2023-10-10 15:41:32 -04:00
Vijay Budhram bf878354f9
Merge pull request #15885 from mozilla/dependabot/npm_and_yarn/google-auth-library-9.1.0
chore(deps): bump google-auth-library from 8.8.0 to 9.1.0
2023-10-10 14:02:42 -04:00
Reino Muhl 0aafc34a78
feat(payments): google analytics deny consent
Because:

* SubPlat currently does not request cookie consent from customers,
  therefore Google Analytics should be configured to not use any
  cookies.

This commit:

* Sets Google Analytics default consent to denied for all consent types.
* Renames testMode to debugMode, and reassigned it to the gtag
  debug_mode option, which is what it was originally intended for.

Closes #FXA-8445
2023-10-10 13:22:50 -04:00
Ankita Shrivastava 3733a298f5
Merge pull request #15887 from mozilla/smoke-test-fixes
test(functional): fix post verify account recovery test
2023-10-10 13:16:14 -04:00
Vijay Budhram 369e5c0573
Merge pull request #15888 from mozilla/fxa-8443
chore(web): Revert webpack mode override
2023-10-10 12:59:26 -04:00
Bryan Olsson f050a90669
Merge pull request #15889 from bcolsson/l10n-fix-term
chore(l10n): Replace string with brand term in autmatedEmailRecoveryKey
2023-10-10 09:43:07 -07:00
Valerie Pomerleau 99396b5f33
fix(fxa-settings): High-contrast mode improvements
Because:

* Usability of fxa-settings components can be improved in HCM mode

This commit:

* Use currentColor fill and/or stroke for icons in AlertBar, Banner, BentoMenu, BrandMessaging, HeaderLockup to ensure they are visible in Windows HCM
* Add transparent borders to AlertBar, Banner, DataBlock, FlowContainer, Modal, Tooltip component to improve usability in HCM mode
* Wrap tab fence around inner components of AlertBar and Modal to ensure focus outline in HCM is wrapped around component vs small rectangle before inner component

Closes #FXA-7552
2023-10-10 09:16:05 -07:00
Reino Muhl 7f567b2b5c
Merge pull request #15886 from mozilla/fix-payments-next-envs
fix(payments): config file missing in build
2023-10-10 11:28:32 -04:00
Reino Muhl 9a4a92aa9a
fix(payments): config file missing in build
Because:

* payments-next heartbeat api returns 500 due to missing config file.

This commit:

* Reorders nest-typed-config loaders so that fileLoader is first, which
  results in an empty .env.json file to be included in the
  payments-next build.
* Adds normalization step to config loader, for non-string values.

Closes #
2023-10-10 11:03:13 -04:00
Lisa Chan 8b73056dcf
test(functional): Disable failing test on stage 2023-10-10 09:00:23 -04:00
Reino Muhl 128357cca7
Merge pull request #15862 from mozilla/fxa-8225-get-locale
feat(contentful): add contentful get locale
2023-10-09 20:23:15 -04:00
Wil Clouser 4cddf92193
Merge pull request #15890 from mozilla/FXA-7658-investigate-implement-sentry-cron-monitoring
feat: add sentry monitoring to cron jobs
2023-10-09 16:48:46 -07:00
Wil Clouser afb38dd4dd
feat: add sentry monitoring to cron jobs
Because:

* We don't have good cron visibility

This commit:

* Adds sentry logging

Closes FXA-7658
2023-10-09 16:20:11 -07:00
Reino Muhl 90984ca1b0
feat(contentful): add contentful get locale
Because:

* Need to determine a valid locale configured in Contentful.

This commit:

* Add getLocale method to ContentfulClient to determine locale using
  locales available in Contentful and defaulting to 'en' as a fallback.

Closes #FXA-8225
2023-10-09 19:07:14 -04:00
Reino Muhl f5418ca173
Merge pull request #15798 from mozilla/fxa-8228-move-l10n-shared
feat(libs): move fxa-shared/l10n to libs/shared/l10n
2023-10-09 18:46:03 -04:00
Bryan Olsson 2894b5c464
chore(l10n): Replace string with brand term in autmatedEmailRecoveryKey
Because:

* The ftl string uses Mozilla instead of the term -brand-mozilla and is causing a linting error

This commit:

* Replaces the string with the correct brand term
2023-10-09 14:30:10 -07:00
Ankita Shrivastava 9e6771f78f
test(functional): fix post verify account recovery test 2023-10-09 15:56:22 -04:00
Vijay Budhram d9fb9c1a6a
chore(web): Revert webpack mode override 2023-10-09 15:51:45 -04:00
Dan Schomburg 1b34045e8e
Merge pull request #15868 from mozilla/FXA-8376
bug(auth): Random email non-delivery
2023-10-09 09:48:27 -07:00
Dan Schomburg 464d2772a9
Merge pull request #15872 from mozilla/FXA-8429
bug(content): Missing & duplicate brand metrics
2023-10-09 09:46:28 -07:00
dependabot[bot] c81819f7c0
chore(deps): bump google-auth-library from 8.8.0 to 9.1.0
Bumps [google-auth-library](https://github.com/googleapis/google-auth-library-nodejs) from 8.8.0 to 9.1.0.
- [Release notes](https://github.com/googleapis/google-auth-library-nodejs/releases)
- [Changelog](https://github.com/googleapis/google-auth-library-nodejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-auth-library-nodejs/compare/v8.8.0...v9.1.0)

---
updated-dependencies:
- dependency-name: google-auth-library
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 06:51:35 +00:00
Lauren Zugai fd716ec3f3
Merge pull request #15881 from mozilla/dependabot/npm_and_yarn/storybook/addon-essentials-7.4.6
chore(deps-dev): bump @storybook/addon-essentials from 7.1.1 to 7.4.6
2023-10-06 14:45:18 -05:00
Lauren Zugai 66d07340a7
Merge pull request #15877 from mozilla/dependabot/npm_and_yarn/testing-library/user-event-14.5.1
chore(deps-dev): bump @testing-library/user-event from 14.4.3 to 14.5.1
2023-10-06 14:44:26 -05:00
Valerie Pomerleau 1ee52fc12d
Merge pull request #15826 from mozilla/FXA-7669
feat(email): New and updated emails for recovery key flow
2023-10-06 11:33:16 -07:00
Lisa Chan 41ca3356c2
Merge pull request #15883 from mozilla/monitor_svg
chore(icon): Add new Monitor svg icon to CDN
2023-10-06 11:31:19 -04:00
Lisa Chan 8d6b9b8d20
chore(icon): Add new Monitor svg icon to CDN 2023-10-06 10:56:47 -04:00
dependabot[bot] 1f04d5c6a1
chore(deps-dev): bump @storybook/addon-essentials from 7.1.1 to 7.4.6
Bumps [@storybook/addon-essentials](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/essentials) from 7.1.1 to 7.4.6.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.6/code/addons/essentials)

---
updated-dependencies:
- dependency-name: "@storybook/addon-essentials"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 06:53:01 +00:00
dependabot[bot] 99b12f6544
chore(deps-dev): bump @testing-library/user-event from 14.4.3 to 14.5.1
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 14.4.3 to 14.5.1.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v14.4.3...v14.5.1)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 06:47:50 +00:00
Bianca Danforth 3649563569
Merge pull request #15870 from mozilla/FXA-8371
chore(auth): remove unused and invalid test Stripe API key
2023-10-05 19:17:48 -04:00
Lauren Zugai 88fcb9f0eb
Merge pull request #15858 from mozilla/FXA-8307
feat(react): Allow Signup 'Change email' to behave as expected
2023-10-05 17:38:54 -05:00
Lauren Zugai a0a0f58fe3
feat(react): Allow Signup 'Change email' to behave as expected
Because:
* Taking the user back to the Backbone index page on click of React "Change email"  when they had an account in local storage would force a redirect to /signin

This commit:
* Adds a new 'prefillEmail' parameter for the React app to pass back to the Backbone app to signify to Backbone that 'Change email' was clicked
* On the React side, remove existing 'emailFromContent' and 'email' params from link since 'email' alters behavior on the Backbone side and 'emailFromContent' alters behavior on the React side
* On the Backbone side, set this field as a new relier field (typical of how we handle/validate external params), and if it exists on the index page, don't redirect and instead, prefill the email to match parity

fixes FXA-8307
2023-10-05 17:19:05 -05:00
Vijay Budhram 355f637876
Merge pull request #15743 from tarikeshaq/disable-csp-for-local-dev
Allow FxA to run locally on safari by disabling csp locally
2023-10-05 15:37:41 -04:00
Ankita Shrivastava df2685bfac
Merge pull request #15861 from mozilla/create-smoke-test-suite
config(functional): remove content-server-remote steps for old tests
2023-10-05 14:37:10 -04:00
Ankita Shrivastava 8051e36ff8
config(functional): remove content-server-remote steps for old tests 2023-10-05 14:23:37 -04:00
Lisa Chan fd43506d54
Merge pull request #15875 from mozilla/monitor_icons
chore(icons): Add Monitor icons to CDN
2023-10-05 11:53:54 -04:00
Lisa Chan 1c8f53d11f
chore(icons): Add Monitor icons to CDN 2023-10-05 11:37:49 -04:00
dschom 6718eddcc9
bug(content): Missing & duplicate brand metrics
Because:
- We weren't seeing a `flow.confirm_sign_up.brand-messaging-prelaunch-view` metrics on the confirm sign up page
- The signin page would double emit `flow.signin.brand-messaging-prelaunch-view`

This commit:
- Registers the brand-messaging-mixin on the `confirm_signup_code view`.
- Uses `logFowEventOnce` instead of `logFlowEvent` method to emit metric.
2023-10-04 16:28:13 -07:00
Bianca Danforth 1807a775ac
chore(auth): remove unused and invalid test Stripe API key
Because:

* The value of this key doesn't matter for the purpose of this test.
* This key isn't valid.
* Using a key that looks like a valid key is causing us to get security alerts.

This commit:

* Replaces the key value in the test with a dummy string.

Relates to #FXA-8371
2023-10-04 18:10:43 -04:00
Valerie Pomerleau 69e9fc7deb
feat(email): New and updated emails for recovery key flow
Because:

* We want to send a clearer email when the user changes their account recovery key
* We are updating the content of existing emails for recovery key creation and deletion

This commit:

* Create a new email template for recovery key change
* Update email templates for adding and removing a recovery key
* Add a new partial for recovery key secondary actions
* Remove sign-off in passwordChangeRequired email and update template version
* Enable localization in fxa-auth-server storybooks
* Update POST method to /recoveryKey to send out the new "key changed" email when the key is changed
* Update email tests

Closes #FXA-7669
2023-10-04 14:10:23 -07:00
Reino Muhl 63e5ab95fd
feat(libs): move fxa-shared/l10n to libs/shared/l10n
Because:

* We want to use functions from fxa-shared/l10n in new libs/* libraries
  including libs/shared/contentful.

This commit:

* Moves fxa-shared/l10n to libs/shared/l10n
* Updates all references in packages/*

Closes #FXA-8228
2023-10-04 16:08:01 -04:00
dschom f38802cd31
bug(auth): Random email non-delivery
Because:
- We want to pin down reports of occasionally unsent emails.
- sendVerifyAccountEmail was written with promise chains

This Commit:
- Adds info log prior to email send, so we know if the email will send code will be triggered
- Adds try catch around sendEmail code so we can monitor any issues
- Converts sendVerifyAccountEmail to an async function to be consistent with other async functions and prevent mixing of patterns
- ensures request.emitMetricEvent events are properly awaited
- ensures glean events are properly awaited
2023-10-04 12:56:04 -07:00
Dan Schomburg fd8cf3fba5
Merge pull request #15867 from mozilla/FXA-8423
bug(content): Page would not render properly in some cases
2023-10-04 10:45:27 -07:00
dschom bc5734d797
bug(content): Page would not render properly in some cases
Because:
- There appeared to be invalid html

This Commit:
- Fixes the mismatched <span>Learn more</a> html
- Fixes bad div tag
- Corrects className to be class.
- Adds extra fixes include for brandMessaging. It needs `{{{` not `{{`
2023-10-04 10:33:44 -07:00
Lauren Zugai 55c3223276
Merge pull request #15866 from mozilla/FXA-8427
fix(react): Pass query parameters on 'Remember your password' link
2023-10-04 12:03:40 -05:00
Dan Schomburg 264f32688e
Merge pull request #15865 from mozilla/fix-hidden-forgot-password
bug(content): Links hidden on some devices by banner
2023-10-04 09:52:33 -07:00
Lauren Zugai f8909636a7
fix(react): Pass query parameters on 'Remember your password' link
Because:
* Not passing query parameters causes OAuth and Sync flows to lose their query params (and context) on signin

This commit:
* Passes params and email param if present back to /signin or /force_auth

fixes FXA-8427
2023-10-04 11:40:55 -05:00