This module is a very simple UX improvement for the Media module that changes the media thumbnail size and provides JqueryUI slider to change the preview size of the media items. This is very handy for people who may have a large library of media, or, those who have very similar items that they need to evaluate at a closer look. The UI also sets a LocalStoage variable so that it remembers where your slider is at across nodes.

Here is a link to the sandbox: https://drupal.org/sandbox/brian14/2222597

Here is a link to the git repo: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/Brian14/2222597.git

Comments

Bcwald’s picture

Issue summary: View changes
PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxBrian142222597git

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

Bcwald’s picture

The Project Applications Scraper now passes with no issues.

saltednut’s picture

Status: Needs work » Needs review
saltednut’s picture

There is still a master branch, make sure to set the correct default branch: http://drupal.org/node/1659588 . Then remove the master branch, see also step 6 and 7 in http://drupal.org/node/1127732
Review of the 7.x-1.x branch:

README.txt or README.md is missing, see the guidelines for in-project documentation.

Bcwald’s picture

I have updated the readme.txt file -> README.MD and also made edits to the file for more clarity.

neetu morwani’s picture

Status: Needs review » Needs work

@bcwald
There are some errors and warning still in the module which should be resolved.
http://pareview.sh/pareview/httpgitdrupalorgsandboxbrian142222597git
Please resolve these.

saltednut’s picture

Looks like its just README.md having a few lines more than 80 char. Kind of an annoying requirement but I'd suggest adding in some breaks there to make the bot and minions of bots happy. :)

README.md
1 | WARNING | Line exceeds 80 characters; contains 144 characters
13 | WARNING | Line exceeds 80 characters; contains 219 characters

joachim’s picture

Git clone command is incorrect, as it includes your username.

joachim’s picture

description = "Provides UX imporvement by adding a jqueryUI slider for preview media library for easier image selection.</em>"

- improvement
- jQuery UI
- HTML in the module description?!

scripts[]      = js/slider.js

Surplus whitespace.

/**
 * Implements hook_init().
 */
function media_preview_slider_init() {
  drupal_add_library('system', 'ui.slider');
}
/**

Need a blank line between two functions.

Also, why are you loading this on every page? What's the point?

Also, consider using Libraries API for this instead.

(function ($) {
    Drupal.behaviors.media_preview_sizer = {
        attach: function (context, settings) {
            //add in slider support for image sizing in the library
            //find the exposed filters and add the slider inline with them

Indentation should be 2 spaces in JS too, AFAIK. Also, comments should have capitals and full stops and a space after the //. Same applies to comments in the CSS.

saltednut’s picture

Re: loading this on every page? What's the point?

Is it possible to lazy load this only when the Media Library view is loaded? It seems one might have to patch Media module to make that work. This might be why it is included on every page.

mandar.harkare’s picture

Nice module page.
As mentioned by joachim, please correct your git url to http://git.drupal.org/sandbox/Brian14/2222597.git.
And using Libraries API would be the better approach, I think.

Mandar

Bcwald’s picture

Issue summary: View changes
PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.

saltednut’s picture

Status: Closed (won't fix) » Needs review

Still looking to get this approved. What else needs to happen?

stefank’s picture

Status: Needs review » Needs work
Issue tags: +PAreview: single application approval

Automated Review

Best practice issues identified by pareview.sh / drupalcs / coder. http://pareview.sh/pareview/httpgitdrupalorgsandboxbrian142222597git reported number of issues that need to be address.

Manual Review

README.txt/README.md
(*) No: Follows the guidelines for in-project documentation and the README Template.

Code long/complex enough for review
No: Follows the guidelines for project length and complexity. Added PAReview: Single project promote tag.

hook_help() is missing in your module.

The starred items (*) are fairly big issues and warrant going back to Needs Work.
Great work so far.

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.

saltednut’s picture

Status: Closed (won't fix) » Needs work

Re-opening on behalf of the maintainer. We will look into getting these last things fixed.

saltednut’s picture

Bcwald’s picture

As mentioned above, the automated testing is now complete and passes

Furthermore, I had added in the Hook_help function.

can someone please re-review this module?

joachim’s picture

> Is it possible to lazy load this only when the Media Library view is loaded? It seems one might have to patch Media module to make that work. This might be why it is included on every page.

If you mean a view as produced by Views module, then use hook_views_pre_render().

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.