Skip to content

Commit 810bcf8

Browse files
Merge tag 'v2.9.0' into AMP.chat
[Full Changelog](matrix-org/matrix-react-sdk@v2.9.0-rc.1...v2.9.0) * Remove duplicate compact settings, handle device level updates [\matrix-org#4889](matrix-org#4889) Change-Id: I4053b569a1b0acf7647601367ad07ba00680d091
2 parents 5be650f + 21b7b88 commit 810bcf8

File tree

195 files changed

+7767
-1964
lines changed

Some content is hidden

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

195 files changed

+7767
-1964
lines changed

CHANGELOG.md

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,158 @@
1+
Changes in [2.9.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v2.9.0) (2020-07-03)
2+
===================================================================================================
3+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v2.9.0-rc.1...v2.9.0)
4+
5+
* Remove duplicate compact settings, handle device level updates
6+
[\#4889](https://github.com/matrix-org/matrix-react-sdk/pull/4889)
7+
8+
Changes in [2.9.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v2.9.0-rc.1) (2020-07-01)
9+
=============================================================================================================
10+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v2.8.1...v2.9.0-rc.1)
11+
12+
* Upgrade to JS SDK 7.1.0-rc.1
13+
* Update from Weblate
14+
[\#4869](https://github.com/matrix-org/matrix-react-sdk/pull/4869)
15+
* Fix a number of proliferation issues in the new room list
16+
[\#4828](https://github.com/matrix-org/matrix-react-sdk/pull/4828)
17+
* Fix jumping to read marker for events without tiles
18+
[\#4860](https://github.com/matrix-org/matrix-react-sdk/pull/4860)
19+
* De-duplicate rooms from the room autocomplete provider
20+
[\#4859](https://github.com/matrix-org/matrix-react-sdk/pull/4859)
21+
* Add file upload button to recovery key input
22+
[\#4847](https://github.com/matrix-org/matrix-react-sdk/pull/4847)
23+
* Implement new design on security setup & login
24+
[\#4831](https://github.com/matrix-org/matrix-react-sdk/pull/4831)
25+
* Fix /join slash command via servers including room id as a via
26+
[\#4856](https://github.com/matrix-org/matrix-react-sdk/pull/4856)
27+
* Add Generic Expiring Toast and timing hooks
28+
[\#4855](https://github.com/matrix-org/matrix-react-sdk/pull/4855)
29+
* Fix Room Custom Sounds regression and make ProgressBar relevant again
30+
[\#4846](https://github.com/matrix-org/matrix-react-sdk/pull/4846)
31+
* Including start_sso and start_cas in redirect loop prevention
32+
[\#4854](https://github.com/matrix-org/matrix-react-sdk/pull/4854)
33+
* Clean up TODO comments for new room list
34+
[\#4850](https://github.com/matrix-org/matrix-react-sdk/pull/4850)
35+
* Show timestamp of redaction on hover
36+
[\#4622](https://github.com/matrix-org/matrix-react-sdk/pull/4622)
37+
* Remove the DM button from new room tiles
38+
[\#4849](https://github.com/matrix-org/matrix-react-sdk/pull/4849)
39+
* Hide room list show less button if it would do nothing
40+
[\#4848](https://github.com/matrix-org/matrix-react-sdk/pull/4848)
41+
* Improve message preview copy in new room list
42+
[\#4823](https://github.com/matrix-org/matrix-react-sdk/pull/4823)
43+
* Allow the tag panel to be disabled in the new room list
44+
[\#4844](https://github.com/matrix-org/matrix-react-sdk/pull/4844)
45+
* Make the whole user row clickable in the new room list
46+
[\#4843](https://github.com/matrix-org/matrix-react-sdk/pull/4843)
47+
* Add a new spinner design behind a labs flag
48+
[\#4842](https://github.com/matrix-org/matrix-react-sdk/pull/4842)
49+
* ts-ignore because something is made of fail
50+
[\#4845](https://github.com/matrix-org/matrix-react-sdk/pull/4845)
51+
* Fix Welcome.html CAS and SSO URLs not working
52+
[\#4838](https://github.com/matrix-org/matrix-react-sdk/pull/4838)
53+
* More small tweaks in preparation for Notifications rework
54+
[\#4835](https://github.com/matrix-org/matrix-react-sdk/pull/4835)
55+
* Iterate on the new room list resize handle
56+
[\#4840](https://github.com/matrix-org/matrix-react-sdk/pull/4840)
57+
* Update sublists for new hover states
58+
[\#4837](https://github.com/matrix-org/matrix-react-sdk/pull/4837)
59+
* Tweak parts of the new room list design
60+
[\#4839](https://github.com/matrix-org/matrix-react-sdk/pull/4839)
61+
* Implement new resize handle for dogfooding
62+
[\#4836](https://github.com/matrix-org/matrix-react-sdk/pull/4836)
63+
* Hide app badge count for hidden upgraded rooms (non-highlight)
64+
[\#4834](https://github.com/matrix-org/matrix-react-sdk/pull/4834)
65+
* Move compact modern layout checkbox to 'advanced'
66+
[\#4822](https://github.com/matrix-org/matrix-react-sdk/pull/4822)
67+
* Allow the user to resize the new sublists to 1 tile
68+
[\#4825](https://github.com/matrix-org/matrix-react-sdk/pull/4825)
69+
* Make LoggedInView a real component because it uses shouldComponentUpdate
70+
[\#4832](https://github.com/matrix-org/matrix-react-sdk/pull/4832)
71+
* Small tweaks in preparation for Notifications rework
72+
[\#4829](https://github.com/matrix-org/matrix-react-sdk/pull/4829)
73+
* Remove extraneous debug from the new left panel
74+
[\#4826](https://github.com/matrix-org/matrix-react-sdk/pull/4826)
75+
* Fix icons in the new user menu not showing up
76+
[\#4824](https://github.com/matrix-org/matrix-react-sdk/pull/4824)
77+
* Fix sticky room disappearing/jumping in search results
78+
[\#4817](https://github.com/matrix-org/matrix-react-sdk/pull/4817)
79+
* Show cross-signing / secret storage reset button in more cases
80+
[\#4821](https://github.com/matrix-org/matrix-react-sdk/pull/4821)
81+
* Use theme-capable icons in the user menu
82+
[\#4819](https://github.com/matrix-org/matrix-react-sdk/pull/4819)
83+
* Font support in custom themes
84+
[\#4814](https://github.com/matrix-org/matrix-react-sdk/pull/4814)
85+
* Decrease margin between new sublists
86+
[\#4816](https://github.com/matrix-org/matrix-react-sdk/pull/4816)
87+
* Update profile information in User Menu and truncate where needed
88+
[\#4818](https://github.com/matrix-org/matrix-react-sdk/pull/4818)
89+
* Fix MessageActionBar in irc layout
90+
[\#4802](https://github.com/matrix-org/matrix-react-sdk/pull/4802)
91+
* Mark messages with a black shield if the megolm session isn't trusted
92+
[\#4797](https://github.com/matrix-org/matrix-react-sdk/pull/4797)
93+
* Custom font selection
94+
[\#4761](https://github.com/matrix-org/matrix-react-sdk/pull/4761)
95+
* Use the correct timeline reference for message previews
96+
[\#4812](https://github.com/matrix-org/matrix-react-sdk/pull/4812)
97+
* Fix read receipt handling in the new room list
98+
[\#4811](https://github.com/matrix-org/matrix-react-sdk/pull/4811)
99+
* Improve unread/badge states in new room list (mk II)
100+
[\#4805](https://github.com/matrix-org/matrix-react-sdk/pull/4805)
101+
* Only fire setting changes for changed settings
102+
[\#4803](https://github.com/matrix-org/matrix-react-sdk/pull/4803)
103+
* Trigger room-specific watchers whenever a higher level change happens
104+
[\#4804](https://github.com/matrix-org/matrix-react-sdk/pull/4804)
105+
* Have the theme switcher set the device-level theme to match settings
106+
[\#4810](https://github.com/matrix-org/matrix-react-sdk/pull/4810)
107+
* Fix layout of minimized view for new room list
108+
[\#4808](https://github.com/matrix-org/matrix-react-sdk/pull/4808)
109+
* Fix sticky headers over/under extending themselves in the new room list
110+
[\#4809](https://github.com/matrix-org/matrix-react-sdk/pull/4809)
111+
* Update read receipt remainder for internal font size change
112+
[\#4806](https://github.com/matrix-org/matrix-react-sdk/pull/4806)
113+
* Fix some appearance tab crash and implement style nits
114+
[\#4801](https://github.com/matrix-org/matrix-react-sdk/pull/4801)
115+
* Add message preview for font slider
116+
[\#4770](https://github.com/matrix-org/matrix-react-sdk/pull/4770)
117+
* Add layout options to the appearance tab
118+
[\#4773](https://github.com/matrix-org/matrix-react-sdk/pull/4773)
119+
* Update from Weblate
120+
[\#4800](https://github.com/matrix-org/matrix-react-sdk/pull/4800)
121+
* Support accounts with cross signing but no SSSS
122+
[\#4717](https://github.com/matrix-org/matrix-react-sdk/pull/4717)
123+
* Look for existing verification requests after login
124+
[\#4762](https://github.com/matrix-org/matrix-react-sdk/pull/4762)
125+
* Add a checkpoint to index newly encrypted rooms.
126+
[\#4611](https://github.com/matrix-org/matrix-react-sdk/pull/4611)
127+
* Add support to paginate search results when using Seshat.
128+
[\#4705](https://github.com/matrix-org/matrix-react-sdk/pull/4705)
129+
* User versions in the event index.
130+
[\#4788](https://github.com/matrix-org/matrix-react-sdk/pull/4788)
131+
* Fix crash when filtering new room list too fast
132+
[\#4796](https://github.com/matrix-org/matrix-react-sdk/pull/4796)
133+
* hide search results from unknown rooms
134+
[\#4795](https://github.com/matrix-org/matrix-react-sdk/pull/4795)
135+
* Mark the new room list as ready for general testing
136+
[\#4794](https://github.com/matrix-org/matrix-react-sdk/pull/4794)
137+
* Extend QueryMatcher's sorting heuristic
138+
[\#4784](https://github.com/matrix-org/matrix-react-sdk/pull/4784)
139+
* Lint ts semicolons (aka. The great semicolon migration)
140+
[\#4791](https://github.com/matrix-org/matrix-react-sdk/pull/4791)
141+
* Revert "Use recovery keys over passphrases"
142+
[\#4790](https://github.com/matrix-org/matrix-react-sdk/pull/4790)
143+
* Clear `top` when not sticking headers to the top
144+
[\#4783](https://github.com/matrix-org/matrix-react-sdk/pull/4783)
145+
* Don't show a 'show less' button when it's impossible to collapse
146+
[\#4785](https://github.com/matrix-org/matrix-react-sdk/pull/4785)
147+
* Fix show less/more button occluding the list automatically
148+
[\#4786](https://github.com/matrix-org/matrix-react-sdk/pull/4786)
149+
* Improve room switching in the new room list
150+
[\#4787](https://github.com/matrix-org/matrix-react-sdk/pull/4787)
151+
* Remove labs option to cache 'passphrase'
152+
[\#4789](https://github.com/matrix-org/matrix-react-sdk/pull/4789)
153+
* Remove escape backslashes in non-Markdown messages
154+
[\#4694](https://github.com/matrix-org/matrix-react-sdk/pull/4694)
155+
1156
Changes in [2.8.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v2.8.1) (2020-06-29)
2157
===================================================================================================
3158
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v2.8.0...v2.8.1)
@@ -9,6 +164,7 @@ Changes in [2.8.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v
9164
===================================================================================================
10165
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v2.8.0-rc.1...v2.8.0)
11166

167+
* Upgrade to JS SDK 7.0.0
12168
* Update read receipt remainder for internal font size change
13169
[\#4807](https://github.com/matrix-org/matrix-react-sdk/pull/4807)
14170
* Revert "Use recovery keys over passphrases"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "2.8.1",
3+
"version": "2.9.0",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {
@@ -80,7 +80,7 @@
8080
"is-ip": "^2.0.0",
8181
"linkifyjs": "^2.1.6",
8282
"lodash": "^4.17.14",
83-
"matrix-js-sdk": "7.0.0",
83+
"matrix-js-sdk": "7.1.0",
8484
"minimist": "^1.2.0",
8585
"pako": "^1.0.5",
8686
"parse5": "^5.1.1",

res/css/_common.scss

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
319319
}
320320

321321
.mx_Dialog_titleImage {
322-
vertical-align: middle;
322+
vertical-align: sub;
323323
width: 25px;
324324
height: 25px;
325325
margin-left: -2px;
@@ -428,6 +428,10 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
428428
border-radius: 8px;
429429
padding: 0px;
430430
box-shadow: none;
431+
432+
/* Don't show scroll-bars on spinner dialogs */
433+
overflow-x: hidden;
434+
overflow-y: hidden;
431435
}
432436

433437
// TODO: Review mx_GeneralButton usage to see if it can use a different class
@@ -596,14 +600,14 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
596600
}
597601

598602
&:last-child {
599-
padding-bottom: 20px;
603+
padding-bottom: 16px;
600604
}
601605
}
602606

603607
.mx_IconizedContextMenu_optionList {
604608
// the notFirst class is for cases where the optionList might be under a header of sorts.
605609
&:nth-child(n + 2), .mx_IconizedContextMenu_optionList_notFirst {
606-
margin-top: 20px;
610+
margin-top: 12px;
607611

608612
// This is a bit of a hack when we could just use a simple border-top property,
609613
// however we have a (kinda) good reason for doing it this way: we need opacity.
@@ -634,7 +638,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
634638

635639
li {
636640
margin: 0;
637-
padding: 20px 0 0;
641+
padding: 12px 0 0;
638642

639643
.mx_AccessibleButton {
640644
text-decoration: none;
@@ -696,3 +700,24 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
696700
}
697701
}
698702
}
703+
704+
@define-mixin ProgressBarColour $colour {
705+
color: $colour;
706+
&::-moz-progress-bar {
707+
background-color: $colour;
708+
}
709+
&::-webkit-progress-value {
710+
background-color: $colour;
711+
}
712+
}
713+
714+
@define-mixin ProgressBarBorderRadius $radius {
715+
border-radius: $radius;
716+
&::-moz-progress-bar {
717+
border-radius: $radius;
718+
}
719+
&::-webkit-progress-bar,
720+
&::-webkit-progress-value {
721+
border-radius: $radius;
722+
}
723+
}

res/css/_components.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
@import "./structures/_ToastContainer.scss";
3131
@import "./structures/_TopLeftMenuButton.scss";
3232
@import "./structures/_UploadBar.scss";
33-
@import "./structures/_UserMenuButton.scss";
33+
@import "./structures/_UserMenu.scss";
3434
@import "./structures/_ViewSource.scss";
3535
@import "./structures/auth/_CompleteSecurity.scss";
3636
@import "./structures/auth/_Login.scss";

res/css/structures/_LeftPanel2.scss

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

17-
// TODO: Rename to mx_LeftPanel during replacement of old component
17+
// TODO: Rename on launch: https://github.com/vector-im/riot-web/issues/14231
1818

1919
$tagPanelWidth: 70px; // only applies in this file, used for calculations
2020

@@ -38,6 +38,12 @@ $tagPanelWidth: 70px; // only applies in this file, used for calculations
3838
// TagPanel handles its own CSS
3939
}
4040

41+
&:not(.mx_LeftPanel2_hasTagPanel) {
42+
.mx_LeftPanel2_roomListContainer {
43+
width: 100%;
44+
}
45+
}
46+
4147
// Note: The 'room list' in this context is actually everything that isn't the tag
4248
// panel, such as the menu options, breadcrumbs, filtering, etc
4349
.mx_LeftPanel2_roomListContainer {
@@ -48,36 +54,20 @@ $tagPanelWidth: 70px; // only applies in this file, used for calculations
4854
flex-direction: column;
4955

5056
.mx_LeftPanel2_userHeader {
51-
padding: 14px 12px 20px; // 14px top, 12px sides, 20px bottom
57+
padding: 12px 12px 20px; // 12px top, 12px sides, 20px bottom
5258

5359
// Create another flexbox column for the rows to stack within
5460
display: flex;
5561
flex-direction: column;
5662

57-
// There's 2 rows when breadcrumbs are present: the top bit and the breadcrumbs
63+
// This is basically just breadcrumbs. The row above that is handled by the UserMenu
5864
.mx_LeftPanel2_headerRow {
5965
// Create yet another flexbox, this time within the row, to ensure items stay
6066
// aligned correctly. This is also a row-based flexbox.
6167
display: flex;
6268
align-items: center;
6369
}
6470

65-
.mx_LeftPanel2_userAvatarContainer {
66-
position: relative; // to make default avatars work
67-
margin-right: 8px;
68-
}
69-
70-
.mx_LeftPanel2_userName {
71-
font-weight: 600;
72-
font-size: $font-15px;
73-
line-height: $font-20px;
74-
flex: 1;
75-
}
76-
77-
.mx_LeftPanel2_headerButtons {
78-
// No special styles: the rest of the layout happens to make it work.
79-
}
80-
8171
.mx_LeftPanel2_breadcrumbsContainer {
8272
width: 100%;
8373
overflow: hidden;
@@ -143,21 +133,16 @@ $tagPanelWidth: 70px; // only applies in this file, used for calculations
143133
min-width: unset;
144134

145135
// We have to forcefully set the width to override the resizer's style attribute.
146-
width: calc(68px + $tagPanelWidth) !important;
136+
&.mx_LeftPanel2_hasTagPanel {
137+
width: calc(68px + $tagPanelWidth) !important;
138+
}
139+
&:not(.mx_LeftPanel2_hasTagPanel) {
140+
width: 68px !important;
141+
}
147142

148143
.mx_LeftPanel2_roomListContainer {
149144
width: 68px;
150145

151-
.mx_LeftPanel2_userHeader {
152-
.mx_LeftPanel2_headerRow {
153-
justify-content: center;
154-
}
155-
156-
.mx_LeftPanel2_userAvatarContainer {
157-
margin-right: 0;
158-
}
159-
}
160-
161146
.mx_LeftPanel2_filterContainer {
162147
// Organize the flexbox into a centered column layout
163148
flex-direction: column;

0 commit comments

Comments
 (0)