From 807a6a8545ed8483d1ff5b52e77ee3bc2694a4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 30 Jan 2023 20:43:21 +0100 Subject: [PATCH 1/5] Add call feed size debug info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- public/locales/en-GB/app.json | 1 + src/settings/SettingsModal.tsx | 15 +++++++++++++++ src/settings/useSetting.ts | 2 ++ src/video-grid/VideoTile.module.css | 6 +++++- src/video-grid/VideoTile.tsx | 12 +++++++++++- src/video-grid/VideoTileContainer.tsx | 2 ++ src/video-grid/useCallFeed.ts | 25 +++++++++++++++++++++++++ 7 files changed, 61 insertions(+), 2 deletions(-) diff --git a/public/locales/en-GB/app.json b/public/locales/en-GB/app.json index b2bfc56..21af889 100644 --- a/public/locales/en-GB/app.json +++ b/public/locales/en-GB/app.json @@ -101,6 +101,7 @@ "Sending…": "Sending…", "Settings": "Settings", "Share screen": "Share screen", + "Show call feed debug info": "Show call feed debug info", "Show call inspector": "Show call inspector", "Sign in": "Sign in", "Sign out": "Sign out", diff --git a/src/settings/SettingsModal.tsx b/src/settings/SettingsModal.tsx index 106ef9e..ccff126 100644 --- a/src/settings/SettingsModal.tsx +++ b/src/settings/SettingsModal.tsx @@ -33,6 +33,7 @@ import { useShowInspector, useOptInAnalytics, canEnableSpatialAudio, + useShowCallFeedDebugInfo, } from "./useSetting"; import { FieldRow, InputField } from "../input/Input"; import { Button } from "../button"; @@ -60,6 +61,8 @@ export const SettingsModal = (props: Props) => { const [spatialAudio, setSpatialAudio] = useSpatialAudio(); const [showInspector, setShowInspector] = useShowInspector(); + const [showCallFeedDebugInfo, setShowCallFeedDebugInfo] = + useShowCallFeedDebugInfo(); const [optInAnalytics, setOptInAnalytics] = useOptInAnalytics(); const [keyboardShortcuts, setKeyboardShortcuts] = useKeyboardShortcuts(); @@ -216,6 +219,18 @@ export const SettingsModal = (props: Props) => { } /> + + ) => + setShowCallFeedDebugInfo(e.target.checked) + } + /> +