Commit Graph

63001 Commits

Author SHA1 Message Date
Florian Duros
d6e447b934 Load RTE component only when needed (#9804)
Use react lazy to load rte component
2022-12-20 14:59:18 +00:00
maheichyk
4ef11a03cd Merge branch 'develop' into widget_state_no_update_invitation_room 2022-12-20 17:21:56 +03:00
Richard van der Hoff
26a01aba00 Merge pull request #9789 from matrix-org/rav/edited_events
Ensure that events are correctly updated when they are edited.
2022-12-20 14:00:06 +00:00
Richard van der Hoff
ad7c002f4d Merge remote-tracking branch 'origin/develop' into rav/edited_events 2022-12-20 11:20:03 +00:00
Richard van der Hoff
dc29317445 Improve display of edited events 2022-12-20 11:19:47 +00:00
Richard van der Hoff
fa01a6211e verified can be null 2022-12-20 11:19:47 +00:00
Richard van der Hoff
c34a2bfb8c Call onHeightChanged from componentDidUpdate
... to ensure that we don't call it if there was no change to the verification
status.
2022-12-20 11:19:47 +00:00
mikhail.aheichyk
f1f61cb40d ts error fix 2022-12-20 13:41:13 +03:00
mikhail.aheichyk
7f0621e84d ts error fix 2022-12-20 12:52:31 +03:00
mikhail.aheichyk
e0b6e52d9c prettier 2022-12-20 12:20:40 +03:00
mikhail.aheichyk
71d06b4d59 Widget receives updated state events if user is re-invited into the room. 2022-12-20 11:03:50 +03:00
renovate[bot]
910aa0b813 Update cypress-io/github-action action to v5 (#9791)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-20 05:06:34 +00:00
Kerry
d3ab11928b Use compound colours for verification badges (#9794)
* update e2e colour variables to compound colours

* use e2e colour vars for e2e icons
2022-12-20 02:07:28 +00:00
Kerry
0485b74acb Device manager - design tweaks (#9768)
* hover style on dropdown

* hover states

* device details spacing

* device details h3 -> h4

* missing fullstops

* update snapshots for new copy

* device details expand icon bigger

* hide current session security card when details expanded

* filter dropdown padding and hover state

* update cypress selector for device detail heading
2022-12-20 01:17:05 +00:00
Michael Weimann
2152f2ab8b Stop broadcast playback when stopping the broadcast (#9795) 2022-12-19 16:05:34 +00:00
Richard van der Hoff
c0e0078b6e Remove unused property from IConfigOptions (#9792)
accidentally added in #9759
2022-12-19 14:55:13 +00:00
Richard van der Hoff
ddfa627ce6 Cypress: add a way to specify the prefix for userIDs (#9787)
This helps a lot with debugging tests where there are multiple users.
2022-12-19 13:12:01 +00:00
Germain
3ec75fdd3c Remove RoomList sorting settings (#9781) 2022-12-19 11:57:57 +00:00
Germain
8541e1c4b5 Change room list sorting to activity and unread first by default (#9773) 2022-12-19 10:42:58 +00:00
Michael Weimann
35a187a231 Handle starting a call while listen to a broadcast (#9764) 2022-12-19 08:44:19 +00:00
renovate[bot]
af3715821b Update dependency maplibre-gl to v2 (#9699)
* Update dependency maplibre-gl to v2

* update types and mocks for maplibre 2.0

* prettier + strict fix

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kerry Archibald <kerrya@element.io>
2022-12-18 23:17:15 +00:00
Richard van der Hoff
46e47a821e Clean up signature of verifyEvent
It doesn't need to be `async`, and it doesn't need us to pass in the event
every time.
2022-12-17 23:52:55 +00:00
Richard van der Hoff
e3f591e7d2 Return the password from getBot
... so that we can use it to log in for a second time
2022-12-17 23:52:55 +00:00
Richard van der Hoff
9901219194 rip out unused mkPresence
it only serves to make the strict type checker complain
2022-12-17 23:52:54 +00:00
Michael Weimann
9584388171 Improve some voice broadcast tests (#9786) 2022-12-16 18:23:29 +00:00
Richard van der Hoff
6ec6d44c96 Add a config flag to enable the rust crypto-sdk (#9759)
This PR adds an option to `config.json` which will make the js-sdk use the rust crypto sdk, instead of the libolm implementation.

To use it, you need to add something like this to `config.json`:

```
    "features": {
        "feature_rust_crypto": true
    },
```

We don't (yet) have any way to migrate a device between implementations, so the setting that was in use when you log in is persisted to the device; it is *visible* via the labs section but cannot currently be changed.

This is part of https://github.com/vector-im/element-web/issues/21972, and enables the functionality added to the js-sdk in https://github.com/matrix-org/matrix-js-sdk/pull/2969.
2022-12-16 17:10:26 +00:00
renovate[bot]
bfaced2172 Update typescript-eslint monorepo to v5.46.1 (#9769)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-16 15:19:18 +00:00
Michael Telatynski
f1e8e7f140 Enable @typescript-eslint/explicit-member-accessibility on /src (#9785)
* Enable `@typescript-eslint/explicit-member-accessibility` on /src

* Prettier
2022-12-16 12:29:59 +00:00
Michael Weimann
51554399fb Implement broadcast message preview (#9762) 2022-12-16 11:01:16 +00:00
Michael Weimann
6205c70462 Display broadcast live state only depending on the recording (#9774) 2022-12-16 09:55:54 +00:00
Michael Kaye
6bc4523cf7 Use full suite title when cypress tests contain nested describe()s. (#9777) 2022-12-15 19:21:39 +00:00
Faye Duxovni
4724506320 Improve decryption error UI by consolidating error messages and providing instructions when possible (#9544)
* Improve decryption error UI by consolidating error messages and providing instructions when possible

* Fix TS strict errors

* Rename .scss to .pcss

* Avoid accessing clipboard, Cypress doesn't like it

* Display DecryptionFailureBar alongside other AuxPanel bars

* Add comments

* Add small margin off-screen for visible decryption failures

* Fix some more TS strict errors

* Add unit tests for DecryptionFailureBar

* Add button to resend key requests manually

* Remove references to matrix-js-sdk crypto internals

* Add hysteresis to visible decryption failures

* Add comment

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Add comment

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Don't create empty div if we're not showing resend requests button

* cancel updateSessions on unmount

* Update unit tests

* Fix lint and implicit any

* Simplify visible event bounds checking

* Adjust cypress test descriptions

* Add percy snapshots

* Update src/components/structures/TimelinePanel.tsx

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Add comments on TimelinePanel IState

* comment

* Add names to percy snapshots

* Show Resend Key Requests button when there are sessions that haven't already been requested via this bar

* We no longer request keys from senders

* update i18n

* update expected text in cypress test

* don't download keys ourselves, update device info in response to updates from client

* fix ts strict errors

* visibledecryptionfailures undefined handling

* Fix implicitAny errors

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-12-15 17:24:33 +00:00
Michael Kaye
b728b27435 Report cypress test results into testrail. (#9685)
* Reduce cypress size/scope

* Emit cypress reports in junit-compatible format.

* Clean implementation of upload

* Append a warning if not all tests that testrail knows of are run.

* Only run testrail if on develop (like percy).

* Re-enable full test run.

* Update cypress.config.ts

* Ensure SUITE_ID is passed.

* Fix quoting on SUITE_ID, add environment

* Update .github/workflows/cypress.yaml

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* re-add mocha-junit-reporter (was dropped in the merge)

* Prettifier on newly created file.

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-12-15 12:04:03 +00:00
Michael Weimann
ab560bba40 Implement small broadcast PiP (#9755) 2022-12-15 11:43:01 +00:00
Kerry
9f795a4c5f Regression test: switch between dm rooms without loader (#9752)
* switching dm rooms without loader regression test

* lint

* more specific js-sdk import

* add wait for room list to settle before asserting

* dont use js-sdk enum
2022-12-15 01:30:53 +00:00
renovate[bot]
e857fe06ac Update dependency @types/jest to v29.2.4 (#9756)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-14 22:52:54 +00:00
Richard van der Hoff
7516c7f420 settings.md: Fix formatting in an example (#9758) 2022-12-14 18:34:23 +00:00
Michael Weimann
ce554276db Prevent to start two broadcasts at the same time (#9744) 2022-12-14 17:08:42 +00:00
renovate[bot]
16e92a4d8c Update definitelyTyped (#9757)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-14 15:50:45 +00:00
renovate[bot]
a7124c935e Update dependency @types/node to v16.18.8 (#23994)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-14 13:24:20 +00:00
Robin
8869374c6b Honor font settings in Element Call (#9751)
Because this encodes font settings into widget URLs at the time that the client first loads a call, this has the consequence that users may need to restart their client to see font setting changes take effect in Element Call. For users who rely on these settings for accessibility, it's a lot better than nothing, though.
2022-12-14 13:23:26 +00:00
Michael Weimann
8a0b62c7cd Add prettier formatting to .git-blame-ignore-revs (#9753) 2022-12-14 11:19:37 +00:00
renovate[bot]
7f067903bf Update dependency @types/jest to v29.2.4 (#23989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-14 10:56:04 +00:00
renovate[bot]
60d805e4ce Update typescript-eslint monorepo to v5.46.0 (#23990)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-14 10:55:01 +00:00
Andy Balaam
c4806b9c4f Merge pull request #23987 from vector-im/weeman1337/prettier-ref-ignore
Add prettier formatting to .git-blame-ignore-revs
2022-12-14 10:22:37 +00:00
RiotRobot
acbe597e32 v1.11.17-rc.1 v1.11.17-rc.1 2022-12-14 09:43:50 +00:00
RiotRobot
26c101d69a Prepare changelog for v1.11.17-rc.1 2022-12-14 09:43:49 +00:00
RiotRobot
4e9ba16101 Exclude CHANGELOG from prettier and undo what it did 2022-12-14 09:42:39 +00:00
RiotRobot
61253c3497 Upgrade matrix-react-sdk to 3.63.0-rc.2 2022-12-14 09:37:54 +00:00
RiotRobot
96c0a373e3 Upgrade matrix-js-sdk to 23.0.0-rc.1 2022-12-14 09:36:03 +00:00