Commit Graph

1600 Commits

Author SHA1 Message Date
Robin
fe8ca9df9d
Merge pull request #1489 from robintown/settings-cut-off
Fix dropdowns in settings being cut off
2023-09-18 18:27:09 -04:00
Robin
00f587898d
Merge pull request #1486 from robintown/page-overflow
Fix home page overflowing by a few pixels
2023-09-18 18:26:58 -04:00
Robin
5f87d8d16c
Merge pull request #1482 from robintown/no-autojoin
Remove auto-join behavior from embedded mode
2023-09-18 18:03:04 -04:00
Robin
89fcfb7062
Merge pull request #1481 from robintown/fix-app-selection
Fix app selection prompt appearing even in the app
2023-09-18 17:57:20 -04:00
Robin
497c106c9f Fix dropdowns in settings being cut off 2023-09-18 17:34:24 -04:00
Robin
c1f1cb94fd Fix home page overflowing by a few pixels
Because the height of our header component changed at some point, the hard-coded height values in the CSS were off by a few px and caused the page to overflow slightly.
2023-09-18 16:49:55 -04:00
Robin
771ab41833 Implement new lobby design 2023-09-18 15:58:36 -04:00
Robin
6bdb4b69ee Remove auto-join behavior from embedded mode
This was a hack that we did back when we were working on PTT, to make the joining process for PTT more seamless, but it doesn't make much sense to auto-join normal calls without giving the user a chance to turn off / adjust their media. If we want this behavior back eventually, I think it would be better serviced by a separate URL parameter.
2023-09-18 13:05:25 -04:00
Robin
6801c95e6a Fix app selection prompt appearing even in the app
Turns out, I just got the name of this URL parameter wrong
2023-09-18 13:03:33 -04:00
David Baker
6561c0a898 Merge remote-tracking branch 'origin/livekit' into dbkr/refactor_urlparams 2023-09-18 17:54:49 +01:00
David Baker
4f48751aa2 Small refactor of URLParams stuff
Splits out the room locartion parsing from everything else to avoid
one function that fills out different parts of its return struct
depending on its args.
2023-09-18 17:49:10 +01:00
Robin
40ef872658 Tweak drawer appearance to better match native system components 2023-09-18 12:17:31 -04:00
Robin
8eb789d6aa Merge branch 'livekit' into remove-walkie-talkie 2023-09-18 11:58:45 -04:00
Robin
1ecc8e3b22 Fix bad import 2023-09-18 11:56:24 -04:00
Robin
4d5b13824f
Merge pull request #1448 from robintown/app-selection
Add a prompt to launch Element X on mobile
2023-09-18 11:54:31 -04:00
Robin
48c563d31f
Merge pull request #1470 from robintown/feedback-layout
Fix the feedback screen looking broken on mobile
2023-09-18 11:54:25 -04:00
Robin
1e2b2c6ef9
Merge pull request #1472 from robintown/invert-buttons
Invert the microphone and video button states
2023-09-18 11:53:18 -04:00
Robin
cfd61282cc Merge branch 'livekit' into remove-walkie-talkie 2023-09-18 11:52:52 -04:00
Robin
b53868cbc9 Merge branch 'livekit' into app-selection 2023-09-18 11:50:32 -04:00
Robin
662a85c16a Add a clarifying comment 2023-09-18 11:46:16 -04:00
Robin
aaf4d20e7d Merge branch 'livekit' into use-modals 2023-09-18 11:40:10 -04:00
Robin
08be4550d5
Merge pull request #1446 from robintown/modals
Implement the new modal designs
2023-09-18 11:38:03 -04:00
Robin
bfefcce466
Merge pull request #1445 from robintown/native-fonts
Use native system fonts on Android and iOS
2023-09-18 11:37:45 -04:00
Robin
282c345ad3 Invert the microphone and video button states
… so that they use the 'on' state when muted, and announce the action that they take rather than the current state, as suggested in internal design guidance.
2023-09-18 11:21:56 -04:00
Robin
1e9e096356 Fully remove walkie-talkie mode 2023-09-18 11:06:06 -04:00
Robin
db0d3b1ee9 Fix the feedback screen looking broken on mobile 2023-09-18 10:42:07 -04:00
Robin
bbf91ca867 Add a clarifying comment 2023-09-18 09:48:02 -04:00
Robin
d9ac072663
Update comment
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2023-09-18 09:14:46 -04:00
Timo
b979fc85bb
Check for existing track before creating one. (#1459)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-18 12:43:03 +02:00
Robin
0f97d655d2 Add a prompt to launch Element X on mobile
This shows a bottom sheet on mobile asking the user whether they want to open the call in Element X, as soon as the page is loaded.
2023-09-17 17:48:03 -04: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
Robin
9736f0244b Use native system fonts on Android and iOS
This behavior is called for in the new designs, but Compound Web doesn't (yet) implement it by default.
2023-09-17 12:56:13 -04:00
Robin
2bb2107ead Merge branch 'livekit' into SimonBrandner/feat/gradient 2023-09-15 17:19:37 -04:00
Robin
224bfe58d1
Apply graphic positioning suggestion 2023-09-15 17:17:57 -04:00
Robin
1dd19a78ac
Merge pull request #1443 from vector-im/dbkr/publish_audio_at_start
Always publish microphone track when joining
2023-09-15 17:17:13 -04:00
Robin
564af13b59
Merge pull request #1410 from vector-im/dbkr/smooth_focus_switch
Smooth Focus Switching
2023-09-15 17:06:22 -04:00
Robin
27616c7227
Merge pull request #1436 from robintown/video-tile-1
First pass at the new video tile designs
2023-09-14 11:32:36 -04:00
Robin
915fb63356 First pass at the new video tile designs
Here, I've begun updating the styles of video tiles to match the new designs. Not yet updated: the local volume option is supposed to go inside an overflow menu now, but I haven't gotten to that yet.

To make the outlines on hovered / speaking tiles show up properly, I have to remove the usePageFocusStyle hack, which was preventing CSS outlines from being used for anything other than focus rings. I honestly can't tell what problem it was solving in the first place: focus rings still appear to behave as expected throughout the application.
2023-09-13 16:19:29 -04:00
Robin
21c234ebee Add accessible label to the in-call logo mark 2023-09-13 16:18:29 -04:00
Šimon Brandner
dd49bd517c
Add background gradient
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-09-13 17:53:12 +02:00
David Baker
a02261561c Add comment 2023-09-13 15:03:54 +01:00
David Baker
5570e3f806
More obvious syntax
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2023-09-13 14:32:21 +01:00
David Baker
c5118f38c5 Merge remote-tracking branch 'origin/livekit' into dbkr/smooth_focus_switch 2023-09-12 16:35:51 +01:00
David Baker
9efb15941c
Merge pull request #1348 from vector-im/dbkr/matrixrtcsession
Switch to the MatrixRTCSession layer in js-sdk
2023-09-12 16:33:02 +01:00
Timo
0a009a7b1c
disable turn servers in widget mode (#1396)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-12 13:51:06 +02:00
David Baker
1fb210c5cc Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-12 11:30:46 +01:00
Robin
26ad532532 Merge branch 'livekit' into button-accessibility 2023-09-11 11:22:10 -04:00
Robin
6c25a25f8b Make the focus ring on Compound Web buttons consistent 2023-09-11 11:07:10 -04:00
Robin
8720ccada6 Count participants in a more sensible way 2023-09-11 10:32:03 -04:00
Robin
a9585b1fcf Merge branch 'livekit' into header-footer 2023-09-11 10:29:19 -04:00
David Baker
9d9765f668 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-11 09:58:03 +01:00
Šimon Brandner
013e3296fe
Merge pull request #1387 from vector-im/SimonBrandner/task/avatar 2023-09-10 11:52:07 +02:00
Šimon Brandner
7fc0de573b
Remove leftover
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-09-10 11:50:09 +02:00
Robin
1445c42cc3 Implement new in-call header and footer designs 2023-09-08 16:41:23 -04:00
Robin
3545a8152a Improve accessibility of buttons
I noticed that none of these buttons had accessible labels, which is obviously no good since they rely on icons alone to convey purpose when not focused.
2023-09-08 15:39:49 -04:00
David Baker
2c1692bd4f Always publish microphone track when joining 2023-09-08 17:22:02 +01:00
David Baker
7b14d9dacb Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-07 14:09:52 +01:00
David Baker
38bb2895db
Tidier syntax
Co-authored-by: Robin <robin@robin.town>
2023-09-07 13:16:40 +01:00
David Baker
00f14c9814 Fix the mute icon being incorrect when using PTT
We were manipulating the participant's mute state directly for some
reason, just for setting the mute state directly, which bypased the
mutestates hook.
2023-09-06 11:45:01 +01:00
David Baker
8f570b7893 Include the colon in the user ID in the numebr of parts we check for 2023-09-06 09:12:04 +01:00
David Baker
83fd9a49ab Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-06 09:01:58 +01:00
Šimon Brandner
1cb0ad2f65
Switch to Avatar from Compound
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-09-06 08:04:51 +02:00
David Baker
3e72604391 Remove unintentional change 2023-09-05 17:38:43 +01:00
David Baker
973d396249 Remove extra device request on the video preview page
As per comment, livekit mutates the object that's passed in, so
we ended up re-requesting the devices in the next render because we
effectively passed in different options.
2023-09-05 17:34:55 +01:00
Šimon Brandner
40283ab760
Remove unused Facepile
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-09-04 20:03:25 +02:00
David Baker
c0443288c5 Smooth Focus Switching
For a few seconds after a focusn switch, keep old tiles from the previous
focus so that it doesn't look like everyone leaves & comes back.

Based on https://github.com/vector-im/element-call/pull/1348
Requires https://github.com/livekit/components-js/pull/620
2023-09-04 12:46:06 +01:00
Robin Townsend
8e090af370 Merge branch 'livekit' into in-call-footer 2023-09-01 13:13:02 -04:00
David Baker
dd9397d921 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-31 14:38:05 +01:00
David Baker
0535a35a1c Remove unused memberships prop 2023-08-31 14:36:54 +01:00
Robin
7f5e02852c
Merge pull request #1380 from vector-im/renovate/classnames-2.x-lockfile
Update dependency classnames to v2.3.2
2023-08-31 09:33:22 -04:00
Robin
2d5ea82ecf Fix types 2023-08-31 09:27:06 -04:00
Robin
a35f1cb23f
Merge pull request #1369 from robintown/copy-icon-color
Use a more suitable color for copy buttons
2023-08-31 07:55:35 -04:00
Robin
3494f0fb4d
Merge branch 'livekit' into in-call-footer 2023-08-31 07:53:14 -04:00
David Baker
9d6d5a16e7 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-31 10:48:54 +01:00
Šimon Brandner
c7c6e2c007
Merge pull request #1358 from vector-im/SimonBrandner/feat/e2ee-on 2023-08-31 11:32:27 +02:00
David Baker
b256755a0d Don't treat empty object as a valid sfu config
This was causing an extra reconnect cycle when the call was first
joined because it thought the previous SFU config was valid. This was
probably causing some client to fail to connect at all.
2023-08-31 09:44:23 +01: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
Robin Townsend
6f4834e168 Use a more suitable color for copy buttons
This is a change that I meant to include in aa628cc63c, but forgot to commit.
2023-08-30 14:52:53 -04:00
David Baker
b5626dd97c Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-30 17:25:00 +01:00
David Baker
3a0c895b7a Fix e2ee audio in Firefox
Pull in changes for livekit and disable RED as per comment.
2023-08-30 17:17:45 +01:00
Šimon Brandner
1b2287646d
Enable E2EE by default
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-30 12:19:21 +02:00
David Baker
4cd274b91e Manually disconnect & reconnect the livekit call if our focus changes
Without breaking the 'disconnected' screen
2023-08-29 12:45:34 +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
David Baker
22533fc408 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-25 14:40:52 +01:00
Šimon Brandner
9d142c1ea5
Fix useIsRoomE2EE()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-25 15:30:58 +02:00
David Baker
e4e35eecfd Use Matrix room membership to look up room member
Rather than the matrixRTC memberships. We're essentially trusting
LiveKit's view of weho is connected here, so we may as well include
the real names of anyone we don't think is a matrixRTC participant,
for whatever reason.
2023-08-25 13:19:23 +01:00
David Baker
dc80a7e350 Log ghosts
and remove unsused code
2023-08-23 15:04:41 +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
918736e758 Removed now unused useGroupCall & OpenIDLoader 2023-08-23 10:06:08 +01:00
David Baker
274349f2e2 Use the right sfu config hook 2023-08-18 10:20:14 +01:00
David Baker
e39d00154d More hacking on rtcsession 2023-08-18 09:03:21 +01:00
David Baker
1716bd4418 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-16 18:53:00 +01:00
David Baker
4242d45ba2 WIP refactor for removing m.call events 2023-08-16 18:41:27 +01:00
Šimon Brandner
d0fe055af6
Always allow setting a password
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-16 15:39:55 +02:00
Šimon Brandner
3ea908c59f
Revert "Remove optional call"
This reverts commit 74c70627dc.
2023-08-16 15:38:23 +02:00
Šimon Brandner
74c70627dc
Remove optional call
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-16 15:35:49 +02:00
Šimon Brandner
b4b33563be
Fix joining an existing room
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-16 15:13:28 +02:00
Šimon Brandner
5cd8c0538e
Revert changes to JoinExistingCallModal
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-16 13:59:41 +02:00
Šimon Brandner
54157611eb
Remove log line
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-16 13:56:31 +02:00