Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetpack Cloud: Create Fix all threats - add credentials modal #40209

Merged
merged 13 commits into from
Mar 26, 2020

Conversation

rcanepa
Copy link
Contributor

@rcanepa rcanepa commented Mar 17, 2020

Changes proposed in this Pull Request

  • The goal of this is to create the Threat Card used on the main screen when threats are found.

Important note

We are not checking if the provided credentials are valid. We move the user to next step in the progress regardless of the result. This is for testing purposes only.

Testing instructions

See 1151678672052943-as-1165787355206381.

Expected result

We need credentials

image

If credentials were already supplied

image

Fixing all threats (notice that the buttons are disabled)

Kapture 2020-03-25 at 10 38 51

@rcanepa rcanepa added [Status] In Progress Jetpack Cloud Anything related to the Jetpack Cloud (cloud.jetpack.com) labels Mar 17, 2020
@matticbot
Copy link
Contributor

@matticbot
Copy link
Contributor

matticbot commented Mar 17, 2020

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

Sections (~7414 bytes added 📈 [gzipped])

name  parsed_size            gzip_size
scan     +31910 B  (+33.1%)    +7414 B  (+28.2%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@rcanepa rcanepa force-pushed the add/fix-all-threats-add-credentials-dialog branch 3 times, most recently from 45dce1f to 5ad7700 Compare March 18, 2020 18:13
@rcanepa rcanepa changed the title Create Fix all threats - add credentials modal Jetpack Cloud: Create Fix all threats - add credentials modal Mar 19, 2020
@rcanepa rcanepa force-pushed the add/fix-all-threats-add-credentials-dialog branch from ac243c8 to 0a8d8d5 Compare March 20, 2020 13:59
@rcanepa rcanepa force-pushed the add/fix-all-threats-add-credentials-dialog branch from 0a8d8d5 to 183d119 Compare March 25, 2020 11:46
@rcanepa rcanepa added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Mar 25, 2020
@enejb enejb requested a review from a team March 25, 2020 14:50
@enejb
Copy link
Member

enejb commented Mar 25, 2020

This tested really well for me.

Some thing that I noticed

  1. The in progress state when we are validating the credentials provided is shown in the notice. Which is a bit hidden. We should make it more prominent. (lets fix this in a follow up PR)
  2. It is possible to close the dialog by clicking outside of the modal. When the form is validating the credentials. Which breaks the flow. Can we remove this?

@rcanepa
Copy link
Contributor Author

rcanepa commented Mar 26, 2020

I added tests that can be run with npm run test-client:watch landing/jetpack-cloud/components/with-server-credentials-form/test/index.js.

image

@rcanepa
Copy link
Contributor Author

rcanepa commented Mar 26, 2020

Hey @enejb !

  1. The in progress state when we are validating the credentials provided is shown in the notice. Which is a bit hidden. We should make it more prominent. (lets fix this in a follow up PR)

I agree.

  1. It is possible to close the dialog by clicking outside of the modal. When the form is validating the credentials. Which breaks the flow. Can we remove this?

Done.

I also added tests around the HOC. Let me know what you think.

Copy link
Member

@enejb enejb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the test. This works really nicely now!

@enejb enejb added [Status] Ready to Merge Jetpack and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 26, 2020
@rcanepa rcanepa merged commit 0024d00 into master Mar 26, 2020
@rcanepa rcanepa deleted the add/fix-all-threats-add-credentials-dialog branch March 26, 2020 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Jetpack Cloud Anything related to the Jetpack Cloud (cloud.jetpack.com) Jetpack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants