Announcements are a way for you to notify users of new features, changes, and improvements you've made to your product.
Announcements are shown in the navbar under What's New.
When a user has unread announcements, a red dot will show up next to this link to get their attention that they haven't seen the latest announcements.
After viewing the announcements page, the user will have their account updated to record the last time they viewed the announcements and the red dot will be hidden until there new announcements they haven't seen are published.
Users who aren't logged in will always see the red dot next to "What's New" in the navbar.
To create an announcement, login as an admin and visit /admin/announcements.
Jumpstart comes with 4 default announcement types.
You can add more by adding to the TYPES
constant in app/models/announcements.rb
and adding colors to announcements.scss
.
We also need to explicitly add the notification class to app/helpers/announcements_helper.rb
to make sure PurgeCSS keeps our new class in production.