diff --git a/src/routes/v2/shared/components/AppMenuActions.tsx b/src/routes/v2/shared/components/AppMenuActions.tsx index 29196a678..de7b410e0 100644 --- a/src/routes/v2/shared/components/AppMenuActions.tsx +++ b/src/routes/v2/shared/components/AppMenuActions.tsx @@ -14,12 +14,7 @@ export function AppMenuActions() { const requiresAuthorization = isAuthorizationRequired(); return ( - + diff --git a/src/routes/v2/shared/components/ContextPanelEmptyState.tsx b/src/routes/v2/shared/components/ContextPanelEmptyState.tsx index 1de2ae465..fa9f5cddd 100644 --- a/src/routes/v2/shared/components/ContextPanelEmptyState.tsx +++ b/src/routes/v2/shared/components/ContextPanelEmptyState.tsx @@ -1,14 +1,17 @@ +import { Box } from "@/components/ui/box"; import { Icon } from "@/components/ui/icon"; import { BlockStack } from "@/components/ui/layout"; import { Text } from "@/components/ui/typography"; export function ContextPanelEmptyState() { return ( - - - - Select a node to view details - - + + + + + Select a node to view details + + + ); } diff --git a/src/routes/v2/shared/components/InputValidationIndicator.tsx b/src/routes/v2/shared/components/InputValidationIndicator.tsx index ad717458b..6a943d0b6 100644 --- a/src/routes/v2/shared/components/InputValidationIndicator.tsx +++ b/src/routes/v2/shared/components/InputValidationIndicator.tsx @@ -1,20 +1,17 @@ import { observer } from "mobx-react-lite"; import { Icon } from "@/components/ui/icon"; -import { cn } from "@/lib/utils"; import { useSpec } from "@/routes/v2/shared/providers/SpecContext"; interface InputValidationIndicatorProps { entityId: string; inputName: string; - className?: string; } export const InputValidationIndicator = observer( function InputValidationIndicator({ entityId, inputName, - className, }: InputValidationIndicatorProps) { const spec = useSpec(); const issues = spec?.issuesByEntityId.get(entityId); @@ -37,11 +34,7 @@ export const InputValidationIndicator = observer( ); }, diff --git a/src/routes/v2/shared/components/MenuTriggerButton.tsx b/src/routes/v2/shared/components/MenuTriggerButton.tsx index 2aa0e0965..abbf82fce 100644 --- a/src/routes/v2/shared/components/MenuTriggerButton.tsx +++ b/src/routes/v2/shared/components/MenuTriggerButton.tsx @@ -6,12 +6,7 @@ export const MenuTriggerButton = ({ children, ...props }: ComponentProps) => ( - ); diff --git a/src/routes/v2/shared/components/MovePipelineDialog.tsx b/src/routes/v2/shared/components/MovePipelineDialog.tsx index 4d6a87b8d..d79d162d3 100644 --- a/src/routes/v2/shared/components/MovePipelineDialog.tsx +++ b/src/routes/v2/shared/components/MovePipelineDialog.tsx @@ -2,6 +2,7 @@ import { useMutation, useSuspenseQuery } from "@tanstack/react-query"; import { useState } from "react"; import { withSuspenseWrapper } from "@/components/shared/SuspenseWrapper"; +import { Box } from "@/components/ui/box"; import { Button } from "@/components/ui/button"; import { Dialog, @@ -119,7 +120,7 @@ interface FolderTreeProps { const FolderTreeSkeleton = () => ( {Array.from({ length: 3 }).map((_, i) => ( - + ))} ); @@ -139,30 +140,37 @@ const FolderTree = withSuspenseWrapper(function FolderTreeContent({ const rootFolders = allFolders.filter((f) => f.parentId === ROOT_FOLDER_ID); return ( - - onSelect(null)} - depth={0} - /> - {rootFolders.map((folder) => ( - + onSelect(null)} + depth={0} /> - ))} - + {rootFolders.map((folder) => ( + + ))} + + ); }, FolderTreeSkeleton); @@ -245,10 +253,7 @@ function FolderTreeItem({ disabled ? "This folder does not support moving pipelines" : undefined } > - + {label} {isCurrent && ( diff --git a/src/routes/v2/shared/nodes/TaskNode/InputAggregatorHandle.tsx b/src/routes/v2/shared/nodes/TaskNode/InputAggregatorHandle.tsx index 7075cf16a..a14986122 100644 --- a/src/routes/v2/shared/nodes/TaskNode/InputAggregatorHandle.tsx +++ b/src/routes/v2/shared/nodes/TaskNode/InputAggregatorHandle.tsx @@ -23,8 +23,8 @@ export function InputAggregatorHandle() { className="border-0! h-full! w-full! transform-none! bg-blue-400!" /> - -
+ +
+ Add Input
diff --git a/src/routes/v2/shared/nodes/TaskNode/TaskNode.tsx b/src/routes/v2/shared/nodes/TaskNode/TaskNode.tsx index d35083c49..41a045504 100644 --- a/src/routes/v2/shared/nodes/TaskNode/TaskNode.tsx +++ b/src/routes/v2/shared/nodes/TaskNode/TaskNode.tsx @@ -3,7 +3,7 @@ import { observer } from "mobx-react-lite"; import type { MouseEvent, ReactElement } from "react"; import { useFlagValue } from "@/components/shared/Settings/useFlags"; -import { Card } from "@/components/ui/card"; +import { Surface } from "@/components/ui/patterns/surface"; import { Text } from "@/components/ui/typography"; import { cn } from "@/lib/utils"; import type { @@ -187,11 +187,11 @@ function NodeEffectWrapper({ function TaskNodeNotFound({ entityId }: { entityId: string }) { return ( - + Task not found: {entityId} - + ); } diff --git a/src/routes/v2/shared/windows/DockArea.tsx b/src/routes/v2/shared/windows/DockArea.tsx index f98abc3b8..b105980d2 100644 --- a/src/routes/v2/shared/windows/DockArea.tsx +++ b/src/routes/v2/shared/windows/DockArea.tsx @@ -1,7 +1,9 @@ import { observer } from "mobx-react-lite"; import { useEffect, useRef } from "react"; +import { Box } from "@/components/ui/box"; import { BlockStack } from "@/components/ui/layout"; +import { ScrollRegion } from "@/components/ui/patterns/scroll-region"; import { VerticalResizeHandle } from "@/components/ui/resize-handle"; import { cn } from "@/lib/utils"; import { focusModeStore } from "@/routes/v2/shared/hooks/useFocusMode"; @@ -92,19 +94,24 @@ export const DockArea = observer(function DockArea({ side }: DockAreaProps) { className={cn("relative shrink-0 bg-gray-100 flex flex-col")} style={{ width: COLLAPSED_DOCK_AREA_WIDTH }} > - - {visibleWindowsWithMini.map((windowId) => ( - - ))} - + + + {visibleWindowsWithMini.map((windowId) => ( + + ))} + + + e.stopPropagation()} > {!model.isActionDisabled("minimize") && model.isDocked && ( - + /> )} {!model.isActionDisabled("maximize") && ( - + /> )} {!model.isActionDisabled("hide") ? ( - + /> ) : !model.isActionDisabled("close") ? ( - + /> ) : null}
); diff --git a/src/routes/v2/shared/windows/components/WindowHeader.tsx b/src/routes/v2/shared/windows/components/WindowHeader.tsx index ea2fc71f8..a15405ef9 100644 --- a/src/routes/v2/shared/windows/components/WindowHeader.tsx +++ b/src/routes/v2/shared/windows/components/WindowHeader.tsx @@ -1,6 +1,7 @@ import type { CSSProperties, MouseEvent, ReactNode } from "react"; import { InlineStack } from "@/components/ui/layout"; +import { Truncating } from "@/components/ui/patterns/truncating"; import { Text } from "@/components/ui/typography"; import { cn } from "@/lib/utils"; @@ -38,24 +39,19 @@ export function WindowHeader({ style={style} onMouseDown={onMouseDown} > - - {leadingIcon} - - {title} - - + + + {leadingIcon} + + {title} + + +