Skip to content

Add notification dashboard#1788

Merged
mrcasals merged 15 commits intofeature/follow-resourcesfrom
add-notification-dashboard
Sep 5, 2017
Merged

Add notification dashboard#1788
mrcasals merged 15 commits intofeature/follow-resourcesfrom
add-notification-dashboard

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

@mrcasals mrcasals commented Aug 31, 2017

🎩 What? Why?

This PR builds on top of #1786 and adds a notification dashboard for the user. Once the notification is set as read, the notification is destroyed, as discussed in #1692.

📌 Related Issues

📋 Subtasks

  • Add the dashboard
  • Destroy notifications on read
  • Add a "Mark all as read" button
  • Paginate notifications (around 50)
  • Improve JS when marking notifications as read
  • Add tests for setting notifications as read (single/all)

@ghost ghost assigned mrcasals Aug 31, 2017
@ghost ghost added the in-progress label Aug 31, 2017
@mrcasals mrcasals changed the title Add notification dashboard [WIP] Add notification dashboard Aug 31, 2017
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 31, 2017

Codecov Report

Merging #1788 into feature/follow-resources will increase coverage by <.01%.
The diff coverage is 94.89%.

@@                     Coverage Diff                      @@
##           feature/follow-resources    #1788      +/-   ##
============================================================
+ Coverage                     98.58%   98.58%   +<.01%     
============================================================
  Files                          1105     1107       +2     
  Lines                         24743    24823      +80     
============================================================
+ Hits                          24392    24471      +79     
- Misses                          351      352       +1

@mrcasals mrcasals changed the base branch from master to feature/follow-resources August 31, 2017 10:57
@mrcasals mrcasals force-pushed the add-notification-dashboard branch from 9fcd5ce to b584b86 Compare September 5, 2017 08:36
@mrcasals mrcasals changed the title [WIP] Add notification dashboard Add notification dashboard Sep 5, 2017

# Caches the path for the given resource.
def resource_path
@resource_url ||= resource_locator.path
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be @resource_path

@mrcasals mrcasals merged commit a17a974 into feature/follow-resources Sep 5, 2017
@ghost ghost removed the in-review label Sep 5, 2017
@mrcasals mrcasals deleted the add-notification-dashboard branch September 5, 2017 10:08
@mrcasals mrcasals mentioned this pull request Sep 5, 2017
2 tasks
beagleknight pushed a commit that referenced this pull request Sep 7, 2017
* Add basic NotificationDashboard

* Rename notification fields

* Find participatory space manifest for processes and assemblies

* Add read_at field to notifications

* Notification titles i18n

* Simplify notifications layout

Remove unused pagination and filters

* Mark notifications as read from UI

* Add notifications link to user menu

* Destroy notifications on read

* Fix rubocop complaints

* Paginate notifications

* Mark all notifications as read

* Improve JS code

* Add tests for notification dashboard

* Fix ivar name
oriolgual pushed a commit that referenced this pull request Sep 7, 2017
* Add Follow & Notification models (#1780)

* Add Follow entity

* Add Notification entity

* Add Followable concern

* Send events (#1781)

* Publish update/close meeting events

* Separate events from followable resources

* Fix factory

* Create notifications (#1785)

* Create a notification for each follower when event is triggered

* Make events dcide who will receive the notification

* Add basic NotificationEvent module

* Only create notifications if event_class supports them

* Add event classes

* Send email on event (#1786)

* Make meeting events support emails

* Send emails from events

* Add default values for event emails

* Fix specs

* Fix rubocop issues

* Customize email texts per event

* Add notification dashboard (#1788)

* Add basic NotificationDashboard

* Rename notification fields

* Find participatory space manifest for processes and assemblies

* Add read_at field to notifications

* Notification titles i18n

* Simplify notifications layout

Remove unused pagination and filters

* Mark notifications as read from UI

* Add notifications link to user menu

* Destroy notifications on read

* Fix rubocop complaints

* Paginate notifications

* Mark all notifications as read

* Improve JS code

* Add tests for notification dashboard

* Fix ivar name

* Add follow button to UI (#1795)

* Fix rubocop complains
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants