The Announcement modal module provides the site administrator to configure the site-wide announcements.

Uses

  • This module is useful when creating the site-wide announcements for their site users during the important situation i.e during crisis, on occasions etc.
  • This module has some specific configurations for setting the announcements display.
  • Also, this module has a cookie setting like the announcements will be loaded once in a day later users can see the announcements using a sticky widget on the page.

Project link

https://www.drupal.org/project/announcement_modal

Git Instructions

git clone --branch 8.x-1.x https://git.drupalcode.org/project/announcement_modal.git

Comments

akshay_d created an issue. See original summary.

avpaderno’s picture

Thank you for applying! I added the Git instructions for non-maintainer users. Reviewers will check the project and post comments to list what should be changed.

Remember to change status, since this issue uses Needs review for telling the reviewers the project is ready to be reviewed.

akshay_d’s picture

Issue summary: View changes
akshay_d’s picture

Status: Active » Needs review
harishh’s picture

Hi @akshay_d,

Please check the below review comments.

1. Better to add condition while submitting ""From Date" and "To Date". "From Date" should be a start date. Now i can able to submit like below.
From Date :- 30/07/2020
To Date:- 07/07/2020

2. Typo mistake in the "Uses" description.
3. Popup having some style issues with alignment for the image, title and description.

harishh’s picture

Status: Needs review » Needs work
akshay_d’s picture

Status: Needs work » Needs review

Hi @harishh

Thank you for your response to reviewing the module.

I have fixed the date validation from review comments i.e point 1.
Also, I couldn't able to reproduce point 2 and point 3 if you can provide more details (or screenshots) that would be great.
note: the background image can be changed by the user at any time user should add the image that should align the title and description at the bottom.

released the new version for the date validation fix.

Thanks

harishh’s picture

Hi @akshay_d

Please check the below comments and attached reference screenshots.

1. Not sure it is "use" or "users". Please refer attached screenshot. You can use like the following. [ "Also, this module has a cookie setting like the announcements will be loaded once in a day later users can see the announcements using a sticky widget on the page." ]
2. Better to mention or add some logic if selected both background color and background image. Now disabling the background color , then only we can see the background image. [Note: User can understand which one should be showed]
3. Can't see the full description on the popup. Better to add some restriction on the description field or truncate the content with on demand read more. seems like title and description position is not correct.
4. Can't see the full image in the popup. Better to add some help text with resolution details or please add the image preview with cropping widget over there.
5. can't see the title and description while showing the background image. Also better to add some field for selecting the text color while selecting the light and dark images. So the text is clearly visible on the background image.
5. Better to change the "Show banner" to some other label. It is something related enable/disable the Announcement popup.

akshay_d’s picture

Issue summary: View changes
akshay_d’s picture

Status: Needs work » Needs review
StatusFileSize
new748.71 KB

Hi @harishh

Thank you for making time in detail review

Changed most of the points which you mentioned in the review comments. also, your notes are really helped me in fixing the bugs.

regarding point 3 I did some changes for placing the announcements from bottom to the center of the modal. can you please let me know still its position is varying. also, if you need any other changes in the fix.

released the new version for the above fix's

Once again thank you for your help :-)

harishh’s picture

Status: Needs review » Needs work
StatusFileSize
new1.13 MB
new196 KB
new208.14 KB

Hi @akshay_d,

Better to fix some style alignments. Please refer attached images.

harishh’s picture

StatusFileSize
new1.15 MB

Hi @akshay_d,

Please check the attached image for your reference.

akshay_d’s picture

Status: Needs work » Needs review
StatusFileSize
new559.63 KB
new107.19 KB
new147.06 KB
new556.58 KB

Hi @harishh

Still not able to replicate the issue in my system. I have added the maximum text in the description and tested it's not braking for me.
Using chrome latest version (83), or am I checking in the wrong place.
see attached the screenshots for all three versions mobile, Tablet, Desktop.

Thanks for your valuable time on this.

harishh’s picture

Hi @akshay_d,

I am using MAC with the chrome browser. It is look like different on here. Also please try to upload the background image and check the style alignment over there.
One more defect is here. By default uploading the image through the "managed_file" is temporary. Temporary files might be deleted after some time. So please add code for set the file permanent for uploading the image.

akshay_d’s picture

StatusFileSize
new1.25 MB

Hi @harishh

Checked for the background image as well coming fine for me.
also using Mac (1280*800) with chrome :-(

avpaderno’s picture

That is something to report in the project issue queue. It could be a bug in the project, but it doesn't seem reproducible.

Anyway, the purpose of these reviews is not finding out every bug in the code and fix them, but verifying what the users who apply understand in writing secure code that follows the Drupal coding standards and correctly uses the Drupal APIs.

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Needs review » Fixed
Issue tags: -PAreview: project created less than ten days ago

Thank you for your contribution! I am going to update your account.

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.

akshay_d’s picture

@harishh and @kiamlaluno
Thank you for helping me here :-)

Status: Fixed » Closed (fixed)

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