From 8fc3cf08c45f20e931b89a1c4cc60068bb744f8e Mon Sep 17 00:00:00 2001 From: deyvisonwanderley Date: Fri, 21 Nov 2025 16:21:01 -0300 Subject: [PATCH] feat: enhance call functionality and improve type safety - Updated CallControls to replace the Record icon with Radio for better representation during recording states. - Refactored CallWindow to introduce Jitsi connection and conference interfaces, improving type safety and clarity in handling Jitsi events. - Streamlined event handling for connection and conference states, ensuring robust management of audio/video calls. - Enhanced ChatWindow to directly import CallWindow, simplifying the component structure and improving call handling logic. - Improved utility functions for window management to ensure compatibility with server-side rendering. --- .../lib/components/call/CallControls.svelte | 5 +- .../src/lib/components/call/CallWindow.svelte | 185 ++++++++++++++---- .../lib/components/call/HostControls.svelte | 1 + .../src/lib/components/chat/ChatWindow.svelte | 28 +-- apps/web/src/lib/utils/floatingWindow.ts | 43 +++- apps/web/src/lib/utils/mediaRecorder.ts | 1 + packages/backend/convex/chamadas.ts | 1 + 7 files changed, 194 insertions(+), 70 deletions(-) diff --git a/apps/web/src/lib/components/call/CallControls.svelte b/apps/web/src/lib/components/call/CallControls.svelte index b564be5..120a87b 100644 --- a/apps/web/src/lib/components/call/CallControls.svelte +++ b/apps/web/src/lib/components/call/CallControls.svelte @@ -1,5 +1,5 @@