docbrown/app/views/notifications
rhymes 80e6cf4801 Notifications: increase efficiency and fix pagination offset issue (#3986)
* Increase efficiency and fix pagination offset issue

Right now we filter recently aggregated notifications at runtime, which worked before when there was no pagination, but now filtering is not a good idea combined with offset pagination because it throws off the calculations.

The filtering should be done in the SQL query before paginating, which is what we've switched to. I added a bunch of scopes to make the code clearer as well.

To avoid nesting tags I've also updated the HTML and the JS logic to insert it in the right place.

* Add explanation for hiding the load more button for new users
2019-09-10 09:43:45 -04:00
..
shared Improve mod roundrobin notification and internal tooling (#3855) 2019-08-27 21:54:09 -04:00
_aggregated_reactions.html.erb Escape HTML in the notifications view (#3243) 2019-07-30 14:24:23 -04:00
_article.html.erb Escape HTML in the notifications view (#3243) 2019-07-30 14:24:23 -04:00
_badgeachievement.html.erb Adjust internal page logic and add credits copy to notifications (#3843) 2019-08-26 13:41:13 -04:00
_broadcast.html.erb Allow for the sending of arbitrary broadcasts (#3569) 2019-07-29 17:10:49 -04:00
_comment.html.erb Paginate notifications (#3948) 2019-09-07 11:54:30 -04:00
_follow.html.erb Fix linting issues in app/views/notifications (#1894) [ci skip] 2019-02-25 16:58:47 -05:00
_mention.html.erb Fix linting issues in app/views/notifications (#1894) [ci skip] 2019-02-25 16:58:47 -05:00
_milestone.html.erb Escape HTML in the notifications view (#3243) 2019-07-30 14:24:23 -04:00
_notifications_list.html.erb Notifications: increase efficiency and fix pagination offset issue (#3986) 2019-09-10 09:43:45 -04:00
_reaction.html.erb Add alternative texts to images (#2771) [ci skip] 2019-05-09 11:16:03 -04:00
_tagadjustment.html.erb Escape HTML in the notifications view (#3243) 2019-07-30 14:24:23 -04:00
index.html.erb Notifications: increase efficiency and fix pagination offset issue (#3986) 2019-09-10 09:43:45 -04:00