element-portable/src/components/views/messages
Timo a370a5cfa4
Refactor element call lobby + skip lobby (#12057)
* Refactor ElementCall to use the widget lobby.
 - expose skip lobby
 - use the widget.data to build the widget url

Signed-off-by: Timo K <toger5@hotmail.de>

* Use shiftKey click to skip the lobby

Signed-off-by: Timo K <toger5@hotmail.de>

* remove Lobby component

Signed-off-by: Timo K <toger5@hotmail.de>

* update tests + remove EW lobby related tests

Signed-off-by: Timo K <toger5@hotmail.de>

* remove lobby device button tests

Signed-off-by: Timo K <toger5@hotmail.de>

* i18n

Signed-off-by: Timo K <toger5@hotmail.de>

* use voip participant label

Signed-off-by: Timo K <toger5@hotmail.de>

* update tests
Signed-off-by: Timo K <toger5@hotmail.de>

* fix rounded corners in pip

Signed-off-by: Timo K <toger5@hotmail.de>

* allow joining call in legacy room header (without banner)

Signed-off-by: Timo K <toger5@hotmail.de>

* Introduce new connection states for calls.
And use them for integrated lobby.

Signed-off-by: Timo K <toger5@hotmail.de>

* New room header call join
Fix broken top container element call.

Signed-off-by: Timo K <toger5@hotmail.de>

* i18n

Signed-off-by: Timo K <toger5@hotmail.de>

* Fix closing element call in lobby view.
(should destroy call if there the user never managed to connect (not clicked join in lobby)

Signed-off-by: Timo K <toger5@hotmail.de>

* all cases for connection state

Signed-off-by: Timo K <toger5@hotmail.de>

* add correct LiveContentSummary labels

Signed-off-by: Timo K <toger5@hotmail.de>

* Theme widget loading (no rounded corner)
destroy call when switching room while a call is loading.

Signed-off-by: Timo K <toger5@hotmail.de>

* temp

Signed-off-by: Timo K <toger5@hotmail.de>

* usei view room dispatcher instead of emitter

Signed-off-by: Timo K <toger5@hotmail.de>

* tidy up

Signed-off-by: Timo K <toger5@hotmail.de>

* returnToLobby + remove StartCallView

Signed-off-by: Timo K <toger5@hotmail.de>

* comment cleanup

Signed-off-by: Timo K <toger5@hotmail.de>

* disconnect ongoing calls before making widget sticky.

Signed-off-by: Timo K <toger5@hotmail.de>

* linter + jitsi as videoChannel

Signed-off-by: Timo K <toger5@hotmail.de>

* stickyPromise type

Signed-off-by: Timo K <toger5@hotmail.de>

* fix legacy call (jistsi, cisco, bbb) reopen
when clicking call button

Signed-off-by: Timo K <toger5@hotmail.de>

* fix tests and connect resolves

Signed-off-by: Timo K <toger5@hotmail.de>

* fix "waits for messaging when connecting" test

Signed-off-by: Timo K <toger5@hotmail.de>

* Allow to skip awaiting Call session events.
This option is used in tests to spare mocking the
events emitted when EC updates the room state

Signed-off-by: Timo K <toger5@hotmail.de>

* add sticky test

Signed-off-by: Timo K <toger5@hotmail.de>

* add test for looby tile rendering

Signed-off-by: Timo K <toger5@hotmail.de>

* fix flaky test

Signed-off-by: Timo K <toger5@hotmail.de>

* add reconnect after disconnect test (video room)

Signed-off-by: Timo K <toger5@hotmail.de>

* add shift click test to call toast

Signed-off-by: Timo K <toger5@hotmail.de>

* test for allowVoipWithNoMedia in widget url

Signed-off-by: Timo K <toger5@hotmail.de>

* fix e2e tests to search for the right element

Signed-off-by: Timo K <toger5@hotmail.de>

* destroy call after test so next test does not fail

Signed-off-by: Timo K <toger5@hotmail.de>

* new call test (connection failed)

Signed-off-by: Timo K <toger5@hotmail.de>

* reset to real timers

Signed-off-by: Timo K <toger5@hotmail.de>

* dont use skipSessionAwait for tests

Signed-off-by: Timo K <toger5@hotmail.de>

* code quality (sonar)

Signed-off-by: Timo K <toger5@hotmail.de>

* refactor call.disconnect tests (dont use skipSessionAwait)

Signed-off-by: Timo K <toger5@hotmail.de>

* miscellaneous cleanup

Signed-off-by: Timo K <toger5@hotmail.de>

* only send call notify after the call has been joined (not when just opening the lobby)

Signed-off-by: Timo K <toger5@hotmail.de>

* update call notify tests to expect notify on connect.
Not on widget creation.

Signed-off-by: Timo K <toger5@hotmail.de>

* Update playwright/e2e/room/room-header.spec.ts

Co-authored-by: Robin <robin@robin.town>

* Update src/components/views/voip/CallView.tsx

Co-authored-by: Robin <robin@robin.town>

* review
rename connect -> start
isVideoRoom not dependant on feature flags
rename allOtherCallsDisconnected -> disconnectAllOtherCalls

Signed-off-by: Timo K <toger5@hotmail.de>

* check for EC widget

Signed-off-by: Timo K <toger5@hotmail.de>

* dep array

Signed-off-by: Timo K <toger5@hotmail.de>

* rename in spyOn

Signed-off-by: Timo K <toger5@hotmail.de>

---------

Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Robin <robin@robin.town>
2024-01-29 16:06:12 +00:00
..
shared Apply prettier formatting 2022-12-12 12:24:14 +01:00
CallEvent.tsx Refactor element call lobby + skip lobby (#12057) 2024-01-29 16:06:12 +00:00
DateSeparator.tsx Render timeline separator for late event groups (#11739) 2023-10-16 14:14:04 +00:00
DecryptionFailureBody.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
DisambiguatedProfile.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
DownloadActionButton.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
EditHistoryMessage.tsx Align action_* strings with Element X project in Localazy (#11437) 2023-08-22 20:55:15 +01:00
EncryptionEvent.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
EventTileBubble.tsx Comply with noImplicitAny (#9940) 2023-02-13 11:39:16 +00:00
HiddenBody.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
IBodyProps.ts Switch to importing models/event from main js-sdk export (#11363) 2023-08-07 08:24:58 +00:00
IMediaBody.ts Conform more of the codebase to strictNullChecks (#10800) 2023-05-10 08:41:55 +01:00
JumpToDatePicker.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
LegacyCallEvent.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
MAudioBody.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
MBeaconBody.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
MessageActionBar.tsx Switch AccessibleButton and derivatives to using forwardRef (#12054) 2023-12-21 08:50:42 +00:00
MessageEvent.tsx Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
MessageTimestamp.tsx Iterate io.element.late_event decoration (#11760) 2023-10-17 12:31:41 +00:00
MFileBody.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
MImageBody.tsx Use Compound tooltips more widely (#12128) 2024-01-11 11:49:24 +00:00
MImageReplyBody.tsx Populate info.duration for audio & video file uploads (#11225) 2023-07-17 12:07:58 +00:00
MJitsiWidgetEvent.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
MjolnirBody.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
MKeyVerificationRequest.tsx Simplify display of verification requests in timeline (#11931) 2023-11-30 17:41:47 +00:00
MLocationBody.tsx Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
MPollBody.tsx Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
MPollEndBody.tsx Fix ended polls overlapping event bubbles (#11895) 2023-11-20 17:27:54 +00:00
MStickerBody.tsx Use Compound tooltips more widely (#12128) 2024-01-11 11:49:24 +00:00
MVideoBody.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
MVoiceMessageBody.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
MVoiceOrAudioBody.tsx Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
ReactionsRow.tsx Switch AccessibleButton and derivatives to using forwardRef (#12054) 2023-12-21 08:50:42 +00:00
ReactionsRowButton.tsx Migrate more strings to translation keys (#11694) 2023-10-03 19:17:26 +01:00
ReactionsRowButtonTooltip.tsx Consolidate conjugation i18n strings (#11660) 2023-09-25 12:18:15 +01:00
RedactedBody.tsx Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
RoomAvatarEvent.tsx Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
RoomPredecessorTile.tsx Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
SenderProfile.tsx Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
TextualBody.tsx Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
TextualEvent.tsx Switch to importing models/event from main js-sdk export (#11363) 2023-08-07 08:24:58 +00:00
TileErrorBoundary.tsx Migrate more strings to translation keys (#11694) 2023-10-03 19:17:26 +01:00
TimelineSeparator.tsx Render timeline separator for late event groups (#11739) 2023-10-16 14:14:04 +00:00
UnknownBody.tsx Enable strictFunctionTypes (#11201) 2023-07-07 13:37:26 +01:00
ViewSourceEvent.tsx Migrate more strings to translation keys (#11694) 2023-10-03 19:17:26 +01:00