Compare commits

..
Author SHA1 Message Date
ValereandClaude Opus 5.5 8ae8ded970 Use Compound checkboxes in settings
Unchecked settings checkboxes rendered a tick in light theme: the rule
hiding the check icon was dropped with the stopgap colour variables in
de75a69ca. Rather than restore our own checkbox, use Compound's
InlineField + CheckboxControl + Label + HelpMessage, as the radio
groups already do, and remove the checkbox path from InputField.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 20:43:40 +01:00
16 changed files with 701 additions and 759 deletions
+2 -2
View File
@@ -19,10 +19,10 @@ services:
- ./backend/playwright_homeserver-othersite.yaml:/data/cfg/homeserver.yaml:Z
element-web:
# Pin to a SHA so that upstream cannot break our tests. Renovate handles regular updates.
image: ghcr.io/element-hq/element-web:develop@sha256:5c9a8288deccb648e0d590776dff747ba674fe45c32cada6f804776800a38d2c
image: ghcr.io/element-hq/element-web:develop@sha256:a9fba6e7ea9a32f62bc1459fcdad790662476ff1b2bcebc62fe47e5cf51e3932
element-web-1:
# Pin to a SHA so that upstream cannot break our tests. Renovate handles regular updates.
image: ghcr.io/element-hq/element-web:develop@sha256:5c9a8288deccb648e0d590776dff747ba674fe45c32cada6f804776800a38d2c
image: ghcr.io/element-hq/element-web:develop@sha256:a9fba6e7ea9a32f62bc1459fcdad790662476ff1b2bcebc62fe47e5cf51e3932
volumes:
# The other site opens the embedded package under test in place of the
# copy its image bundles (the first site opens the dev server's app.
+1 -1
View File
@@ -96,7 +96,6 @@
},
"mute_all_audio": "Mute all audio (participants, reactions, join sounds)",
"show_connection_stats": "Show connection statistics",
"throw_error_button": "Throw test error",
"url_params": "URL parameters"
},
"disconnected_banner": "Connectivity to the server has been lost.",
@@ -143,6 +142,7 @@
},
"handset": {
"overlay_back_button": "Back to Speaker Mode",
"overlay_description": "Only works while using app",
"overlay_title": "Handset Mode"
},
"hangup_button_label": "End call",
-3
View File
@@ -422,9 +422,6 @@ test.describe("a background of one's own", () => {
).toBeVisible();
await expect(mine).toHaveCount(0);
await page.keyboard.press("Escape");
// While it animates out the menu still counts as visible: addImage would
// then leave it closed instead of opening it again
await expect(page.getByRole("menu")).toBeHidden();
await addImage(page, red);
await expect(mine).toBeVisible();
@@ -1,64 +0,0 @@
/*
Copyright 2026 Element Creations Ltd.
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details.
*/
import { expect, test } from "@playwright/test";
import { widgetTest } from "../fixtures/widget-user.ts";
import { TestHelpers } from "./test-helpers.ts";
widgetTest.skip(
({ browserName }) => browserName === "firefox",
"Widget specs only run on Chromium, see simple-create.spec.ts",
);
widgetTest(
"Switching rooms away from a crashed call dismisses it for good",
async ({ asWidget }) => {
test.slow();
const { brooks } = asWidget;
const page = brooks.page;
const call = page.locator('iframe[title="Element Call"]');
const callFrame = call.contentFrame();
// Somewhere to switch to once the call has crashed
await TestHelpers.createRoom("Other Room", page);
await TestHelpers.switchToRoomNamed(page, "Welcome Room");
await TestHelpers.startCallInCurrentRoom(page);
// A dev server compiles the widget on first load
await expect(callFrame.getByTestId("lobby_joinCall")).toBeVisible({
timeout: 30000,
});
await TestHelpers.joinCallFromLobby(page);
await expect(
callFrame.getByRole("button", { name: "End call" }),
).toBeVisible();
// Crash the call from its developer settings
await callFrame.getByRole("button", { name: "Settings" }).click();
await callFrame.getByRole("tab", { name: "Preferences" }).click();
await callFrame.getByText("Developer mode", { exact: true }).check();
await callFrame.getByRole("tab", { name: "Developer" }).click();
await callFrame.getByRole("button", { name: "Throw test error" }).click();
await expect(callFrame.getByText("Something went wrong")).toBeVisible();
// Showing the call collapses the room list
await TestHelpers.expandRoomList(page);
await TestHelpers.switchToRoomNamed(page, "Other Room");
await expect(
page.getByRole("main").getByRole("heading", { name: "Other Room" }),
).toBeVisible();
// The crashed call is gone and stays gone: no restart, no reconnect
await expect(call).toHaveCount(0);
await page.waitForTimeout(5000);
await expect(call).toHaveCount(0);
await expect(
page.getByRole("main").getByRole("heading", { name: "Other Room" }),
).toBeVisible();
},
);
-3
View File
@@ -1,3 +0,0 @@
<svg fill="none" height="24" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="m20 6-11 11-5-5"/>
</svg>

Before

Width:  |  Height:  |  Size: 213 B

+4
View File
@@ -12,3 +12,7 @@ Please see LICENSE in the repository root for full details.
.feedback {
border-radius: 8px;
}
.sendLogs {
flex: 1;
}
-68
View File
@@ -128,77 +128,9 @@ Please see LICENSE in the repository root for full details.
color: var(--cpd-color-border-focused);
}
.checkboxField {
display: flex;
align-items: flex-start;
flex-wrap: wrap;
}
.checkboxField label {
display: flex;
align-items: center;
flex-grow: 1;
font-size: var(--font-size-body);
line-height: 24px;
}
.checkboxField input {
outline: 0;
appearance: none;
-webkit-appearance: none;
margin: 0;
padding: 0;
}
.checkbox {
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
flex-shrink: 0;
height: 16px;
width: 16px;
border: 1.5px solid rgba(185, 190, 198, 0.5);
box-sizing: border-box;
border-radius: 4px;
margin-right: 10px;
}
.checkboxField.disabled,
.checkboxField.disabled .description {
color: var(--cpd-color-text-disabled);
}
.checkboxField.disabled .checkbox {
border-color: var(--cpd-color-border-disabled);
}
.checkboxField input[type="checkbox"]:checked + label > .checkbox {
background: var(--cpd-color-text-action-accent);
border-color: var(--cpd-color-text-action-accent);
}
.checkboxField input[type="checkbox"]:checked + label > .checkbox svg {
display: flex;
}
.checkboxField:focus-within .checkbox {
border: 1.5px solid var(--cpd-color-text-link-external) !important;
}
.errorMessage {
margin: 0;
font-size: var(--font-size-caption);
color: var(--cpd-color-text-critical-primary);
font-weight: 600;
}
.description {
color: var(--cpd-color-text-secondary);
margin-left: 26px;
width: 100%; /* Ensure that it breaks onto the next row */
}
.description.noLabel {
margin-top: -20px; /* Ensures that there is no weired spacing if the checkbox doesn't have a label */
}
+2 -29
View File
@@ -10,14 +10,12 @@ import {
type FC,
type ForwardedRef,
type ReactNode,
useId,
type JSX,
type Ref,
} from "react";
import classNames from "classnames";
import styles from "./Input.module.css";
import CheckIcon from "../icons/Check.svg?react";
import { TranslatedError } from "../TranslatedError";
interface FieldRowProps {
@@ -62,7 +60,6 @@ interface InputFieldProps {
id?: string;
checked?: boolean;
className?: string;
description?: string | ReactNode;
disabled?: boolean;
required?: boolean;
// this is a hack. Those variables should be part of `HTMLAttributes<HTMLInputElement> | HTMLAttributes<HTMLTextAreaElement>`
@@ -88,17 +85,14 @@ export const InputField: FC<InputFieldProps> = ({
checked,
prefix,
suffix,
description,
disabled,
min,
...rest
}) => {
const descriptionId = useId();
return (
<Field
className={classNames(
type === "checkbox" ? styles.checkboxField : styles.inputField,
styles.inputField,
{
[styles.prefix]: !!prefix,
[styles.disabled]: disabled,
@@ -114,7 +108,6 @@ export const InputField: FC<InputFieldProps> = ({
id={id}
ref={ref as ForwardedRef<HTMLTextAreaElement>}
disabled={disabled}
aria-describedby={descriptionId}
{...rest}
/>
) : (
@@ -124,33 +117,13 @@ export const InputField: FC<InputFieldProps> = ({
type={type}
checked={checked}
disabled={disabled}
aria-describedby={descriptionId}
min={min}
{...rest}
/>
)}
<label htmlFor={id}>
{type === "checkbox" && (
<div className={styles.checkbox}>
<CheckIcon />
</div>
)}
{label}
</label>
<label htmlFor={id}>{label}</label>
{suffix && <span>{suffix}</span>}
{description && (
<p
id={descriptionId}
className={
label
? styles.description
: classNames(styles.description, styles.noLabel)
}
>
{description}
</p>
)}
</Field>
);
};
+2 -1
View File
@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
*/
import { type FC } from "react";
import { BigIcon, Button, Heading } from "@vector-im/compound-web";
import { BigIcon, Button, Heading, Text } from "@vector-im/compound-web";
import { VoiceCallIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
import { useTranslation } from "react-i18next";
@@ -27,6 +27,7 @@ export const EarpieceOverlay: FC<Props> = ({ show, onBackToVideoPressed }) => {
<Heading as="h2" weight="semibold" size="md">
{t("handset.overlay_title")}
</Heading>
<Text>{t("handset.overlay_description")}</Text>
<Button
kind="primary"
size="md"
@@ -145,6 +145,11 @@ exports[`InCallView > rendering > renders 1`] = `
>
Handset Mode
</h2>
<p
class="_typography_6v6n8_153 _font-body-md-regular_6v6n8_50"
>
Only works while using app
</p>
<button
class="_button_1nw83_8"
data-kind="primary"
@@ -30,9 +30,6 @@ import {
} from "@element-hq/matrixrtc-sdk";
import type * as MatrixRTCSdk from "@element-hq/matrixrtc-sdk";
import { exampleTransport, mockConfig } from "../utils/test";
import { GroupCallErrorBoundary } from "../room/GroupCallErrorBoundary";
import { LeaveToHomeProvider } from "../LeaveToHomeContext";
import { ElementCallError, ErrorCode } from "../utils/errors";
// Mock url params hook to avoid environment-dependent snapshot churn.
vi.mock("../UrlParams", () => ({
@@ -544,38 +541,4 @@ describe("DeveloperSettingsTab", () => {
);
});
});
describe("throw test error", () => {
it("throws an ElementCallError that the error boundary shows", async () => {
const user = userEvent.setup();
const client = createMockMatrixClient();
const onError = vi.fn();
render(
<LeaveToHomeProvider value={vi.fn()}>
<GroupCallErrorBoundary
onError={onError}
recoveryActionHandler={vi.fn()}
>
<TooltipProvider>
<DeveloperSettingsTab
client={client}
env={{} as unknown as ImportMetaEnv}
vm={outOfCallDeveloperSettingsTabViewModel}
/>
</TooltipProvider>
</GroupCallErrorBoundary>
</LeaveToHomeProvider>,
);
await user.click(
screen.getByRole("button", { name: "Throw test error" }),
);
expect(await screen.findByText("Something went wrong")).toBeVisible();
expect(onError).toHaveBeenCalledOnce();
const error = onError.mock.calls[0][0] as unknown;
expect(error).toBeInstanceOf(ElementCallError);
expect((error as ElementCallError).code).toBe(ErrorCode.UNKNOWN_ERROR);
});
});
});
+134 -128
View File
@@ -22,7 +22,6 @@ import {
import { logger } from "matrix-js-sdk/lib/logger";
import { type UnstableLivekitTransport } from "matrix-js-sdk/lib/matrixrtc";
import {
Button,
EditInPlace,
ErrorMessage,
Root as Form,
@@ -31,6 +30,7 @@ import {
InlineField,
Label,
RadioControl,
CheckboxControl,
Separator,
} from "@vector-im/compound-web";
@@ -73,7 +73,6 @@ import {
} from "@element-hq/matrixrtc-sdk";
import { useBehavior } from "../useBehavior";
import { type ViewModel } from "../state/ViewModel.ts";
import { type ElementCallError, UnknownCallError } from "../utils/errors.ts";
/**
* The state of MatrixRTC's media key rotation.
@@ -214,22 +213,6 @@ export const DeveloperSettingsTab: FC<Props> = ({
const urlParams = useUrlParams();
// An error thrown from a click handler never reaches an error boundary, so
// the button only records it and the next render throws it instead.
const [errorToThrow, setErrorToThrow] = useState<ElementCallError | null>(
null,
);
const throwTestError = useCallback(
() =>
setErrorToThrow(
new UnknownCallError(
new Error("Test error thrown from the developer settings"),
),
),
[],
);
if (errorToThrow !== null) throw errorToThrow;
const MediaQualitySettings: React.FC<{
id: string;
header: string;
@@ -266,16 +249,20 @@ export const DeveloperSettingsTab: FC<Props> = ({
return (
<>
<h4>{header}</h4>
<FieldRow>
<InputField
id={`${id}Toggle`}
label={toggleLabel}
description={description}
type="checkbox"
checked={advancedEnabled}
onChange={(e): void => setAdvancedEnabled(e.target.checked)}
/>
</FieldRow>
<Form>
<InlineField
name={`${id}Toggle`}
control={
<CheckboxControl
checked={advancedEnabled}
onChange={(e): void => setAdvancedEnabled(e.target.checked)}
/>
}
>
<Label>{toggleLabel}</Label>
<HelpMessage>{description}</HelpMessage>
</InlineField>
</Form>
{advancedEnabled && (
<>
<div className={settingsStyles.volumeSlider}>
@@ -375,36 +362,47 @@ export const DeveloperSettingsTab: FC<Props> = ({
"Changes apply on next call join.",
)}
</p>
<FieldRow>
<InputField
id="echoCancellation"
label={t("settings.echo_cancellation_label", "Echo cancellation")}
type="checkbox"
checked={echoCancellation}
onChange={(e): void => setEchoCancellation(e.target.checked)}
/>
</FieldRow>
<FieldRow>
<InputField
id="noiseSuppression"
label={t("settings.noise_suppression_label", "Noise suppression")}
type="checkbox"
checked={noiseSuppression}
onChange={(e): void => setNoiseSuppression(e.target.checked)}
/>
</FieldRow>
<FieldRow>
<InputField
id="autoGainControl"
label={t(
"settings.auto_gain_control_label",
"Automatic gain control",
)}
type="checkbox"
checked={autoGainControl}
onChange={(e): void => setAutoGainControl(e.target.checked)}
/>
</FieldRow>
<Form>
<InlineField
name="echoCancellation"
control={
<CheckboxControl
checked={echoCancellation}
onChange={(e): void => setEchoCancellation(e.target.checked)}
/>
}
>
<Label>
{t("settings.echo_cancellation_label", "Echo cancellation")}
</Label>
</InlineField>
<InlineField
name="noiseSuppression"
control={
<CheckboxControl
checked={noiseSuppression}
onChange={(e): void => setNoiseSuppression(e.target.checked)}
/>
}
>
<Label>
{t("settings.noise_suppression_label", "Noise suppression")}
</Label>
</InlineField>
<InlineField
name="autoGainControl"
control={
<CheckboxControl
checked={autoGainControl}
onChange={(e): void => setAutoGainControl(e.target.checked)}
/>
}
>
<Label>
{t("settings.auto_gain_control_label", "Automatic gain control")}
</Label>
</InlineField>
</Form>
</>
);
};
@@ -458,73 +456,85 @@ export const DeveloperSettingsTab: FC<Props> = ({
)}
/>
</FieldRow>
<FieldRow>
<InputField
id="debugTileLayout"
type="checkbox"
checked={debugTileLayout}
label={t("developer_mode.debug_tile_layout_label")}
onChange={(event: ChangeEvent<HTMLInputElement>): void =>
setDebugTileLayout(event.target.checked)
<Form>
<InlineField
name="debugTileLayout"
control={
<CheckboxControl
checked={debugTileLayout}
onChange={(event: ChangeEvent<HTMLInputElement>): void =>
setDebugTileLayout(event.target.checked)
}
/>
}
/>
</FieldRow>
<FieldRow>
<InputField
id="showConnectionStats"
type="checkbox"
label={t("developer_mode.show_connection_stats")}
checked={!!showConnectionStats}
onChange={useCallback(
(event: ChangeEvent<HTMLInputElement>): void => {
setShowConnectionStats(event.target.checked);
},
[setShowConnectionStats],
)}
/>
</FieldRow>
<FieldRow>
<InputField
id="muteAllAudio"
type="checkbox"
label={t("developer_mode.mute_all_audio")}
checked={muteAllAudio}
onChange={useCallback(
(event: ChangeEvent<HTMLInputElement>): void => {
setMuteAllAudio(event.target.checked);
},
[setMuteAllAudio],
)}
/>
</FieldRow>{" "}
<FieldRow>
<InputField
id="alwaysShowIphoneEarpiece"
type="checkbox"
label={t("developer_mode.always_show_iphone_earpiece")}
checked={alwaysShowIphoneEarpiece}
onChange={useCallback(
(event: ChangeEvent<HTMLInputElement>): void => {
setAlwaysShowIphoneEarpiece(event.target.checked);
},
[setAlwaysShowIphoneEarpiece],
)}
/>
</FieldRow>
<FieldRow>
<InputField
id="enableLivekitExtendedLogs"
type="checkbox"
label="Enable extended livekit logs"
checked={enableExtendedLivekitLogs}
onChange={useCallback(
(event: ChangeEvent<HTMLInputElement>): void => {
setEnableExtendedLivekitLogs(event.target.checked);
},
[setEnableExtendedLivekitLogs],
)}
/>
</FieldRow>
>
<Label>{t("developer_mode.debug_tile_layout_label")}</Label>
</InlineField>
<InlineField
name="showConnectionStats"
control={
<CheckboxControl
checked={!!showConnectionStats}
onChange={useCallback(
(event: ChangeEvent<HTMLInputElement>): void => {
setShowConnectionStats(event.target.checked);
},
[setShowConnectionStats],
)}
/>
}
>
<Label>{t("developer_mode.show_connection_stats")}</Label>
</InlineField>
<InlineField
name="muteAllAudio"
control={
<CheckboxControl
checked={muteAllAudio}
onChange={useCallback(
(event: ChangeEvent<HTMLInputElement>): void => {
setMuteAllAudio(event.target.checked);
},
[setMuteAllAudio],
)}
/>
}
>
<Label>{t("developer_mode.mute_all_audio")}</Label>
</InlineField>
<InlineField
name="alwaysShowIphoneEarpiece"
control={
<CheckboxControl
checked={alwaysShowIphoneEarpiece}
onChange={useCallback(
(event: ChangeEvent<HTMLInputElement>): void => {
setAlwaysShowIphoneEarpiece(event.target.checked);
},
[setAlwaysShowIphoneEarpiece],
)}
/>
}
>
<Label>{t("developer_mode.always_show_iphone_earpiece")}</Label>
</InlineField>
<InlineField
name="enableLivekitExtendedLogs"
control={
<CheckboxControl
checked={enableExtendedLivekitLogs}
onChange={useCallback(
(event: ChangeEvent<HTMLInputElement>): void => {
setEnableExtendedLivekitLogs(event.target.checked);
},
[setEnableExtendedLivekitLogs],
)}
/>
}
>
<Label>Enable extended livekit logs</Label>
</InlineField>
</Form>
<EditInPlace
onSubmit={(e) => e.preventDefault()}
helpLabel={
@@ -696,10 +706,6 @@ export const DeveloperSettingsTab: FC<Props> = ({
<Separator />
<AudioProcessingSettings />
<Separator />
<Button kind="secondary" destructive onClick={throwTestError}>
{t("developer_mode.throw_error_button")}
</Button>
<Separator />
<p>{t("developer_mode.environment_variables")}</p>
<pre className={styles.pre}>{JSON.stringify(env, null, 2)}</pre>
<p>{t("developer_mode.url_params")}</p>
+38 -28
View File
@@ -8,7 +8,15 @@ Please see LICENSE in the repository root for full details.
import { type ChangeEvent, type FC, useCallback } from "react";
import { secureRandomString } from "matrix-js-sdk/lib/randomstring";
import { Trans, useTranslation } from "react-i18next";
import { Button, Text } from "@vector-im/compound-web";
import {
Button,
CheckboxControl,
HelpMessage,
InlineField,
Label,
Root as Form,
Text,
} from "@vector-im/compound-web";
import { logger } from "matrix-js-sdk/lib/logger";
import { FieldRow, InputField, ErrorMessage } from "../input/Input";
@@ -57,14 +65,12 @@ export const FeedbackSettingsTab: FC<Props> = ({ roomId }) => {
const [optInAnalytics, setOptInAnalytics] = useOptInAnalytics();
const optInDescription = (
<Text size="sm" as="span">
<Trans i18nKey="settings.opt_in_description">
<AnalyticsNotice />
<br />
You may withdraw consent by unchecking this box. If you are currently in
a call, this setting will take effect at the end of the call.
</Trans>
</Text>
<Trans i18nKey="settings.opt_in_description">
<AnalyticsNotice />
<br />
You may withdraw consent by unchecking this box. If you are currently in a
call, this setting will take effect at the end of the call.
</Trans>
);
// in the embedded package the widget host is responsible for analytics consent
@@ -72,17 +78,21 @@ export const FeedbackSettingsTab: FC<Props> = ({ roomId }) => {
import.meta.env.VITE_PACKAGE === "embedded" ? null : (
<>
<h4>{t("common.analytics")}</h4>
<FieldRow>
<InputField
id="optInAnalytics"
type="checkbox"
checked={optInAnalytics ?? undefined}
description={optInDescription}
onChange={(event: ChangeEvent<HTMLInputElement>): void => {
setOptInAnalytics?.(event.target.checked);
}}
/>
</FieldRow>
<Form>
<InlineField
name="optInAnalytics"
control={
<CheckboxControl
checked={optInAnalytics ?? undefined}
onChange={(event: ChangeEvent<HTMLInputElement>): void => {
setOptInAnalytics?.(event.target.checked);
}}
/>
}
>
<HelpMessage>{optInDescription}</HelpMessage>
</InlineField>
</Form>
</>
);
@@ -90,7 +100,7 @@ export const FeedbackSettingsTab: FC<Props> = ({ roomId }) => {
<>
<h4>{t("settings.feedback_tab_h4")}</h4>
<Text>{t("settings.feedback_tab_body")}</Text>
<form onSubmit={onSubmitFeedback}>
<Form onSubmit={onSubmitFeedback}>
<FieldRow>
<InputField
className={feedbackStyles.feedback}
@@ -104,13 +114,13 @@ export const FeedbackSettingsTab: FC<Props> = ({ roomId }) => {
</FieldRow>
{!sent && (
<FieldRow>
<InputField
id="sendLogs"
<InlineField
className={feedbackStyles.sendLogs}
name="sendLogs"
label={t("settings.feedback_tab_send_logs_label")}
type="checkbox"
defaultChecked
/>
control={<CheckboxControl defaultChecked />}
>
<Label>{t("settings.feedback_tab_send_logs_label")}</Label>
</InlineField>
<Button type="submit" disabled={sending}>
{sending ? t("submitting") : t("action.submit")}
</Button>
@@ -120,7 +130,7 @@ export const FeedbackSettingsTab: FC<Props> = ({ roomId }) => {
{error && <ErrorMessage error={error} />}
{sent && <Text>{t("settings.feedback_tab_thank_you")}</Text>}
</FieldRow>
</form>
</Form>
</>
) : null;
+71 -49
View File
@@ -7,9 +7,15 @@ Please see LICENSE in the repository root for full details.
import { type ChangeEvent, type FC } from "react";
import { useTranslation } from "react-i18next";
import { Text } from "@vector-im/compound-web";
import {
CheckboxControl,
HelpMessage,
InlineField,
Label,
Root as Form,
Text,
} from "@vector-im/compound-web";
import { FieldRow, InputField } from "../input/Input";
import {
showHandRaisedTimer as showHandRaisedTimerSetting,
showReactions as showReactionsSetting,
@@ -42,54 +48,70 @@ export const PreferencesSettingsTab: FC = () => {
return (
<div>
<Text>{t("settings.preferences_tab.introduction")}</Text>
<FieldRow>
<InputField
id="showHandRaisedTimer"
label={t("settings.preferences_tab.show_hand_raised_timer_label")}
description={t(
"settings.preferences_tab.show_hand_raised_timer_description",
)}
type="checkbox"
checked={showHandRaisedTimer}
onChange={(e) => onChangeSetting(e, setShowHandRaisedTimer)}
/>
</FieldRow>
<FieldRow>
<InputField
id="showReactions"
label={t("settings.preferences_tab.reactions_show_label")}
description={t("settings.preferences_tab.reactions_show_description")}
type="checkbox"
checked={showReactions}
onChange={(e) => onChangeSetting(e, setShowReactions)}
/>
</FieldRow>
<FieldRow>
<InputField
id="playReactionSound"
label={t("settings.preferences_tab.reactions_play_sound_label")}
description={t(
"settings.preferences_tab.reactions_play_sound_description",
)}
type="checkbox"
checked={playReactionsSound}
onChange={(e) => onChangeSetting(e, setPlayReactionSound)}
/>
</FieldRow>
<FieldRow>
<InputField
id="developerSettingsTab"
type="checkbox"
checked={developerMode}
label={t("settings.preferences_tab.developer_mode_label")}
description={t(
"settings.preferences_tab.developer_mode_label_description",
)}
onChange={(event: ChangeEvent<HTMLInputElement>): void =>
setDeveloperMode(event.target.checked)
<Form>
<InlineField
name="showHandRaisedTimer"
control={
<CheckboxControl
checked={showHandRaisedTimer}
onChange={(e) => onChangeSetting(e, setShowHandRaisedTimer)}
/>
}
/>
</FieldRow>
>
<Label>
{t("settings.preferences_tab.show_hand_raised_timer_label")}
</Label>
<HelpMessage>
{t("settings.preferences_tab.show_hand_raised_timer_description")}
</HelpMessage>
</InlineField>
<InlineField
name="showReactions"
control={
<CheckboxControl
checked={showReactions}
onChange={(e) => onChangeSetting(e, setShowReactions)}
/>
}
>
<Label>{t("settings.preferences_tab.reactions_show_label")}</Label>
<HelpMessage>
{t("settings.preferences_tab.reactions_show_description")}
</HelpMessage>
</InlineField>
<InlineField
name="playReactionSound"
control={
<CheckboxControl
checked={playReactionsSound}
onChange={(e) => onChangeSetting(e, setPlayReactionSound)}
/>
}
>
<Label>
{t("settings.preferences_tab.reactions_play_sound_label")}
</Label>
<HelpMessage>
{t("settings.preferences_tab.reactions_play_sound_description")}
</HelpMessage>
</InlineField>
<InlineField
name="developerSettingsTab"
control={
<CheckboxControl
checked={developerMode}
onChange={(event: ChangeEvent<HTMLInputElement>): void =>
setDeveloperMode(event.target.checked)
}
/>
}
>
<Label>{t("settings.preferences_tab.developer_mode_label")}</Label>
<HelpMessage>
{t("settings.preferences_tab.developer_mode_label_description")}
</HelpMessage>
</InlineField>
</Form>
</div>
);
};
+33 -18
View File
@@ -7,7 +7,15 @@ Please see LICENSE in the repository root for full details.
import { type FC, type ReactNode, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { Button, Root as Form, Separator } from "@vector-im/compound-web";
import {
Button,
CheckboxControl,
HelpMessage,
InlineField,
Label,
Root as Form,
Separator,
} from "@vector-im/compound-web";
import { type MatrixClient } from "matrix-js-sdk";
import { Modal } from "../Modal";
@@ -37,7 +45,6 @@ import {
type DeveloperSettingsSnapshot,
type TransportInfo,
} from "./DeveloperSettingsTab";
import { FieldRow, InputField } from "../input/Input";
import { useSubmitRageshake } from "./submit-rageshake";
import { useUrlParams } from "../UrlParams";
import { useBehavior } from "../useBehavior";
@@ -111,23 +118,31 @@ export const SettingsModal: FC<Props> = ({
<>
<h4>{t("settings.background_blur_header")}</h4>
<FieldRow>
<InputField
id="activateBackgroundBlur"
label={t("settings.background_blur_label")}
description={
supported ? "" : t("settings.blur_not_supported_by_browser")
<Form>
<InlineField
name="activateBackgroundBlur"
control={
<CheckboxControl
checked={blurActive}
onChange={(b): void =>
setEffect(
serializeEffect({
kind: b.target.checked ? "blur" : "none",
}),
)
}
disabled={!supported}
/>
}
type="checkbox"
checked={blurActive}
onChange={(b): void =>
setEffect(
serializeEffect({ kind: b.target.checked ? "blur" : "none" }),
)
}
disabled={!supported}
/>
</FieldRow>
>
<Label>{t("settings.background_blur_label")}</Label>
{!supported && (
<HelpMessage>
{t("settings.blur_not_supported_by_browser")}
</HelpMessage>
)}
</InlineField>
</Form>
</>
);
};
@@ -30,7 +30,6 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
class="_field_1bd8c0 _inputField_1bd8c0"
>
<input
aria-describedby="_r_1_"
id="duplicateTiles"
min="0"
type="number"
@@ -43,192 +42,235 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
</label>
</div>
</div>
<div
class="_fieldRow_1bd8c0"
<form
class="_root_1o4d9_17"
>
<div
class="_field_1bd8c0 _checkboxField_1bd8c0"
class="_inline-field_1o4d9_33"
>
<input
aria-describedby="_r_2_"
id="debugTileLayout"
type="checkbox"
/>
<label
for="debugTileLayout"
<div
class="_inline-field-control_1o4d9_45"
>
<div
class="_checkbox_1bd8c0"
class="_container_153f2_10"
>
<svg
fill="none"
height="24"
stroke="#000"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
<input
class="_input_153f2_18"
id="radix-_r_1_"
name="debugTileLayout"
title=""
type="checkbox"
/>
<div
class="_ui_153f2_19"
>
<path
d="m20 6-11 11-5-5"
/>
</svg>
<svg
aria-hidden="true"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
Debug tile layout
</label>
</div>
<div
class="_inline-field-body_1o4d9_39"
>
<label
class="_label_1o4d9_60"
for="radix-_r_1_"
>
Debug tile layout
</label>
</div>
</div>
</div>
<div
class="_fieldRow_1bd8c0"
>
<div
class="_field_1bd8c0 _checkboxField_1bd8c0"
class="_inline-field_1o4d9_33"
>
<input
aria-describedby="_r_3_"
id="showConnectionStats"
type="checkbox"
/>
<label
for="showConnectionStats"
<div
class="_inline-field-control_1o4d9_45"
>
<div
class="_checkbox_1bd8c0"
class="_container_153f2_10"
>
<svg
fill="none"
height="24"
stroke="#000"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
<input
class="_input_153f2_18"
id="radix-_r_2_"
name="showConnectionStats"
title=""
type="checkbox"
/>
<div
class="_ui_153f2_19"
>
<path
d="m20 6-11 11-5-5"
/>
</svg>
<svg
aria-hidden="true"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
Show connection statistics
</label>
</div>
<div
class="_inline-field-body_1o4d9_39"
>
<label
class="_label_1o4d9_60"
for="radix-_r_2_"
>
Show connection statistics
</label>
</div>
</div>
</div>
<div
class="_fieldRow_1bd8c0"
>
<div
class="_field_1bd8c0 _checkboxField_1bd8c0"
class="_inline-field_1o4d9_33"
>
<input
aria-describedby="_r_4_"
id="muteAllAudio"
type="checkbox"
/>
<label
for="muteAllAudio"
<div
class="_inline-field-control_1o4d9_45"
>
<div
class="_checkbox_1bd8c0"
class="_container_153f2_10"
>
<svg
fill="none"
height="24"
stroke="#000"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
<input
class="_input_153f2_18"
id="radix-_r_3_"
name="muteAllAudio"
title=""
type="checkbox"
/>
<div
class="_ui_153f2_19"
>
<path
d="m20 6-11 11-5-5"
/>
</svg>
<svg
aria-hidden="true"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
Mute all audio (participants, reactions, join sounds)
</label>
</div>
<div
class="_inline-field-body_1o4d9_39"
>
<label
class="_label_1o4d9_60"
for="radix-_r_3_"
>
Mute all audio (participants, reactions, join sounds)
</label>
</div>
</div>
</div>
<div
class="_fieldRow_1bd8c0"
>
<div
class="_field_1bd8c0 _checkboxField_1bd8c0"
class="_inline-field_1o4d9_33"
>
<input
aria-describedby="_r_5_"
id="alwaysShowIphoneEarpiece"
type="checkbox"
/>
<label
for="alwaysShowIphoneEarpiece"
<div
class="_inline-field-control_1o4d9_45"
>
<div
class="_checkbox_1bd8c0"
class="_container_153f2_10"
>
<svg
fill="none"
height="24"
stroke="#000"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
<input
class="_input_153f2_18"
id="radix-_r_4_"
name="alwaysShowIphoneEarpiece"
title=""
type="checkbox"
/>
<div
class="_ui_153f2_19"
>
<path
d="m20 6-11 11-5-5"
/>
</svg>
<svg
aria-hidden="true"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
Show iPhone earpiece option on all platforms
</label>
</div>
<div
class="_inline-field-body_1o4d9_39"
>
<label
class="_label_1o4d9_60"
for="radix-_r_4_"
>
Show iPhone earpiece option on all platforms
</label>
</div>
</div>
</div>
<div
class="_fieldRow_1bd8c0"
>
<div
class="_field_1bd8c0 _checkboxField_1bd8c0"
class="_inline-field_1o4d9_33"
>
<input
aria-describedby="_r_6_"
id="enableLivekitExtendedLogs"
type="checkbox"
/>
<label
for="enableLivekitExtendedLogs"
<div
class="_inline-field-control_1o4d9_45"
>
<div
class="_checkbox_1bd8c0"
class="_container_153f2_10"
>
<svg
fill="none"
height="24"
stroke="#000"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
<input
class="_input_153f2_18"
id="radix-_r_5_"
name="enableLivekitExtendedLogs"
title=""
type="checkbox"
/>
<div
class="_ui_153f2_19"
>
<path
d="m20 6-11 11-5-5"
/>
</svg>
<svg
aria-hidden="true"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
Enable extended livekit logs
</label>
</div>
<div
class="_inline-field-body_1o4d9_39"
>
<label
class="_label_1o4d9_60"
for="radix-_r_5_"
>
Enable extended livekit logs
</label>
</div>
</div>
</div>
</form>
<form
class="_root_1o4d9_17"
>
@@ -237,7 +279,7 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
>
<label
class="_label_1o4d9_60"
for="radix-_r_7_"
for="radix-_r_6_"
>
Custom transport JSON
</label>
@@ -245,9 +287,9 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
class="_controls_17lij_8"
>
<input
aria-describedby="radix-_r_8_"
aria-describedby="radix-_r_7_"
class="_control_d83jn_10"
id="radix-_r_7_"
id="radix-_r_6_"
name="input"
title=""
value=""
@@ -255,7 +297,7 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
</div>
<span
class="_message_1o4d9_86 _help-message_1o4d9_92"
id="radix-_r_8_"
id="radix-_r_7_"
>
Currently, no overwrite is set. Url from config is used.
</span>
@@ -285,10 +327,10 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
class="_container_1ug7n_10"
>
<input
aria-describedby="radix-_r_a_ radix-_r_c_"
aria-describedby="radix-_r_9_ radix-_r_b_"
checked=""
class="_input_1ug7n_18"
id="radix-_r_9_"
id="radix-_r_8_"
name="_r_0_"
title=""
type="radio"
@@ -304,13 +346,13 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
>
<label
class="_label_1o4d9_60"
for="radix-_r_9_"
for="radix-_r_8_"
>
Compatibility: state events & multi SFU
</label>
<span
class="_message_1o4d9_86 _help-message_1o4d9_92"
id="radix-_r_a_"
id="radix-_r_9_"
>
Compatible with homeservers that do not support sticky events (but all other EC clients are v0.17.0 or later)
</span>
@@ -326,9 +368,9 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
class="_container_1ug7n_10"
>
<input
aria-describedby="radix-_r_a_ radix-_r_c_"
aria-describedby="radix-_r_9_ radix-_r_b_"
class="_input_1ug7n_18"
id="radix-_r_b_"
id="radix-_r_a_"
name="_r_0_"
title=""
type="radio"
@@ -344,13 +386,13 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
>
<label
class="_label_1o4d9_60"
for="radix-_r_b_"
for="radix-_r_a_"
>
Matrix 2.0: sticky events & multi SFU
</label>
<span
class="_message_1o4d9_86 _help-message_1o4d9_92"
id="radix-_r_c_"
id="radix-_r_b_"
>
Compatible only with homservers supporting sticky events and all EC clients v0.17.0 or later
</span>
@@ -408,49 +450,62 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
<h4>
Camera quality
</h4>
<div
class="_fieldRow_1bd8c0"
<form
class="_root_1o4d9_17"
>
<div
class="_field_1bd8c0 _checkboxField_1bd8c0"
class="_inline-field_1o4d9_33"
>
<input
aria-describedby="_r_i_"
id="cameraToggle"
type="checkbox"
/>
<label
for="cameraToggle"
<div
class="_inline-field-control_1o4d9_45"
>
<div
class="_checkbox_1bd8c0"
class="_container_153f2_10"
>
<svg
fill="none"
height="24"
stroke="#000"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
<input
aria-describedby="radix-_r_k_"
class="_input_153f2_18"
id="radix-_r_j_"
name="cameraToggle"
title=""
type="checkbox"
/>
<div
class="_ui_153f2_19"
>
<path
d="m20 6-11 11-5-5"
/>
</svg>
<svg
aria-hidden="true"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
Advanced camera settings
</label>
<p
class="_description_1bd8c0"
id="_r_i_"
</div>
<div
class="_inline-field-body_1o4d9_39"
>
Configure resolution, framerate, bitrate, and codec for camera video. Changes apply on next call join.
</p>
<label
class="_label_1o4d9_60"
for="radix-_r_j_"
>
Advanced camera settings
</label>
<span
class="_message_1o4d9_86 _help-message_1o4d9_92"
id="radix-_r_k_"
>
Configure resolution, framerate, bitrate, and codec for camera video. Changes apply on next call join.
</span>
</div>
</div>
</div>
</form>
<div
class="_separator_13qwf_8"
data-kind="primary"
@@ -460,49 +515,62 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
<h4>
Screen sharing
</h4>
<div
class="_fieldRow_1bd8c0"
<form
class="_root_1o4d9_17"
>
<div
class="_field_1bd8c0 _checkboxField_1bd8c0"
class="_inline-field_1o4d9_33"
>
<input
aria-describedby="_r_j_"
id="screenShareToggle"
type="checkbox"
/>
<label
for="screenShareToggle"
<div
class="_inline-field-control_1o4d9_45"
>
<div
class="_checkbox_1bd8c0"
class="_container_153f2_10"
>
<svg
fill="none"
height="24"
stroke="#000"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
<input
aria-describedby="radix-_r_m_"
class="_input_153f2_18"
id="radix-_r_l_"
name="screenShareToggle"
title=""
type="checkbox"
/>
<div
class="_ui_153f2_19"
>
<path
d="m20 6-11 11-5-5"
/>
</svg>
<svg
aria-hidden="true"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
Advanced screen share settings
</label>
<p
class="_description_1bd8c0"
id="_r_j_"
</div>
<div
class="_inline-field-body_1o4d9_39"
>
Configure resolution, framerate, bitrate, and codec for screen sharing
</p>
<label
class="_label_1o4d9_60"
for="radix-_r_l_"
>
Advanced screen share settings
</label>
<span
class="_message_1o4d9_86 _help-message_1o4d9_92"
id="radix-_r_m_"
>
Configure resolution, framerate, bitrate, and codec for screen sharing
</span>
</div>
</div>
</div>
</form>
<div
class="_separator_13qwf_8"
data-kind="primary"
@@ -515,135 +583,148 @@ exports[`DeveloperSettingsTab > renders and matches snapshot 1`] = `
<p>
Changes apply on next call join.
</p>
<div
class="_fieldRow_1bd8c0"
<form
class="_root_1o4d9_17"
>
<div
class="_field_1bd8c0 _checkboxField_1bd8c0"
class="_inline-field_1o4d9_33"
>
<input
aria-describedby="_r_k_"
checked=""
id="echoCancellation"
type="checkbox"
/>
<label
for="echoCancellation"
<div
class="_inline-field-control_1o4d9_45"
>
<div
class="_checkbox_1bd8c0"
class="_container_153f2_10"
>
<svg
fill="none"
height="24"
stroke="#000"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
<input
checked=""
class="_input_153f2_18"
id="radix-_r_n_"
name="echoCancellation"
title=""
type="checkbox"
/>
<div
class="_ui_153f2_19"
>
<path
d="m20 6-11 11-5-5"
/>
</svg>
<svg
aria-hidden="true"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
Echo cancellation
</label>
</div>
<div
class="_inline-field-body_1o4d9_39"
>
<label
class="_label_1o4d9_60"
for="radix-_r_n_"
>
Echo cancellation
</label>
</div>
</div>
</div>
<div
class="_fieldRow_1bd8c0"
>
<div
class="_field_1bd8c0 _checkboxField_1bd8c0"
class="_inline-field_1o4d9_33"
>
<input
aria-describedby="_r_l_"
checked=""
id="noiseSuppression"
type="checkbox"
/>
<label
for="noiseSuppression"
<div
class="_inline-field-control_1o4d9_45"
>
<div
class="_checkbox_1bd8c0"
class="_container_153f2_10"
>
<svg
fill="none"
height="24"
stroke="#000"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
<input
checked=""
class="_input_153f2_18"
id="radix-_r_o_"
name="noiseSuppression"
title=""
type="checkbox"
/>
<div
class="_ui_153f2_19"
>
<path
d="m20 6-11 11-5-5"
/>
</svg>
<svg
aria-hidden="true"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
Noise suppression
</label>
</div>
<div
class="_inline-field-body_1o4d9_39"
>
<label
class="_label_1o4d9_60"
for="radix-_r_o_"
>
Noise suppression
</label>
</div>
</div>
</div>
<div
class="_fieldRow_1bd8c0"
>
<div
class="_field_1bd8c0 _checkboxField_1bd8c0"
class="_inline-field_1o4d9_33"
>
<input
aria-describedby="_r_m_"
checked=""
id="autoGainControl"
type="checkbox"
/>
<label
for="autoGainControl"
<div
class="_inline-field-control_1o4d9_45"
>
<div
class="_checkbox_1bd8c0"
class="_container_153f2_10"
>
<svg
fill="none"
height="24"
stroke="#000"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
<input
checked=""
class="_input_153f2_18"
id="radix-_r_p_"
name="autoGainControl"
title=""
type="checkbox"
/>
<div
class="_ui_153f2_19"
>
<path
d="m20 6-11 11-5-5"
/>
</svg>
<svg
aria-hidden="true"
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.55 17.575q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L4.55 13q-.274-.274-.262-.713.012-.437.287-.712a.95.95 0 0 1 .7-.275q.425 0 .7.275L9.55 15.15l8.475-8.475q.274-.275.713-.275.437 0 .712.275.275.274.275.713 0 .437-.275.712l-9.2 9.2q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"
/>
</svg>
</div>
</div>
Automatic gain control
</label>
</div>
<div
class="_inline-field-body_1o4d9_39"
>
<label
class="_label_1o4d9_60"
for="radix-_r_p_"
>
Automatic gain control
</label>
</div>
</div>
</div>
<div
class="_separator_13qwf_8"
data-kind="primary"
data-orientation="horizontal"
role="separator"
/>
<button
class="_button_1nw83_8 _destructive_1nw83_110"
data-kind="secondary"
data-size="lg"
role="button"
tabindex="0"
>
Throw test error
</button>
</form>
<div
class="_separator_13qwf_8"
data-kind="primary"