Skip to content

Commit f4460ca

Browse files
committed
Merge remote-tracking branch 'origin/develop' into dbkr/recovery_key_passphrase_2
2 parents 178cbca + ab80ea1 commit f4460ca

File tree

84 files changed

+1820
-472
lines changed

Some content is hidden

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

84 files changed

+1820
-472
lines changed

CHANGELOG.md

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,193 @@
1+
Changes in [2.8.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v2.8.0) (2020-06-23)
2+
===================================================================================================
3+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v2.8.0-rc.1...v2.8.0)
4+
5+
* Upgrade to JS SDK 7.0.0
6+
* Update read receipt remainder for internal font size change
7+
[\#4807](https://github.com/matrix-org/matrix-react-sdk/pull/4807)
8+
* Revert "Use recovery keys over passphrases"
9+
[\#4793](https://github.com/matrix-org/matrix-react-sdk/pull/4793)
10+
11+
Changes in [2.8.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v2.8.0-rc.1) (2020-06-17)
12+
=============================================================================================================
13+
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v2.7.2...v2.8.0-rc.1)
14+
15+
* Upgrade to JS SDK 7.0.0-rc.1
16+
* Fix Styled Checkbox and Radio Button disabled state
17+
[\#4778](https://github.com/matrix-org/matrix-react-sdk/pull/4778)
18+
* clean up and fix the isMasterRuleEnabled logic
19+
[\#4782](https://github.com/matrix-org/matrix-react-sdk/pull/4782)
20+
* Fix case-sensitivity of /me to match rest of slash commands
21+
[\#4763](https://github.com/matrix-org/matrix-react-sdk/pull/4763)
22+
* Add a 'show less' button to the new room list
23+
[\#4765](https://github.com/matrix-org/matrix-react-sdk/pull/4765)
24+
* Update from Weblate
25+
[\#4781](https://github.com/matrix-org/matrix-react-sdk/pull/4781)
26+
* Sticky and collapsing headers for new room list
27+
[\#4758](https://github.com/matrix-org/matrix-react-sdk/pull/4758)
28+
* Make the room list labs setting reload on change
29+
[\#4780](https://github.com/matrix-org/matrix-react-sdk/pull/4780)
30+
* Handle/hide old rooms in the room list
31+
[\#4767](https://github.com/matrix-org/matrix-react-sdk/pull/4767)
32+
* Add some media queries to improve UI on mobile (#3991)
33+
[\#4656](https://github.com/matrix-org/matrix-react-sdk/pull/4656)
34+
* Match fuzzy filtering a bit more reliably in the new room list
35+
[\#4769](https://github.com/matrix-org/matrix-react-sdk/pull/4769)
36+
* Improve Field ts definitions some more
37+
[\#4777](https://github.com/matrix-org/matrix-react-sdk/pull/4777)
38+
* Fix alignment of checkboxes in new room list's context menu
39+
[\#4776](https://github.com/matrix-org/matrix-react-sdk/pull/4776)
40+
* Fix Field ts def, fix LocalEchoWrapper and NotificationsEnabledController
41+
[\#4775](https://github.com/matrix-org/matrix-react-sdk/pull/4775)
42+
* Add presence indicators and globes to new room list
43+
[\#4774](https://github.com/matrix-org/matrix-react-sdk/pull/4774)
44+
* Include the sticky room when filtering in the new room list
45+
[\#4772](https://github.com/matrix-org/matrix-react-sdk/pull/4772)
46+
* Add a home button to the new room list menu when available
47+
[\#4771](https://github.com/matrix-org/matrix-react-sdk/pull/4771)
48+
* use group layout for search results
49+
[\#4764](https://github.com/matrix-org/matrix-react-sdk/pull/4764)
50+
* Fix m.id.phone spec compliance
51+
[\#4757](https://github.com/matrix-org/matrix-react-sdk/pull/4757)
52+
* User Info default power levels for ban/kick/redact to 50 as per spec
53+
[\#4759](https://github.com/matrix-org/matrix-react-sdk/pull/4759)
54+
* Match new room list's text search to old room list
55+
[\#4768](https://github.com/matrix-org/matrix-react-sdk/pull/4768)
56+
* Fix ordering of recent rooms in the new room list
57+
[\#4766](https://github.com/matrix-org/matrix-react-sdk/pull/4766)
58+
* Change theme selector to use new styled radio buttons
59+
[\#4731](https://github.com/matrix-org/matrix-react-sdk/pull/4731)
60+
* Use recovery keys over passphrases
61+
[\#4686](https://github.com/matrix-org/matrix-react-sdk/pull/4686)
62+
* Update from Weblate
63+
[\#4760](https://github.com/matrix-org/matrix-react-sdk/pull/4760)
64+
* Initial dark theme support for new room list
65+
[\#4756](https://github.com/matrix-org/matrix-react-sdk/pull/4756)
66+
* Support per-list options and algorithms on the new room list
67+
[\#4754](https://github.com/matrix-org/matrix-react-sdk/pull/4754)
68+
* Send read marker updates immediately after moving visually
69+
[\#4755](https://github.com/matrix-org/matrix-react-sdk/pull/4755)
70+
* Add a minimized view to the new room list
71+
[\#4753](https://github.com/matrix-org/matrix-react-sdk/pull/4753)
72+
* Fix e2e icon alignment in irc-layout
73+
[\#4752](https://github.com/matrix-org/matrix-react-sdk/pull/4752)
74+
* Add some resource leak protection to new room list badges
75+
[\#4750](https://github.com/matrix-org/matrix-react-sdk/pull/4750)
76+
* Fix read-receipt alignment
77+
[\#4747](https://github.com/matrix-org/matrix-react-sdk/pull/4747)
78+
* Show message previews on the new room list tiles
79+
[\#4751](https://github.com/matrix-org/matrix-react-sdk/pull/4751)
80+
* Fix various layout concerns with the new room list
81+
[\#4749](https://github.com/matrix-org/matrix-react-sdk/pull/4749)
82+
* Prioritize text on the clipboard over file
83+
[\#4748](https://github.com/matrix-org/matrix-react-sdk/pull/4748)
84+
* Move Settings flag to ts
85+
[\#4729](https://github.com/matrix-org/matrix-react-sdk/pull/4729)
86+
* Add a context menu to rooms in the new room list
87+
[\#4743](https://github.com/matrix-org/matrix-react-sdk/pull/4743)
88+
* Add hover states and basic context menu to new room list
89+
[\#4742](https://github.com/matrix-org/matrix-react-sdk/pull/4742)
90+
* Update resize handle for new designs in new room list
91+
[\#4741](https://github.com/matrix-org/matrix-react-sdk/pull/4741)
92+
* Improve general stability in the new room list
93+
[\#4740](https://github.com/matrix-org/matrix-react-sdk/pull/4740)
94+
* Reimplement breadcrumbs for new room list
95+
[\#4735](https://github.com/matrix-org/matrix-react-sdk/pull/4735)
96+
* Add styled radio buttons
97+
[\#4744](https://github.com/matrix-org/matrix-react-sdk/pull/4744)
98+
* Hide checkbox tick on dark backgrounds
99+
[\#4730](https://github.com/matrix-org/matrix-react-sdk/pull/4730)
100+
* Make checkboxes a11y friendly
101+
[\#4746](https://github.com/matrix-org/matrix-react-sdk/pull/4746)
102+
* EventIndex: Store and restore the encryption info for encrypted events.
103+
[\#4738](https://github.com/matrix-org/matrix-react-sdk/pull/4738)
104+
* Use IDestroyable instead of IDisposable
105+
[\#4739](https://github.com/matrix-org/matrix-react-sdk/pull/4739)
106+
* Add/improve badge counts in new room list
107+
[\#4734](https://github.com/matrix-org/matrix-react-sdk/pull/4734)
108+
* Convert FormattingUtils to TypeScript and add badge utility function
109+
[\#4732](https://github.com/matrix-org/matrix-react-sdk/pull/4732)
110+
* Add filtering and exploring to the new room list
111+
[\#4736](https://github.com/matrix-org/matrix-react-sdk/pull/4736)
112+
* Support prioritized room list filters
113+
[\#4737](https://github.com/matrix-org/matrix-react-sdk/pull/4737)
114+
* Clean up font scaling appearance
115+
[\#4733](https://github.com/matrix-org/matrix-react-sdk/pull/4733)
116+
* Add user menu to new room list
117+
[\#4722](https://github.com/matrix-org/matrix-react-sdk/pull/4722)
118+
* New room list basic styling and layout
119+
[\#4711](https://github.com/matrix-org/matrix-react-sdk/pull/4711)
120+
* Fix read receipt overlap
121+
[\#4727](https://github.com/matrix-org/matrix-react-sdk/pull/4727)
122+
* Load correct default font size
123+
[\#4726](https://github.com/matrix-org/matrix-react-sdk/pull/4726)
124+
* send state of lowBandwidth in rageshakes
125+
[\#4724](https://github.com/matrix-org/matrix-react-sdk/pull/4724)
126+
* Change internal font size from from 15 to 10
127+
[\#4725](https://github.com/matrix-org/matrix-react-sdk/pull/4725)
128+
* Upgrade deps
129+
[\#4723](https://github.com/matrix-org/matrix-react-sdk/pull/4723)
130+
* Ensure active Jitsi conference is closed on widget pop-out
131+
[\#4444](https://github.com/matrix-org/matrix-react-sdk/pull/4444)
132+
* Introduce sticky rooms to the new room list
133+
[\#4720](https://github.com/matrix-org/matrix-react-sdk/pull/4720)
134+
* Handle remaining cases for room updates in new room list
135+
[\#4721](https://github.com/matrix-org/matrix-react-sdk/pull/4721)
136+
* Allow searching the emoji picker using other emoji
137+
[\#4719](https://github.com/matrix-org/matrix-react-sdk/pull/4719)
138+
* New room list scrolling and resizing
139+
[\#4697](https://github.com/matrix-org/matrix-react-sdk/pull/4697)
140+
* Don't show FormatBar if composer is empty
141+
[\#4696](https://github.com/matrix-org/matrix-react-sdk/pull/4696)
142+
* Split the left panel into new and old for new room list designs
143+
[\#4687](https://github.com/matrix-org/matrix-react-sdk/pull/4687)
144+
* Fix compact layout regression
145+
[\#4712](https://github.com/matrix-org/matrix-react-sdk/pull/4712)
146+
* fix emoji in safari
147+
[\#4710](https://github.com/matrix-org/matrix-react-sdk/pull/4710)
148+
* Fix not being able to dismiss new login toasts
149+
[\#4709](https://github.com/matrix-org/matrix-react-sdk/pull/4709)
150+
* Fix exceptions from Tooltip
151+
[\#4708](https://github.com/matrix-org/matrix-react-sdk/pull/4708)
152+
* Stop removing variation selector from quick reactions
153+
[\#4707](https://github.com/matrix-org/matrix-react-sdk/pull/4707)
154+
* Tidy up continuation algorithm and make it work for hidden profile changes
155+
[\#4704](https://github.com/matrix-org/matrix-react-sdk/pull/4704)
156+
* Profile settings should never show a disambiguated display name
157+
[\#4699](https://github.com/matrix-org/matrix-react-sdk/pull/4699)
158+
* Prevent (double) 4S bootstrap from RestoreKeyBackupDialog
159+
[\#4701](https://github.com/matrix-org/matrix-react-sdk/pull/4701)
160+
* Stop checkbox styling bleeding through room address selector
161+
[\#4691](https://github.com/matrix-org/matrix-react-sdk/pull/4691)
162+
* Center HeaderButtons
163+
[\#4695](https://github.com/matrix-org/matrix-react-sdk/pull/4695)
164+
* Add .well-known option to control default e2ee behaviour
165+
[\#4605](https://github.com/matrix-org/matrix-react-sdk/pull/4605)
166+
* Add max-width to right and left panels
167+
[\#4692](https://github.com/matrix-org/matrix-react-sdk/pull/4692)
168+
* Fix login loop where the sso flow returns to `#/login`
169+
[\#4685](https://github.com/matrix-org/matrix-react-sdk/pull/4685)
170+
* Don't clear MAU toasts when a successful sync comes in
171+
[\#4690](https://github.com/matrix-org/matrix-react-sdk/pull/4690)
172+
* Add initial filtering support to new room list
173+
[\#4681](https://github.com/matrix-org/matrix-react-sdk/pull/4681)
174+
* Bubble up a decline-to-render of verification events to outside wrapper
175+
[\#4664](https://github.com/matrix-org/matrix-react-sdk/pull/4664)
176+
* upgrade to twemoji 13.0.0
177+
[\#4672](https://github.com/matrix-org/matrix-react-sdk/pull/4672)
178+
* Apply FocusLock to ImageView to capture Escape handling
179+
[\#4666](https://github.com/matrix-org/matrix-react-sdk/pull/4666)
180+
* Fix the 'complete security' screen
181+
[\#4689](https://github.com/matrix-org/matrix-react-sdk/pull/4689)
182+
* add null-guard for Autocomplete containerRef
183+
[\#4688](https://github.com/matrix-org/matrix-react-sdk/pull/4688)
184+
* Remove legacy codepaths for Unknown Device Error (UDE/UDD) handling
185+
[\#4660](https://github.com/matrix-org/matrix-react-sdk/pull/4660)
186+
* Remove feature_cross_signing
187+
[\#4655](https://github.com/matrix-org/matrix-react-sdk/pull/4655)
188+
* Autocomplete: use scrollIntoView for auto-scroll to fix it
189+
[\#4670](https://github.com/matrix-org/matrix-react-sdk/pull/4670)
190+
1191
Changes in [2.7.2](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v2.7.2) (2020-06-16)
2192
===================================================================================================
3193
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v2.7.1...v2.7.2)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "2.7.2",
3+
"version": "2.8.0",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {

res/css/_common.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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;

res/css/structures/_LeftPanel2.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $tagPanelWidth: 70px; // only applies in this file, used for calculations
4848
flex-direction: column;
4949

5050
.mx_LeftPanel2_userHeader {
51-
padding: 14px 12px 20px; // 14px top, 12px sides, 20px bottom
51+
padding: 12px 12px 20px; // 12px top, 12px sides, 20px bottom
5252

5353
// Create another flexbox column for the rows to stack within
5454
display: flex;
@@ -65,13 +65,23 @@ $tagPanelWidth: 70px; // only applies in this file, used for calculations
6565
.mx_LeftPanel2_userAvatarContainer {
6666
position: relative; // to make default avatars work
6767
margin-right: 8px;
68+
height: 32px; // to remove the unknown 4px gap the browser puts below it
69+
70+
.mx_LeftPanel2_userAvatar {
71+
border-radius: 32px; // should match avatar size
72+
}
6873
}
6974

7075
.mx_LeftPanel2_userName {
7176
font-weight: 600;
7277
font-size: $font-15px;
7378
line-height: $font-20px;
7479
flex: 1;
80+
81+
// Ellipsize any text overflow
82+
text-overflow: ellipsis;
83+
overflow: hidden;
84+
white-space: nowrap;
7585
}
7686

7787
.mx_LeftPanel2_headerButtons {

res/css/structures/_UserMenuButton.scss

Lines changed: 75 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,50 @@ limitations under the License.
1515
*/
1616

1717
.mx_UserMenuButton {
18-
// No special styles on the button itself
18+
> span {
19+
width: 16px;
20+
height: 16px;
21+
position: relative;
22+
display: block;
23+
24+
&::before {
25+
content: '';
26+
width: 16px;
27+
height: 16px;
28+
position: absolute;
29+
top: 0;
30+
left: 0;
31+
mask-position: center;
32+
mask-size: contain;
33+
mask-repeat: no-repeat;
34+
background: $primary-fg-color;
35+
mask-image: url('$(res)/img/feather-customised/more-horizontal.svg');
36+
}
37+
}
1938
}
2039

2140
.mx_UserMenuButton_contextMenu {
2241
width: 247px;
2342

43+
.mx_UserMenuButton_contextMenu_redRow {
44+
.mx_AccessibleButton {
45+
color: $warning-color !important; // !important to override styles from context menu
46+
}
47+
48+
.mx_IconizedContextMenu_icon::before {
49+
background-color: $warning-color;
50+
}
51+
}
52+
2453
.mx_UserMenuButton_contextMenu_header {
2554
// Create a flexbox to organize the header a bit easier
2655
display: flex;
2756
align-items: center;
2857

29-
&:nth-child(n + 1) {
30-
// The first header will have appropriate padding, subsequent ones need a margin.
31-
margin-top: 10px;
32-
}
33-
3458
.mx_UserMenuButton_contextMenu_name {
3559
// Create another flexbox of columns to handle large user IDs
3660
display: flex;
3761
flex-direction: column;
38-
39-
// fit the container
40-
flex: 1;
4162
width: calc(100% - 40px); // 40px = 32px theme button + 8px margin to theme button
4263

4364
* {
@@ -79,4 +100,49 @@ limitations under the License.
79100
justify-content: center;
80101
}
81102
}
103+
104+
.mx_IconizedContextMenu_icon {
105+
width: 16px;
106+
height: 16px;
107+
display: block;
108+
109+
&::before {
110+
content: '';
111+
width: 16px;
112+
height: 16px;
113+
display: block;
114+
mask-position: center;
115+
mask-size: contain;
116+
mask-repeat: no-repeat;
117+
background: $primary-fg-color;
118+
}
119+
}
120+
121+
.mx_UserMenuButton_iconHome::before {
122+
mask-image: url('$(res)/img/feather-customised/home.svg');
123+
}
124+
125+
.mx_UserMenuButton_iconBell::before {
126+
mask-image: url('$(res)/img/feather-customised/notifications.svg');
127+
}
128+
129+
.mx_UserMenuButton_iconLock::before {
130+
mask-image: url('$(res)/img/feather-customised/lock.svg');
131+
}
132+
133+
.mx_UserMenuButton_iconSettings::before {
134+
mask-image: url('$(res)/img/feather-customised/settings.svg');
135+
}
136+
137+
.mx_UserMenuButton_iconArchive::before {
138+
mask-image: url('$(res)/img/feather-customised/archive.svg');
139+
}
140+
141+
.mx_UserMenuButton_iconMessage::before {
142+
mask-image: url('$(res)/img/feather-customised/message-circle.svg');
143+
}
144+
145+
.mx_UserMenuButton_iconSignOut::before {
146+
mask-image: url('$(res)/img/feather-customised/sign-out.svg');
147+
}
82148
}

res/css/views/elements/_InlineSpinner.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
display: inline;
1919
}
2020

21-
.mx_InlineSpinner img {
21+
.mx_InlineSpinner_spin img {
2222
margin: 0px 6px;
2323
vertical-align: -3px;
2424
}

0 commit comments

Comments
 (0)