Commit graph

27235 commits

Author SHA1 Message Date
Travis Ralston
ad92e6ba00 Don't constantly re-mount the sublists with a new addRoomFn
Any time we though that the room list had to re-render we were dynamically creating a new addRoomFn, which would signal to the sublist that it needed to re-render. 

The only reason we wrap the function from the aesthetics is to provide theoretical tiling/multiaccount support through use of different dispatchers, however considering that's not a reality yet we can just use a default dispatcher when none is supplied.
2020-07-23 22:12:10 -06:00
Travis Ralston
7b97c3032b Make the sublists aware of their own list changes
This cuts the render time in half (from ~448ms to ~200ms on my account) per received event, as we're no longer re-mounting the entire room list and instead just the section(s) we care about.
2020-07-23 21:36:43 -06:00
Michael Telatynski
93b0287e11 s/semi-colon/colon/
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-24 00:04:50 +01:00
Michael Telatynski
c1d2e27f9c Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into SuppressSpeechWhenSending 2020-07-24 00:03:55 +01:00
Michael Telatynski
862856d3be Also add aria-atomic=true
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-24 00:03:42 +01:00
Weblate
1090df06a8 Merge branch 'origin/develop' into Weblate. 2020-07-23 23:02:55 +00:00
Michael Telatynski
60a6b13f4b
Merge pull request #5026 from matrix-org/t3chguy/room-list/14440
Put low priority xor toggle back in the room list context menu
2020-07-24 00:02:50 +01:00
Weblate
f28db43fbd Merge branch 'origin/develop' into Weblate. 2020-07-23 23:01:53 +00:00
Michael Telatynski
55b9ba23c2
Merge pull request #5040 from matrix-org/t3chguy/community-autocomplete
Fix autocompletion of Community IDs
2020-07-24 00:01:48 +01:00
Weblate
a4d25e7f91 Merge branch 'origin/develop' into Weblate. 2020-07-23 23:01:19 +00:00
Michael Telatynski
591891631f
Merge pull request #5042 from matrix-org/t3chguy/fix/14686
Use OpenType tabular numbers in timestamps
2020-07-24 00:01:13 +01:00
Weblate
bfdd0b8f63 Merge branch 'origin/develop' into Weblate. 2020-07-23 22:03:53 +00:00
Tirifto
4b11944938 Translated using Weblate (Czech)
Currently translated at 92.2% (2143 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/cs/
2020-07-23 22:03:53 +00:00
Travis Ralston
71ec76dcef
Merge pull request #5046 from matrix-org/travis/package-updates
Update packages to modern versions
2020-07-23 16:03:48 -06:00
Travis Ralston
2abec8b100 Disable lint in InviteDialog 2020-07-23 15:58:06 -06:00
Travis Ralston
66eb069651 Pin flow-parser for i18n 2020-07-23 15:43:53 -06:00
Travis Ralston
9d091e5e02 Update packages to modern versions 2020-07-23 15:27:10 -06:00
Weblate
5868b232e7 Merge branch 'origin/develop' into Weblate. 2020-07-23 17:14:50 +00:00
ziriSut
421f817b23 Translated using Weblate (Kabyle)
Currently translated at 31.0% (721 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/kab/
2020-07-23 17:14:50 +00:00
Tirifto
d483addd30 Translated using Weblate (Esperanto)
Currently translated at 99.9% (2321 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/eo/
2020-07-23 17:14:47 +00:00
Tirifto
e8c0d6ec7c Translated using Weblate (Czech)
Currently translated at 92.1% (2140 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/cs/
2020-07-23 17:14:46 +00:00
David Baker
593ed81c8a
Merge pull request #5044 from matrix-org/dbkr/rebrand_toast_dismiss
Add dismiss button to rebrand toast
2020-07-23 18:14:36 +01:00
David Baker
6fb257df7a Add dismiss button to rebrand toast
Fixes https://github.com/vector-im/riot-web/issues/14575
2020-07-23 17:33:14 +01:00
Michael Telatynski
b02175793e Use OpenType tabular numbers in timestamps
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-23 14:52:01 +01:00
Michael Telatynski
c8832f5582 Fix autocompletion of Community IDs
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-23 14:47:42 +01:00
Weblate
6adfbfbbe2 Merge branch 'origin/develop' into Weblate. 2020-07-23 09:11:08 +00:00
Michael Telatynski
4db0d94fb6
Merge pull request #5039 from matrix-org/t3chguy/fix/14684
Fix Firefox composer regression exception
2020-07-23 10:11:02 +01:00
Weblate
716b60a485 Merge branch 'origin/develop' into Weblate. 2020-07-23 08:27:25 +00:00
daniel tygel
de8470d666 Translated using Weblate (Portuguese (Brazil))
Currently translated at 69.1% (1605 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/pt_BR/
2020-07-23 08:27:25 +00:00
Michael Telatynski
ff8f1af01e
Merge pull request #5037 from matrix-org/t3chguy/room-list/14705
Fix BaseAvatar wrongly using Buttons when it needs not
2020-07-23 09:27:20 +01:00
Michael Telatynski
adba9415b3 Fix Firefox composer regression exception
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-23 09:25:01 +01:00
Michael Telatynski
38e93469d3 Fix broken test
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-23 09:01:44 +01:00
daniel tygel
b615e173dc Translated using Weblate (Portuguese (Brazil))
Currently translated at 69.1% (1605 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/pt_BR/
2020-07-23 03:21:39 +00:00
Weblate
6fb96e956c Merge branch 'origin/develop' into Weblate. 2020-07-22 23:39:24 +00:00
shuji narazaki
ad2b1adb54 Translated using Weblate (Japanese)
Currently translated at 57.8% (1343 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/ja/
2020-07-22 23:39:24 +00:00
yuurii
b745edd186 Translated using Weblate (Japanese)
Currently translated at 57.8% (1343 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/ja/
2020-07-22 23:39:24 +00:00
Tirifto
f0edd821b3 Translated using Weblate (Czech)
Currently translated at 91.7% (2130 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/cs/
2020-07-22 23:39:24 +00:00
Travis Ralston
7f4ae043bd
Merge pull request #5038 from matrix-org/travis/perf2
Performance improvements round 2: Maps, freezing, dispatching, and flexbox obliteration
2020-07-22 17:39:14 -06:00
Travis Ralston
80687e358f Obliterate some flexboxes in the room list
We don't need columns of divs to equally size themselves, so use easier layout techniques to make the list fit in the container. We have to take a hit with `height:100%`, but the hit is much more insignificant than confusing the layout engine.

The layout engine has a hard time with dynamically-but-statically-sized stuff like `width: 100%; display: flex;`, particularly when it is nested so badly. Overall this should improve performance for the app by not having to re-paint so often.

Fixes https://github.com/vector-im/riot-web/issues/14639
2020-07-22 16:34:33 -06:00
Scott Rothrock
47814cf0cf Translated using Weblate (Japanese)
Currently translated at 57.8% (1343 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/ja/
2020-07-22 21:58:49 +00:00
yuurii
330971beeb Translated using Weblate (Japanese)
Currently translated at 57.8% (1343 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/ja/
2020-07-22 21:58:49 +00:00
Travis Ralston
c22cb6c325 Short-circuit room list store dispatch handling if not ready
We were taking 0.2ms to handle the registration of a timer per event during startup, even before the app is visible to the user. These timers would be short-circuited too, leading to a bunch of wasted time.

0.2ms isn't a lot of time, but multiplied by thousands of events at startup it's pretty significant.

On my account this reduces the full page spinner time from ~50 seconds to just over 20 seconds.
2020-07-22 13:35:41 -06:00
Michael Telatynski
6546f98e18 Fix BaseAvatar wrongly using Buttons when it needs not
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-22 20:01:14 +01:00
Travis Ralston
f27afc6ff8 Fix message previews not updating on their own 2020-07-22 12:43:10 -06:00
Travis Ralston
0ef6696c0a Don't re-freeze AsyncStore's state all the time 2020-07-22 10:52:45 -06:00
Travis Ralston
d593d24aea Switch to an internal Map for previews
This means we're abusing the AsyncStoreWithClient to get access to a lifecycle, but overall that seems like a minor crime compared to the time spend abusing the store's state as a map.

With thousands of rooms shown, we can save on average 743ms per preview. The new preview time is 0.12ms on average.
2020-07-22 10:50:54 -06:00
Swapnil Raj
5ea7be5d53 Cleanup comments 2020-07-22 21:17:58 +05:30
Weblate
76c7b0aa75 Merge branch 'origin/develop' into Weblate. 2020-07-22 14:24:16 +00:00
rkfg
e15f876d46 Translated using Weblate (Russian)
Currently translated at 90.7% (2107 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/ru/
2020-07-22 14:24:15 +00:00
Michael Albert
60df2285c4 Translated using Weblate (German)
Currently translated at 97.9% (2276 of 2324 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/element-web/matrix-react-sdk/de/
2020-07-22 14:24:13 +00:00