Files
element-web/src
lukebarnard 16c13fb079 Replace TagPanel react-dnd with react-beautiful-dnd
This new library handles the simple case of an ordered vertical
(or horizontal) list of items that can be reordered.

It provides animations, handles positioning of items mid-drag
and exposes a much simpler API to react-dnd (with a slight loss
of potential function, but we don't need this flexibility here
anyway).

Apart from this, TagOrderStore had to be changed in a highly
coupled way, but arguably for the better. Instead of being
updated incrementally every time an item is dragged over
another and having a separate "commit" action, the
asyncronous action `moveTag` is used to reposition the tag in
the list and both dispatch an optimistic update and carry out
the request as before. (The MatrixActions.accountData is still
used to indicate a successful reordering of tags).

The view is updated instantly, in an animated way, and this
is handled at the layer "above" React by the DND library.
2018-01-15 18:12:27 +00:00
..
2017-11-28 11:54:05 +00:00
2017-11-16 13:19:36 +00:00
2018-01-11 10:27:15 +00:00
2017-12-13 10:17:38 +00:00
2017-11-07 11:27:42 +00:00
2017-10-11 17:56:17 +01:00
2017-12-05 11:53:49 +00:00
2017-12-10 12:50:41 +00:00
2017-12-13 10:17:38 +00:00
2017-10-11 17:56:17 +01:00
2017-11-09 16:09:12 +00:00
2017-11-16 13:19:36 +00:00
2017-10-27 16:29:56 +01:00
2018-01-05 14:53:04 +00:00
2017-11-16 13:19:36 +00:00
2017-11-16 13:19:36 +00:00
2017-10-11 17:56:17 +01:00
2017-10-24 18:32:50 +02:00