ColoFilter CSS module integrates the ColoFilter CSS library found here https://lukyvj.github.io/colofilter.css/ as a effect you can add on an Image field inside Drupal. There was no integration I could find for this library, hence created a module for it.

Link to Project Page: https://www.drupal.org/sandbox/swarad/2829272

Git clone command: git clone --branch 8.x-1.x https://git.drupal.org/sandbox/Swarad/2829272.git

Manual reviews done for other projects,
https://www.drupal.org/node/2565273#comment-10321739
https://www.drupal.org/node/2130235#comment-8262543
https://www.drupal.org/node/1711932#comment-6307912
https://www.drupal.org/node/2151353#comment-8262523
https://www.drupal.org/node/2565273#comment-10321739

Comments

swarad07 created an issue. See original summary.

swarad07’s picture

Issue summary: View changes
PA robot’s picture

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.

swarad07’s picture

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

StatusFileSize
new120.47 KB

I tried the module with two themes, Bartik and Zen, and on both the css applied colors to divs outside the image field.

colofilters text

Is it an accepted practice to include css from 3rd party sites? I get that you wouldn't have to update the module everytime they made an update but that seems like too big a risk to take on a production site.

swarad07’s picture

Thanks for your feedback. Let me check this issue.

There is nothing against using third party CSS and JS libraries that I know off, there are many modules which do the same. But I will still check the above issue.

damondt’s picture

Just to clarify, it was the hosting the css elsewhere instead of including it in the module that I was worried about, not that it had been developed by someone else. It's putting a lot of trust in them never making a change that happened to negatively impact your site.

swarad07’s picture

Hi @damondt,

I have address the issue you found in #5, can you please take the latest pull and clear your cache.

Regarding the library, it is being hosted at Github at this point. Now that we can support externally hosted libraries I thought I could just refer it from there. However, I see what you are talking about. There is a chance, however small it maybe, that if the original author changes or removes the repo it might cause issues. Hence, I have now forked the repo and hosted the file in a controlled environment. Since, I would also be the author of this module, I can ensure nothing breaks in the module in case there are upstream updates in the original library.

Please let me know if anything else.

dishabhadra’s picture

StatusFileSize
new177.33 KB
new200.21 KB

Hi Swarad,

I installed this module. This Module is very useful.

I have taken a latest code from git.

  1. Still, Image effect are coming for entire DIV for few Effects like blend-red , blend-blue..

    Effect

  2. There is one more issue which I found is for some effect text color of title , body is changing.

    Background

swarad07’s picture

Hi dishabhadra,

I think you might not have my latest commit, the issues you have highlighted are fixed in the latest.

Can you please confirm you have the latest code and still facing the issues?

Thanks for your feedback.

dishabhadra’s picture

Hi Swarad,

Yes after taking new clone your last commit was missing.

So, now I taken git pull so all your changes are present.

Now it's working fine. Both the issue which I mention in #9 are fixed.

Thank you.

vinay15’s picture

StatusFileSize
new220.84 KB

Hi Swarad,

Module works perfectly fine. Just one thing, that the image label also gets the applied colour effect. Please refer the screenshot for more detail.

swarad07’s picture

Hi Vinay,

I have added styles for the label, also updated the README file with instructions.

klausi’s picture

Status: Needs review » Fixed

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

  • Coder Sniffer has found some issues with your code (please check the Drupal coding standards).
    
    FILE: /home/klausi/pareview_temp/colofilters.module
    ----------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    ----------------------------------------------------------------------
     117 | ERROR | [x] Expected 1 space after IF keyword; 0 found
     118 | ERROR | [x] Whitespace found at end of line
    ----------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------
    
    
    FILE: /home/klausi/pareview_temp/css/colofilters.local.css
    ----------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------
     15 | ERROR | Style definitions must end with a semicolon
    ----------------------------------------------------------------------
    
    Time: 92ms; Memory: 8Mb
    
  • Codespell has found some spelling errors in your code.
    ./README.md:13: dont  ==> don't
    
  • No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.

This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.

manual review:

  1. colofilters_field_formatter_third_party_settings_form(): do not overwrite the $form incoming parameter like this, because that is confusing. Create a new variable like $element for your form elements. See for example https://api.drupal.org/api/drupal/core!modules!field_ui!field_ui.api.php...

But otherwise looks good to me.

Thanks for your contribution, Swarad!

I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!

Thanks, 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.

Thanks to the dedicated reviewer(s) as well.

swarad07’s picture

Thanks a lot @klausi!

I have addressed the feedback from parreview as well as manual review.

Status: Fixed » Closed (fixed)

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