Select Box
================
1. This module will change the look and feel of default select lists( text, integer, float) irrespective of theme/user role in order to provide same styling globally.
2. This module provides settings form so that, Admin can change the effects, speed and looping of a lists.

Requirements
================
* Drupal Libraries module (http://drupal.org/project/libraries)
* jQuery selectBox (https://github.com/marcj/jquery-selectBox)

Drush
------
A Drush command is provides for easy installation of the Select Box plugin itself.

% drush select-box-plugin

The command will download the plugin and unpack it in "libraries/".
It is possible to add another path as an option to the command, but not
recommended unless you know what you are doing.

Installation
================
1) Create a libraries/ directory on your server
2) Create a directory within libraries/ named "select-box"
3) Download the latest jQuery selectBox plugin from https://github.com/marcj/jquery-selectBox
4) Enable the jQuery Select Box module

Configuration:
============================
Configure your settings for SelectBox at /admin/config/user-interface/select-box
with an admin configuration settings, you can change the effect of select list through out the site.

Project Url:
============================
https://www.drupal.org/sandbox/mnsh1416/2877193

Project Git Url:
============================
git clone --branch 8.x-1.x https://git.drupal.org/sandbox/mnsh1416/2877193.git select_box
cd select_box

Manual Reviews:
============================
https://www.drupal.org/node/2877881#comment-12083008
https://www.drupal.org/node/2877881#comment-12088632
https://www.drupal.org/node/2878241#comment-12088638
https://www.drupal.org/node/2878954#comment-12089756
https://www.drupal.org/node/2875849#comment-12088898
https://www.drupal.org/node/2872691#comment-12089782

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mnsh1416 created an issue. See original summary.

mnsh1416’s picture

Status: Active » Needs review
mnsh1416’s picture

Title: Select Box » [D8] Select Box
B N Pandey’s picture

Hi mnsh1416,

Good job, this module worked for me. Please add Configuration link(/admin/config/select_box) on Configuration page (/admin/config).

Thanks

mnsh1416’s picture

Issue summary: View changes
mnsh1416’s picture

Thanks @B.N Pandey

I have added configuration link under the "user interface" section.

mnsh1416’s picture

Issue summary: View changes
PA robot’s picture

Issue summary: View changes

Fixed the git clone URL in the issue summary for non-maintainer users.

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.

mnsh1416’s picture

mnsh1416’s picture

Issue summary: View changes
hiramanpatil’s picture

Pareview.sh showing some errors in README file. Those are not major issues but you can resolve them before module is going LIVE.

https://pareview.sh/node/1854

Thanks,

shylajaphp’s picture

Status: Needs review » Needs work

Hi,
Automated Review Test Result
https://pareview.sh/node/1856

mnsh1416’s picture

Hi @shylajaphp,

You have shared the "Review Test Result" of some other Repo.
Please check with https://git.drupal.org/sandbox/mnsh1416/2877193

mnsh1416’s picture

Thanks @hiramanpatil.

mnsh1416’s picture

Status: Needs work » Needs review
mnsh1416’s picture

Issue summary: View changes
Issue tags: +PAreview: review bonus
shylajaphp’s picture

Automated Review
---------------------------------
https://pareview.sh/node/1856

mnsh1416’s picture

@shylajaphp,

As I mentioned earlier for you, Please check with https://git.drupal.org/sandbox/mnsh1416/2877193

https://pareview.sh/node/1854
This is test result I got from "pareview.sh"

shylajaphp’s picture

FileSize
214.37 KB
136.04 KB
209.67 KB

Hi,
I have checked your 7.x and master branch and i got automatic test errors. Please check the attached screenshot.
https://git.drupal.org/project/selectbox.git 7.x-1.x

https://pareview.sh/node/1865

shylajaphp’s picture

Manual Review
------------------------------
1. File tag is missing in selectbox.module file.

Individual user account
[Yes: Follows]
No duplication
[Yes: No duplicate module]
Master Branch
[No: Does not follow] the guidelines for master branch.
Licensing
[Yes: Follows].
3rd party assets/code
[Yes: Follows]
README.txt/README.md
[No: Does not follow] Missing troubleshooting,FAQ & Maintainers section guidelines for in-project documentation and/or the README Template.
Code long/complex enough for review
[Yes: Follows] code is good to review
Secure code
[Yes: Meets the security requirements
amit.drupal’s picture

Review Points:

1 - Improve/add more content in hook_help() .
2 - Improve your module README.txt

README Template:

https://www.drupal.org/docs/develop/documenting-your-project/readme-temp...
Thanks

mnsh1416’s picture

Issue summary: View changes
mnsh1416’s picture

Thanks @amit.drupal and shylajaphp,

I have implemented your suggestions along with Drush integration to download required library via drush cmd:

drush select-box-plugin

soaratul’s picture

@mnsh1416,

While reviewing the module I found that no config is being set on installation.

What you can do is, you can set it in module_name.settigs.yml that will be placed in config/install/

mnsh1416’s picture

Hi @soaratul,

I have implemented your suggestion.

Matroskeen’s picture

Hello,

I've reviewed this module and here is a list of my suggestions:


Project type can be changed to "Full project" by yourself. This feature was added recently. Please see how to do that: https://www.drupal.org/node/1068952


package: Custom is a default package if you generate a module by Drupal console, as I remember.
It's better to set package used by similar contrib modules or "Other" as a fallback.


There are two similar files: select_box.links.menu.yml and selectbox.links.menu.yml
Probably, the second one should be removed.


if ($field_definition->getType() == 'list_string' || $field_definition->getType() == 'list_integer' || $field_definition->getType() == 'list_float') {

Three conditions could be replaced with single in_array().


'mobile' => $this->settings->get('sb.mobile') ? TRUE : FALSE,

This statement can be replaced with more readable and shorter:

(bool) 'mobile' => $this->settings->get('sb.mobile'),


$config = $this->configFactory->getEditable('select_box.settings');

There is a method config($name) in ConfigFormBaseTrait that returns editable config object.
Please see for details: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Co...


All these issues are no so critical, so let's keep "Needs review". Anyway, it will be great to fix them.

Thanks!

Mario Steinitz’s picture

Status: Needs review » Needs work

I'd like to add the results of a semi-automated test. All minor issues, but together with above comments, I'd suggest a little fine-tuning of the module before anyone else starts reviewing it (there are enough modules in the queue that need review) and set it back to "Needs work".

Review of the 8.x-1.x branch (commit 59d1b06):

This automated report was generated with PAReview.sh, your friendly project application review script.

apaderno’s picture

Status: Needs work » Reviewed & tested by the community

There are few things to be fixed (https://pareview.sh/pareview/https-git.drupal.org-sandbox-mnsh1416-28771...), but those should not be application-blockers. I didn't find any security issue.

apaderno’s picture

Assigned: Unassigned » apaderno
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution!
I am going to update your account so you can opt into security advisory coverage now.
These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the dedicated reviewers as well.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.