Skip to content

Commit 1f3321f

Browse files
committed
Merge branch 'develop' of github.com:vector-im/riot-web into t3chguy/devtools-118247
2 parents 5586a02 + 37b5de2 commit 1f3321f

49 files changed

Lines changed: 151 additions & 287 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.travis.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ dist: trusty
33

44
# we don't need sudo, so can run in a container, which makes startup much
55
# quicker.
6-
sudo: false
6+
#
7+
# unfortunately we do temporarily require sudo as a workaround for
8+
# https://github.com/travis-ci/travis-ci/issues/8836
9+
sudo: required
710

811
language: node_js
912
node_js:

‎README.md‎

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -319,31 +319,51 @@ For a developer guide, see the [translating dev doc](docs/translating-dev.md).
319319
Triaging issues
320320
===============
321321
322-
Issues will be triaged by the core team using the following primary set of tags:
322+
Issues will be triaged by the core team using the below set of tags.
323323
324-
priority:
324+
Tags are meant to be used in combination - e.g.:
325+
* P1 critical bug == really urgent stuff that should be next in the bugfixing todo list
326+
* "release blocker" == stuff which is blocking us from cutting the next release.
327+
* P1 feature type:voip == what VoIP features should we be working on next?
325328
326-
* P1: top priority; typically blocks releases
329+
priority: **compulsory**
330+
331+
* P1: top priority - i.e. pool of stuff which we should be working on next
327332
* P2: still need to fix, but lower than P1
328333
* P3: non-urgent
329-
* P4: intereseting idea - bluesky some day
334+
* P4: interesting idea - bluesky some day
330335
* P5: recorded for posterity/to avoid duplicates. No intention to resolves right now.
331336
332-
bug or feature:
337+
bug or feature: **compulsory**
333338
334339
* bug
335340
* feature
336341
337-
bug severity:
342+
bug severity: **compulsory, if bug**
338343
339-
* cosmetic - feature works functionally but UI/UX is broken
340344
* critical - whole app doesn't work
341345
* major - entire feature doesn't work
342346
* minor - partially broken feature (but still usable)
347+
* cosmetic - feature works functionally but UI/UX is broken
348+
349+
types
350+
* type:* - refers to a particular part of the app; used to filter bugs
351+
on a given topic - e.g. VOIP, signup, timeline, etc.
343352
344-
additional categories:
353+
additional categories (self-explanatory):
345354
346355
* release blocker
347356
* ui/ux (think of this as cosmetic)
348357
* network (specific to network conditions)
349-
* platform (platform specific)
358+
* platform specific
359+
* accessibility
360+
* maintenance
361+
* performance
362+
* i18n
363+
* blocked - whether this issue currently can't be progressed due to outside factors
364+
365+
community engagement
366+
* easy
367+
* hacktoberfest
368+
* bounty? - proposal to be included in a bounty programme
369+
* bounty - included in Status Open Bounty

‎package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@
7474
"pako": "^1.0.5",
7575
"prop-types": "^15.5.10",
7676
"react": "^15.6.0",
77-
"react-dnd": "^2.1.4",
78-
"react-dnd-html5-backend": "^2.1.2",
77+
"react-beautiful-dnd": "^4.0.1",
7978
"react-dom": "^15.6.0",
8079
"react-gemini-scrollbar": "matrix-org/react-gemini-scrollbar#5e97aef",
8180
"sanitize-html": "^1.11.1",

‎src/components/structures/RoomSubList.js‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ limitations under the License.
2020
var React = require('react');
2121
var ReactDOM = require('react-dom');
2222
var classNames = require('classnames');
23-
var DropTarget = require('react-dnd').DropTarget;
2423
var sdk = require('matrix-react-sdk');
24+
import { Droppable } from 'react-beautiful-dnd';
2525
import { _t } from 'matrix-react-sdk/lib/languageHandler';
2626
var dis = require('matrix-react-sdk/lib/dispatcher');
2727
var Unread = require('matrix-react-sdk/lib/Unread');
@@ -32,6 +32,7 @@ var AccessibleButton = require('matrix-react-sdk/lib/components/views/elements/A
3232
import Modal from 'matrix-react-sdk/lib/Modal';
3333
import { KeyCode } from 'matrix-react-sdk/lib/Keyboard';
3434

35+
3536
// turn this on for drop & drag console debugging galore
3637
var debug = false;
3738

@@ -326,9 +327,7 @@ var RoomSubList = React.createClass({
326327
});
327328
},
328329

329-
calcManualOrderTagData: function(room) {
330-
const index = this.state.sortedList.indexOf(room);
331-
330+
calcManualOrderTagData: function(index) {
332331
// we sort rooms by the lexicographic ordering of the 'order' metadata on their tags.
333332
// for convenience, we calculate this for now a floating point number between 0.0 and 1.0.
334333

@@ -375,12 +374,14 @@ var RoomSubList = React.createClass({
375374
makeRoomTiles: function() {
376375
var self = this;
377376
var DNDRoomTile = sdk.getComponent("rooms.DNDRoomTile");
378-
return this.state.sortedList.map(function(room) {
377+
return this.state.sortedList.map(function(room, index) {
379378
// XXX: is it evil to pass in self as a prop to RoomTile?
380379
return (
381380
<DNDRoomTile
381+
index={index} // For DND
382382
room={ room }
383383
roomSubList={ self }
384+
tagName={self.props.tagName}
384385
key={ room.roomId }
385386
collapsed={ self.props.collapsed || false}
386387
unread={ Unread.doesRoomHaveUnreadMessages(room) }
@@ -566,12 +567,18 @@ var RoomSubList = React.createClass({
566567
</TruncatedList>;
567568
}
568569

569-
return connectDropTarget(
570-
<div>
571-
{ this._getHeaderJsx() }
572-
{ subList }
573-
</div>
574-
);
570+
const subListContent = <div>
571+
{ this._getHeaderJsx() }
572+
{ subList }
573+
</div>;
574+
575+
return this.props.editable ? <Droppable droppableId={"room-sub-list-droppable_" + this.props.tagName}>
576+
{ (provided, snapshot) => (
577+
<div ref={provided.innerRef}>
578+
{ subListContent }
579+
</div>
580+
) }
581+
</Droppable> : subListContent;
575582
}
576583
else {
577584
var Loader = sdk.getComponent("elements.Spinner");
@@ -585,11 +592,4 @@ var RoomSubList = React.createClass({
585592
}
586593
});
587594

588-
// Export the wrapped version, inlining the 'collect' functions
589-
// to more closely resemble the ES7
590-
module.exports =
591-
DropTarget('RoomTile', roomListTarget, function(connect) {
592-
return {
593-
connectDropTarget: connect.dropTarget(),
594-
}
595-
})(RoomSubList);
595+
module.exports = RoomSubList;

‎src/components/views/context_menus/RoomTileContextMenu.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ module.exports = React.createClass({
275275
<div className={ alertMeClasses } onClick={this._onClickAlertMe} >
276276
<img className="mx_RoomTileContextMenu_notif_activeIcon" src="img/notif-active.svg" width="12" height="12" />
277277
<img className="mx_RoomTileContextMenu_notif_icon mx_filterFlipColor" src="img/icon-context-mute-off-copy.svg" width="16" height="12" />
278-
{ _t('All messages (loud)') }
278+
{ _t('All messages (noisy)') }
279279
</div>
280280
<div className={ allNotifsClasses } onClick={this._onClickAllNotifs} >
281281
<img className="mx_RoomTileContextMenu_notif_activeIcon" src="img/notif-active.svg" width="12" height="12" />

0 commit comments

Comments
 (0)