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

Updated backend UI. Added new option to show cropping popup on new uploads. #49

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

RadGH
Copy link

@RadGH RadGH commented Dec 2, 2015

Hi, this is my first pull request and I haven't published anything on WordPress.org yet. So you may want to thoroughly review any changes here. Mostly cosmetic changes, and one new but rather simple feature.

Here is the new settings page, to match the WP 4.3.1 style a bit better:

image

Here is the new popup page. Tabs have changed to match the media uploader better:

image

Finally, the new feature offers a checkbox on the settings page. If enabled, we trigger the crop popup when you upload a new image through the media uploader. But it's off by default.

@RadGH
Copy link
Author

RadGH commented Dec 2, 2015

Oh yeah, another change to the "Crop Image" link that is injected into the media uploader.

image

  1. The link no longer has an underline, so it is consistent with Edit/Delete links.
  2. Fixed a bug where "Crop image" would go to another line instead of staying inline with the other details, when the image was aligned to the left.
  3. Prevented the link from being added repeatedly every 500ms. This caused some flickering that was difficult to notice, but affected keyboard control.

@tomaszsita
Copy link
Owner

Hi Radley,

Thanks for this!
I will review over the weekend.

Kind Regards
Tomasz Sita

On 2 December 2015 at 23:56, Radley Sustaire notifications@github.com
wrote:

Hi, this is my first pull request and I haven't published anything on
WordPress.org yet. So you may want to thoroughly review any changes here.
Mostly cosmetic changes, and one new but rather simple feature.

Here is the new settings page, to match the WP 4.3.1 style a bit better:

[image: image]
https://cloud.githubusercontent.com/assets/2008464/11547945/c4ffab94-990c-11e5-9d4a-0d3590136329.png

Here is the new popup page. Tabs have changed to match the media uploader
better:

[image: image]
https://cloud.githubusercontent.com/assets/2008464/11547959/d7934f9a-990c-11e5-860e-7ebf4e36f5cb.png

Finally, the new feature offers a checkbox on the settings page. If
enabled, we trigger the crop popup when you upload a new image through the

media uploader. But it's off by default.

You can view, comment on, or merge this pull request online at:

#49
Commit Summary

  • Eliminated flickering of "Crop Image" link in media popup, slight js
    optimization
  • Styled "Crop Image" link in media popup to match Edit Image link,
    and fix erraneous wrapping issue
  • Style updates for MIC crop lightbox, matching the media frame styles
  • Improved layout of table on settings page
  • Reduced spacing of table and added max width, particularly for large
    screen.
  • New classes to enable striped rows and identify columns
  • Made image sizes text bold
  • Added plugin version numbers to MIC css/js
  • Updated version number to unofficial 1.12r1. Note: r1 is not valid
    for wordpress.org, use 1.13 instead
  • Removed unused function from previous commit
  • Updated tested version of WordPress to 4.3.1
  • Removed spaces
  • New option to ask if we should crop featured images when after they
    are uploaded
  • Now works for any newly uploaded image, not just featured image
  • Updated version again. Intentionally not WordPress.org compliant.

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#49.

@RadGH
Copy link
Author

RadGH commented Dec 3, 2015

I've added one more feature which is totally separate from the others. but it looks like it got added to this pull request. You can take one or the other if you don't want both updates. Let me know if I need to do something to help with that.

Anyway, description of the latest commit:

I had a few plugins which were causing problems and I thought the plugin had stopped working. But it was other plugins overwriting the changes of MIC.

The latest update will display an error to inform these other plugins conflict. Pretty straightforward. It only detects two plugins currently, but you can add more plugins to the list with four lines of code (see plugin-conflicts.php:27-30).

image

Should all be translateable. Plugin names use the text domain of the respective plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants