Commit Graph

63228 Commits

Author SHA1 Message Date
Michael Telatynski
219f4fae3d Fix suggested rooms going missing (#9236) 2022-09-02 13:04:16 +00:00
Michael Weimann
ea0622a48e Require @typescript-eslint/eslint-plugin >= 5.35.1 (#9233) 2022-09-02 11:24:56 +02:00
Michael Telatynski
3e8da6ffa4 Fix tooltip infinitely recursing (#9235) 2022-09-02 09:03:53 +00:00
Michael Weimann
d1237b2c98 Remove e2e test exclude from tsconfig (#9234) 2022-09-02 10:24:07 +02:00
Michael Weimann
b2704d5bde Link contributing guide to Element Web (#9220)
* Link contributing to Element Web

* Update README.md

Co-authored-by: Travis Ralston <travisr@matrix.org>

* Update README.md

Co-authored-by: Travis Ralston <travisr@matrix.org>

Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-09-01 13:49:52 +02:00
Michael Weimann
143632adb0 Add 2022 code style (#23153)
* Add 2022 code style

* Update CONTRIBUTING/code_style
2022-09-01 13:49:44 +02:00
J. Ryan Stinnett
380653f5df Fix plain text export saving (#9230)
This tweaks the MIME type of plain text exports so that the browser actually
saves the file.
2022-09-01 11:12:01 +01:00
Travis Ralston
7b904cd89b Update CHANGELOG.md 2022-08-31 11:49:05 -06:00
Travis Ralston
c8686b69bd Update changelog 2022-08-31 11:30:35 -06:00
RiotRobot
7ade21ad9b Reset matrix-react-sdk back to develop branch 2022-08-31 16:49:07 +01:00
RiotRobot
900df8ce16 Reset matrix-js-sdk back to develop branch 2022-08-31 16:48:56 +01:00
RiotRobot
d50454ece6 Merge branch 'master' into develop 2022-08-31 16:48:45 +01:00
RiotRobot
4292bb1c28 v1.11.4 v1.11.4 2022-08-31 16:44:24 +01:00
RiotRobot
320c58dbfc Prepare changelog for v1.11.4 2022-08-31 16:44:23 +01:00
RiotRobot
9d830f4837 Upgrade matrix-react-sdk to 3.53.0 2022-08-31 16:41:14 +01:00
RiotRobot
269ffe385a Upgrade matrix-js-sdk to 19.4.0 2022-08-31 16:40:28 +01:00
RiotRobot
d85d79d92b Reset matrix-js-sdk back to develop branch 2022-08-31 16:38:16 +01:00
RiotRobot
49729d6d95 Resetting package fields for development 2022-08-31 16:37:15 +01:00
RiotRobot
c89c02f4e0 Merge branch 'master' into develop
# Conflicts:
#	src/events/EventTileFactory.tsx
#	yarn.lock
2022-08-31 16:36:50 +01:00
RiotRobot
e064f05d88 v3.53.0 2022-08-31 16:29:39 +01:00
RiotRobot
9e44ad44c7 Prepare changelog for v3.53.0 2022-08-31 16:29:38 +01:00
RiotRobot
c88a4bfad9 Upgrade matrix-js-sdk to 19.4.0 2022-08-31 16:28:09 +01:00
Travis Ralston
37a527c61f Convert several internal maps to real maps 2022-08-31 09:21:11 -06:00
Kerry
54a66bd242 Device manager - scroll to filtered list from security recommendations (PSG-640) (#9227)
* scroll to filtered list from security recommendations

* test sessionmanager scroll to

* stable snapshot

* fix strict errors

* prtidy

* use smooth scrolling
2022-08-31 14:34:22 +02:00
Robin
0d6a550c33 Prepare for Element Call integration (#9224)
* Improve accessibility and testability of Tooltip

Adding a role to Tooltip was motivated by React Testing Library's
reliance on accessibility-related attributes to locate elements.

* Make the ReadyWatchingStore constructor safer

The ReadyWatchingStore constructor previously had a chance to
immediately call onReady, which was dangerous because it was potentially
calling the derived class's onReady at a point when the derived class
hadn't even finished construction yet. In normal usage, I guess this
never was a problem, but it was causing some of the tests I was writing
to crash. This is solved by separating out the onReady call into a start
method.

* Rename 1:1 call components to 'LegacyCall'

to reflect the fact that they're slated for removal, and to not clash
with the new Call code.

* Refactor VideoChannelStore into Call and CallStore

Call is an abstract class that currently only has a Jitsi
implementation, but this will make it easy to later add an Element Call
implementation.

* Remove WidgetReady, ClientReady, and ForceHangupCall hacks

These are no longer used by the new Jitsi call implementation, and can
be removed.

* yarn i18n

* Delete call map entries instead of inserting nulls

* Allow multiple active calls and consolidate call listeners

* Fix a race condition when creating a video room

* Un-hardcode the media device fallback labels

* Apply misc code review fixes

* yarn i18n

* Disconnect from calls more politely on logout

* Fix some strict mode errors

* Fix another updateRoom race condition
2022-08-30 15:13:39 -04:00
Robin
ed1ecde348 Simplify the Jitsi wrapper (#23158)
* Remove ClientReady and WidgetReady hacks from the Jitsi wrapper

By registering widget API listeners earlier and simply blocking the
execution of all actions until the Jitsi wrapper has finished setting
up, sending a WidgetReady action becomes no longer necessary.

The ClientReady action is likewise not necessary, because in practice
getting a ready event means the client and the widget have already been
happily talking back and forth for capability negotiation.

* Rename audioDevice/videoDevice to audioInput/videoInput

* Combine HangupCall and ForceHangupCall into one action

* Apply misc code review suggestions
2022-08-30 15:13:37 -04:00
Kerry
50f6986f6c Device manager - updated dropdown style in filtered device list (PSG-689) (#9226)
* add FilterDropdown wrapper on Dropdown for filter styles

* test and fix strict errors

* fix comment
2022-08-30 19:11:33 +02:00
Kat Gerasimova
26077db644 Update triage-labelled.yml (#22822) 2022-08-30 10:01:23 +01:00
Kerry
825a0af4a9 Device manager - device type and verification icons on device tile (PSG-637) (#9197)
* add unknown device icon

* add device type and verification icon component

* test

* stylelint

* fix securitycard spacing

Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-08-29 10:48:00 +00:00
Michael Telatynski
5aae974e93 Make use of js-sdk roomNameGenerator to handle i18n for generated room names (#9209)
* Make use of js-sdk roomNameGenerator to handle i18n for generated room names

* DRY

* Make tsc happier

* Update MatrixClientPeg.ts
2022-08-26 11:23:56 +01:00
Gustavo Santos
27de00a859 Add missing space in SecurityRoomSettingsTab (#9222) 2022-08-26 06:39:30 +00:00
Travis Ralston
e0d5b11bab Add a larger buffer to useLatestResult's test (#9178)
Should fix https://github.com/vector-im/element-web/issues/23014

With only a 5ms buffer previously it was possible for Jest to get overwhelmed with the 1500 tests it needs to run. We raise this to 20ms to give extra time to settle.

Even with the high sleep times this won't be the longest running test, so should be fine.

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-08-25 14:49:39 -06:00
RiotRobot
6232c3a471 v1.11.4-rc.2 v1.11.4-rc.2 2022-08-25 16:55:32 +01:00
RiotRobot
1bca364a03 Prepare changelog for v1.11.4-rc.2 2022-08-25 16:55:31 +01:00
RiotRobot
89691b19fd Upgrade matrix-react-sdk to 3.53.0-rc.2 2022-08-25 16:54:00 +01:00
RiotRobot
aace3a8c28 v3.53.0-rc.2 2022-08-25 16:50:13 +01:00
RiotRobot
e55d65327f Prepare changelog for v3.53.0-rc.2 2022-08-25 16:50:13 +01:00
ElementRobot
877fa9c5c4 Fix progress bar regression throughout the app (#9219) (#9221)
* Fix useSmoothAnimation enablement not working properly by getting rid of it

Passing duration=0 is more logical and less superfluous

* Refactor UploadBar to handle state more correctly

* Change ProgressBar to new useSmoothAnimation signature and default animated to true for consistency

* Add type guard

* Make types stricter

* Write tests for the ProgressBar component

* Make the new test conform to tsc --strict

* Update UploadBar.tsx

* Update UploadBar.tsx

* Update UploadBar.tsx

(cherry picked from commit 9b99c967f4)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-08-25 16:47:48 +01:00
Michael Telatynski
9b99c967f4 Fix progress bar regression throughout the app (#9219)
* Fix useSmoothAnimation enablement not working properly by getting rid of it

Passing duration=0 is more logical and less superfluous

* Refactor UploadBar to handle state more correctly

* Change ProgressBar to new useSmoothAnimation signature and default animated to true for consistency

* Add type guard

* Make types stricter

* Write tests for the ProgressBar component

* Make the new test conform to tsc --strict

* Update UploadBar.tsx

* Update UploadBar.tsx

* Update UploadBar.tsx
2022-08-25 16:39:00 +01:00
Michael Telatynski
6407cd4c0d Reuse empty string & space string logic for event types in devtools (#9218)
* Reuse empty string & space string logic for event types in devtools

* Fix edge case behaviours

* Make tsc quality higher

* Make remainder of tsc happy
2022-08-25 11:08:52 +00:00
Michael Telatynski
4c94155ff0 Improve Cypress & Percy stability (#9217)
* Improve Cypress & Percy stability

* Update percy snapshot width
2022-08-25 10:46:43 +01:00
Michael Telatynski
ec0b2b551a Add backport automation (#9214) 2022-08-24 12:45:35 +01:00
Michael Telatynski
44e01823a3 Tweak tsc-strict config (#23148) 2022-08-24 11:11:43 +01:00
Michael Telatynski
e11b0cef47 Add static analysis for tsc --strict (#9212)
* Add static analysis for tsc --strict

* Make tsconfig legal

* Make tsconfig more legal

* Update static_analysis.yaml

* Test strict mode check

* Revert "Test strict mode check"

This reverts commit 879df9879738fabfa02466ce07634a0f5c132311.
2022-08-24 11:08:26 +01:00
ElementRobot
fe409d992c Merge pull request #9215 from matrix-org/actions/upgrade-deps
Upgrade dependencies
2022-08-24 11:00:29 +01:00
Michael Telatynski
13c9755ff3 Make types happier 2022-08-24 10:28:59 +01:00
Michael Telatynski
95e78f6210 Merge branch 'actions/upgrade-deps' of github.com:matrix-org/matrix-react-sdk into actions/upgrade-deps
 Conflicts:
	yarn.lock
2022-08-24 10:24:50 +01:00
Michael Telatynski
6741ee61d8 Add backport automation (#23142) 2022-08-23 16:59:29 +01:00
Michael Telatynski
a9d1fd7cdf Add static analysis for tsc --strict (#23140) 2022-08-23 14:02:48 +01:00
t3chguy
094b8cd475 [create-pull-request] automated change 2022-08-23 10:14:09 +00:00