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

Site Activity: adds contextual popover menu item to add site credentials #40014

Merged
merged 3 commits into from
Mar 10, 2020

Conversation

keoshi
Copy link
Contributor

@keoshi keoshi commented Mar 10, 2020

Changes proposed in this Pull Request

  • Adds contextual popover menu item to add site credentials in backup events on the site activity.
  • Adds new calypso_activitylog_event_add_credentials tracks event for this new item.

We’re currently disabling the “Restore to this point” option on the site activity without explaining why, and I’d assume people would not co-relate the banner at the top telling them to add server credentials and the fact that restores are not available.

Before

image

After, normal state

image

After, selected state

image

After adding server credentials, the restore option is enabled and this one goes away

image

Testing instructions

  • Fire up this PR locally or using jurassic.ninja.
  • Connect Jetpack.
  • Go to your site activity in Calypso; e.g.: http://calypso.localhost:3000/activity-log/SITE_URL.
  • Ensure you see the new option and that it sends you to the correct place to set up site credentials.
  • Validate that the option isn't visible once you've added working credentials.

@keoshi keoshi added [Type] Enhancement Jetpack [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR Rewind labels Mar 10, 2020
@keoshi keoshi requested review from a team March 10, 2020 11:28
@keoshi keoshi self-assigned this Mar 10, 2020
@matticbot
Copy link
Contributor

@matticbot
Copy link
Contributor

matticbot commented Mar 10, 2020

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

Sections (~182 bytes added 📈 [gzipped])

name      parsed_size           gzip_size
stats          +340 B  (+0.0%)      +91 B  (+0.0%)
activity       +340 B  (+0.1%)      +91 B  (+0.1%)

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

Async-loaded Components (~91 bytes added 📈 [gzipped])

name                                 parsed_size           gzip_size
async-load-signup-steps-clone-point       +340 B  (+0.2%)      +91 B  (+0.3%)

React components that are loaded lazily, when a certain part of UI is displayed for the first time.

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.

@keoshi keoshi requested a review from a team March 10, 2020 11:33
@folletto
Copy link
Contributor

This was long overdue! Thanks for adding the clarification and the next step right where the user would expect it and avoiding a dead end. #nodeadends! :D

Design wise 👍

@folletto folletto removed the [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR label Mar 10, 2020
? `/start/rewind-auto-config/?blogid=${ siteId }&siteSlug=${ siteSlug }`
: `/settings/security/${ siteSlug }`
}
>
Copy link
Member

Choose a reason for hiding this comment

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

Should add some analytics to this new link?

@enejb
Copy link
Member

enejb commented Mar 10, 2020

Nice improvement @keoshi !

I think adding the analytics can be done in a different PR as well.

@keoshi
Copy link
Contributor Author

keoshi commented Mar 10, 2020

@enejb Would appreciate another review after adding tracking in 9cb6427

Here it is working:

image

@jeffgolenski
Copy link
Member

@keoshi Brilliant refinement. Well done!

Copy link
Contributor

@robertf4 robertf4 left a comment

Choose a reason for hiding this comment

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

Excellent! With analytics in, I'm approving. Great PR @keoshi!

@keoshi
Copy link
Contributor Author

keoshi commented Mar 10, 2020

Woohoo, thank you all! 🙌 Merging now.

@keoshi keoshi merged commit 0d26a0b into master Mar 10, 2020
@keoshi keoshi deleted the add/jetpack-activity-server-credentials-menu-item branch March 10, 2020 15:03
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants