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

New Admin Page: My Jetpack (connection management) #2252

Closed
wants to merge 54 commits into from

Conversation

dereksmart
Copy link
Member

Note: this PR does not include the dotcom changes that will be made on master user switch. That will be done in a following PR.

On this page, users will be able to view their connection information, as well as the ability to transfer "site ownership" aka master user.

You will need to run grunt locally to see the css file changes.

Prior to testing, please disconnect jetpack entirely.

Begin testing:
Set up 3 separate user accounts; (at least) Two admins and one editor (or any non-admin). I found it's easiest to log in to all three accounts in different windows/browsers.

As the first admin:

  • Connect Jetpack to your wpcom account. This will assign you as the master user.

As the second admin:

  • Log in, click on "My Jetpack": You should be able to see the primary connection holder, and a CTA to link the site to your wordpress.com account
  • Link your account to a unique wpcom account from the master.
  • Look at "My Jetpack" again. You should now be able to switch the primary account to your connection. You can also unlink your account.

As the non-admin:
Repeat steps from the second admin. The Only difference should be that you can't do/see anything but link/unlink your own wpcom account to the site.

Some notes about My Jetpack

  • Only admins of the site will be able to disconnect the Jetpack site entirely.
  • You may now switch Master user roles
  • Only able to assign users as master who are both Admins and linked to a dotcom account.
  • You should only see yourself and the master user's info at any given time. If you are the master user, you will only see yourself.
  • Users below admin level still have access to the page, however they can only see their own connection status.
  • You should only be able to see the page if the site is connected.

dereksmart and others added 16 commits June 13, 2015 12:24
adds the Jetapck connection information about the logged in user and the master user to My Connection page
- Admins can disconnect the Jetpack site, or their own link to wpcom
- Will display who is the Master user for a site
- Admins who are not master user will be able to set themselves as master
- Other users can link/unlink their accounts

New file: _inc/jp-connection.js
New file: class.jetpack-my-jetpack-page.php
New file: my-jetpack-page.php
We want to funnel user traffic to disconnect their site to the “My
Connection” page so we can provide them with additional options and
support before they disconnect
When a user wants to disconnect their site they will now see a message
that gives them the opportunity to first seek support.
file/element refactor to now call the page "My Jetpack" instead of My Connection
Refactor to remove some DRYness, better naming conventions, better organization.

Created an additional function to handle the current user logic and separated it from the master user logic. It now is easier to read.
Restructuring HTML + styling connection details
adding html + styles to connection page
responsive styling for connection page
More detailed styling for connection actions
formatting scss for best performance
Header nav btn adjustments for small mobile devices.
adding ellipsis overflow to usernames that are longer than a specified
length.
adjusting max width of usernames
styling changes to connection 'tables'
Finding the best way to layout page
Cleaning up unneeded styles
more style refinements
Style adjustments for small mobile
@dereksmart dereksmart added [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it General labels Jun 13, 2015
@dereksmart dereksmart added this to the 3.6 milestone Jun 13, 2015
@dereksmart dereksmart added [Status] In Progress [Status] Needs Review To request a review from Crew. Label will be renamed soon. [Status] Needs Design Review Design has been added. Needs a review! and removed [Status] In Progress labels Jun 13, 2015
<script id="tmpl-connection-page" type="text/html">
<div class="content-container">
<div id="my-jetpack-content" class="content">
<h2><?php _e( 'Jetpack Connection Status' ); ?></h2>
Copy link
Member

Choose a reason for hiding this comment

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

Seems like there is a missing jetpack textdomain here.

jessefriedman and others added 23 commits June 17, 2015 14:28
When a user wants to disconnect their site they will now see a message
that gives them the opportunity to first seek support.
file/element refactor to now call the page "My Jetpack" instead of My Connection
Refactor to remove some DRYness, better naming conventions, better organization.

Created an additional function to handle the current user logic and separated it from the master user logic. It now is easier to read.
Restructuring HTML + styling connection details
adding html + styles to connection page
responsive styling for connection page
More detailed styling for connection actions
formatting scss for best performance
Header nav btn adjustments for small mobile devices.
adding ellipsis overflow to usernames that are longer than a specified
length.
adjusting max width of usernames
styling changes to connection 'tables'
Finding the best way to layout page
Cleaning up unneeded styles
more style refinements
Style adjustments for small mobile
New function to determine if master user has been deleted/or is no longer a user on the site.
We are now tracking
- My Jetpack views
- requests to change primary user
- successful primary user changes
- request to disconnect site
- confirmed disconnects
- users who request support instead of confirming disconnect
Apply "current" class on tab if active
Consistent column naming and remove unecessary column headers
- No more button
- No need for a custom table if no other admins
adjusted breakpoint to fit header better on small mobile devices.
@dereksmart dereksmart force-pushed the add/my-jetpack-organized-commits branch from 2ff097b to e1d5d95 Compare June 17, 2015 18:30
fixed color of footer clouds to match better on very tall screens
@dereksmart
Copy link
Member Author

closing in favor of #2268 - this was has been gaffed by rebase

@dereksmart dereksmart closed this Jun 17, 2015
@dereksmart dereksmart removed the [Status] Needs Review To request a review from Crew. Label will be renamed soon. label Jun 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General [Status] Needs Design Review Design has been added. Needs a review! [Status] Requires String Changes [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants