Travis Ralston
b7aa8203b6
Wedge community invites into the new room list
...
Fixes https://github.com/vector-im/riot-web/issues/14179
Disclaimer: this is all of the horrible because it's not meant to be here. Invites in general are likely to move out of the room list, which means this is temporary. Additionally, the communities rework will take care of this more correctly. For now, we support the absolute bare minimum to have them shown.
2020-07-02 09:04:38 -06:00
J. Ryan Stinnett
60e59bccce
Merge pull request #4873 from matrix-org/jryans/room-view-crypto-crash
...
Check whether crypto is enabled in room recovery reminder
2020-07-02 14:04:15 +01:00
J. Ryan Stinnett
209b386e23
Merge remote-tracking branch 'origin/develop' into jryans/room-view-crypto-crash
2020-07-02 13:46:50 +01:00
J. Ryan Stinnett
a928785f72
Check whether crypto is enabled in room recovery reminder
...
This avoids a soft crash that may occur otherwise.
Fixes https://github.com/vector-im/riot-web/issues/14289
2020-07-02 13:19:27 +01:00
J. Ryan Stinnett
b5c94acbe6
Remove unused crypto import
2020-07-02 13:17:51 +01:00
Michael Telatynski
8a591d5b1e
Merge pull request #4872 from matrix-org/t3chguy/room-list/4
...
Fix room list 2's room tile wrapping wrongly
2020-07-02 12:52:29 +01:00
Michael Telatynski
c259408d71
fix alignment of dot and simplify CSS rules
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-02 12:35:06 +01:00
Michael Telatynski
992349944a
Fix room list 2's room tile wrapping wrongly
2020-07-02 12:18:48 +01:00
Jorik Schellekens
62314cac06
Merge pull request #4863 from matrix-org/joriks/room-list-autohide-scrollbar
...
Hide scrollbar without pixel jumping
2020-07-01 20:07:32 +01:00
Michael Telatynski
28e430060c
Merge pull request #4858 from matrix-org/t3chguy/room-list/2
...
Room Tile context menu, notifications, indicator and placement
2020-07-01 19:20:09 +01:00
Travis Ralston
2cd6fae2ce
Merge pull request #4865 from matrix-org/travis/room-list/default-vis
...
Improve resizing interactions in the new room list
2020-07-01 11:59:54 -06:00
Travis Ralston
946fde5cc5
Be consistent in visible tiles usage
2020-07-01 11:59:32 -06:00
Jorik Schellekens
ad27dbbfab
Clean up classnames
2020-07-01 15:15:18 +01:00
Michael Telatynski
9831698b1e
Hide notifications menu from invite tiles
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-01 14:28:00 +01:00
Michael Telatynski
10e547539d
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/room-list/2
2020-07-01 14:26:56 +01:00
Michael Telatynski
0cbc506ad6
add missing svg
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-01 14:26:50 +01:00
Travis Ralston
fed0c327d5
Merge pull request #4866 from matrix-org/travis/room-list/rm-ordering-options
...
Disable use of account-level ordering options in new room list
2020-07-01 07:25:04 -06:00
Travis Ralston
a78728acbf
Merge pull request #4867 from matrix-org/travis/room-list/invite-menu
...
Remove context menu on invites in new room list
2020-07-01 07:24:52 -06:00
Travis Ralston
dc182b9012
Merge pull request #4868 from matrix-org/travis/room-list/preview-crash
...
Fix reaction event crashes in message previews
2020-07-01 07:24:43 -06:00
Michael Telatynski
3b7b6eca6f
align context menus even better
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-01 14:05:33 +01:00
J. Ryan Stinnett
0a6ce5ee0a
Merge pull request #4869 from RiotTranslateBot/weblate-riot-web-matrix-react-sdk
...
Update from Weblate
2020-07-01 14:05:07 +01:00
strix aluco
9434923da3
Translated using Weblate (Ukrainian)
...
Currently translated at 26.2% (618 of 2355 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/uk/
2020-07-01 13:03:55 +00:00
Michael Albert
1e81049801
Translated using Weblate (German)
...
Currently translated at 99.2% (2336 of 2355 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/de/
2020-07-01 13:03:54 +00:00
XoseM
5ca4d352ee
Translated using Weblate (Galician)
...
Currently translated at 100.0% (2355 of 2355 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/gl/
2020-07-01 13:03:53 +00:00
Kévin C
2db0bb570a
Translated using Weblate (French)
...
Currently translated at 100.0% (2355 of 2355 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/fr/
2020-07-01 13:03:50 +00:00
Jeff Huang
f09aa3b09b
Translated using Weblate (Chinese (Traditional))
...
Currently translated at 100.0% (2355 of 2355 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/zh_Hant/
2020-07-01 13:03:47 +00:00
Michael Telatynski
b5014282a4
Iterate PR based on Figma design and feedback
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-01 13:59:50 +01:00
Travis Ralston
5a43acd42a
Fix reaction event crashes in message previews
...
Fixes https://github.com/vector-im/riot-web/issues/14224
2020-06-30 19:51:28 -06:00
Travis Ralston
ad982624fe
Remove context menu on invites in new room list
...
Fixes https://github.com/vector-im/riot-web/issues/14198
For both, the decision has been made to not have a context menu pending further considerations of where invites should (and should not) be. Likely this will be dealt with in FTUE Notifications.
2020-06-30 19:43:00 -06:00
Travis Ralston
0868af650a
Appease the linter
2020-06-30 19:37:00 -06:00
Travis Ralston
d402808101
Disable use of account-level ordering options in new room list
...
Fixes https://github.com/vector-im/riot-web/issues/14069
We can't drop them completely for compatibility with the old room list.
2020-06-30 19:31:59 -06:00
Travis Ralston
8cfbfd4221
Increase RESIZER_BOX_FACTOR to account for overlap from handle
...
Fixes https://github.com/vector-im/riot-web/issues/14136
The resizer handle wasn't being considered in this. 78% is both verified through mathematics and playing with it manually.
2020-06-30 19:20:11 -06:00
Travis Ralston
7674030c6e
Show 'show more' when there are less tiles than the default
...
For example, if you only have 3/10 rooms required for the default then resize smaller, we should have a 'show more' button.
This works by changing the rendering to be slightly more efficient and only looping over what is seen (renderVisibleTiles(), using this.numTiles in place of tiles.length) and using a new setVisibleTilesWithin() function on the layout. Previously resizing the 3/10 case would be setting visibleTiles to ~8 instead of ~1 like it should (because the getter returns a default).
2020-06-30 19:14:36 -06:00
Travis Ralston
8cfe12b817
Add a layout reset function
...
For https://github.com/vector-im/riot-web/issues/14265
Intended to be accessed via `mx_RoomListStore2.resetLayout()`
2020-06-30 18:52:44 -06:00
Travis Ralston
f935303eeb
Change default number of rooms visible to 10
...
Fixes https://github.com/vector-im/riot-web/issues/14266
2020-06-30 18:51:59 -06:00
Jorik Schellekens
d2fb30a211
Hide scrollbar without pixel jumping
2020-06-30 23:52:13 +01:00
Weblate
0326dba1c2
Merge branch 'origin/develop' into Weblate.
2020-06-30 22:10:59 +00:00
Travis Ralston
2eaaf6a7bd
Merge pull request #4828 from matrix-org/travis/room-list/proliferation
...
Fix a number of proliferation issues in the new room list
2020-06-30 16:10:50 -06:00
Weblate
93d3411bed
Merge branch 'origin/develop' into Weblate.
2020-06-30 22:01:25 +00:00
J. Ryan Stinnett
b456529c3e
Merge pull request #4860 from matrix-org/jryans/read-marker-jump-invis-2
...
Fix jumping to read marker for events without tiles
2020-06-30 23:01:19 +01:00
Michael Telatynski
508dea1c89
Wire up Notifications context menu on room tile 2
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-30 22:53:30 +01:00
Michael Telatynski
198958dcdd
Iterate to match figma
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-30 22:32:59 +01:00
Michael Telatynski
cbd2a9cd35
Redo Iconized Context Menu styling to match Figma and simplify future a11y work by flattening the DOM
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-30 22:11:12 +01:00
Travis Ralston
9de42513dc
Handle sticky rooms when regenerating lists
...
`setKnownRooms` is called to regenerate the room list, and if we don't take the sticky room out of the equation we end up with the room being duplicated. So, to make this easy, we simply remove the sticky room and handle it after the fact.
2020-06-30 15:04:47 -06:00
Michael Telatynski
2a12fd1f6e
Fix User context menu alignment to match Figma
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-30 21:58:54 +01:00
Travis Ralston
da2fd35094
Add sanity check to ensure we don't accidentally proliferate rooms
...
This small check just ensures that we aren't about to blindly accept that the calling code knows what it is doing. There are some unknown cases where NewRoom gets fired for rooms we already know about, so in those cases we just change it to a PossibleTagChange which is what the caller likely intended.
Many of the edge cases are unknown, though this can happen for an invite being accepted (for example). It's easier to handle it here instead of tracking down every single possibility and fixing it higher up.
2020-06-30 14:36:11 -06:00
Travis Ralston
6a191ea3ee
Handle room invites as new rooms
...
We wouldn't have seen them before, so might as well treat them as new instead of tag changes.
2020-06-30 14:23:00 -06:00
Michael Telatynski
fe4cf9f9b4
Merge branches 'develop' and 't3chguy/room-list/2' of github.com:matrix-org/matrix-react-sdk into t3chguy/room-list/2
2020-06-30 21:16:37 +01:00
Travis Ralston
223ee0dbdb
Add locking to avoid index corruption
...
When a new room is added there's a fairly good chance that the other events being dispatched will happen in the middle of (for example) the room list being re-sorted. This commit wraps the entire handleRoomUpdate() function for the underlying algorithms in a lock so that if we're unlucky enough to get an update while we're sorting (as the ImportanceAlgorithm splices out what it is sorting) we won't scream about invalid index errors.
2020-06-30 13:55:53 -06:00
Travis Ralston
c7a83e65f0
Fix proliferation when joining upgraded rooms
...
We have to do a bit of a dance to return the sticky room to the list so we can remove it, if needed, and ensure that we generally swap the rooms out of the list.
2020-06-30 13:55:15 -06:00