From 4ca3859ced2471d0169f4a79477dc56377d06303 Mon Sep 17 00:00:00 2001 From: smoghe-bw Date: Sat, 4 Jul 2026 16:57:56 -0400 Subject: [PATCH 1/8] feat: make layout responsive and bump bandwidth-rtc to 0.4.0 --- package-lock.json | 6 +++-- package.json | 2 +- src/App.tsx | 4 ++-- src/components/CallController.tsx | 1 + src/components/EndpointHandler.tsx | 11 +++++---- src/components/MediaCapture.tsx | 4 ++-- src/components/MediaPlayer.tsx | 4 ++-- src/css/App.scss | 23 +++++++++++++++++++ src/css/CallController.scss | 37 ++++++++++++++++++++++++++++++ src/css/DigitGrid.scss | 1 + src/css/EndpointHandler.scss | 13 +++++++++++ src/css/Navbar.scss | 26 ++++++++++++++++++++- src/css/index.scss | 28 ++++++++++++++++++++++ 13 files changed, 146 insertions(+), 14 deletions(-) create mode 100644 src/css/CallController.scss create mode 100644 src/css/EndpointHandler.scss diff --git a/package-lock.json b/package-lock.json index c48e1de..99c7d08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@types/node": "^16.18.126", "@types/react": "^19.2.2", "@types/react-dom": "^19.2.2", - "bandwidth-rtc": "^0.3.0", + "bandwidth-rtc": "^0.4.0", "bandwidth-sdk": "^7.3.0", "cors": "^2.8.5", "dotenv": "^16.4.7", @@ -5683,7 +5683,9 @@ "license": "MIT" }, "node_modules/bandwidth-rtc": { - "version": "0.3.0", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/bandwidth-rtc/-/bandwidth-rtc-0.4.0.tgz", + "integrity": "sha512-BZDWvjSci6C1m1a3aLzndMwOnfSzfqF4vJiyp0ukD69ljXU1tU1fgQHoYPgFK9Xdn48HI/z9cXVp8DZhm2rZIw==", "license": "MIT", "dependencies": { "@types/uuid": "^10.0.0", diff --git a/package.json b/package.json index 21ffbfd..dc41316 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@types/node": "^16.18.126", "@types/react": "^19.2.2", "@types/react-dom": "^19.2.2", - "bandwidth-rtc": "^0.3.0", + "bandwidth-rtc": "^0.4.0", "bandwidth-sdk": "^7.3.0", "cors": "^2.8.5", "dotenv": "^16.4.7", diff --git a/src/App.tsx b/src/App.tsx index 5461f54..34eccac 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -56,11 +56,11 @@ function App() { {readyMetadata && ( <>

Bandwidth RTC Agent Sample

-
+
-
+
diff --git a/src/components/CallController.tsx b/src/components/CallController.tsx index 0d62757..17cb1c4 100644 --- a/src/components/CallController.tsx +++ b/src/components/CallController.tsx @@ -3,6 +3,7 @@ import React, {ChangeEventHandler, useState} from "react"; import '../css/DigitGrid.scss'; import '../css/CallControlButton.scss'; import '../css/NumberInput.scss'; +import '../css/CallController.scss'; import CallIcon from '@mui/icons-material/Call'; import CallEndIcon from '@mui/icons-material/CallEnd'; import ShortcutOutlinedIcon from '@mui/icons-material/ShortcutOutlined'; diff --git a/src/components/EndpointHandler.tsx b/src/components/EndpointHandler.tsx index bdfd09c..3ca6c44 100644 --- a/src/components/EndpointHandler.tsx +++ b/src/components/EndpointHandler.tsx @@ -1,6 +1,7 @@ import React, {useEffect, useState} from "react"; import BandwidthRtc from "bandwidth-rtc"; import {Endpoint} from "../../server/types" +import '../css/EndpointHandler.scss'; function EndpointHandler({bandwidthRtcClient, resetClient, gatewayUrl}: {bandwidthRtcClient: BandwidthRtc, resetClient: () => void, gatewayUrl?: string }) { const [endpoint, setEndpoint] = useState(null); @@ -82,11 +83,13 @@ function EndpointHandler({bandwidthRtcClient, resetClient, gatewayUrl}: {bandwid
)} - - - +
+ + + +
{endpoint !== null && ( -

{endpoint.endpointId}

+

{endpoint.endpointId}

)}
); diff --git a/src/components/MediaCapture.tsx b/src/components/MediaCapture.tsx index cba49ce..2d8d764 100644 --- a/src/components/MediaCapture.tsx +++ b/src/components/MediaCapture.tsx @@ -244,10 +244,10 @@ function MediaCapture({bandwidthRtcClient}: {bandwidthRtcClient: BandwidthRtc} ) }; return ( -
+