mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-24 19:19:21 +00:00
Merge remote-tracking branch 'origin/livekit' into hs/compound-switch
This commit is contained in:
@@ -122,6 +122,7 @@ export class TestHelpers {
|
|||||||
|
|
||||||
await this.maybeDismissBrowserNotSupportedToast(page);
|
await this.maybeDismissBrowserNotSupportedToast(page);
|
||||||
await this.maybeDismissServiceWorkerWarningToast(page);
|
await this.maybeDismissServiceWorkerWarningToast(page);
|
||||||
|
await this.maybeDismissBackupChat(page);
|
||||||
|
|
||||||
await TestHelpers.setDevToolElementCallDevUrl(page);
|
await TestHelpers.setDevToolElementCallDevUrl(page);
|
||||||
|
|
||||||
@@ -170,6 +171,22 @@ export class TestHelpers {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static async maybeDismissBackupChat(page: Page): Promise<void> {
|
||||||
|
const toast = page
|
||||||
|
.locator(".mx_Toast_toast")
|
||||||
|
.getByText("Back up your chats");
|
||||||
|
|
||||||
|
try {
|
||||||
|
await expect(toast).toBeVisible({ timeout: 700 });
|
||||||
|
await page
|
||||||
|
.locator(".mx_Toast_toast")
|
||||||
|
.getByRole("button", { name: "Dismiss" })
|
||||||
|
.click();
|
||||||
|
} catch {
|
||||||
|
// toast not visible, continue as normal
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static async maybeDismissKeyBackupToast(page: Page): Promise<void> {
|
public static async maybeDismissKeyBackupToast(page: Page): Promise<void> {
|
||||||
const toast = page
|
const toast = page
|
||||||
.locator(".mx_Toast_toast")
|
.locator(".mx_Toast_toast")
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export const RTCConnectionStats: FC<Props> = ({
|
|||||||
<div>
|
<div>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => showFullModal("audio")}
|
onClick={() => showFullModal("audio")}
|
||||||
size="sm"
|
size="md"
|
||||||
kind="tertiary"
|
kind="tertiary"
|
||||||
Icon={MicOnSolidIcon}
|
Icon={MicOnSolidIcon}
|
||||||
>
|
>
|
||||||
@@ -103,7 +103,7 @@ export const RTCConnectionStats: FC<Props> = ({
|
|||||||
<div>
|
<div>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => showFullModal("video")}
|
onClick={() => showFullModal("video")}
|
||||||
size="sm"
|
size="md"
|
||||||
kind="tertiary"
|
kind="tertiary"
|
||||||
Icon={VideoCallSolidIcon}
|
Icon={VideoCallSolidIcon}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import { platform } from "../Platform";
|
|||||||
|
|
||||||
interface MicButtonProps extends ComponentPropsWithoutRef<"button"> {
|
interface MicButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
size?: "sm" | "lg";
|
size?: "md" | "lg";
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MicButton: FC<MicButtonProps> = ({ enabled, ...props }) => {
|
export const MicButton: FC<MicButtonProps> = ({ enabled, ...props }) => {
|
||||||
@@ -58,7 +58,7 @@ export const MicButton: FC<MicButtonProps> = ({ enabled, ...props }) => {
|
|||||||
|
|
||||||
interface VideoButtonProps extends ComponentPropsWithoutRef<"button"> {
|
interface VideoButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
size?: "sm" | "lg";
|
size?: "md" | "lg";
|
||||||
}
|
}
|
||||||
|
|
||||||
export const VideoButton: FC<VideoButtonProps> = ({ enabled, ...props }) => {
|
export const VideoButton: FC<VideoButtonProps> = ({ enabled, ...props }) => {
|
||||||
@@ -84,7 +84,7 @@ export const VideoButton: FC<VideoButtonProps> = ({ enabled, ...props }) => {
|
|||||||
|
|
||||||
interface ShareScreenButtonProps extends ComponentPropsWithoutRef<"button"> {
|
interface ShareScreenButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
size: "sm" | "lg";
|
size: "md" | "lg";
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ShareScreenButton: FC<ShareScreenButtonProps> = ({
|
export const ShareScreenButton: FC<ShareScreenButtonProps> = ({
|
||||||
@@ -111,7 +111,7 @@ export const ShareScreenButton: FC<ShareScreenButtonProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
interface EndCallButtonProps extends ComponentPropsWithoutRef<"button"> {
|
interface EndCallButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||||
size?: "sm" | "lg";
|
size?: "md" | "lg";
|
||||||
}
|
}
|
||||||
|
|
||||||
export const EndCallButton: FC<EndCallButtonProps> = ({
|
export const EndCallButton: FC<EndCallButtonProps> = ({
|
||||||
@@ -134,7 +134,7 @@ export const EndCallButton: FC<EndCallButtonProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
interface LoudspeakerButtonProps extends ComponentPropsWithoutRef<"button"> {
|
interface LoudspeakerButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||||
size?: "sm" | "lg";
|
size?: "md" | "lg";
|
||||||
loudspeakerModeEnabled: boolean;
|
loudspeakerModeEnabled: boolean;
|
||||||
}
|
}
|
||||||
export const LoudspeakerButton: FC<LoudspeakerButtonProps> = ({
|
export const LoudspeakerButton: FC<LoudspeakerButtonProps> = ({
|
||||||
@@ -195,7 +195,7 @@ export const SettingsIconButton: FC<SettingsIconButtonProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
interface SettingsButtonProps extends ComponentPropsWithoutRef<"button"> {
|
interface SettingsButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||||
size?: "sm" | "lg";
|
size?: "md" | "lg";
|
||||||
/** If this buttons should be setup to be used in the app bar */
|
/** If this buttons should be setup to be used in the app bar */
|
||||||
showForScreenWidth?: "wide" | "narrow";
|
showForScreenWidth?: "wide" | "narrow";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export const InviteButton: FC<
|
|||||||
> = (props) => {
|
> = (props) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<Button kind="secondary" size="sm" Icon={UserAddIcon} {...props}>
|
<Button kind="secondary" size="md" Icon={UserAddIcon} {...props}>
|
||||||
{t("action.invite")}
|
{t("action.invite")}
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ export interface ReactionData {
|
|||||||
interface ReactionToggleButtonProps extends ComponentPropsWithoutRef<"button"> {
|
interface ReactionToggleButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||||
reactionData: ReactionData;
|
reactionData: ReactionData;
|
||||||
identifier: string;
|
identifier: string;
|
||||||
size?: "sm" | "lg";
|
size?: "md" | "lg";
|
||||||
/** List of participants raising their hand */
|
/** List of participants raising their hand */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ export const CallFooter: FC<FooterProps> = ({
|
|||||||
tileStoreGeneration,
|
tileStoreGeneration,
|
||||||
}) => {
|
}) => {
|
||||||
const buttons: JSX.Element[] = [];
|
const buttons: JSX.Element[] = [];
|
||||||
const buttonSize = asPip ? "sm" : "lg";
|
const buttonSize = asPip ? "md" : "lg";
|
||||||
const showSettingsButton =
|
const showSettingsButton =
|
||||||
openSettings !== undefined && !asPip && !hideControls;
|
openSettings !== undefined && !asPip && !hideControls;
|
||||||
const showLayoutSwitcher = !asPip && !hideControls;
|
const showLayoutSwitcher = !asPip && !hideControls;
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export const AvatarInputField: FC<Props> = ({
|
|||||||
iconOnly
|
iconOnly
|
||||||
Icon={EditIcon}
|
Icon={EditIcon}
|
||||||
kind="tertiary"
|
kind="tertiary"
|
||||||
size="sm"
|
size="md"
|
||||||
aria-label={t("action.edit")}
|
aria-label={t("action.edit")}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
@@ -136,7 +136,7 @@ export const AvatarInputField: FC<Props> = ({
|
|||||||
iconOnly
|
iconOnly
|
||||||
Icon={EditIcon}
|
Icon={EditIcon}
|
||||||
kind="tertiary"
|
kind="tertiary"
|
||||||
size="sm"
|
size="md"
|
||||||
aria-label={t("action.edit")}
|
aria-label={t("action.edit")}
|
||||||
onClick={onSelectUpload}
|
onClick={onSelectUpload}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export const EarpieceOverlay: FC<Props> = ({ show, onBackToVideoPressed }) => {
|
|||||||
<Text>{t("handset.overlay_description")}</Text>
|
<Text>{t("handset.overlay_description")}</Text>
|
||||||
<Button
|
<Button
|
||||||
kind="primary"
|
kind="primary"
|
||||||
size="sm"
|
size="md"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
onBackToVideoPressed?.();
|
onBackToVideoPressed?.();
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ export const LobbyView: FC<Props> = ({
|
|||||||
className={classNames(styles.join, {
|
className={classNames(styles.join, {
|
||||||
[styles.wait]: waitingForInvite,
|
[styles.wait]: waitingForInvite,
|
||||||
})}
|
})}
|
||||||
size={waitingForInvite ? "sm" : "lg"}
|
size={waitingForInvite ? "md" : "lg"}
|
||||||
disabled={waitingForInvite}
|
disabled={waitingForInvite}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (!waitingForInvite) onEnter();
|
if (!waitingForInvite) onEnter();
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ exports[`InCallView > rendering > renders 1`] = `
|
|||||||
<button
|
<button
|
||||||
class="_button_1nw83_8"
|
class="_button_1nw83_8"
|
||||||
data-kind="primary"
|
data-kind="primary"
|
||||||
data-size="sm"
|
data-size="md"
|
||||||
role="button"
|
role="button"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user