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

Plugin: Add update button to plugin list header #2681

Merged
merged 3 commits into from
Jan 27, 2016

Conversation

enejb
Copy link
Member

@enejb enejb commented Jan 22, 2016

Before:
screen shot 2016-01-21 at 17 35 29

After:
screen shot 2016-01-21 at 17 35 37

To test:
Visit http://calypso.localhost:3000/plugins
go into bulk edit mode select a plugin that needs updating click the update button.

Make sure that everything works as expected when you are on smaller screens. And the are able to update the plugin there as well.

@enejb enejb added 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 Jetpack Plugins labels Jan 22, 2016
@rickybanister
Copy link

It looks right—does it work alright when the options collapse to a dropdown?

},

afterResize() {
const actionBarVisible = findDOMNode( this ).offsetWidth > 719
Copy link
Contributor

Choose a reason for hiding this comment

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

We could extract 719 to a const

Copy link
Contributor

Choose a reason for hiding this comment

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

^ I like how this mustachioed guy thinks

@johnHackworth
Copy link
Contributor

I think this improves the current experience for those with languages that are too long for our current button size. It would be better if we could manage to calculate the width of the button set and decide if we show it or the dropdown based on that, but this is a good first step

@enejb
Copy link
Member Author

enejb commented Jan 26, 2016

@lezama and @johnHackworth What else do you I need to do here before it is ready to merge?

@johnHackworth
Copy link
Contributor

@enejb in my opinion it's ready to go... it would be nice to extract that 719 to a MIN_VIEWPORT_WIDTH constant (or similar), but apart from that 👍

@enejb enejb force-pushed the add/1882-update-button-to-plugin-list-header branch from c208ff8 to b41b3cb Compare January 27, 2016 19:27
const actionBarVisible = findDOMNode( this ).offsetWidth > MIN_VIEWPORT_WIDTH;
this.setState( { actionBarVisible } );
},

onBrowserLinkClick() {
analytics.ga.recordEvent( 'Plugins', 'Clicked Add New Plugins' );
},

canAddNewPlugins() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is perhaps more concisely expressed as:

return config.isEnabled( 'manage/plugins/browser' ) && !this.props.isWpCom;

@gravityrail
Copy link
Contributor

lgtm 👍

@enejb enejb force-pushed the add/1882-update-button-to-plugin-list-header branch from b41b3cb to 1e1a08a Compare January 27, 2016 20:05
@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 Jan 27, 2016
@enejb enejb force-pushed the add/1882-update-button-to-plugin-list-header branch from 1e1a08a to 7312e27 Compare January 27, 2016 20:21
enejb added a commit that referenced this pull request Jan 27, 2016
…ugin-list-header

Plugin: Add update button to plugin list header
@enejb enejb merged commit 6cc7b15 into master Jan 27, 2016
@enejb enejb deleted the add/1882-update-button-to-plugin-list-header branch January 27, 2016 20:31
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.

6 participants