tomatoes-app / tomatoes

Pomodoro Technique® online time tracker
http://www.tomato.es
MIT License
349 stars 92 forks source link

Dismiss annoucements #209

Open potomak opened 7 years ago

potomak commented 7 years ago

Announcements should be visible only as soon as a user dismiss them.

potomak commented 7 years ago

Instead of storing a new value in the user model a simple flag in the session could be sufficient.

An alternative approach would be to create a new Announcement model that could be used to store announcements and associations between them and users to store dismissals for logged in users. This way the application wouldn't even need to be restarted to show a new announcement.