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

18299 Коммитов

Автор SHA1 Сообщение Дата
Jody Heavener aa3a9060cb
feat(settings): metrics reporting
Because

- The new Settings app needs to be able to report metrics events

This commit

- Starts implementing full metrics reporting to the content server metrics endpoint
2020-08-13 10:24:56 -04:00
Les Orchard ef378f951b
Merge pull request #6182 from mozilla/6129-too-many-payment-failed-emails
fix(payments): do not send payment failure emails during subscription creation flow
2020-08-13 01:30:18 -07:00
Ben Bangert 91ccfae5d6
Merge pull request #6190 from mozilla/feat/issue-6185
feat(event-broker): prevent invalid client ids
2020-08-12 20:09:49 -07:00
Les Orchard 5eb89ef661
fix(payments): do not send payment failure emails during subscription creation flow
fixes #6129
2020-08-12 18:55:29 -04:00
Ben Bangert 48357db164
feat(event-broker): prevent invalid client ids
Because:

* Some producers manage to upper-case the clientId or just bungle it
  entirely.

This commit:

* Screen the clientId to ensure it looks proper, upper-case it before
  handling the message for normalization.

Fixes #6185
2020-08-12 15:40:13 -07:00
Danny Coates afe4e8eaa4
Merge pull request #6184 from mozilla/issues/4933
New settings: display alerts from content-server
2020-08-12 11:27:50 -07:00
Danny Coates 4de585d4d4
feat(settings): display alert messages from login in new settings
Some actions in fxa-content-server end up displaying an alert message on the settings page. We want to be able to display those messages across the "app" boundary between the content-server front-end and new settings.

To do this we store the message in localStorage and whichever app gets to it first will display it and remove it from storage.
2020-08-12 10:47:27 -07:00
Lauren Zugai 292bd02672
Merge pull request #6104 from SrilalS/main
Changed the 404 page Text to be Match with Other Styles
2020-08-12 12:33:50 -05:00
Srilal Sachintha f91e5768c4
fix(style): Update 404 pages paragraph styles
Because:
* The line-height on paragraphs on 404 pages did not match the line-height on other FxA pages.

This commit:
* Adds a class on the 404 page `p` tag and adds styles.
2020-08-12 22:40:48 +05:30
Les Orchard 226c677577
Merge pull request #6181 from mozilla/6175-sub-download-email-on-success
fix(payments): send subscription download email along with initial invoice
2020-08-12 09:40:20 -07:00
Vijay Budhram 4326307b7f
Merge pull request #6131 from mozilla/fxa-1606, r=@jodyheavener
## Because

- The new settings page needs navigation

## This pull request

- Adds initial react reach routing and lazy loading with Suspense
- Adds a basic `FlowContainer` component that acts as container for standalone views
- There are still some rough edges around the styling that I hope can be addressed in #5028 (ie mobile view doesn't show the back arrow in correct spot)

## Issue that this pull request solves

Closes: #4899
2020-08-12 12:35:06 -04:00
Vijay Budhram 6081c19b67
feat(router): Add react router support to settings 2020-08-12 11:44:30 -04:00
Jody Heavener 1b7e0c0b84
Merge pull request #6174 from mozilla/jh/settings-react-improved-testing
refactor(settings + react): update tests to be more consistent and DRY
2020-08-12 09:51:10 -04:00
Jody Heavener 02272c50a4
refactor(settings + react): update tests to be more consistent and DRY 2020-08-12 09:31:10 -04:00
Danny Coates bc31d7d329
Merge pull request #6176 from mozilla/issues/6118
feat(settings): redirect to login when session token is invalid
2020-08-11 19:57:16 -07:00
Danny Coates 065f0a4974
Merge pull request #6186 from mozilla/issues/6119
feat(settings): Display formatted password set time on new settings
2020-08-11 15:18:18 -07:00
Danny Coates 3d310dd1c2
feat(settings): Display formatted password set time on new settings 2020-08-11 12:01:44 -07:00
Les Orchard d080dad75c
fix(payments): send subscription download email along with initial invoice
In the new SCA payment flow, there is at least one case where we'll only
know that the subscription has been successfully paid for when the
webhook event comes in from Stripe. (i.e. client-side 3D Secure
authentication)

But, since we can't tell the difference between that and any other
cases, this PR switches all cases over to sending the download email
along with initial invoice in response to the invoice webhook event.

fixes #6175
2020-08-10 18:46:37 -04:00
Ben Bangert 41da2dbbdc
Merge pull request #6180 from mozilla/fix/issue-6064
fix(admin): split query for index usage
2020-08-10 14:45:05 -07:00
Ben Bangert 2f2c409f04
fix(admin): split query for index usage
Because:

* MySQL optimizer doesn't like using emailBounces index when using a
  sub-query.

This commit:

* Splits the query into two, which then utilizes the indexes of both
  tables as expected.

Closes #6064
2020-08-10 14:26:45 -07:00
Dave Justice b7924f18ef
Merge pull request #6178 from mozilla/6154-use-account
task(fxa-settings): convert settings component to use cache
2020-08-10 16:58:54 -04:00
Dave Justice 486c08fec2
task(fxa-settings): convert settings component to use cache
- fixes #6154
2020-08-10 20:22:50 +00:00
Danny Coates 275c52de0d
feat(settings): redirect to login when session token is invalid
When the graphql server fails authentication it means we need to reauthenticate the user. We do this in a slightly roundabout way by redirecting to /get_flow and having it navigate to the login page so that we can redirect_to back to /beta/settings. Once new settings is no longer in beta we ought to be able to redirect straight to /signin.
2020-08-10 11:12:06 -07:00
Danny Coates 809035a3e0
Merge pull request #6145 from mozilla/moving-stuff
refactor settings state
2020-08-07 14:39:52 -07:00
Danny Coates 7a2fef8b77
refactor(settings): removed AccountDataHOC
Because our assumptions about the data from gql have changed, we no longer need to worry about parts of the Account type needing a verified session, we can simplify the structure a bit.

In the future we can use `useAccount` in components to get the data they need instead of pushing down the `account` object.

This also introduces the `models` folder for organizing our types.

For testing components that `useAccount()` there's the `MockedCache` component.
2020-08-07 12:16:40 -07:00
Danny Coates da3d87be1c
Merge pull request #6157 from mozilla/train-183
183.1 point release
2020-08-06 20:07:49 -07:00
Jared Hirsch d4d21509ad
Merge pull request #6156 from mozilla/inline-2fa-routes
fix(server): register 2FA inline setup routes with server
2020-08-06 15:12:11 -07:00
Jared Hirsch 971296410f
Release 1.183.1 2020-08-06 14:46:37 -07:00
Jared Hirsch d10c7436cc
fix(server): register 2FA inline setup routes with server 2020-08-06 14:46:29 -07:00
Jody Heavener 6742ddd904
Merge pull request #6153 from mozilla/train-183
Release 1.183.0
2020-08-06 17:45:12 -04:00
Jared Hirsch d691458f35
fix(server): register 2FA inline setup routes with server 2020-08-06 14:41:21 -07:00
Jody Heavener 809273f5d0
Release 1.183.0 2020-08-06 13:31:12 -04:00
Lauren Zugai 803dd42f97
Merge pull request #6149 from mozilla/issues/4926
feat(settings): Add AlertBar root el with Context, UnitRowSecondaryEmail
2020-08-06 12:19:15 -05:00
Vijay Budhram 0e45e3af75
Merge pull request #6106 from mozilla/fxa-2358, r=@dannycoates
## Because

- The app badges treatment won for registration and QR CAD for login

## This pull request

- Removes the QR Cad experiment logic
- Shows App Badges for Signup flows, QR Code for Signin flows, Pairing for other flows (Fx toolbar menu)
- Removes the newsletter-sync-qr-code because its not need
- Clean up tests

## Issue that this pull request solves

Closes: #5835 #6147 #6146 #6065
2020-08-06 12:55:29 -04:00
Lauren Zugai d4984829fb
feat(settings): Add AlertBar root el with Context, UnitRowSecondaryEmail
Because:
* We need to use the AlertBar component throughout the project while keeping it as the first DOM element after the main tag.

This commit:
* Adds 'alert-bar-root' element and uses createPortal in AlertBar to mount
* Adds AlertBarContext for referencing the 'alert-bar-root' element
* Modifies the hook that sets focus on the element opening a modal, allowing for a 'triggerException' to allow AlertBar to take focus
* Pulls the secondary email section into its own component
2020-08-06 11:54:22 -05:00
Vijay Budhram 3f5ea06792
chore(experiment): remove the qr cad experiment 2020-08-06 12:28:34 -04:00
Dave Justice 4e031d07a2
Merge pull request #6128 from mozilla/4911-security-section-settings
task(fxa-settings): Add security panel to settings
2020-08-06 10:54:40 -04:00
Barry Chen c37ef83c5a
Merge pull request #6144 from chenba/2316-single-payment-update
refactor(subscriptions): use a single payment update form
2020-08-06 08:32:32 -05:00
Dave Justice 872d78bf6d
task(fxa-settings): Add security panel to settings
- fixes #4911
2020-08-06 09:42:09 +00:00
Danny Coates b43e911d9c
Merge pull request #6141 from mozilla/gql-session
feat(settings): add session verified state to graphql-api
2020-08-05 16:46:38 -07:00
Danny Coates 42a6f8a395
feat(settings): add session verified state to graphql
because the frontend needs to know about the verified state of the session
2020-08-05 16:38:33 -07:00
Barry Chen 8ab8480f1c
refactor(subscriptions): use a single payment update form
Because:
 - payment method for subscriptions should be updated in one place

This commit:
 - move the payment method info and update form into their own section
 - move CancelSubscriptionPanel into its own file
 - replace 'react-test-renderer' tests with 'Testing-Library/react' ones
 - make minor style and layout changes
 - remove product and plan ids from payment update Amplitude events as
   they are no longer associated with a subscription
2020-08-05 18:33:46 -05:00
Jared Hirsch a5a78e42f7
Merge pull request #6148 from mozilla/prompt-none-improvements
fix(oidc): Allow prompt=none with id_token_hint for all RPs
2020-08-05 16:25:18 -07:00
Jared Hirsch 2c5687e868
fix(oidc): Allow prompt=none with id_token_hint for all RPs
* If an RP uses prompt=none with an id_token_hint, don't check against the allowed client list. This is because the user must have signed in to the RP before, otherwise the RP could not provide us a valid id_token.

* We still require an RP to be on the allowlist if they want to use
prompt=none with the user email (via either the login_hint or email
parameters).

Closes #4963, closes #6028.
2020-08-05 13:46:21 -07:00
Les Orchard 561ee8c943
Merge pull request #6139 from mozilla/6136-sca-metrics
feat(payments): implement metrics for SCA flows
2020-08-05 11:21:53 -07:00
Les Orchard 39f651722c
feat(payments): implement metrics for SCA flows
- expand response from SCA subscription create to add sourceCountry

- add amplitude lifecycle events for SCA subscription create and payment
  update APIs

- wrap SCA API client methods in Amplitude lifecycle event pings

fixes #6136
2020-08-05 12:49:39 -04:00
Les Orchard 9cdc058e5e
Merge pull request #6126 from mozilla/sca-download-email
fix(payments): ensure SCA flow sends download email and triggers customer update
2020-08-05 09:20:30 -07:00
Danny Coates 454d132505
Merge pull request #6125 from mozilla/settings-auth-client
feat(settings): added fxa-auth-client to fxa-settings
2020-08-04 14:16:54 -07:00
Danny Coates 01cca2507f
feat(settings): added fxa-auth-client to fxa-settings
This provides the base functionality needed for fxa-settings to make api calls to the auth-server. There's an `AuthContext.Provider` initialized in index.tsx and the `useAuth` hook to retrieve the client from components.

fixes #5491
2020-08-04 14:02:35 -07:00
Jody Heavener 30b7ca1329
Merge pull request #6099 from mozilla/jh/6075/avatar-file-size-up
refactor(avatars): increase max file size to 2mb
2020-08-04 16:48:11 -04:00