Commit graph

3288 commits

Author SHA1 Message Date
Michael Telatynski
0a9b4aecd3
Tweak default right panel size to be 320px except for maximised widgets at 420px (#110)
* Add extra buttons to room summary card

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove right panel tabs in favour of X button on each panel

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update room summary card header to align close button correctly

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix typo in pinned messages heading

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Improve coverage

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Tweak default right panel size to be 320px except for video rooms/maximised widgets at 420px

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Track panel resizing in analytics

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix import cycle

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Improve coverage

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update test/components/structures/MainSplit-test.tsx

Co-authored-by: David Baker <dbkr@users.noreply.github.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: David Baker <dbkr@users.noreply.github.com>
2024-10-04 09:41:00 +00:00
David Baker
67cb8b7590
Force verification even for refreshed clients (#44)
* Force verification even for refreshed cients

Set a flag on login to remember that the device needs to be verified
so that we don't forget if the user refreshes the page, but still allow
user with an existing unverified session to stay logged in.

* Hopefully make matrixchat tests pass?

Much, much tweaking to make the matrixchat tests pass again. Should
hopefully make them a bit more solid in general with judicious use of
waitFor rather than flushPromises(). Also lots of fun to stop the state
bleeding between tests.

* Manual yarn.lock manipulation

to hopefully resolve infinite package sadness

* Make final test pass(?)

Mock out the createClient method to return the same client, because
we've mocked the peg to always return that client, so if we let the
code make another one having still overridden the peg, everything becomes
cursed.

Also mock out the autodiscovery stuff rather than relying on fetch-mock.

* another waitFor

* death to flushPromises

* Put the logged in dispatch back

Actually it breaks all sorts of other things too, having fixed all the
MatrixChat tests (although this is useful anyway).

* Try displaying the screen in onClientStarted instead

* Put post login screen back in logged in

but move ready transition to avoid flash of main UI

* Rejig more in the hope it does the right thing

* Make hook work before push rules are fetched

* Add test for unskippable verification

* Add test for use case selection

* Fix test

* Add playwright test for unskippable verification

* Remove console log

* Add log message to log line

* Add tsdoc

* Use useTypedEventEmitter

* Remove commented code

* Use catch instead of empty then on unawaited promises

or in one case just await it because the caller was async anyway

* Add new mock
2024-10-03 08:55:06 +00:00
renovate[bot]
107ba592c8
Update dependency @types/express to v5 (#117)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 19:08:37 +00:00
renovate[bot]
9019c5fad3
Update dependency @sentry/browser to v8.32.0 (#116)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 17:23:11 +00:00
RiotRobot
c44555cdf0 Upgrade dependency to matrix-react-sdk@3.112.0-rc.0 2024-10-01 15:08:37 +00:00
RiotRobot
60cf3ce192 Upgrade dependency to matrix-js-sdk@34.7.0-rc.0 2024-10-01 14:56:42 +00:00
renovate[bot]
7721c9e410
Update dependency typescript to v5.6.2 2024-09-26 14:42:40 +00:00
renovate[bot]
81192f6989
Update dependency typescript to v5.6.2 (#71)
* Update dependency typescript to v5.6.2

* Fix TS errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
2024-09-26 14:25:49 +00:00
RiotRobot
11d70feb90 Reset matrix-js-sdk back to develop branch 2024-09-24 12:53:07 +00:00
RiotRobot
fed93f5759 Reset matrix-react-sdk back to develop branch 2024-09-24 12:52:57 +00:00
renovate[bot]
42b6703f9f
Update dependency @types/node to v16.18.108 2024-09-23 13:49:14 +00:00
renovate[bot]
a1bdceed3e
Update dependency @types/node to v18.19.50 (#65)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 12:59:52 +00:00
renovate[bot]
a37d5d6a2b
Update dependency @types/react to v17.0.82 2024-09-23 10:12:31 +00:00
renovate[bot]
47a9377d63
Update dependency @types/react to v17.0.82 (#66)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 09:47:09 +00:00
renovate[bot]
d56b9ed9bd
Update dependency eslint to v8.57.1 (#68)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 08:13:49 +00:00
David Baker
f81f82c404
Merge pull request #28083 from element-hq/renovate/major-css
Update dependency postcss-mixins to v11
2024-09-20 09:10:27 +00:00
David Baker
7076859a02
Merge pull request #28078 from element-hq/renovate/stylelint
Update dependency stylelint-scss to v6.6.0
2024-09-20 08:35:42 +00:00
renovate[bot]
4be533813e
Update dependency @sentry/browser to v8.30.0 (#69)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-19 22:42:29 +00:00
renovate[bot]
19166b57ba
Update dependency chokidar to v4 2024-09-19 22:31:58 +00:00
renovate[bot]
b055908fa4
Update dependency css-tree to v3 (#74)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-19 22:00:02 +00:00
David Baker
8a4990b56a
Merge pull request #28082 from element-hq/renovate/concurrently-9.x
Update dependency concurrently to v9
2024-09-19 21:59:41 +00:00
renovate[bot]
d4c942d813
Update playwright monorepo to v1.47.1 (#73)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-19 21:58:55 +00:00
renovate[bot]
ed7e02ab79
Update dependency stylelint-scss to v6.6.0 (#70)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-19 21:21:12 +00:00
David Baker
773754df3a
Merge pull request #28077 from element-hq/renovate/eslint-monorepo
Update dependency eslint to v8.57.1
2024-09-19 21:20:06 +00:00
renovate[bot]
87f2b6fb0b
Update dependency postcss-mixins to v11 2024-09-19 19:27:16 +00:00
renovate[bot]
5a84da09cc
Update dependency concurrently to v9 2024-09-19 19:26:50 +00:00
renovate[bot]
473fce9b8b
Update dependency stylelint-scss to v6.6.0 2024-09-19 19:25:34 +00:00
renovate[bot]
4535503e71
Update dependency eslint to v8.57.1 2024-09-19 19:25:14 +00:00
renovate[bot]
a2f9b5efdf
Update all non-major dependencies 2024-09-19 19:23:53 +00:00
renovate[bot]
cf8fe20452
Update dependency express to v4.20.0 [SECURITY] (#26)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-19 17:03:41 +00:00
David Baker
07b42061a1 Fix yarn lockfile 2024-09-18 13:46:37 +01:00
David Baker
191b1dd570 Merge remote-tracking branch 'origin/staging' into develop 2024-09-18 13:44:42 +01:00
RiotRobot
e3a4b9ebad Upgrade dependency to matrix-react-sdk@3.109.0 2024-09-10 12:54:54 +00:00
RiotRobot
9520798c7f Upgrade dependency to matrix-js-sdk@34.5.0 2024-09-10 12:32:32 +00:00
David Baker
bad5edae68 Update lockfile too 2024-09-06 14:58:02 +01:00
Florian Duros
bce710e34e
Upgrade @matrix-org/analytics-events to 0.25.0 2024-09-05 16:54:34 +02:00
renovate[bot]
26399237f6
Update browserslist (#12953)
* Update browserslist

* Increment version in user-agent string

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: R Midhun Suresh <hi@midhun.dev>
2024-09-05 14:32:02 +00:00
David Baker
0801898ada
Merge pull request #28005 from element-hq/renovate/major-css
Update dependency postcss-preset-env to v10
2024-09-04 14:38:46 +00:00
David Baker
885b70650d
Merge pull request #27971 from element-hq/renovate/npm-webpack-vulnerability
Update dependency webpack to v5.94.0 [SECURITY]
2024-09-04 12:47:50 +00:00
David Baker
d40b99b2a8
Merge pull request #28004 from element-hq/renovate/husky-9.x
Update dependency husky to v9
2024-09-04 12:16:45 +00:00
David Baker
f09554a5f3
Merge pull request #28002 from element-hq/renovate/eslint-plugin-unicorn-55.x
Update dependency eslint-plugin-unicorn to v55
2024-09-04 11:48:13 +00:00
renovate[bot]
727fca80b9
Update dependency postcss-preset-env to v10 2024-09-04 09:38:20 +00:00
renovate[bot]
2325911922
Update dependency webpack to v5.94.0 [SECURITY] 2024-09-04 09:37:37 +00:00
David Baker
39894a26f9
Merge pull request #28000 from element-hq/renovate/stylelint
Update stylelint
2024-09-04 09:19:35 +00:00
David Baker
4239abadc4
Merge pull request #27999 from element-hq/renovate/babel-monorepo
Update babel monorepo
2024-09-04 09:19:04 +00:00
David Baker
d83534548a
Merge pull request #27998 from element-hq/renovate/react-types
Update dependency @types/react-transition-group to v4.4.11
2024-09-04 08:57:29 +00:00
renovate[bot]
9d8c5b6a1c
Update dependency @testing-library/jest-dom to v6.5.0 (#12957)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 23:36:25 +00:00
renovate[bot]
33404e42fd
Update stylelint (#12958)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 23:35:18 +00:00
renovate[bot]
df82c8a84f
Update dependency @sentry/browser to v8.27.0 (#12956)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 21:21:20 +00:00
renovate[bot]
9a24e3df2d
Update dependency husky to v9 2024-09-03 21:09:04 +00:00
renovate[bot]
7bb7934a85
Update dependency eslint-plugin-unicorn to v55 2024-09-03 21:08:35 +00:00
renovate[bot]
a6e78dbf6c
Update stylelint 2024-09-03 21:08:05 +00:00
renovate[bot]
5e555ff44f
Update babel monorepo 2024-09-03 21:07:43 +00:00
renovate[bot]
20f3425e4e
Update dependency @types/react-transition-group to v4.4.11 2024-09-03 21:07:25 +00:00
renovate[bot]
bc7655c930
Update dependency @types/node to v16.18.106 2024-09-03 21:07:07 +00:00
renovate[bot]
892b297968
Update babel monorepo (#12955)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 21:04:12 +00:00
renovate[bot]
4769985315
Update dependency @types/node to v18.19.47 (#12954)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 21:03:53 +00:00
RiotRobot
30d7e5c0b2 Upgrade dependency to matrix-react-sdk@3.109.0-rc.0 2024-09-03 12:43:32 +00:00
RiotRobot
85a2a0893a Upgrade dependency to matrix-js-sdk@34.5.0-rc.0 2024-09-03 12:32:56 +00:00
David Langley
579cb6b03c
Update to 2.37.9 (#12943) 2024-09-02 16:35:36 +00:00
renovate[bot]
5ee3f4cb9e
Update dependency matrix-widget-api to v1.9.0 (#27980)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-30 17:06:28 +01:00
Michael Weimann
19f8b44745
Implement download_file in widget driver (#12931)
* Implement download_file in widget driver

Signed-off-by: Michael Weimann <michael.weimann@nordeck.net>

* Fix test URIs

Signed-off-by: Michael Weimann <michael.weimann@nordeck.net>

* Use download-file branch as widget-api source

Signed-off-by: Michael Weimann <michael.weimann@nordeck.net>

* bump matrix-widget-api to 1.9.0

Signed-off-by: Kim Brose <kim.brose@nordeck.net>

* prettier

Signed-off-by: Kim Brose <kim.brose@nordeck.net>

---------

Signed-off-by: Michael Weimann <michael.weimann@nordeck.net>
Signed-off-by: Kim Brose <kim.brose@nordeck.net>
Co-authored-by: Kim Brose <kim.brose@nordeck.net>
2024-08-30 14:45:25 +00:00
renovate[bot]
6fb8f6e66c
Update all non-major dependencies (#12909)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 15:14:26 +00:00
RiotRobot
addb335281 Reset matrix-js-sdk back to develop branch 2024-08-27 12:57:54 +00:00
RiotRobot
2cabeb68ce Reset matrix-react-sdk back to develop branch 2024-08-27 12:57:46 +00:00
RiotRobot
0a1c4b9e60 Merge branch 'master' into develop 2024-08-27 12:57:32 +00:00
RiotRobot
9da1263581 Upgrade dependency to matrix-react-sdk@3.108.0 2024-08-27 12:46:47 +00:00
RiotRobot
5b91dd88e1 Reset matrix-js-sdk back to develop branch 2024-08-27 12:44:59 +00:00
RiotRobot
e66807e052 Merge branch 'master' into develop 2024-08-27 12:44:50 +00:00
RiotRobot
b90b0617dc Upgrade dependency to matrix-js-sdk@34.4.0 2024-08-27 12:39:27 +00:00
RiotRobot
2be2763167 Upgrade dependency to matrix-js-sdk@34.4.0 2024-08-27 12:39:20 +00:00
Florian Duros
e599428b74
Ignore desktop for minimum browser support. (#12928) 2024-08-27 09:41:49 +00:00
renovate[bot]
1b70b22c27
Update typescript-eslint monorepo to v7.18.0 (#12924)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 20:11:56 +00:00
renovate[bot]
405060cb6a
Update typescript-eslint monorepo to v7.18.0 2024-08-23 15:41:02 +00:00
renovate[bot]
8381e13338
Update stylelint (#12922)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 15:24:02 +00:00
renovate[bot]
5b8628ecd8
Update babel monorepo 2024-08-23 13:23:20 +00:00
renovate[bot]
69da1754cb
Update babel monorepo (#12920)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 13:06:56 +00:00
renovate[bot]
0848237706
Update dependency @types/sanitize-html to v2.13.0 (#12921)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 12:49:07 +00:00
renovate[bot]
a0875c9aae
Update stylelint 2024-08-23 12:48:14 +00:00
renovate[bot]
135d94c73d
Update playwright monorepo to v1.46.1 (#12918)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 10:13:50 +00:00
renovate[bot]
bb8b256bbb
Update all non-major dependencies 2024-08-23 10:08:33 +00:00
renovate[bot]
670ed8155a
Update dependency @sentry/browser to v8.26.0 (#12915)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 18:59:04 +00:00
renovate[bot]
5ff2e8fa16
Update definitelyTyped 2024-08-22 14:38:24 +00:00
renovate[bot]
35fb0689f1
Update dependency axe-core to v4.10.0 (#12916)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 14:23:14 +00:00
renovate[bot]
9671545f1b
Update dependency eslint-plugin-unicorn to v55 (#12913)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 13:25:14 +00:00
renovate[bot]
5e56ce7f19
Update dependency husky to v9 (#12914)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 13:07:41 +00:00
renovate[bot]
fdc5acd5a4
Update dependency @types/react-transition-group to v4.4.11 (#12912)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-21 15:29:01 +00:00
renovate[bot]
72d5659e29
Update dependency @types/node to v18.19.44 (#12911)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-21 15:21:11 +00:00
RiotRobot
c4762d6c86 Upgrade dependency to matrix-react-sdk@3.108.0-rc.0 2024-08-21 13:11:06 +00:00
RiotRobot
a193d8b726 Upgrade dependency to matrix-js-sdk@34.4.0-rc.1 2024-08-21 12:58:30 +00:00
RiotRobot
aee2ca224d Upgrade dependency to matrix-js-sdk@34.4.0-rc.1 2024-08-21 12:58:25 +00:00
RiotRobot
82d8d734b1 Upgrade dependency to matrix-js-sdk@34.4.0-rc.0 2024-08-20 13:47:41 +00:00
RiotRobot
2a11fd5beb Upgrade dependency to matrix-js-sdk@34.4.0-rc.0 2024-08-20 13:47:34 +00:00
RiotRobot
2bca0fd08c Reset matrix-js-sdk back to develop branch 2024-08-20 11:44:37 +00:00
RiotRobot
ebe41efec2 Reset matrix-react-sdk back to develop branch 2024-08-20 11:44:26 +00:00
RiotRobot
4961e23253 Reset matrix-js-sdk back to develop branch 2024-08-20 11:37:35 +00:00
RiotRobot
43fa2e533f Reset matrix-js-sdk back to develop branch 2024-08-13 12:25:53 +00:00
RiotRobot
7bd04185b5 Reset matrix-react-sdk back to develop branch 2024-08-13 12:25:43 +00:00
RiotRobot
62fe7e5024 Merge branch 'master' into develop 2024-08-13 12:25:32 +00:00
RiotRobot
dc9e929758 Upgrade dependency to matrix-react-sdk@3.106.0 2024-08-13 12:14:53 +00:00