mediawiki-extensions-Echo/modules/model
Moriel Schottlender 5aaf6d26d8 Relate read-state filter and mark read/unread action
When we are viewing a certain read state filter ('read' or 'unread')
the visibility of items should correspond to that state even when
the user marks a specific item as read/unread. That means that the
system should remove these items from view when the action is taken.

In this commit:
* The controller makes the judgment of whether to remove items when
  read/unread action is taken, based on whether a filter is set.
* We clean up the terminology of discard - no more 'remove' - to
  make sure we have consistency in the code.
* Related: The 'discard' event is now scoped within the hierarchy;
  meaning, lists emit 'discard' when an item is removed, grouplist
  emits 'discard' when a group is removed, and the manager emits
  'discard' when an entire notification model is removed. This
  means we can actually have proper hierarchy and organization with
  a single event, and not worry about clashing between the intentional
  'discard' action and the event 'remove' that is also used while
  resorting happens.
* The model manager emits a discard event when a model is removed
  so that the general list can listen to the manager and remove an
  entire batch of items if needed.
* The pagination model now updates the count for the current page
  rather than some vague notion of the last page. This is also
  updated when the controller removes items, so we can get an
  accurate count in the page for the number of notifications that
  are displayed.

Bug: T136891
Change-Id: I247c618042ef256fadf09922f7b83bd1ad361f64
2016-07-18 13:23:57 -07:00
..
mw.echo.dm.BundleNotificationItem.js Properly aggregate the itemUpdate event 2016-07-07 19:08:47 +00:00
mw.echo.dm.CrossWikiNotificationItem.js Relate read-state filter and mark read/unread action 2016-07-18 13:23:57 -07:00
mw.echo.dm.FiltersModel.js Add a cross-wiki sidebar to the Special:Notifications page 2016-06-21 14:49:42 -07:00
mw.echo.dm.js Refactoring Echo's front end for MVC 2016-05-18 12:28:45 -07:00
mw.echo.dm.ModelManager.js Relate read-state filter and mark read/unread action 2016-07-18 13:23:57 -07:00
mw.echo.dm.NotificationGroupsList.js Relate read-state filter and mark read/unread action 2016-07-18 13:23:57 -07:00
mw.echo.dm.NotificationItem.js Expandable bundle 2016-06-28 15:37:54 -04:00
mw.echo.dm.NotificationsList.js Relate read-state filter and mark read/unread action 2016-07-18 13:23:57 -07:00
mw.echo.dm.PaginationModel.js Relate read-state filter and mark read/unread action 2016-07-18 13:23:57 -07:00
mw.echo.dm.SeenTimeModel.js Add a SeenTimeModel to handle seenTime in sources 2016-07-15 11:25:38 -07:00
mw.echo.dm.SortedList.js Refactoring Echo's front end for MVC 2016-05-18 12:28:45 -07:00
mw.echo.dm.SourcePagesModel.js Store local source as 'local' rather than dbName 2016-07-07 12:20:39 -07:00
mw.echo.dm.UnreadNotificationCounter.js Refactoring Echo's front end for MVC 2016-05-18 12:28:45 -07:00