@devries-cameron20 / t3code Mirror · read-only / commits / 082a3e3c52
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 17:15 UTC

fix(web): narrow-window right panel dialog is named Workspace panel (#36085)

Julius Marminge committed Nov 13, 2026 at 01:02 UTC 082a3e3c52ecda96cd52c72a0a2fec6d7c0a8be3
2 files changed +20 -1
apps/web/src/components/RightPanelSheet.browser.test.tsx new
+16
@@ -0,0 +1,16 @@
1 +import { expect, it } from "vite-plus/test";
2 +import { page } from "vite-plus/test/browser";
3 +
4 +import { render } from "../../test/render";
5 +import { RightPanelSheet } from "./RightPanelSheet";
6 +
7 +it("names the open right-panel dialog", async () => {
8 + await using _screen = await render(
9 + <RightPanelSheet open animationDurationMs={0} onClose={() => {}}>
10 + <div>Panel content</div>
11 + </RightPanelSheet>,
12 + );
13 + const dialog = page.getByRole("dialog");
14 + await expect.element(dialog).toBeVisible();
15 + await expect.element(dialog).not.toHaveAccessibleName("");
16 +});
apps/web/src/components/RightPanelSheet.tsx
+4 -1
@@ -1,6 +1,6 @@
1 import { type ReactNode } from "react";
2
3 -import { Sheet, SheetPopup } from "./ui/sheet";
3 +import { Sheet, SheetHeader, SheetPopup, SheetTitle } from "./ui/sheet";
4
5 export function RightPanelSheet(props: {
6 animationDurationMs: number;
@@ -24,6 +24,9 @@ export function RightPanelSheet(props: {
24 keepMounted
25 className="w-[min(42vw,28rem)] min-w-80 max-w-[28rem] max-[760px]:w-[min(88vw,24rem)] max-[760px]:min-w-0 wco:mt-(--workspace-topbar-height) wco:h-[calc(100%-var(--workspace-topbar-height))] wco:max-h-[calc(100%-var(--workspace-topbar-height))]"
26 >
27 + <SheetHeader className="sr-only">
28 + <SheetTitle>Workspace panel</SheetTitle>
29 + </SheetHeader>
30 {props.children}
31 </SheetPopup>
32 </Sheet>