element-web/src/components/structures
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
..
login Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
ContextualMenu.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
CreateRoom.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
FilePanel.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
GroupView.js Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/nvl/rich_quoting 2018-01-10 11:54:58 +00:00
InteractiveAuth.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
LoggedInView.js Merge pull request #1677 from aidalgol/PropTypes 2018-01-05 11:53:55 +00:00
MatrixChat.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
MessagePanel.js make wantsDateSeparator generic and throw into DateUtils 2018-01-10 12:06:24 +00:00
MyGroups.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
NotificationPanel.js Dramatically simplify use of mx_fadable 2017-10-25 15:15:49 +01:00
RoomStatusBar.js Wording tweak 2018-01-09 17:59:49 +00:00
RoomView.js Merge pull request #1680 from matrix-org/t3chguy/hide_roomstatusbar 2018-01-05 15:26:22 +00:00
ScrollPanel.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
TagPanel.js Replace TagPanel react-dnd with react-beautiful-dnd 2018-01-15 18:12:27 +00:00
TimelinePanel.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
UploadBar.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
UserSettings.js Merge pull request #1625 from matrix-org/t3chguy/analytics_info 2018-01-11 11:02:34 +00:00