mediawiki-extensions-Echo/modules
Moriel Schottlender f4a955efe9 Fix fade-in/out animation in sorting
The fade in/out animation is asynchronous. This means that if we are
sorting multiple items one after the other, by the time the item faded
out, it will be reinserted back into the wrong position, breaking the
sorting.

This also broke the promise of OO.SortedEmitterList whereby all its items
are always in order.

The way to fix this was to force a better synchronization with the item
order while we hide and show the item in its new place. To do that,
a new widget is created as a fake clone of the old one, in the original
position of the old one. The original item is then reinserted (while hidden)
to the proper location -- preserving order. The fake clone is then faded
out, and the real item is then faded in.

For this to work properly, the cloned item had to preserve some of the
original item's information, like timestamp, foreigness and id. However,
since both the real item and the fake new clone have the same details,
the clone fakes its ID by adding a fraction to it - promising that the
fallback in case of equal timestamps (which happens on the real and
cloned items) will still resolve with some decision about the placement
of the items rather than (falsely but understandably) decide they are
both the same.

Since this whole animation is somewhat of a hack, the list now has a
configuration parameter to turn the animation on.

The animation is on in the popups, but off in the special page.

Bug: T141419
Change-Id: Ic7c35e5ddefc51bf7fde497eab36414b4dddcd9e
2016-08-01 13:49:10 -07:00
..
api BREAKING CHANGE: More ISO 8601 for seen time 2016-07-27 02:42:08 +00:00
controller Fix fade-in/out animation in sorting 2016-08-01 13:49:10 -07:00
icons Echo notifications for mention failures 2016-07-27 13:00:25 +02:00
logger Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
model Fix fade-in/out animation in sorting 2016-08-01 13:49:10 -07:00
nojs Adjust mobile view for the new settings cog menu 2016-07-25 19:30:44 +00:00
special Adjust mobile view for the new settings cog menu 2016-07-25 19:30:44 +00:00
styles Merge "Adjust mobile view for the new settings cog menu" 2016-07-25 20:12:38 +00:00
ui Fix fade-in/out animation in sorting 2016-08-01 13:49:10 -07:00
echo.mixins.less Truncate usernames, titles and excerpts in notifications 2016-01-29 07:04:23 -05:00
echo.variables.less Make Special:Notifications responsive 2016-07-19 15:11:47 -07:00
echo.variables.monobook.less Separate skin specific styles and improve Monobook appearance 2015-11-10 17:57:44 -08:00
echo.variables.vector.less Separate skin specific styles and improve Monobook appearance 2015-11-10 17:57:44 -08:00
ext.echo.init.js Merge "Check for local unread talk notifications in alert popup too" 2016-07-22 01:54:32 +00:00
ext.echo.moment-hack.js Use localized weekdays on Special:Notifications 2016-06-13 13:09:51 +01:00
hooks.txt Add overlay hook for user scripts. 2013-06-13 21:27:26 -04:00
mw.echo.js Refactoring Echo's front end for MVC 2016-05-18 12:28:45 -07:00