From 5f37df5dff57db13365b20472de017f34c143dbd Mon Sep 17 00:00:00 2001 From: Donald Silveira <9506146+donnes@users.noreply.github.com> Date: Sun, 27 Sep 2026 15:46:45 -0300 Subject: [PATCH 1/2] feat(web): resize Notes and Automations list panes --- ...ResizeHandle.tsx => PanelResizeHandle.tsx} | 9 ++-- apps/web/src/components/WorkspaceListPane.tsx | 43 +++++++++++++++++++ .../automations/AutomationsPage.tsx | 9 ++-- apps/web/src/components/notes/NotesPage.tsx | 11 ++--- .../components/preview/PreviewPanelShell.tsx | 4 +- apps/web/src/index.css | 24 +++++++++-- 6 files changed, 82 insertions(+), 18 deletions(-) rename apps/web/src/components/{preview/RightPanelResizeHandle.tsx => PanelResizeHandle.tsx} (67%) create mode 100644 apps/web/src/components/WorkspaceListPane.tsx diff --git a/apps/web/src/components/preview/RightPanelResizeHandle.tsx b/apps/web/src/components/PanelResizeHandle.tsx similarity index 67% rename from apps/web/src/components/preview/RightPanelResizeHandle.tsx rename to apps/web/src/components/PanelResizeHandle.tsx index 5091c8b5915ad..875ab6f8a5b92 100644 --- a/apps/web/src/components/preview/RightPanelResizeHandle.tsx +++ b/apps/web/src/components/PanelResizeHandle.tsx @@ -3,24 +3,27 @@ import { cn } from "~/lib/utils"; interface Props { handlers: ResizableWidthHandlers; + /** The panel edge the handle sits on: "left" for right-anchored panels, "right" for left-anchored ones. */ + edge?: "left" | "right"; className?: string; } /** - * Hit target for resizing a right-anchored panel via its left edge. + * Hit target for resizing a side panel from one of its edges. * * - Sits on top of the panel's border with a 4px overlap on each side so the * user can grab a few pixels off the edge without aiming. * - Visual indicator is a 1px line that lights up on hover/active to mirror * VS Code / Cursor. */ -export function RightPanelResizeHandle({ handlers, className }: Props) { +export function PanelResizeHandle({ handlers, edge = "left", className }: Props) { return (
+ {children} + + + ); +} diff --git a/apps/web/src/components/automations/AutomationsPage.tsx b/apps/web/src/components/automations/AutomationsPage.tsx index f239b50f1bb94..80f9ca0c94b98 100644 --- a/apps/web/src/components/automations/AutomationsPage.tsx +++ b/apps/web/src/components/automations/AutomationsPage.tsx @@ -93,6 +93,7 @@ import { Toggle, ToggleGroup } from "../ui/toggle-group"; import { toastManager } from "../ui/toast"; import { WorkspaceBreadcrumb, WorkspaceBreadcrumbItem } from "../WorkspaceBreadcrumb"; import { WorkspacePageHeader } from "../WorkspacePageHeader"; +import { WorkspaceListPane } from "../WorkspaceListPane"; import { AutomationPromptField } from "./AutomationPromptField"; import { AUTOMATION_TEMPLATE_CATEGORIES, @@ -261,7 +262,7 @@ export function AutomationsPage({ return (
- +

@@ -272,8 +273,8 @@ export function AutomationsPage({
- +
{content}
diff --git a/apps/web/src/components/notes/NotesPage.tsx b/apps/web/src/components/notes/NotesPage.tsx index e74b9eac7173a..c3e8a6655fe49 100644 --- a/apps/web/src/components/notes/NotesPage.tsx +++ b/apps/web/src/components/notes/NotesPage.tsx @@ -37,6 +37,7 @@ import { Textarea } from "../ui/textarea"; import { toastManager } from "../ui/toast"; import { WorkspaceBreadcrumb, WorkspaceBreadcrumbItem } from "../WorkspaceBreadcrumb"; import { WorkspacePageHeader } from "../WorkspacePageHeader"; +import { WorkspaceListPane } from "../WorkspaceListPane"; interface Draft { title: string; @@ -251,7 +252,7 @@ export function NotesPage({ return (
- +

@@ -262,8 +263,8 @@ export function NotesPage({
-