This module shows user messages inside user-friendly growl styled notifications. Devel output is excluded from the notifications and is displayed in the normal drupal message region.

About Pines Notify:
Pines Notify is a JavaScript notification plugin, developed by Hunter Perrin as part of the Pines framework. It is designed to provide an unparalleled level of flexibility, while still being very easy to implement and use.

http://pinesframework.org/pnotify/

This module uses the drupal 'Libraries' module and requires the pnotify library to be installed. I have included drush integration for this module, which will download the plugin for you.

Sandbox:
https://drupal.org/sandbox/zhuber/2169043

git:
git clone --branch 7.x-1.x zhuber@git.drupal.org:sandbox/zhuber/2169043.git

Drupal Version:
7.x

pareview results:
http://pareview.sh/pareview/httpgitdrupalorgsandboxzhuber2169043git

Project applications I have reviewed:
https://drupal.org/comment/8397043#comment-8397043
https://drupal.org/comment/8396967#comment-8396967
https://drupal.org/comment/8381691#comment-8381691

Comments

zhuber’s picture

Issue summary: View changes
zhuber’s picture

Issue summary: View changes
zhuber’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/httpgitdrupalorgsandboxzhuber2169043git

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.

zhuber’s picture

Issue summary: View changes
Status: Needs work » Needs review

I've fixed all of the warnings and git branch configurations from pareview:
http://pareview.sh/pareview/httpgitdrupalorgsandboxzhuber2169043git

michel_v’s picture

Hi

Thanks for your contribution, I've reviewed your module and found the following issues:

1. Switching the module on breaks the permissions page.

2. Configuration links isn't showing up on the modules page.

3. The inserted javascript should probably follow the function definition defined in https://drupal.org/node/172169#functions

Apart from that, it looks to be working just fine.

Thank you

Michel

zhuber’s picture

Thanks for reviewing @michel_v

I've fixed all 3 of the issues that you mentioned and made sure things are working again.
I also ran this through the pareview again and it is still passing 100%:
http://pareview.sh/pareview/httpgitdrupalorgsandboxzhuber2169043git

Can someone please review this again?

markaspot’s picture

Status: Needs review » Reviewed & tested by the community

I just installed this module and can confirm that the mentioned issues are now fixed.

The drush command to install the library works like a charm.
Some proposed enhancement: You could add some sort of library detector that will add some info at the status report page. The Chosen module adds something like this in it's settings form:

  $chosen_path = chosen_get_chosen_path();
  if ($chosen_path) {
    ...
  }
  else {
    $form['chosen']['chosen_library_missing'] = array(
      '#markup' => t('The library could not be detected. You need to download the !chosen and extract the entire contents of the archive into the %path directory on your server.', array('!chosen' => l(t('Chosen JavaScript file'), CHOSEN_WEBSITE_URL), '%path' => 'sites/all/libraries')),
    );
  }

Anyway, maybe this is more nice to have.
Thanks!

zhuber’s picture

I've added the install requirement as well, so it now warns the user on the status report page when the library is not downloaded yet.

zhuber’s picture

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

Issue summary: View changes
klausi’s picture

Status: Reviewed & tested by the community » Fixed

manual review:

  1. pines_notify_uninstall(): DELETE in db_query() is forbidden in D7, you must use db_delete() instead, see https://drupal.org/node/310081 . In this case you should rather use explicit variable_del() calls instead.
  2. pines_notify_init(): why do you use hook_init()? It does not make sense to setup the JS stuff for drush invocations for example? You should rather use hook_page_build() so that the code is only executed when an actual HTML page is returned. See https://api.drupal.org/api/drupal/modules!system!system.api.php/function...
  3. theme_pines_notify(): instead of repeating jQuery(document).ready() you should add the messages to Drupal.settings and then print them with some Drupal.behaviors callback. See also https://drupal.org/node/756722 . Seems like that should be done in pines_notify.js
  4. pines_notify.drush.inc: is that really necessary? You could just use drush make with an example make file for downloading the library.

Although you should definitely fix those issue they are not critical application blockers, so ...

Thanks for your contribution, zhuber!

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.

zhuber’s picture

Thanks klausi,

I've promoted the project and entered the items you mentioned as tickets:
https://drupal.org/project/issues/pines_notify

Status: Fixed » Closed (fixed)

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