From 8d56a8e8fcfdd3d7172b5e1f6b1362d6eca5f398 Mon Sep 17 00:00:00 2001
From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com>
Date: Thu, 13 Apr 2023 11:35:49 +0100
Subject: [PATCH 1/5] Fix #978 issue with builds not building.
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 9487319..ca31832 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"type": "module",
"scripts": {
"dev": "vite",
- "build": "vite build",
+ "build": "NODE_OPTIONS=--max-old-space-size=16384 vite build",
"serve": "vite preview",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
From 323dba620d4a01e9ac14a42a275048e8890f8195 Mon Sep 17 00:00:00 2001
From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com>
Date: Wed, 19 Apr 2023 13:47:05 +0100
Subject: [PATCH 2/5] Add a range of data-testid tags to be able to cleanly
identify parts of the application.
---
src/home/JoinExistingCallModal.tsx | 2 +-
src/home/UnauthenticatedView.tsx | 4 +++-
src/icons/VideoMuted.svg | 2 +-
src/room/LobbyView.tsx | 1 +
src/room/VideoPreview.tsx | 2 +-
src/video-grid/VideoTile.tsx | 5 +++--
6 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/home/JoinExistingCallModal.tsx b/src/home/JoinExistingCallModal.tsx
index 0beae60..02d7cd2 100644
--- a/src/home/JoinExistingCallModal.tsx
+++ b/src/home/JoinExistingCallModal.tsx
@@ -43,7 +43,7 @@ export function JoinExistingCallModal({ onJoin, onClose, ...rest }: Props) {
{t("This call already exists, would you like to join?")}
-
+
diff --git a/src/home/UnauthenticatedView.tsx b/src/home/UnauthenticatedView.tsx
index c31637b..be20d70 100644
--- a/src/home/UnauthenticatedView.tsx
+++ b/src/home/UnauthenticatedView.tsx
@@ -142,6 +142,7 @@ export const UnauthenticatedView: FC = () => {
type="text"
required
autoComplete="off"
+ data-testid="home_callName"
/>
@@ -152,6 +153,7 @@ export const UnauthenticatedView: FC = () => {
placeholder={t("Display name")}
type="text"
required
+ data-testid="home_displayName"
autoComplete="off"
/>
@@ -171,7 +173,7 @@ export const UnauthenticatedView: FC = () => {
)}
-
diff --git a/src/room/VideoPreview.tsx b/src/room/VideoPreview.tsx
index 0e92cc5..6325bda 100644
--- a/src/room/VideoPreview.tsx
+++ b/src/room/VideoPreview.tsx
@@ -64,7 +64,7 @@ export function VideoPreview({
return (
-
+
{state === GroupCallState.LocalCallFeedUninitialized && (
{t("Camera/microphone permissions needed to join the call.")}
diff --git a/src/video-grid/VideoTile.tsx b/src/video-grid/VideoTile.tsx
index eea617f..804a036 100644
--- a/src/video-grid/VideoTile.tsx
+++ b/src/video-grid/VideoTile.tsx
@@ -154,6 +154,7 @@ export const VideoTile = forwardRef(
"--tileHeight": height?.to((h) => `${h}px`),
}}
ref={ref as ForwardedRef}
+ data-testid='videoTile'
{...rest}
>
{toolbarButtons.length > 0 && !maximised && (
@@ -180,10 +181,10 @@ export const VideoTile = forwardRef(
audioMuted && !videoMuted && !speaking &&
}
{videoMuted && }
- {caption}
+ {caption}
))}
-
+
);
}
From 4e8146bc9cda07cc0765156662797e9ebe06e1e2 Mon Sep 17 00:00:00 2001
From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com>
Date: Tue, 25 Apr 2023 16:42:27 +0100
Subject: [PATCH 3/5] Add screenshare tags
---
src/room/InCallView.tsx | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx
index b3fdaa3..198edb2 100644
--- a/src/room/InCallView.tsx
+++ b/src/room/InCallView.tsx
@@ -383,11 +383,13 @@ export function InCallView({
key="1"
muted={microphoneMuted}
onPress={toggleMicrophoneMuted}
+ data-testid="incall_mute"
/>,
);
@@ -398,6 +400,7 @@ export function InCallView({
key="3"
enabled={isScreensharing}
onPress={toggleScreensharing}
+ data-testid="incall_screenshare"
/>
);
}
From 2318f2c4a002f040fcab3f90df02710758afd007 Mon Sep 17 00:00:00 2001
From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com>
Date: Tue, 2 May 2023 17:33:56 +0100
Subject: [PATCH 4/5] prettier -w
---
src/home/JoinExistingCallModal.tsx | 4 +++-
src/home/UnauthenticatedView.tsx | 7 ++++++-
src/room/VideoPreview.tsx | 8 +++++++-
src/video-grid/VideoTile.tsx | 13 ++++++++++---
4 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/src/home/JoinExistingCallModal.tsx b/src/home/JoinExistingCallModal.tsx
index 02d7cd2..078d317 100644
--- a/src/home/JoinExistingCallModal.tsx
+++ b/src/home/JoinExistingCallModal.tsx
@@ -43,7 +43,9 @@ export function JoinExistingCallModal({ onJoin, onClose, ...rest }: Props) {
{t("This call already exists, would you like to join?")}
{t("No")}
- {t("Yes, join call")}
+
+ {t("Yes, join call")}
+
diff --git a/src/home/UnauthenticatedView.tsx b/src/home/UnauthenticatedView.tsx
index be20d70..4d4f5ce 100644
--- a/src/home/UnauthenticatedView.tsx
+++ b/src/home/UnauthenticatedView.tsx
@@ -173,7 +173,12 @@ export const UnauthenticatedView: FC = () => {
)}
-
+
{loading ? t("Loading…") : t("Go")}
diff --git a/src/room/VideoPreview.tsx b/src/room/VideoPreview.tsx
index 6325bda..aaf9df5 100644
--- a/src/room/VideoPreview.tsx
+++ b/src/room/VideoPreview.tsx
@@ -64,7 +64,13 @@ export function VideoPreview({
return (
-
+
{state === GroupCallState.LocalCallFeedUninitialized && (
{t("Camera/microphone permissions needed to join the call.")}
diff --git a/src/video-grid/VideoTile.tsx b/src/video-grid/VideoTile.tsx
index 804a036..e3d26ad 100644
--- a/src/video-grid/VideoTile.tsx
+++ b/src/video-grid/VideoTile.tsx
@@ -154,7 +154,7 @@ export const VideoTile = forwardRef(
"--tileHeight": height?.to((h) => `${h}px`),
}}
ref={ref as ForwardedRef}
- data-testid='videoTile'
+ data-testid="videoTile"
{...rest}
>
{toolbarButtons.length > 0 && !maximised && (
@@ -181,10 +181,17 @@ export const VideoTile = forwardRef(
audioMuted && !videoMuted && !speaking &&
}
{videoMuted && }
- {caption}
+
+ {caption}
+
))}
-
+
);
}
From 9c8692d99e3a0574e413fbede5ef5242409bba3c Mon Sep 17 00:00:00 2001
From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com>
Date: Wed, 3 May 2023 12:57:03 +0100
Subject: [PATCH 5/5] Remove NODE_OPTIONS from GHA commands, as defaulted in
package.json now.
---
.github/workflows/build.yaml | 3 ---
.github/workflows/publish.yaml | 3 ---
2 files changed, 6 deletions(-)
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index ba27e26..eee1406 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -23,9 +23,6 @@ jobs:
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- # This appears to be necessary to stop Vite from OOMing
- # https://github.com/vitejs/vite/issues/2433
- NODE_OPTIONS: "--max-old-space-size=16384"
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml
index 3558797..f49980d 100644
--- a/.github/workflows/publish.yaml
+++ b/.github/workflows/publish.yaml
@@ -40,9 +40,6 @@ jobs:
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
VITE_APP_VERSION: ${{ github.event.release.tag_name }}
- # This appears to be necessary to stop Vite from OOMing
- # https://github.com/vitejs/vite/issues/2433
- NODE_OPTIONS: "--max-old-space-size=16384"
- name: Create Tarball
env: