Commit Graph
100 Commits
Author SHA1 Message Date
Gigiaj e3f1697367 Far cleaner and more sensible handling of the call window... I just really don't like the idea of sending a click event, but right now the element-call code treats preload/skipLobby hangups (sent from our end) as if they had no lobby at all and thus black screens. Other implementation was working around that without just sending a click event on the iframe's hangup button. 2025-05-28 16:11:25 -05:00
Gigiaj 42252829c6 Bind the on messaging iframe for easier access in hangup/join handling 2025-05-28 16:08:01 -05:00
Gigiaj 39b20c7cc7 Technically corrects the hangup button in the widget, should be more precise though 2025-05-27 01:14:42 -05:00
Gigiaj 3e6d55f03b Fix dependency array 2025-05-26 23:12:14 -05:00
Gigiaj c99112b78b A bit of an abomination, but adds a state counter to iteratively handle the diverse potential states (where a user can join from the nav bar or the join button, hang up from either as well, and account for the juggling iframes)
Black screens shouldn't be occurring now.
2025-05-26 23:11:47 -05:00
Gigiaj 0e332d6616 Solves CCH. Looks like CLCH left 2025-05-26 01:02:35 -05:00
Gigiaj 923982ef30 Fixes CLJH, found CCH 2025-05-26 00:41:55 -05:00
Gigiaj 0bd42a3994 Solves the CHCH sequence issue, CLJH remains 2025-05-26 00:37:48 -05:00
Gigiaj 9b98083d4a In widget hang up button should be handled correct now 2025-05-25 23:41:07 -05:00
Gigiaj 18ea2d2063 Fix formatting 2025-05-25 23:17:36 -05:00
Gigiaj 335df8d6ba Seems to shore up the remaining state issues with the status bar hangup 2025-05-25 23:16:37 -05:00
Gigiaj df84eb1d71 More correct filter (viewedRoom can return false on that compare in some cases) 2025-05-25 22:40:03 -05:00
Gigiaj bf131f76dc Re-add intended switching behavior 2025-05-25 22:09:17 -05:00
Gigiaj 1a821961f3 Fix for cases where you're viewing a lobby and hang up your existing call and try to join lobby (was not rendering for the correct room id, but was joining the correct call prior) 2025-05-25 22:01:57 -05:00
Gigiaj 108eb60b4a Seems to avoid almost all invalid states (hang up while viewing another lobby and hitting join seems to black screen, sets the active call as the previous active room id, but does join the viewed room correctly) 2025-05-25 21:29:53 -05:00
Gigiaj 22903c9340 Properly declare new hangup method sig 2025-05-25 16:34:55 -05:00
Gigiaj f3c0aebda2 Remove unused 2025-05-25 16:32:52 -05:00
Gigiaj 99576a2432 Remove viewed room setting here and pass the room to hang up (seems state doesn't update fast enough otherwise) 2025-05-25 16:30:23 -05:00
Gigiaj 7d26601bfc This seems to manage the hangup state with the status bar button well enough that black screens should never be encountered 2025-05-25 16:29:55 -05:00
Gigiaj 9499289fb3 Prevent null rooms from ever rendering 2025-05-25 16:29:01 -05:00
Gigiaj 0ef9c56a25 Update rendering logic to clear up remaining rendering bug (straight to call -> lobby of another room and joining call from that interface -> lobby of that previous room and joining was leading to duplication of the user in lobbies. This was actually from listening to and acknowledging hangups from the viewed widget in CallProvider) 2025-05-24 19:34:26 -05:00
Gigiaj f2f98a6973 Add storing widget for comparing with (since we already store room id and the clientWidgetApi anyway) 2025-05-24 19:31:43 -05:00
Gigiaj 3818671446 Remove repetitive check 2025-05-24 19:30:53 -05:00
Gigiaj 8b22573e43 Re-add the default view current active room behavior 2025-05-23 16:43:50 -05:00
Gigiaj 0b6009aaee Seems to sort out the hangup status button bug the occurred after joining a call via lobby 2025-05-23 16:34:44 -05:00
Gigiaj 872e9a257f Reduce code reuse in handleJoin 2025-05-23 13:57:01 -05:00
Gigiaj e220387b3f Corrects the state for the situations where both iframes are "active" (not necessarily visible) 2025-05-23 13:22:22 -05:00
Gigiaj 03cbecc3f9 Provides correct behavior when call isn't active and no activeClientWidgetApi exists yet 2025-05-23 13:21:40 -05:00
Gigiaj b6afe3b968 Fixes call initializing by default on mobile 2025-05-23 12:04:06 -05:00
Gigiaj 65ff5e3943 Just check for state on both which should only occur at initial 2025-05-23 01:55:54 -05:00
Gigiaj b18f6366c7 Revert navitem change 2025-05-23 01:55:06 -05:00
Gigiaj 9302003c30 Sets initial states so the iframes don't cause the other to fail with the npm embedded package 2025-05-23 01:52:38 -05:00
Gigiaj 1871f70704 Fix path issue from moving file locations 2025-05-23 01:24:32 -05:00
Gigiaj 27196cbad2 Set dep version to exact 2025-05-23 01:17:50 -05:00
Gigiaj 9b3c6e7c92 Add package-lock changes 2025-05-23 01:13:23 -05:00
Gigiaj d54bc2c110 Move files to more correct location 2025-05-23 00:01:19 -05:00
Gigiaj c108295e5a add vite preview as an npm script 2025-05-22 23:53:30 -05:00
Gigiaj d3ec9facf6 Fix vite build to place element-call correctly for embedded npm package support 2025-05-22 23:53:17 -05:00
Gigiaj 4c8ab4e79d null the default url so that we fallback to the embedded version (would recommend hosting it until performance issue is determined) 2025-05-22 23:52:51 -05:00
Gigiaj ff02c461e7 Fixes element-call embedded support (but it seems to run poorly) 2025-05-22 23:52:19 -05:00
Gigiaj e4ce4da8ee Remove unneeded logger.errors 2025-05-22 23:14:24 -05:00
Gigiaj f262f54728 Fix to use shorthand prop 2025-05-22 23:13:08 -05:00
Gigiaj 395a24f1a7 Fix spelling mistake 2025-05-22 23:13:08 -05:00
GigiaJ cd0d4c9704 Resolved merge conflict 2025-05-22 20:28:19 -05:00
Gigiaj 0db52c2d37 Moved CallProvider 2025-05-22 20:02:35 -05:00
Gigiaj 023a23d87c Rename and clean up 2025-05-22 20:02:13 -05:00
Gigiaj a81492c5b2 update imports and dependency array 2025-05-22 19:57:40 -05:00
Gigiaj 67fbf949b0 Move and rename RoomCallNavStatus 2025-05-22 19:57:13 -05:00
Gigiaj 07a980a0c7 Remove CallActivation 2025-05-22 19:44:02 -05:00
Gigiaj 19f1df798f add widgetId to correct pos in getWidgetUrl usage 2025-05-22 19:43:11 -05:00
Gigiaj c6ceb3f977 revert ternary expression change and add to dependency array 2025-05-22 19:42:46 -05:00
Gigiaj 5481595a67 Remove no longer needed files 2025-05-22 19:42:21 -05:00
Gigiaj 3bd7588497 Add widgetId as a getWidgetUrl param 2025-05-22 17:49:40 -05:00
Gigiaj e5505cd5c2 Remove unused 2025-05-22 17:42:23 -05:00
Gigiaj 7dcd43c64f add listener clearing, camel case es lint rule exception, remove unneeded else statements 2025-05-22 17:41:16 -05:00
Gigiaj 0b70ce7591 Remove Date.now() that was causing widgetId desync 2025-05-22 17:33:36 -05:00
Gigiaj 7ef33400c1 Remove superfluous comments and Date.now() that was causing loading... bug when widgetId desynced 2025-05-22 17:33:15 -05:00
Gigiaj 6e33c8e8da Applies the correct changes to the call state and removes listeners of old active widget so we don't trigger hang ups on the new one (the element-call widget likes to spam the hang up response back several times for some reason long after you tell it to hang up) 2025-05-21 21:14:31 -05:00
Gigiaj d9c0c85483 Remove clean room ID and add default handler for if no active call has existed yet, but user clicks on show chat 2025-05-21 21:12:51 -05:00
Gigiaj dabe7f7849 swap call status to be bound to call state and not active call id 2025-05-21 21:12:03 -05:00
Gigiaj e688c19350 Fix mobile call room default behavior from auto-join to displaying lobby 2025-05-21 21:11:25 -05:00
Gigiaj 1e44557406 Add ideal call room join behavior where text rooms to call room simply joins, but doesn't swap current view 2025-05-20 11:26:54 -05:00
Gigiaj 3e3d68602f Better handling of the isCallActive in the join handler 2025-05-11 19:24:13 -05:00
Gigiaj af455a5fe3 Ensure drawer doesn't appear in call room 2025-05-11 19:11:21 -05:00
Gigiaj 7043376383 Fix the position of the member drawer to its correct location 2025-05-11 19:09:39 -05:00
Gigiaj 74c883dfa8 Much closer to the call state handling we want w/ hangups and joins 2025-05-11 19:01:47 -05:00
Gigiaj 59a936b094 fix backup iframe visibility 2025-05-11 18:53:05 -05:00
Gigiaj 4486ef1e72 add url as a param for widget url 2025-05-11 17:55:19 -05:00
Gigiaj f3612e23c6 Testing the iframe juggling. Seems to work for the first and second joins... so likely on the right path with this 2025-05-11 17:55:04 -05:00
Gigiaj 5ab0b39152 Fix the view to correctly display the active iframe based on which is currently hosting the active call (juggling views) 2025-05-11 17:54:11 -05:00
Gigiaj d488c24974 add navigateRoom to be in both conditions for the nav button 2025-05-11 17:53:33 -05:00
Gigiaj f28a3a1c7d Conditionals to manage the active iframe state better 2025-05-11 17:52:50 -05:00
Gigiaj 6601c47abc (broken) juggle the iframe states proper... still needs fixing 2025-05-10 20:42:21 -05:00
Gigiaj 1b89831c10 add roomViewId and related 2025-05-10 20:41:57 -05:00
Gigiaj cde0d5fa64 Disable 2025-05-10 20:41:44 -05:00
Gigiaj da3d20d0fe add ViewedRoom usage 2025-05-10 20:41:35 -05:00
Gigiaj a1c0b79cbd split into two refs 2025-05-10 20:41:06 -05:00
Gigiaj cd233053bc Improve call room view stability 2025-05-10 08:58:32 -05:00
Gigiaj 9ae7c318ab re-add mobile chat handling 2025-05-10 08:58:03 -05:00
Gigiaj 1cdc0680e8 correctly provide visibility 2025-05-09 14:17:39 -05:00
Gigiaj ae9cc7a548 Fix unexpected visibility in non-room areas 2025-05-09 14:17:25 -05:00
Gigiaj 00ac8f654a Revert to original code as we've moved the outlet context passing out and made more direct use of the ref 2025-05-09 11:17:46 -05:00
Gigiaj 4293538dc3 Revert to original code as we've moved calling to be more inline with design 2025-05-09 11:16:13 -05:00
Gigiaj 807c90e2f5 swap to using ref provider context from to connect to persistentcallcontainer more directly 2025-05-09 11:14:08 -05:00
Gigiaj eea8ffea05 Re-add layout as we're no longer oddly passing outlet context 2025-05-09 11:13:30 -05:00
Gigiaj 6714300779 Remove unused imports and restructure to support being parent to clientlayout 2025-05-09 11:12:48 -05:00
Gigiaj a690dbd2ca Add backupIframeRef so we can re-add the lobby screen for non-joined calls (for viewing their text channels) 2025-05-09 09:38:43 -05:00
Gigiaj 0be5fb9732 remove unused params 2025-05-09 09:35:13 -05:00
Gigiaj 8b2fa10679 Pass forward the backupIframeRef now 2025-05-08 18:41:26 -05:00
Gigiaj 43ce6f0210 Update room to use CallView 2025-05-08 18:01:27 -05:00
Gigiaj 8b50ac150b funnel through just iframe for now for testing sake 2025-05-08 18:00:16 -05:00
Gigiaj 1bd593b530 update client layout to funnel outlet the iframes for the call container 2025-05-08 17:59:51 -05:00
Gigiaj c05421efb7 Update to funnel Outlet context through for Call handling (might not be the best approach, but removes code replication in PersistentCallContainer where we were remaking the roomview entirely) 2025-05-08 17:59:01 -05:00
Gigiaj abe79ceb66 Add CallView 2025-05-08 17:57:57 -05:00
Gigiaj 3fcf2fef59 loosely provide nav handling for testing refactoring 2025-05-08 17:57:45 -05:00
Gigiaj 9e919ea761 prepare to feed this to child elements for visibility handling 2025-05-08 17:56:49 -05:00
Gigiaj 824be5bdc2 re-add background to active call link button 2025-05-04 15:06:21 -05:00
Gigiaj a5a8f2814e temp fix to allow the status to be cleared in some way 2025-05-04 15:04:07 -05:00
Gigiaj d11bdb2f85 Rename callnavbottom and fix linking implementation to actually be correct 2025-05-04 15:03:46 -05:00
Gigiaj 4083bbb31e rename CallNavBottom to CallNavStatus 2025-05-04 15:03:23 -05:00