Skip to content

Commit e4c155a

Browse files
author
Luke Barnard
committed
Merge branch 'develop' into luke/merge-RoomTile-context-menus
Conflicts: src/components/views/context_menus/RoomTagContextMenu.js
2 parents 3dc4588 + 4e6541b commit e4c155a

13 files changed

Lines changed: 135 additions & 72 deletions

File tree

‎README.md‎

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -267,21 +267,28 @@ Triaging issues
267267
Issues will be triaged by the core team using the following primary set of tags:
268268
269269
priority:
270-
P1: top priority; typically blocks releases.
271-
P2: one below that
272-
P3: non-urgent
273-
P4/P5: bluesky some day, who knows.
270+
271+
* P1: top priority; typically blocks releases
272+
* P2: still need to fix, but lower than P1
273+
* P3: non-urgent
274+
* P4: intereseting idea - bluesky some day
275+
* P5: recorded for posterity/to avoid duplicates. No intention to resolves right now.
274276
275277
bug or feature:
276-
bug severity:
277-
* cosmetic - feature works functionally but UI/UX is broken.
278-
* critical - whole app doesn't work
279-
* major - entire feature doesn't work
280-
* minor - partially broken feature (but still usable)
281278
282-
* release blocker
279+
* bug
280+
* feature
281+
282+
bug severity:
283+
284+
* cosmetic - feature works functionally but UI/UX is broken
285+
* critical - whole app doesn't work
286+
* major - entire feature doesn't work
287+
* minor - partially broken feature (but still usable)
283288
284-
* ui/ux (think of this as cosmetic)
289+
additional categories:
285290
286-
* network (specific to network conditions)
287-
* platform (platform specific)
291+
* release blocker
292+
* ui/ux (think of this as cosmetic)
293+
* network (specific to network conditions)
294+
* platform (platform specific)

‎src/components/structures/RoomDirectory.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ module.exports = React.createClass({
162162
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
163163
Modal.createDialog(ErrorDialog, {
164164
title: "Failed to get public room list",
165-
description: err.message
165+
description: "The server may be unavailable or overloaded",
166166
});
167167
});
168168
},
@@ -208,9 +208,10 @@ module.exports = React.createClass({
208208
}, function(err) {
209209
modal.close();
210210
this.refreshRoomList();
211+
console.error("Failed to " + step + ": " + err);
211212
Modal.createDialog(ErrorDialog, {
212-
title: "Failed to "+step,
213-
description: err.toString()
213+
title: "Error",
214+
description: "Failed to " + step,
214215
});
215216
});
216217
}

‎src/components/structures/RoomSubList.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,10 @@ var RoomSubList = React.createClass({
505505
// Do any final stuff here
506506
}).fail(function(err) {
507507
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
508+
console.error("Failed to add tag " + self.props.tagName + " to room" + err);
508509
Modal.createDialog(ErrorDialog, {
509-
title: "Failed to add tag " + self.props.tagName + " to room",
510-
description: err.toString()
510+
title: "Error",
511+
description: "Failed to add tag " + self.props.tagName + " to room",
511512
});
512513
});
513514
break;

‎src/components/views/rooms/DNDRoomTile.js‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ var roomTileSource = {
8484
//component.state.set({ spinner: component.state.spinner-- });
8585
}).fail(function(err) {
8686
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
87+
console.error("Failed to remove tag " + item.originalList.props.tagName + " from room: " + err);
8788
Modal.createDialog(ErrorDialog, {
88-
title: "Failed to remove tag " + item.originalList.props.tagName + " from room",
89-
description: err.toString()
89+
title: "Error",
90+
description: "Failed to remove tag " + item.originalList.props.tagName + " from room",
9091
});
9192
});
9293
}
@@ -103,9 +104,10 @@ var roomTileSource = {
103104
//component.state.set({ spinner: component.state.spinner-- });
104105
}).fail(function(err) {
105106
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
107+
console.error("Failed to add tag " + item.targetList.props.tagName + " to room: " + err);
106108
Modal.createDialog(ErrorDialog, {
107-
title: "Failed to add tag " + item.targetList.props.tagName + " to room",
108-
description: err.toString()
109+
title: "Error",
110+
description: "Failed to add tag " + item.targetList.props.tagName + " to room",
109111
});
110112
});
111113
}

‎src/components/views/settings/Notifications.js‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,10 @@ module.exports = React.createClass({
238238
self._refreshFromServer();
239239
}, function(error) {
240240
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
241+
console.error("Failed to change settings: " + error);
241242
Modal.createDialog(ErrorDialog, {
242-
title: "Can't change settings",
243-
description: error.toString(),
243+
title: "Error",
244+
description: "Failed to change settings",
244245
onFinished: self._refreshFromServer
245246
});
246247
});
@@ -307,9 +308,10 @@ module.exports = React.createClass({
307308
self._refreshFromServer();
308309
}, function(error) {
309310
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
311+
console.error("Can't update user notification settings: " + error);
310312
Modal.createDialog(ErrorDialog, {
311-
title: "Can't update user notification settings",
312-
description: error.toString(),
313+
title: "Error",
314+
description: "Can't update user notification settings",
313315
onFinished: self._refreshFromServer
314316
});
315317
});
@@ -348,9 +350,10 @@ module.exports = React.createClass({
348350

349351
var onError = function(error) {
350352
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
353+
console.error("Failed to update keywords: " + error);
351354
Modal.createDialog(ErrorDialog, {
352-
title: "Can't update keywords",
353-
description: error.toString(),
355+
title: "Error",
356+
description: "Failed to update keywords",
354357
onFinished: self._refreshFromServer
355358
});
356359
}

‎src/skins/vector/css/_common.scss‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,16 @@ textarea {
187187
}
188188

189189
.mx_Dialog_cancelButton {
190-
float: right;
191-
margin-top: 5px;
192-
margin-right: 5px;
190+
position: absolute;
191+
right: 11px;
192+
top: 13px;
193193
cursor: pointer;
194194
}
195195

196+
.mx_Dialog_cancelButton object {
197+
pointer-events: none;
198+
}
199+
196200
.mx_Dialog_content {
197201
margin: 24px 58px 68px 0;
198202
font-size: 14px;

‎src/skins/vector/css/_components.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
@import "./matrix-react-sdk/structures/login/_Login.scss";
1414
@import "./matrix-react-sdk/views/avatars/_BaseAvatar.scss";
1515
@import "./matrix-react-sdk/views/dialogs/_BugReportDialog.scss";
16+
@import "./matrix-react-sdk/views/dialogs/_ChatCreateOrReuseChatDialog.scss";
1617
@import "./matrix-react-sdk/views/dialogs/_ChatInviteDialog.scss";
1718
@import "./matrix-react-sdk/views/dialogs/_ConfirmUserActionDialog.scss";
1819
@import "./matrix-react-sdk/views/dialogs/_EncryptedEventDialog.scss";

‎src/skins/vector/css/matrix-react-sdk/structures/_MatrixChat.scss‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,13 @@ limitations under the License.
9090
*/
9191
overflow-x: auto;
9292

93-
/* XXX: Hack: apparently if you try to nest a flex-box
94-
* within a non-flex-box within a flex-box, the height
95-
* of the innermost element gets miscalculated if the
96-
* parents are both auto. Height has to be auto here
97-
* for RoomView to correctly fit when the Toolbar is shown.
98-
* Ideally we'd launch straight into the RoomView at this
99-
* point, but instead we fudge it and make the middlePanel
100-
* flex itself.
101-
*/
10293
display: flex;
94+
95+
/* To fix https://github.com/vector-im/riot-web/issues/3298 where Safari
96+
needed height 100% all the way down to the HomePage. Height does not
97+
have to be auto, empirically.
98+
*/
99+
height: 100%;
103100
}
104101

105102
.mx_MatrixChat .mx_RightPanel {
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
Copyright 2016 OpenMarket Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_ChatCreateOrReuseDialog .mx_ChatCreateOrReuseDialog_tiles {
18+
margin-top: 24px;
19+
}
20+
21+
.mx_ChatCreateOrReuseDialog .mx_Dialog_content {
22+
margin-bottom: 24px;
23+
}
24+
25+
.mx_ChatCreateOrReuseDialog .mx_RoomTile_badge {
26+
display: none;
27+
}

‎src/skins/vector/css/matrix-react-sdk/views/dialogs/_ConfirmUserActionDialog.scss‎

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,39 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
.mx_ConfirmUserActionDialog .mx_Dialog_content {
18+
min-height: 48px;
19+
margin-bottom: 24px;
20+
}
21+
1722
.mx_ConfirmUserActionDialog_avatar {
1823
float: left;
1924
margin-right: 20px;
25+
margin-top: -2px;
2026
}
2127

2228
.mx_ConfirmUserActionDialog_name {
23-
font-size: 150%;
29+
font-size: 18px;
2430
}
2531

2632
.mx_ConfirmUserActionDialog_userId {
27-
font-style: italic;
33+
font-size: 13px;
2834
}
2935

3036
.mx_ConfirmUserActionDialog_reasonField {
31-
margin-bottom: 40px;
37+
font-family: 'Open Sans', Arial, Helvetica, Sans-Serif;
38+
font-size: 14px;
39+
color: $primary-fg-color;
40+
41+
border-radius: 3px;
42+
border: solid 1px $input-border-color;
43+
line-height: 36px;
44+
padding-left: 16px;
45+
padding-right: 16px;
46+
padding-top: 1px;
47+
padding-bottom: 1px;
48+
49+
margin-bottom: 24px;
50+
3251
width: 90%;
33-
font-size: 120%;
34-
height: 35px;
3552
}

0 commit comments

Comments
 (0)