From ba8b3bda30e0b11ed3278c9553c44cea2cf720ac Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 22 May 2026 16:39:54 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(frontend)=20add=20a=20connection=20st?= =?UTF-8?q?ate=20toast=20to=20the=20PiP=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Surface connection state changes (reconnecting, disconnected, etc.) directly in the PiP window so the user stays informed without needing to switch back to the main window. Co-authored-by: Cyril --- .../src/features/pip/components/PipView.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/frontend/src/features/pip/components/PipView.tsx b/src/frontend/src/features/pip/components/PipView.tsx index 1028f8ae..a5f6fb22 100644 --- a/src/frontend/src/features/pip/components/PipView.tsx +++ b/src/frontend/src/features/pip/components/PipView.tsx @@ -5,6 +5,7 @@ import { PipStage } from './layout/PipStage' import { ReactionsToolbar } from '@/features/reactions/components/toolbar/ReactionsToolbar' import { useReactionsToolbar } from '@/features/reactions/hooks/useReactionsToolbar' import { NotificationProvider } from '@/features/notifications/NotificationProvider' +import { ConnectionStateToast } from '@livekit/components-react' const Container = styled('div', { base: { @@ -46,10 +47,25 @@ const Container = styled('div', { }, }) +const ConnectionStateWrapper = styled('div', { + base: { + position: 'fixed', + top: 0, + left: 0, + right: 0, + zIndex: 1000, + pointerEvents: 'none', + '& > *': { pointerEvents: 'auto' }, + }, +}) + export const PipView = () => { const { isOpen: isReactionToolbarOpen } = useReactionsToolbar() return ( + + +