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
9 changed files with 691 additions and 614 deletions
-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>
);
};
+134 -106
View File
@@ -30,6 +30,7 @@ import {
InlineField,
Label,
RadioControl,
CheckboxControl,
Separator,
} from "@vector-im/compound-web";
@@ -248,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}>
@@ -357,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>
</>
);
};
@@ -440,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={
+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,120 +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>
</form>
<div
class="_separator_13qwf_8"
data-kind="primary"