-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
@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:
|
@@ -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' |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No pasa nada ;)
577cecf
to
5dde3d0
Compare
Can we align that checkbox? |
@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: I'll create an issue to align it |
@johnHackworth, a few answers for you:
We should collapse them to a dropdown, just like the section-nav if there isn't enough room.
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. |
A couple notes from our zoom:
|
@johnHackworth let's do a scrub of SectionHeader tomorrow, we may be able to address the Currently the section-nav's search close |
00b792b
to
da46aae
Compare
@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 |
@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) |
Needs a rebase :) |
da46aae
to
199c53b
Compare
rebased! |
As per the previous discussion getPluginsContent => renderPluginContent. |
2b7d5b2
to
d729756
Compare
@enejb ooooooops ouch, I would have swear that renamed that one other day...sorry! Fixed now! :) |
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! |
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. |
@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! |
and about tracking, all that actions have already tracks & analytics events, so we already should have that info |
… conditions are met
d729756
to
371fc3d
Compare
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 |
…agement Plugins: Update plugins list bulk management headers
AFAICS, this has been unused since toolbar-bulk stuff was replaced by individual buttons in #1044.
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:

After:

