Skip to content

Update connect buttons in banner#8544

Merged
johnHackworth merged 7 commits intomasterfrom
add/new-connect-buttons
Jan 24, 2018
Merged

Update connect buttons in banner#8544
johnHackworth merged 7 commits intomasterfrom
add/new-connect-buttons

Conversation

@johnHackworth
Copy link
Copy Markdown
Contributor

Changes proposed in this Pull Request:

  • This PR updates the looks of the connect buttons to make them jetpack-green.
  • It also adds a parameter to the connection URL in the banner buttons, since we are already telling the user that by clicking those button they agree with our ToS, so we don't need to ask again wpcom-side
    image

Testing instructions:

  • Disconnect any of your jetpack sites, and then navigate anywhere where the banner up there is showing. The buttons should be green, and the url they link to should contain "already_approved=true"

ping @joanrho and @MichaelArestad for design review

@johnHackworth johnHackworth added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] In Progress [Focus] NUX labels Jan 17, 2018
@johnHackworth johnHackworth self-assigned this Jan 17, 2018
@johnHackworth johnHackworth requested a review from a team as a code owner January 17, 2018 10:00
@joanrho
Copy link
Copy Markdown
Contributor

joanrho commented Jan 17, 2018

Thanks @johnHackworth, this looks great! I see the changes in the small banner on both wp-admin Dashboard and in the Plugins directory after the full-screen banner there is dismissed.

Some comments:

  1. I've just commited a small change to your code—added a space in between "Set" and "up" in the green button, so the text will read "Set up Jetpack".
  2. The button URL doesn’t say “already_approved=true” like you describe, it says “already_authorized=true”. Same thing?

@MichaelArestad
Copy link
Copy Markdown
Contributor

Visually, looks great! Nice work!

@joanrho
Copy link
Copy Markdown
Contributor

joanrho commented Jan 17, 2018

I also added another small change to the colors variables and connect button colors.

other than that, LGTM!

@johnHackworth
Copy link
Copy Markdown
Contributor Author

Joan:

it says “already_authorized=true”. Same thing?

yup, sorry, I messed up the text in the PR, that's the actual param :)

@johnHackworth johnHackworth added this to the 5.8 milestone Jan 18, 2018
@johnHackworth johnHackworth added [Status] Needs Review This PR is ready for review. and removed [Status] In Progress labels Jan 18, 2018
@johnHackworth
Copy link
Copy Markdown
Contributor Author

I've just added the full-screen banner button I was still missing to the PR:

image

@joanrho
Copy link
Copy Markdown
Contributor

joanrho commented Jan 19, 2018

Just added some copy changes to the full-screen banner (as described in my kickoff post), updated the buttons on the Jetpack page (when not yet connected), and added hover styles to all green buttons.

Screenshots of those changes here.

Don't worry about the color variable names—I'll be standardizing them to be aligned with the Calypso color naming conventions in a separate PR (they will be $green-jetpack, $green-medium, and $green-dark). I've already defined and used $green-dark in my latest commit though, since that's the new hover/focus button border color.

cc @MichaelArestad @johnHackworth for review.

Copy link
Copy Markdown
Contributor

@zinigor zinigor left a comment

Choose a reason for hiding this comment

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

Reviewed, found one place with minor indentation problems. Tested, everything looks good, except I have one question in the following comment.

.jp-jetpack-connect__button {
background: $green-primary;
border-color: $green-secondary;
color: $white;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Indentation seems to be using different styles here. Let's use tabs please.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That is my mistake. Thanks for catching!

@zinigor
Copy link
Copy Markdown
Contributor

zinigor commented Jan 22, 2018

Now I'm seeing buttons with new colors in different UI, are these buttons supposed to be like this? One is green, one is blue on the disconnected dashboard view:
screenshot from 2018-01-22 14-30-49

@MichaelArestad
Copy link
Copy Markdown
Contributor

are these buttons supposed to be like this?

@zinigor This is intentional.

@johnHackworth
Copy link
Copy Markdown
Contributor Author

@zinigor thank you for the review, Igor!

I fixed the spaces issue in the scss file

@zinigor zinigor added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Jan 23, 2018
@johnHackworth johnHackworth merged commit 42ef8e3 into master Jan 24, 2018
@matticbot matticbot removed the [Status] Ready to Merge Go ahead, you can push that green button! label Jan 24, 2018
@jeherve jeherve deleted the add/new-connect-buttons branch January 24, 2018 09:59
roccotripaldi pushed a commit that referenced this pull request Feb 19, 2018
…g customer

know they've already connected the site.

`auth_approved` is a connection URL param that let's a connecting customer skip
the screen that shows the terms-of-service-acceptance button.

In #8544 we meant to use `auth_approved`
oskosk pushed a commit that referenced this pull request Feb 20, 2018
* `already_authorized` is a connection URL param that let's a connecting customer
know they've already connected the site.

`auth_approved` is a connection URL param that let's a connecting customer skip
the screen that shows the terms-of-service-acceptance button.

In #8544 we meant to use `auth_approved`

* Keep auth_approved param from WP Admin connect redir

This banners may include `auth_approved` which is intended to be sent to
the connection API endpoint. Ensure relevant `auth_approved` params are
included if provided when redirecting to the connection endpoint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Focus] NUX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants