Commit Graph

415 Commits

Author SHA1 Message Date
renovate[bot]
e0e99331be
Update opentelemetry-js monorepo (#2067)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 13:39:33 +01:00
Robin
98f78d3196
Merge pull request #2051 from element-hq/renovate/vector-im-compound-web-2.x
Update dependency @vector-im/compound-web to v2
2024-01-10 10:48:47 -05:00
Robin
02016bb950
Merge pull request #2044 from element-hq/renovate/eslint-plugin-unicorn-50.x
Update dependency eslint-plugin-unicorn to v50
2024-01-10 09:36:54 -05:00
renovate[bot]
a2243e9984
Update dependency @vector-im/compound-web to v2 2024-01-10 14:35:05 +00:00
renovate[bot]
bf843adeac
Update dependency react-i18next to v14 2024-01-09 04:36:32 +00:00
renovate[bot]
16ad91e48c
Update dependency eslint-plugin-unicorn to v50 2024-01-09 00:45:58 +00:00
renovate[bot]
d9fc616da6
Update dependency vaul to ^0.8.0 2024-01-08 18:00:31 +00:00
Robin
1865ccbaf6 Update Compound Web for realsies 2024-01-05 13:56:56 -05:00
Robin
b2bc8edcc1 Refactor/redesign video tiles 2023-12-18 16:59:48 -05:00
renovate[bot]
9be2eef9fb
Update opentelemetry-js monorepo (#2008)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 11:21:03 +01:00
fkwp
62dea32d0d
bump matrix-js-sdk Update package.json 2023-12-08 10:33:22 +01:00
Robin
c25d54ef75 Upgrade @livekit/components-core 2023-12-04 11:12:25 -05:00
Robin
169ccd9de5 Start refactoring some business logic into view models
As Element Call grows in complexity, it has become a pain point that our business logic remains so tightly coupled to the UI code. In particular, this has made testing difficult, and the complex semantics of React hooks are not a great match for arbitrary business logic. Here, I show the beginnings of what it would look like for us to adopt the MVVM pattern. I've created a CallViewModel and TileViewModel that expose their state to the UI as rxjs Observables, as well as a couple of helper functions for consuming view models in React code.

This should contain no user-visible changes, but we need to watch out for regressions particularly around focus switching and promotion of speakers, because this was the logic I chose to refactor first.
2023-12-01 17:09:21 -05:00
renovate[bot]
d77ad87c45
Update dependency vite to v5 2023-12-01 09:52:51 +00:00
renovate[bot]
1790818f3a
Update dependency @opentelemetry/instrumentation-user-interaction to ^0.34.0 2023-11-29 21:42:20 +00:00
renovate[bot]
2d8aaf0a3b
Update dependency @opentelemetry/instrumentation-document-load to ^0.34.0 2023-11-29 12:06:25 +00:00
David Baker
3e7a800424 Update js-sdk
For https://github.com/matrix-org/matrix-js-sdk/pull/3877
2023-11-16 17:55:11 +00:00
renovate[bot]
09aa2d3bc3
Update dependency @vector-im/compound-design-tokens to ^0.1.0 2023-11-15 01:19:22 +00:00
David Baker
0154370ae4 Update js-sdk for per-participant key rotation
To pull in https://github.com/matrix-org/matrix-js-sdk/pull/3833
2023-11-08 11:16:04 +00:00
renovate[bot]
166c8009d9
Update opentelemetry-js monorepo (#1505)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-07 12:37:13 +01:00
David Baker
ec8016acd4
Merge pull request #1841 from vector-im/renovate/eslint-plugin-unicorn-49.x
Update dependency eslint-plugin-unicorn to v49
2023-11-01 16:56:04 +00:00
David Baker
731f1e4008
Merge pull request #1772 from vector-im/dbkr/ppe2ee
Support key-per-participant e2ee
2023-10-31 20:08:05 +00:00
David Baker
ba376d7005 Back to js-sdk develop branch now it's merged 2023-10-31 20:00:48 +00:00
David Baker
c65ce86001 Update for renamed function
and new js-sdk containing it
2023-10-30 16:55:16 +00:00
renovate[bot]
a1eda05bcd
Update dependency eslint-plugin-unicorn to v49 2023-10-30 14:26:25 +00:00
David Baker
2d5b4dbc57 Merge remote-tracking branch 'origin/livekit' into dbkr/ppe2ee 2023-10-26 10:29:12 +01:00
renovate[bot]
84ab853ae9
Update dependency @vector-im/compound-design-tokens to ^0.0.7 2023-10-25 13:26:20 +00:00
renovate[bot]
3fa46fab32
Update dependency @vector-im/compound-web to ^0.6.0 2023-10-25 12:28:03 +00:00
renovate[bot]
3d27b9b6b4
Update dependency @types/node to v20 2023-10-24 01:26:02 +00:00
David Baker
9126fb3f3e Fix key format on the wire to be base64 2023-10-20 17:31:15 +01:00
David Baker
550315e8d7 Update js-sdk branch 2023-10-19 14:40:59 +01:00
David Baker
5ce5795bde Merge remote-tracking branch 'origin/livekit' into dbkr/ppe2ee 2023-10-18 15:22:58 +01:00
David Baker
635badbda1 Bump to latest js-sdk PR commit 2023-10-18 15:19:25 +01:00
Robin
861af672b9 Remove unused dependency 2023-10-18 09:29:42 -04:00
David Baker
d6d9acd492 Update js-sdk to fix sending call member events on leave 2023-10-17 15:39:59 +01:00
David Baker
97aba9c315 Update js-sdk branch 2023-10-16 18:21:08 +01:00
renovate[bot]
b28e465122
Update dependency prettier to v3 2023-10-11 14:38:05 +00:00
Robin
cc6f1f8631 Merge branch 'livekit' into eslint-upgrade 2023-10-11 10:30:57 -04:00
David Baker
fbb2dc2afd Update to merged js-sdk commit 2023-10-10 17:17:16 +01:00
David Baker
07cde7ee4d Don't use event.sender
Pull in a js-sdk change to avoid using event.sender (see js-sdk PR
for details).

Fixes https://github.com/vector-im/element-call/issues/1697
2023-10-09 20:49:03 +01:00
renovate[bot]
d1cb6ee889
Update dependency vaul to ^0.7.0 (#1692)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-05 16:25:27 +02:00
renovate[bot]
20f96f17e4
Update dependency @vector-im/compound-web to ^0.5.0 2023-10-03 20:25:25 +00:00
Robin
bdc5d701cc Merge branch 'livekit' into remove-storybook 2023-09-28 10:08:51 -04:00
Robin
44dbe77757 Merge branch 'livekit' into remove-inspector 2023-09-28 09:54:37 -04:00
Robin
7df093a23c Merge branch 'livekit' into invite-modal 2023-09-28 09:42:06 -04:00
Robin
99216c3b5a
Merge pull request #1625 from vector-im/renovate/vite-plugin-svgr-4.x
Update dependency vite-plugin-svgr to v4
2023-09-27 19:08:41 -04:00
Robin
2730cea181 Fix imports 2023-09-27 19:06:10 -04:00
Robin
05013cc510 Remove Storybook
As discussed in today's team meeting, no one is using the Storybook files anymore, and they're a maintenance burden, so we should remove them.
2023-09-27 18:32:11 -04:00
Robin
1dc4ef67f3 Remove the group call inspector
It's unused ever since we switched to LiveKit, and we intend to use other telemetry mechanisms going forward to fill this debugging use case, so it can be removed as discussed in today's team meeting.
2023-09-27 18:27:42 -04:00
Robin
8a14d60cb4 Implement the new invite modal designs 2023-09-27 17:45:18 -04:00
renovate[bot]
9cfaff8cdb
Update sentry-javascript monorepo to v7 2023-09-27 01:08:38 +00:00
renovate[bot]
b72eba33e2
Update dependency vite-plugin-svgr to v4 2023-09-26 19:36:47 +00:00
renovate[bot]
f29dafc5c4
Update dependency postcss-preset-env to v9 2023-09-26 16:10:50 +00:00
renovate[bot]
0423f2f4bb
Update dependency @vector-im/compound-design-tokens to ^0.0.6 2023-09-25 21:23:48 +00:00
Robin
02db81d846
Merge pull request #1521 from vector-im/renovate/testing-library-jest-dom-6.x
Update dependency @testing-library/jest-dom to v6
2023-09-25 14:44:37 -04:00
Robin
4330b46086 Add @types/jest, which we depend on 2023-09-25 14:41:52 -04:00
Robin
15566770f9 Upgrade react-i18next, too 2023-09-25 12:31:27 -04:00
renovate[bot]
f053ecfa98
Update dependency i18next to v23 2023-09-25 16:28:17 +00:00
renovate[bot]
e790c13112
Update dependency i18next-parser to v8 2023-09-25 16:22:46 +00:00
renovate[bot]
8e2c1dd164
Update dependency i18next-http-backend to v2 2023-09-25 16:04:50 +00:00
Robin
8a22aa55a6
Merge pull request #1535 from vector-im/renovate/i18next-browser-languagedetector-7.x
Update dependency i18next-browser-languagedetector to v7
2023-09-25 12:03:34 -04:00
Robin
a7624806b2 Upgrade eslint-plugin-matrix-org to 1.2.1
This upgrade came with a number of new lints that needed to be fixed across the code base. Primarily: explicit return types on functions, and explicit visibility modifiers on class members.
2023-09-22 18:07:06 -04:00
David Baker
f35dd28bd3 Bump js-sdk
For https://github.com/matrix-org/matrix-js-sdk/pull/3745
2023-09-22 17:40:00 +01:00
renovate[bot]
703aa661ea
Update dependency i18next-browser-languagedetector to v7 2023-09-19 18:45:14 +00:00
Robin
859f1fa4ae
Merge pull request #1526 from vector-im/renovate/eslint-config-prettier-9.x
Update dependency eslint-config-prettier to v9
2023-09-19 12:24:05 -04:00
Robin
40a4a0886a
Merge pull request #1525 from vector-im/renovate/babel-loader-9.x
Update dependency babel-loader to v9
2023-09-19 12:04:27 -04:00
renovate[bot]
44446943d1
Update dependency eslint-config-prettier to v9 2023-09-19 16:04:15 +00:00
renovate[bot]
edd4ff077b
Update dependency @testing-library/jest-dom to v6 2023-09-19 16:04:01 +00:00
renovate[bot]
cb96a8b48e
Update dependency babel-loader to v9 2023-09-19 15:16:27 +00:00
renovate[bot]
bde4f69b84
Update dependency @testing-library/react to v14 2023-09-19 15:16:13 +00:00
renovate[bot]
3ed749ecd9
Update dependency @sentry/vite-plugin to v2 2023-09-19 13:01:09 +00:00
renovate[bot]
4fdb6ad39a
Update dependency @sentry/vite-plugin to ^0.7.0 2023-09-18 15:45:34 +00:00
Robin
9db21e024e Start using the new modal component
This attempts to converge all our modals on the new modal component while changing their designs as little as possible. This should reduce the bundle size a bit and make the app generally feel like it's converging on the new designs, even though individual modals still remain to be revamped.
2023-09-17 14:46:36 -04:00
Robin
f609ec3f4c Implement new modal designs
They aren't yet used anywhere, but this will let us move on to implementing specific modal interactions from the new designs.

I made the design decision of making this new Modal component always be controlled by an explicit open state, which was inspired by some work I did with Jetpack Compose recently, where I saw that this makes state management and the behavior of components so much more obvious.
2023-09-17 14:40:14 -04:00
David Baker
a4d20f85a0 Use js-sdk from latest develop 2023-09-12 16:25:59 +01:00
David Baker
1fb210c5cc Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-12 11:30:46 +01:00
Robin
ae2b152b3e Upgrade Compound Web 2023-09-11 11:08:46 -04:00
David Baker
83fd9a49ab Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-06 09:01:58 +01:00
Robin Townsend
0bf96472eb Work around jsdom not providing TextEncoder 2023-09-01 13:23:24 -04:00
Robin Townsend
8e090af370 Merge branch 'livekit' into in-call-footer 2023-09-01 13:13:02 -04:00
David Baker
0dbd3c2a58 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-01 15:09:24 +01:00
Robin
a3edf08776
Merge pull request #1371 from vector-im/renovate/react-spring-web-9.x-lockfile
Update dependency @react-spring/web to v9.7.3
2023-09-01 09:22:44 -04:00
Robin Townsend
27b5ede72e Install @react-spring/rafz
As a workaround for https://github.com/pmndrs/react-spring/issues/2173
2023-09-01 09:19:44 -04:00
renovate[bot]
b1ae9523aa
Update dependency @opentelemetry/instrumentation-user-interaction to ^0.33.0 2023-08-31 21:07:27 +00:00
renovate[bot]
900abc7fa2
Update dependency @opentelemetry/instrumentation-document-load to ^0.33.0 2023-08-31 21:03:50 +00:00
renovate[bot]
550d7acaa8
Update opentelemetry-js monorepo 2023-08-31 16:06:42 +00:00
David Baker
fe4d42f4d0 Update js-sdk 2023-08-31 14:43:53 +01:00
David Baker
dd9397d921 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-31 14:38:05 +01:00
Robin
0e0f6f7fc5
Merge pull request #1361 from vector-im/renovate/npm-mermaid-vulnerability
Update dependency mermaid to v9 [SECURITY]
2023-08-31 09:36:03 -04:00
Robin
65564f8662 Add types for dompurify and d3 2023-08-31 09:31:12 -04:00
Robin
3494f0fb4d
Merge branch 'livekit' into in-call-footer 2023-08-31 07:53:14 -04:00
renovate[bot]
96857476f9
Update dependency @vector-im/compound-design-tokens to ^0.0.5 2023-08-31 09:34:16 +00:00
Robin Townsend
63ccd56573 Implement new designs for in-call footer buttons
This basically amounts to swapping out some CSS, the icons, and the Tooltip component.
2023-08-30 22:04:20 -04:00
David Baker
b5626dd97c Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-30 17:25:00 +01:00
renovate[bot]
11e78cf06b
Update dependency mermaid to v9 [SECURITY] 2023-08-30 14:01:06 +00:00
Robin
841a31a642
Merge pull request #1354 from robintown/colors
Adopt the Compound color system
2023-08-30 08:14:53 -04:00
David Baker
923f081d74 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-30 10:04:43 +01:00
David Baker
73b505987d Unpin livekit versions
and upgrade to latest
2023-08-30 09:50:12 +01:00
David Baker
192c3295c9 Update js-sdk 2023-08-29 14:19:08 +01:00
Robin Townsend
aa628cc63c Adopt the Compound color system
As a first step towards adopting the Compound design system and the new Element Call designs, this pulls in Compound's color tokens and applies them to all existing components. I've tried to choose tokens based on the semantics of where they're used, but in some cases, where the new and old design systems differ in semantics, it was necessary to choose tokens based on their resulting color. These hacks can be removed as we implement more of the new designs.

There were a set of environment variables that we used for custom themes, but Compound has way too many design tokens for that approach to still be a good idea, so I decided to replace them all with a single environment variable that just lets you write arbitrary custom CSS.
2023-08-28 17:14:40 -04:00
Šimon Brandner
992e6aa2a3
Update js-sdk
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-28 17:01:58 +02:00
David Baker
1955765cfd Bump js-sdk 2023-08-23 14:03:38 +01:00
David Baker
c516207199 Remove matrix-widget-api as a dep & remove livekit stuff from widget init
We'll always have matrix-widget-api as a dep through js-sdk so also
specifyin it ourselves just means we'll end up using a different version
when the js-sdk upgrade their copy and get wierd errors. We could add a
peerDependency if we really felt the need?
2023-08-23 10:12:09 +01:00
David Baker
ee77820e5b Use latest js-sdk branch 2023-08-23 09:59:02 +01:00
David Baker
7a197a2700 Use js-sdk branch 2023-08-18 14:14:24 +01:00
Šimon Brandner
05c9d83312
Upgrade @livekit/components-react
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-08 14:31:01 +02:00
Šimon Brandner
bcf40a2155
Update livekit-client
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-08 14:16:18 +02:00
Šimon Brandner
ec20c017d1
Update livekit-client
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-25 16:57:43 +02:00
Robin Townsend
c0eeb035c8 Stop devices from automatically sleeping
A TypeScript upgrade was necessary to bring in the types for the wake lock API.
2023-07-21 00:52:43 -04:00
Šimon Brandner
723819b3d6
Merge remote-tracking branch 'upstream/livekit' into SimonBrandner/feat/friendly-url
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-15 09:48:08 +02:00
David Baker
e264a71d1e Merge v0.4.2 hotfixes 2023-07-12 17:57:54 +01:00
Daniel Abramov
eab2bc8ab5
Merge pull request #1173 from vector-im/lint-fixes
Enable stricter lints
2023-07-12 17:18:33 +02:00
Daniel Abramov
9820773136 A hack to fix problems with Matrix JS SDK
See https://github.com/matrix-org/matrix-js-sdk/pull/3593#issuecomment-1632725177
for more context on why it was necessary.
2023-07-12 16:11:01 +01:00
Šimon Brandner
62d4084dcf
Add support for accessing the web server from other devices
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-12 13:55:21 +02:00
Daniel Abramov
c87e06244e Update matrix-js-sdk to fix crypto issues 2023-07-11 17:46:17 +01:00
Daniel Abramov
0105162ffa Enable strict lints
An attempt to fix https://github.com/vector-im/element-call/issues/1132
2023-07-11 16:02:58 +01:00
Šimon Brandner
968a62be62
Merge pull request #1237 from vector-im/SimonBrandner/other/update-lk-cli 2023-07-11 16:03:59 +02:00
Šimon Brandner
a5e921876f
Update livekit-client
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-11 15:59:47 +02:00
David Baker
68635313d4 Bump js-sdk for getOpenIdToken() in embedded mode
For https://github.com/matrix-org/matrix-js-sdk/pull/3571
2023-07-11 13:24:10 +01:00
Timo
9be9250124
Combined permission request with newer livekit sdk version (#1200)
---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-07-07 14:41:29 +02:00
Šimon Brandner
a6496626da
Fix js-sdk version
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-07 14:17:09 +02:00
Šimon Brandner
c7258776c3
Merge remote-tracking branch 'upstream/livekit' into SimonBrandner/feat/friendly-url 2023-07-06 11:59:13 +02:00
Šimon Brandner
792067ef22
Update js-sd
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-04 17:44:41 +02:00
Šimon Brandner
26657a5de9
Merge remote-tracking branch 'upstream/livekit' into SimonBrandner/feat/url 2023-07-04 16:26:54 +02:00
Šimon Brandner
f0c9a26242
Add jest-mock
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-03 14:03:29 +02:00
Robin Townsend
9704033dc8 Fix tests 2023-06-30 18:46:10 -04:00
Robin Townsend
17450b4531 Fix big grid crashing due to missing React import
by fixing the cause rather than the symptom: this upgrades the code to use the new, recommended JSX transform mode of React 17+, which no longer requires you to import React manually just to write JSX.
2023-06-30 18:21:18 -04:00
Michael Kaye
cd4e5d3543 Push code coverage percentages to codecov.io. 2023-06-27 16:40:19 +01:00
Šimon Brandner
30ba12ccb8
Update js-sdk
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-06-27 17:31:54 +02:00
David Baker
30e1034fba Use new-js-sdk flag to disable the actual calling of group calls
In favour of using livekit
2023-06-14 12:13:55 +01:00
Robin Townsend
93bc28c1a6 Merge branch 'livekit-experiment' into merge-main 2023-06-12 11:19:52 -04:00
Enrico Schwendig
0192ed70ea
Local develop setup with docker (#1103)
* Add local live kit backend run setup
2023-06-12 15:52:27 +02:00
Robin Townsend
ab97f12947 Merge branch 'main' into livekit-experiment 2023-06-09 17:22:34 -04:00
Enrico Schwendig
8f8dd5f803
Display active tracks in OTel metrics (#1085)
* Add track, feed and transceiver spans under call span
2023-06-07 16:40:47 +02:00
Enrico Schwendig
f0a6f5919e
move webrtc etc. events from groupCall to matrix.call span (#1080)
* add new linked span for connection stats

* move stats span under call span and add user attribute

* Update matrix-js-sdk
2023-06-06 08:28:53 +02:00
Daniel Abramov
f4f5c1ed31 Start using LiveKit SDK for media devices
This version is not supposed to properly work, this is a work in
progress.

Main changes:
* Completely removed the PTT logic (for simplicity, it could be
  introduced later).
* Abstracted away the work with the media devices.
* Defined confined interfaces of the affected components so that they
  only get the data that they need without importing Matris JS SDK or
  LiveKit SDK, so that we can exchange their "backend" at any time.
* Started using JS/TS SDK from LiveKit as well as their React SDK to
  define the state of the local media devices and local streams.
2023-05-30 15:21:22 +02:00
Daniel Abramov
e4f279fa63 Add LiveKit dependency 2023-05-19 12:48:47 +02:00
Enrico Schwendig
0114db7d2d
update matrix-js-sdk (#1067) 2023-05-17 18:00:37 +02:00
Robin Townsend
abdb85226f Update matrix-js-sdk 2023-05-15 11:04:57 -04:00
Timo K
01f20bf6c0 update matrix-js-sdk 2023-05-15 16:21:00 +02:00
Robin Townsend
fcb923f6db Update matrix-js-sdk 2023-05-13 14:11:59 -04:00
Enrico Schwendig
d148a81f91
Reconnect on network switch (#1029) 2023-05-11 16:47:05 +02:00
Michael Kaye
8d56a8e8fc Fix #978 issue with builds not building. 2023-04-27 09:42:25 +01:00
Enrico Schwendig
e3a3859739
Make webrtc stats configurable (#1019)
* stats: make webrtc stats configurable
2023-04-27 09:30:34 +02:00
Enrico Schwendig
2b5de6db03
Add new calculation of received media stats (#1009) 2023-04-19 10:14:29 +02:00
Enrico Schwendig
3da4b4eeef
Add jitter and packet loss info in summary report (#1006)
* stats: add jitter and packet loss
2023-04-18 15:20:06 +02:00
Enrico Schwendig
370a6579fb
Add jitter in webrtc stats (#1000)
* stats: add jitter in webrtc stats
2023-04-14 08:49:33 +02:00
Enrico Schwendig
bb5c382fd0
separate summary report from stats report (#986)
* stats: separate summary report from stats report

* stats: switch to last summery stats builder

* stats: update matrix-js-sdk
2023-04-06 13:19:39 +02:00
David Baker
2435846f66 Latest js-sdk develop (with required PR merged) 2023-04-05 10:00:16 +01:00
Enrico Schwendig
889a31489b stats: fix typo 2023-04-03 12:37:55 +02:00