Commit Graph
5965 Commits
Author SHA1 Message Date
Michael TelatynskiandGitHub f25e6813bb Mandate use of js-sdk/src/matrix import over js-sdk/src (#7933) 2022-03-01 20:42:05 +00:00
Michael TelatynskiandGitHub 7a32a68a0b Fix right panel soft crashes due to missing room prop (#7923) 2022-03-01 11:15:23 +00:00
16e67e7716 Wrap all EventTiles with a TileErrorBoundary and guard parsePermalink (#7916)
Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-03-01 08:41:48 +00:00
Michael TelatynskiandGitHub 482d756bd0 Ensure EventListSummary key does not change during backpagination (#7915) 2022-03-01 08:33:07 +00:00
Michael TelatynskiandGitHub 115e17b097 Fix positioning of the thread context menu (#7918) 2022-03-01 08:32:29 +00:00
Šimon BrandnerandGitHub df591ee835 Make everything use the KeyBindingManager (#7907) 2022-02-28 16:05:52 +00:00
Michael TelatynskiandGitHub 75e41b4c1c Basic threads analytics into Posthog MVP (#7871) 2022-02-28 14:11:14 +00:00
RobinandGitHub ece2b8572a Fix edge case in context menu chevron positioning (#7899)
* Fix edge case in context menu chevron positioning

Signed-off-by: Robin Townsend <robin@robin.town>

* Expand context menu positioning regression tests

Signed-off-by: Robin Townsend <robin@robin.town>
2022-02-25 17:49:57 +00:00
Michael TelatynskiandGitHub e762a6947d Fix bug with useRoomHierarchy tight-looping loadMore on error (#7893) 2022-02-24 22:52:04 +00:00
Michael TelatynskiandGitHub 4629d1e4f6 Fix emoji insertion in thread composer going to the main composer (#7895) 2022-02-24 17:01:42 +00:00
RobinandGitHub 85dc58a504 Try harder to keep context menus inside the window (#7863)
* Try harder to keep context menus inside the window

Signed-off-by: Robin Townsend <robin@robin.town>

* Use UIStore for window dimensions

Signed-off-by: Robin Townsend <robin@robin.town>

* Test ContextMenu positioning

Signed-off-by: Robin Townsend <robin@robin.town>
2022-02-24 10:25:27 -05:00
KerryandGitHub 6e143c313e eslint to 8.9.0 (#7889)
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-24 15:54:06 +01:00
Michael TelatynskiandGitHub c257bc3f7a Prefer RoomStateEvent.Update where possible as it fires far less (#7878) 2022-02-24 14:39:25 +00:00
Faye DuxovniandGitHub 36ae0ea49d Fix styling on reset button in verification dialog (#7888) 2022-02-24 09:31:14 -05:00
Michael TelatynskiandGitHub fe2fceb0ba Tidy up timelineRenderingType to be passed over context (#7872) 2022-02-24 11:25:13 +00:00
KerryandGitHub 889b0cebb2 Fix 'my threads' filtering to include participated threads (#7882)
* move js utils into directory

Signed-off-by: Kerry Archibald <kerrya@element.io>

* typescripterize js test-utils

Signed-off-by: Kerry Archibald <kerrya@element.io>

* move test utils to directory

Signed-off-by: Kerry Archibald <kerrya@element.io>

* move remaining mock functions to directory

Signed-off-by: Kerry Archibald <kerrya@element.io>

* update imports

Signed-off-by: Kerry Archibald <kerrya@element.io>

* missed copyright

Signed-off-by: Kerry Archibald <kerrya@element.io>

* threads test helpers

Signed-off-by: Kerry Archibald <kerrya@element.io>

* forgotten copyright

Signed-off-by: Kerry Archibald <kerrya@element.io>

* comments

Signed-off-by: Kerry Archibald <kerrya@element.io>

* fix threads helper unsigned

Signed-off-by: Kerry Archibald <kerrya@element.io>

* test filter creation when thread capabilities enabled

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-24 09:44:34 +01:00
Travis RalstonandGitHub d71922ca51 Support social login & password on soft logout page (#7879)
* Code style: Modernize

* Make Soft Logout page support Social Sign On

Fixes https://github.com/vector-im/element-web/issues/21099

This commit does a few things:
* Moves rendering of the flows to functions
* Adds a new login view enum for Password + SSO (mirroring logic from registration)
* Makes an absolute mess of the resulting diff

* Lint & i18n

* Remove spurious typing
2022-02-23 16:22:37 +00:00
J. Ryan StinnettandGitHub d8ac7cf202 Fix thread summary layout for narrow right panel timeline (#7838) 2022-02-23 14:03:46 +00:00
Šimon BrandnerandGitHub 93a9af7b3a Keybinding code unification #3 (#7850) 2022-02-23 09:12:04 +00:00
Michael TelatynskiandGitHub b0737b6e31 Throttle RoomState.members handlers (#7876) 2022-02-22 17:20:30 +00:00
GermainandGitHub be9ae7ea03 Fix unexpected threads appearing in thread panel (#7873) 2022-02-22 16:03:05 +00:00
Michael TelatynskiandGitHub 7fa01ffb06 Improve typing around event emitter handlers (#7816) 2022-02-22 12:18:08 +00:00
Michael TelatynskiandGitHub 8fccef86d8 Wire up drag-drop file uploads for the thread view (#7860) 2022-02-22 11:14:56 +00:00
Michael TelatynskiandGitHub 2a55d22916 Wire up CallEventGroupers for Search Results (#7866) 2022-02-22 10:39:08 +00:00
KerryandGitHub 5b8d440406 type Actions (#7862)
* type ViewHomPage action

Signed-off-by: Kerry Archibald <kerrya@element.io>

* type spacestore actions

Signed-off-by: Kerry Archibald <kerrya@element.io>

* lint

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add action types

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use new action types in stores

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove debug change

Signed-off-by: Kerry Archibald <kerrya@element.io>

* stricter keyboard shortcut types

Signed-off-by: Kerry Archibald <kerrya@element.io>

* action comments

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-22 10:04:27 +00:00
Michael TelatynskiandGitHub e2827b4082 Fix accessibility around the room list treeview and new search beta (#7856) 2022-02-21 15:46:13 +00:00
Michael TelatynskiandGitHub 5f5bb4a4fe Consolidate TileShape into TimelineRenderingType (#7843) 2022-02-18 15:56:05 +00:00
J. Ryan StinnettandGitHub acd051db43 Remove unused LeftPanel dimension tracking (#7845) 2022-02-18 14:46:33 +00:00
Michael TelatynskiandGitHub 29c1c8d1e1 Fix ScrollPanel data-scrollbar not responding to window resizing (#7841) 2022-02-18 13:03:16 +00:00
Johannes KrudeandGitHub 32e127e098 Add #/dm command to be used as a link in custom home.html (#7783) 2022-02-18 08:43:19 +00:00
Michael TelatynskiandGitHub 658590e5bc More posthog tracking around joining rooms and room search (#7807) 2022-02-17 18:03:27 +00:00
GermainandGitHub e997676ae2 Opt out from check for pre-join UISI for threads (#7834) 2022-02-17 17:34:20 +00:00
Michael TelatynskiandGitHub 4292381202 Fix layout inconsistencies with the room search minimized button (#7824) 2022-02-17 10:33:36 +00:00
Travis RalstonandGitHub aba61fa390 Revert "Support refresh tokens (#7802)"
This reverts commit 839593412c.
2022-02-16 12:32:38 -07:00
J. Ryan StinnettandGitHub 0dc1355441 Fix right panel data flow (#7811) 2022-02-16 11:19:28 +00:00
Michael TelatynskiandGitHub c2cf3a2d9e Fix room create tile not showing up with hidden events shown (#7810)
* Replace m.room.create with enum

* Fix room create tile not showing up with hidden events shown
2022-02-15 21:05:41 +00:00
Travis RalstonandGitHub 839593412c Support refresh tokens (#7802)
MSC: https://github.com/matrix-org/matrix-doc/pull/2918
Fixes https://github.com/vector-im/element-web/issues/18698
Fixes https://github.com/vector-im/element-web/issues/20648
**Requires https://github.com/matrix-org/matrix-js-sdk/pull/2178**

**Note**: There's a lot of logging in this PR. That is intentional to ensure that if/when something goes wrong we can chase the exact code path. It does not log any tokens - just where the code is going. Overall, it should be fairly low volume spam (and can be relaxed at a later date).

----

This approach uses indexeddb (through a mutex library) to manage which tab actually triggers the refresh, preventing issues where multiple tabs try to update the token. If multiple tabs update the token then the server might consider the account hacked and hard logout all the tokens.

If for some reason the timer code gets it wrong, or the user has been offline for too long and the token can't be refreshed, they should be sent to a soft logout screen by the server. This will retain the user's encryption state - they simply need to reauthenticate to get an active access token again.

This additionally contains a change to fix soft logout not working, per the issue links above.

Of interest may be the IPC approach which was ultimately declined in favour of this change instead: https://github.com/matrix-org/matrix-react-sdk/pull/7803
2022-02-15 20:16:49 +00:00
Michael TelatynskiandGitHub 8d4e83084c Remove Countly analytics integration (#7808) 2022-02-15 16:58:30 +00:00
Charlie CalendreandGitHub bb5f62edce Fix add existing space not showing any spaces (#7801) 2022-02-15 13:53:20 +00:00
Michael TelatynskiandGitHub 0cf15d27dc Fix edge cases around event list summaries with hidden events and redactions (#7797) 2022-02-14 23:58:29 +00:00
GermainandGitHub 15a9303d29 Improve thread partitioning for 2nd degree relations (#7748) 2022-02-10 15:18:55 +00:00
Michael TelatynskiandGitHub 0d6ef76605 Add analytics for the ViewRoom action (#7666) 2022-02-10 14:29:55 +00:00
Michael TelatynskiandGitHub 20e9d0c159 Wire up more posthog properties and interactions (#7763) 2022-02-10 13:53:07 +00:00
Michael TelatynskiandGitHub f6565bfbc8 Send how many favorited rooms a user has to Posthog (#7772) 2022-02-10 10:02:34 +00:00
KerryandGitHub 818fddd72c Add customisation point to disable space creation (#7766)
* mock matchMedia in jest setup

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use UIComponent.CreateSpaces in space panel

Signed-off-by: Kerry Archibald <kerrya@element.io>

* lint

Signed-off-by: Kerry Archibald <kerrya@element.io>

* hide add space in spacecontextmenu

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use UIComponent customistations in space oom view add space button

Signed-off-by: Kerry Archibald <kerrya@element.io>

* copyright

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-09 17:21:40 +01:00
Michael TelatynskiandGitHub 5620b83d34 Wire up more Posthog tracking (#7689) 2022-02-09 14:25:58 +00:00
Michael TelatynskiandGitHub 714136d4f7 Consolidate RedactionGrouper and HiddenEventGrouper into MELS (#7739) 2022-02-09 10:51:12 +00:00
Michael TelatynskiandGitHub 91ccbe4395 Add way to track posthog user properties and send numSpaces (#7716) 2022-02-09 09:21:56 +00:00
Michael TelatynskiandGitHub 2b72a2cc2f Fix view source and devtools showing hljs warnings (#7759) 2022-02-09 09:09:06 +00:00
Michael TelatynskiandGitHub 4394c162db Inhibit Room List keyboard pass-thru when the search beta is enabled (#7752) 2022-02-08 18:31:37 +00:00