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

Plugins: Update plugins list bulk management headers #1044

Merged
merged 10 commits into from
Dec 15, 2015

Conversation

johnHackworth
Copy link
Contributor

fixes #912

This PR changes the way we bulk manage plugins in the plugins list. Until now, the plugins list header showed a "manage" button, that once clicked, it would change the view to edition mode and add a second level bar with the available actions for the selected plugins.

That secondary actions bar dissapears and the 'manage' button is now integrated in a component that is always shown on top of the differnt lists of plugins. The actions are also embed in there.

Before:
image

image

After:
image
image

@johnHackworth johnHackworth added Jetpack [Status] In Progress [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR Jetpack Plugins labels Nov 30, 2015
@johnHackworth johnHackworth self-assigned this Nov 30, 2015
@johnHackworth
Copy link
Contributor Author

@rickybanister @MichaelArestad It would be great if you could take a look at this. There are several points that I have not a clear image about how to proceed:

  1. The amount of actions in the bar when you have several plugins selected is too large. When you are in <800px the buttons pile uglily.
  2. What should we do when the user is in "all my sites" and we have two different plugin lists? Right now I'm only showing the 'bulk edit' button in the Jetpack plugins list, because it was weird having two bulk edit buttons that did exactly the same (put both lists in edit mode and get refreshed when any of the plugins in any of the lists is selected). The idea in this case would be to have those two lists behave separatedly? like with own controls, own 'selected list', etc? because that would need a major change in most of the internal data structures.
    image
  3. In the previous design we had the 'bulk select' component in the top left, but now that place is occupied by the list name. Should we drop the name when we are in bulk edit mode and keep that bulk select component up there?

@@ -40,6 +40,8 @@ import PluginsDataStore from 'lib/plugins/wporg-data/store'
import PluginNotices from 'lib/plugins/notices'
import JetpackManageErrorPage from 'my-sites/jetpack-manage-error-page'
import PlanNudge from 'components/plans/plan-nudge'
import SectionHeader from 'components/section-header'
import SectionHeaderButton from 'components/section-header/button'
Copy link
Member

Choose a reason for hiding this comment

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

This one should be deprecated by now in favour of just using components/button.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, I missed that! thanks!

Copy link
Member

Choose a reason for hiding this comment

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

No pasa nada ;)

@johnHackworth johnHackworth force-pushed the update/plugins-list-bulk-management branch from 577cecf to 5dde3d0 Compare December 1, 2015 15:41
@johnHackworth
Copy link
Contributor Author

I've added button-groups, updated the code to stop using SectionHeaderButtons and added the 'update all' button here too:

image

image

@mtias
Copy link
Member

mtias commented Dec 1, 2015

Can we align that checkbox?

@johnHackworth
Copy link
Contributor Author

@mtias That's not a side effect of this PR, it has been like that for some time (I thought that intendendedly). This is prod:

image

I'll create an issue to align it

@rickybanister
Copy link

@johnHackworth, a few answers for you:

The amount of actions in the bar when you have several plugins selected is too large. When you are in <800px the buttons pile uglily.

We should collapse them to a dropdown, just like the section-nav if there isn't enough room.

What should we do when the user is in "all my sites" and we have two different plugin lists? Right now I'm only showing the 'bulk edit' button in the Jetpack plugins list, because it was weird having two bulk edit buttons that did exactly the same (put both lists in edit mode and get refreshed when any of the plugins in any of the lists is selected). The idea in this case would be to have those two lists behave separatedly? like with own controls, own 'selected list', etc? because that would need a major change in most of the internal data structures.

I think we should have a button in each. I think it's ok if they both trigger bulk edit across both lists in an interconnected way.

And finally, as you shared in a later comment, we should hide the list title when bulk editing and display the multiselect checkbox.

@rickybanister
Copy link

A couple notes from our zoom:

  • let's switch the order of things to be like so:

( activate | deactivate ) ( autoupdate | disable autoupdates ) ( remove )

  • DONE should be the search component's X
  • Let's show the buttons as soon as you enter bulk edit mode, but disable them until a selection has been made
  • Mobile-first SelectDropdown component that gets hidden when there's room for all the options to be seen. Let's start by using the full-size dropdown, but if it doesn't fit we will create an is-compact version.
  • Remove button and dropdown option should have the is-scary prop to make the text label red.

@rickybanister
Copy link

Here's an updated design of the options:

screen shot 2015-12-02 at 5 23 42 pm

@johnHackworth
Copy link
Contributor Author

First two checks done:
image

image

(it's just me or the default 24px padding of section-header feels weird with the right side buttons / X ?)

@rickybanister
Copy link

@johnHackworth let's do a scrub of SectionHeader tomorrow, we may be able to address the X in doing that.

Currently the section-nav's search close X is using a noticon and is centered within a 60px span, giving it a 22px right margin. So perhaps we can get both things moved to a gridicon, and have some standardized padding (probably the same 24/16 we're using everywhere else, standardizing will likely make it feel less weird.)

@johnHackworth
Copy link
Contributor Author

I've added the dropdown for the mobile-resolutions, and removed the border because it looked weird:

image

Not it looks weird when the dropdown is open:
image

maybe a compact version of SelectDropdown (which currently doesn't exist, I think) would work better

@johnHackworth johnHackworth 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 Dec 4, 2015
@johnHackworth johnHackworth force-pushed the update/plugins-list-bulk-management branch from 00b792b to da46aae Compare December 4, 2015 13:55
@rickybanister
Copy link

@johnHackworth yeah, I agree, unless we make it more custom like the section-nav dropdown it seems like we'll need to find another solution.

Also having Actions as the default selection feels a little weird. I'd want it to not be selected by default if we need to have a default option. Can it be disabled?

@johnHackworth
Copy link
Contributor Author

@rickybanister sure! today it's already a little late here, but let's do a hangout next monday and go over all this stuff... funcionality-wise this is ready, we only need to figure out which styles works well (specially for the dropdown)

@enejb
Copy link
Member

enejb commented Dec 7, 2015

Needs a rebase :)

@enejb enejb added [Status] Needs Author Reply and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 7, 2015
@johnHackworth johnHackworth force-pushed the update/plugins-list-bulk-management branch from da46aae to 199c53b Compare December 9, 2015 16:34
@johnHackworth
Copy link
Contributor Author

rebased!

@enejb
Copy link
Member

enejb commented Dec 14, 2015

As per the previous discussion getPluginsContent => renderPluginContent.

@johnHackworth johnHackworth force-pushed the update/plugins-list-bulk-management branch from 2b7d5b2 to d729756 Compare December 14, 2015 21:20
@johnHackworth
Copy link
Contributor Author

@enejb ooooooops ouch, I would have swear that renamed that one other day...sorry! Fixed now! :)

@rickybanister
Copy link

Regarding the breakpoint—I think it's probably best to only support jumping to 16px padding at the 480px breakpoint. There isn't a great benefit to the middle breakpoint changing the padding here—this is likely something we should see about standardizing across sections more.

The only other thing I'd really like to see come back is keeping the plugin icon visible even in bulk edit mode. I believe this might be a one-line change.

That said, I'd be happy if we just merged this and did those two small things in a very tiny PR right after. The world needs bulk edit!

@rickybanister
Copy link

Is there a plan for tracking bulk edit events? How many people go through with a bulk edit, which types of actions are most common, etc? I imagine they might already exist from before, but just checking.

@johnHackworth
Copy link
Contributor Author

@rickybanister I agree with refactoring breakpoints in a tiny PR after this one. About the icon, it's included in this other PR : #1554

If @enejb agrees, I'll merge this tomorrow morning!

@johnHackworth
Copy link
Contributor Author

and about tracking, all that actions have already tracks & analytics events, so we already should have that info

@johnHackworth johnHackworth force-pushed the update/plugins-list-bulk-management branch from d729756 to 371fc3d Compare December 15, 2015 08:46
@johnHackworth johnHackworth added [Status] Ready to Merge and removed [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 15, 2015
@johnHackworth
Copy link
Contributor Author

Since it seems that everybody is agree (except for the search box paddings, which will be addressed in a different PR) and we need this merged to continue with other developments, I've rebased this and Im going to merge it

johnHackworth added a commit that referenced this pull request Dec 15, 2015
…agement

Plugins: Update plugins list bulk management headers
@johnHackworth johnHackworth merged commit 4524bac into master Dec 15, 2015
@johnHackworth johnHackworth deleted the update/plugins-list-bulk-management branch December 15, 2015 09:16
ockham added a commit that referenced this pull request May 24, 2016
AFAICS, this has been unused since toolbar-bulk stuff was replaced by individual buttons in #1044.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugins: add a persistent 'manage bar' section-header to house 'bulk edit' and 'browse plugins' buttons
6 participants