Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

refactor(workbench): import platform ui from owning modules

Josh Corbett772aab12d7ce
diff --git a/invokeai/frontend/webv2/src/workbench/shell/RightRail.tsx b/invokeai/frontend/webv2/src/workbench/shell/RightRail.tsx
index 2c4925cf33..8c509043a1 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/RightRail.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/RightRail.tsx
@@ -8,7 +8,8 @@ import { Box, chakra, Flex, HStack, Icon, Text } from '@chakra-ui/react';
import { useDndContext } from '@dnd-kit/core';
import { horizontalListSortingStrategy } from '@dnd-kit/sortable';
import { useMountEffect } from '@platform/react/useMountEffect';
-import { IconButton, Tooltip } from '@platform/ui';
+import { IconButton } from '@platform/ui/Button';
+import { Tooltip } from '@platform/ui/Tooltip';
import { useFocusRegionProps } from '@workbench/focusRegions';
import { RIGHT_RAIL_DOCKS } from '@workbench/layoutContracts';
import {
diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/FloatingWidgetWindow.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/FloatingWidgetWindow.tsx
index 5590a393d6..98a6000212 100644
--- a/invokeai/frontend/webv2/src/workbench/widget-frame/FloatingWidgetWindow.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/FloatingWidgetWindow.tsx
@@ -3,7 +3,8 @@ import type { WidgetInstanceId } from '@workbench/widgetContracts';
import { Box, Flex, HStack, Icon, Text } from '@chakra-ui/react';
import { flushWorkbenchDrafts } from '@platform/react/draftRegistry';
-import { IconButton, Tooltip } from '@platform/ui';
+import { IconButton } from '@platform/ui/Button';
+import { Tooltip } from '@platform/ui/Tooltip';
import {
clampWindowToViewport,
FLOATING_MIN_HEIGHT_PX,
diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetActionsMenu.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetActionsMenu.tsx
index a95f460931..1d523127c6 100644
--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetActionsMenu.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetActionsMenu.tsx
@@ -9,7 +9,7 @@ import type {
import { Icon, Menu, Portal, Text } from '@chakra-ui/react';
import { flushWorkbenchDrafts } from '@platform/react/draftRegistry';
-import { IconButton } from '@platform/ui';
+import { IconButton } from '@platform/ui/Button';
import { createGraphBearingSurface } from '@workbench/graphSurfaces';
import { resolveWidgetLabel } from '@workbench/widgetLabels';
import { useActiveProjectSelector, useWorkbenchCommands } from '@workbench/WorkbenchContext';
diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx
index 043330f180..b1f739876b 100644
--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx
@@ -5,7 +5,8 @@ import type { WidgetPlacementInstanceMeta, WidgetRegionItem } from '@workbench/w
import { Box, Flex, type SystemStyleObject } from '@chakra-ui/react';
import { verticalListSortingStrategy } from '@dnd-kit/sortable';
-import { Row, Tooltip } from '@platform/ui';
+import { Row } from '@platform/ui/Row';
+import { Tooltip } from '@platform/ui/Tooltip';
import { WidgetIcon } from '@workbench/iconResolver';
import { type MouseEvent, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetEnableMenu.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetEnableMenu.tsx
index df14689b6b..7513a820ce 100644
--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetEnableMenu.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetEnableMenu.tsx
@@ -2,7 +2,7 @@ import type { WidgetRegion } from '@workbench/layoutContracts';
import type { RegisteredWidget, WidgetIconComponent, WidgetInstanceId, WidgetTypeId } from '@workbench/widgetContracts';
import { Flex, Icon, Menu, Portal, Text } from '@chakra-ui/react';
-import { IconButton } from '@platform/ui';
+import { IconButton } from '@platform/ui/Button';
import { WidgetIcon } from '@workbench/iconResolver';
import { CheckIcon, MoreHorizontalIcon } from 'lucide-react';
import { useCallback, useMemo } from 'react';
diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFailureBoundary.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFailureBoundary.tsx
index 2a9b4e3fa6..377fec4f09 100644
--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFailureBoundary.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFailureBoundary.tsx
@@ -6,7 +6,7 @@ import type {
} from '@workbench/widgetContracts';
import { Box, Code, Flex, HStack, ScrollArea, Stack, Text, useRecipe } from '@chakra-ui/react';
-import { Button } from '@platform/ui';
+import { Button } from '@platform/ui/Button';
import { chipRecipe } from '@theme/recipes';
import { resolveWidgetInstanceLabel } from '@workbench/widgetLabels';
import { TriangleAlertIcon } from 'lucide-react';
diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFrames.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFrames.tsx
index 1d6948cc1c..244aaa282a 100644
--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFrames.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFrames.tsx
@@ -13,7 +13,8 @@ import type {
import { Box, Flex, HStack, Icon, Stack, Text } from '@chakra-ui/react';
import { flushWorkbenchDrafts } from '@platform/react/draftRegistry';
import { useMountEffect } from '@platform/react/useMountEffect';
-import { IconButton, Tooltip } from '@platform/ui';
+import { IconButton } from '@platform/ui/Button';
+import { Tooltip } from '@platform/ui/Tooltip';
import { useFocusRegionProps } from '@workbench/focusRegions';
import { RIGHT_RAIL_DOCKS } from '@workbench/layoutContracts';
import { openWorkbenchSettings } from '@workbench/settings/settingsDialogStore';
diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetRenderer.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetRenderer.tsx
index 00b87132c2..9dcb68896b 100644
--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetRenderer.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetRenderer.tsx
@@ -12,7 +12,7 @@ import type {
import { Box, Flex, Text } from '@chakra-ui/react';
import { getWidgetReadyMark, markSemanticReady } from '@platform/performance/semanticReady';
import { useMountEffect } from '@platform/react/useMountEffect';
-import { Scrollable } from '@platform/ui';
+import { Scrollable } from '@platform/ui/Scrollable';
import { areWidgetPlacementProjectsEqual, getWidgetPlacementProject } from '@workbench/widgetPlacementMeta';
import { useActiveProjectSelector } from '@workbench/WorkbenchContext';
import { useWorkbenchWidgetRegistry } from '@workbench/WorkbenchWidgetRegistryContext';
diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/index.ts b/invokeai/frontend/webv2/src/workbench/widget-frame/index.ts
index 9226d8f488..88c58893ca 100644
--- a/invokeai/frontend/webv2/src/workbench/widget-frame/index.ts
+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/index.ts
@@ -4,7 +4,7 @@ export { WidgetEnableMenu, type WidgetEnableMenuItem } from './WidgetEnableMenu'
export { WidgetFailureBoundary } from './WidgetFailureBoundary';
export { WidgetIdentityIcon } from './WidgetIdentityIcon';
export { FieldPlaceholder, WidgetHeader, WidgetHeaderActionsGroup, WidgetPanelFrame } from './WidgetFrames';
-export { StatusWidgetChip } from '@platform/ui';
+export { StatusWidgetChip } from '@platform/ui/StatusWidgetChip';
export { WidgetInstanceContextMenu, type WidgetInstanceContextMenuTarget } from './WidgetInstanceContextMenu';
export { WidgetRegionDropOverlay } from './WidgetRegionDropOverlay';
export { WidgetSourceLockBadge } from './WidgetSourceLockBadge';
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx
index 4c69fe5ebc..2cd978f384 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx
@@ -6,7 +6,10 @@ import type { CanvasEngineHandle } from '@workbench/widgets/canvas/useCanvasEngi
import { Box, HStack, Icon, Menu, Portal, Text } from '@chakra-ui/react';
import { useModifierHeld } from '@platform/react/useModifierHeld';
-import { ConfirmDialog, IconButton, MenuContent, Tooltip } from '@platform/ui';
+import { IconButton } from '@platform/ui/Button';
+import { ConfirmDialog } from '@platform/ui/ConfirmDialog';
+import { MenuContent } from '@platform/ui/Menu';
+import { Tooltip } from '@platform/ui/Tooltip';
import { useNotify } from '@workbench/useNotify';
import { getProjectWidgetValues } from '@workbench/widgetState';
import { useActiveProjectSelector, useWorkbenchCommands } from '@workbench/WorkbenchContext';
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/ToolStrip.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/ToolStrip.tsx
index d2cc5ad254..6bbaccdc0b 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/ToolStrip.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/ToolStrip.tsx
@@ -1,7 +1,7 @@
import type { CanvasCoreStoreCapability, CanvasToolCapability, ToolId } from '@workbench/canvas-engine/api';
import { Box } from '@chakra-ui/react';
-import { Toolbar, ToolbarButton } from '@platform/ui';
+import { Toolbar, ToolbarButton } from '@platform/ui/Toolbar';
import {
BrushIcon,
EraserIcon,
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/BrushOptions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/BrushOptions.tsx
index a0c81f6cfb..5ff705850b 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/BrushOptions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/BrushOptions.tsx
@@ -7,7 +7,8 @@ import type {
import type { KeyboardEvent } from 'react';
import { HStack } from '@chakra-ui/react';
-import { ColorPicker, ToggleIconButton } from '@platform/ui';
+import { ToggleIconButton } from '@platform/ui/Button';
+import { ColorPicker } from '@platform/ui/ColorPicker';
import { MAX_BRUSH_SIZE, MIN_BRUSH_SIZE } from '@workbench/canvas-engine/api';
import { useBrushOptions } from '@workbench/widgets/canvas/engineStoreHooks';
import {
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.tsx
index 87b04fbe9f..3059c7f70c 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.tsx
@@ -7,7 +7,8 @@ import type {
/* oxlint-disable react-perf/jsx-no-new-function-as-prop */
import { HStack, Stack } from '@chakra-ui/react';
import { galleryDurability } from '@features/gallery';
-import { Button, Tooltip } from '@platform/ui';
+import { Button } from '@platform/ui/Button';
+import { Tooltip } from '@platform/ui/Tooltip';
import {
buildFilterDefaults,
getCanvasOperations,
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/GradientOptions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/GradientOptions.tsx
index c04f09d5d0..7c94c71ace 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/GradientOptions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/GradientOptions.tsx
@@ -6,7 +6,8 @@ import type {
} from '@workbench/widgets/canvas/tool-presentation/toolbarContracts';
import { createListCollection } from '@chakra-ui/react';
-import { ColorPicker, Select } from '@platform/ui';
+import { ColorPicker } from '@platform/ui/ColorPicker';
+import { Select } from '@platform/ui/Select';
import { getDocumentLayer } from '@workbench/canvas-engine/api';
import { useGradientOptions } from '@workbench/widgets/canvas/engineStoreHooks';
import { ToolbarNumberField, useNumberCommit } from '@workbench/widgets/canvas/tool-presentation/ToolbarPrimitives';
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/LassoOptions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/LassoOptions.tsx
index 8361016534..66204e6f6f 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/LassoOptions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/LassoOptions.tsx
@@ -6,7 +6,7 @@ import type {
} from '@workbench/widgets/canvas/tool-presentation/toolbarContracts';
import { createListCollection } from '@chakra-ui/react';
-import { Select } from '@platform/ui';
+import { Select } from '@platform/ui/Select';
import { useLassoOptions } from '@workbench/widgets/canvas/engineStoreHooks';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/MarqueeOptions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/MarqueeOptions.tsx
index 0b43dae9c3..1340e81082 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/MarqueeOptions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/MarqueeOptions.tsx
@@ -6,7 +6,7 @@ import type {
} from '@workbench/widgets/canvas/tool-presentation/toolbarContracts';
import { createListCollection } from '@chakra-ui/react';
-import { Select } from '@platform/ui';
+import { Select } from '@platform/ui/Select';
import { useMarqueeOptions } from '@workbench/widgets/canvas/engineStoreHooks';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/OperationStatusSlot.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/OperationStatusSlot.tsx
index 1f59d0f055..04bc3d80eb 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/OperationStatusSlot.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/OperationStatusSlot.tsx
@@ -1,7 +1,7 @@
import type { CSSProperties } from 'react';
import { Flex, HStack, IconButton, Spinner, Text, VisuallyHidden } from '@chakra-ui/react';
-import { Tooltip } from '@platform/ui';
+import { Tooltip } from '@platform/ui/Tooltip';
import { InfoIcon } from 'lucide-react';
const ERROR_CLAMP_STYLE: CSSProperties = {
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SamOptions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SamOptions.tsx
index cf4cfbeb9b..9c11f035e5 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SamOptions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SamOptions.tsx
@@ -7,8 +7,10 @@ import type {
import type { ChangeEvent } from 'react';
import { createListCollection, HStack, Input, Stack, Switch, Text, VisuallyHidden } from '@chakra-ui/react';
-import { Button, Select, Tooltip } from '@platform/ui';
+import { Button } from '@platform/ui/Button';
import { Group } from '@platform/ui/Group';
+import { Select } from '@platform/ui/Select';
+import { Tooltip } from '@platform/ui/Tooltip';
import {
getCanvasOperations,
isSamDocumentInputValid,
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SelectionOptionsRow.test.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SelectionOptionsRow.test.tsx
index 5c5257e2fe..7a335778cc 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SelectionOptionsRow.test.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SelectionOptionsRow.test.tsx
@@ -24,7 +24,7 @@ const { activeProject, buttons, hasSelection } = vi.hoisted(() => ({
hasSelection: { current: true },
}));
-vi.mock('@platform/ui', () => ({
+vi.mock('@platform/ui/Button', () => ({
Button: (props: CapturedButton) => {
buttons.set(String(props.children), props);
return <button disabled={props.disabled}>{props.children}</button>;
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SelectionOptionsRow.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SelectionOptionsRow.tsx
index a17338bfaa..1d9fca5232 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SelectionOptionsRow.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/SelectionOptionsRow.tsx
@@ -2,7 +2,8 @@ import type { SelectionOp } from '@workbench/canvas-engine/api';
import type { ToolbarRegionProps } from '@workbench/widgets/canvas/tool-presentation/toolbarContracts';
import { HStack } from '@chakra-ui/react';
-import { Button, IconButton, Tooltip } from '@platform/ui';
+import { Button, IconButton } from '@platform/ui/Button';
+import { Tooltip } from '@platform/ui/Tooltip';
import { isLeafPixelEditEligible, lookupDocumentLeaf } from '@workbench/canvas-engine/api';
import { useCanvasHasSelection } from '@workbench/widgets/canvas/engineStoreHooks';
import { ToolbarHint } from '@workbench/widgets/canvas/tool-presentation/ToolbarPrimitives';
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/ShapeOptions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/ShapeOptions.tsx
index 6055992650..680e041e5c 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/ShapeOptions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/ShapeOptions.tsx
@@ -6,7 +6,9 @@ import type {
} from '@workbench/widgets/canvas/tool-presentation/toolbarContracts';
import { createListCollection } from '@chakra-ui/react';
-import { ColorPicker, Select, ToggleIconButton } from '@platform/ui';
+import { ToggleIconButton } from '@platform/ui/Button';
+import { ColorPicker } from '@platform/ui/ColorPicker';
+import { Select } from '@platform/ui/Select';
import { MAX_SHAPE_STROKE_WIDTH, getDocumentLayer } from '@workbench/canvas-engine/api';
import { useShapeOptions } from '@workbench/widgets/canvas/engineStoreHooks';
import {
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/TextOptions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/TextOptions.tsx
index f980142f12..d7a0b506c9 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/TextOptions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/TextOptions.tsx
@@ -6,7 +6,9 @@ import type {
} from '@workbench/widgets/canvas/tool-presentation/toolbarContracts';
import { createListCollection, HStack } from '@chakra-ui/react';
-import { ColorPicker, IconButton, Select } from '@platform/ui';
+import { IconButton } from '@platform/ui/Button';
+import { ColorPicker } from '@platform/ui/ColorPicker';
+import { Select } from '@platform/ui/Select';
import {
MAX_TEXT_FONT_SIZE,
MIN_TEXT_FONT_SIZE,
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/ToolbarPrimitives.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/ToolbarPrimitives.tsx
index 4a941de5c6..8186720abf 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/ToolbarPrimitives.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/ToolbarPrimitives.tsx
@@ -3,7 +3,8 @@ import type { NumberInput as ChakraNumberInput, SliderValueChangeDetails } from
import type { KeyboardEvent, ReactNode } from 'react';
import { Box, Flex, Icon, InputGroup, NumberInput, Text } from '@chakra-ui/react';
-import { Button, Slider } from '@platform/ui';
+import { Button } from '@platform/ui/Button';
+import { Slider } from '@platform/ui/Slider';
import { MoveHorizontalIcon } from 'lucide-react';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/properties/GroupSelectedNotice.tsx b/invokeai/frontend/webv2/src/workbench/widgets/properties/GroupSelectedNotice.tsx
index 67bdd057b0..5d601103a0 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/properties/GroupSelectedNotice.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/properties/GroupSelectedNotice.tsx
@@ -1,5 +1,5 @@
import { Flex, Text } from '@chakra-ui/react';
-import { Button } from '@platform/ui';
+import { Button } from '@platform/ui/Button';
import { collectSubtreeLeaves, getDocumentNode } from '@workbench/canvas-engine/api';
import { useCanvasProjectMutationDispatch } from '@workbench/useCanvasProjectMutationDispatch';
import { useActiveProjectSelector } from '@workbench/WorkbenchContext';
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/properties/PropertiesSection.tsx b/invokeai/frontend/webv2/src/workbench/widgets/properties/PropertiesSection.tsx
index f02e294440..116abbb036 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/properties/PropertiesSection.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/properties/PropertiesSection.tsx
@@ -1,7 +1,7 @@
import type { ReactNode, Ref } from 'react';
import { Flex, Stack, Text } from '@chakra-ui/react';
-import { FieldLabel } from '@platform/ui';
+import { FieldLabel } from '@platform/ui/Field';
/** A headed group of rows in the Properties widget: Operation, Tool, Layer. */
export const PropertiesSection = ({
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/properties/PropertiesWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/properties/PropertiesWidgetView.tsx
index a171ec97d3..6a00da3f55 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/properties/PropertiesWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/properties/PropertiesWidgetView.tsx
@@ -1,7 +1,7 @@
import type { WidgetViewProps } from '@workbench/widgetContracts';
import { Flex, Stack, Text } from '@chakra-ui/react';
-import { Scrollable } from '@platform/ui';
+import { Scrollable } from '@platform/ui/Scrollable';
import { isCanvasInteractionLocked } from '@workbench/widgets/canvas/canvasInteractionLock';
import { useCanvasActiveTool, useCanvasOperation } from '@workbench/widgets/canvas/engineStoreHooks';
import {
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/transform/TransformWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/transform/TransformWidgetView.tsx
index 7de5e30f39..bbc6489bad 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/transform/TransformWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/transform/TransformWidgetView.tsx
@@ -2,7 +2,7 @@ import type { LayerTransform } from '@workbench/canvas-engine/api';
import type { WidgetViewProps } from '@workbench/widgetContracts';
import { Flex, Stack, Text } from '@chakra-ui/react';
-import { Button } from '@platform/ui';
+import { Button } from '@platform/ui/Button';
import { getDocumentNode, lookupDocumentLeaf } from '@workbench/canvas-engine/api';
import { useCanvasHasFloatingSelection, useTransformSession } from '@workbench/widgets/canvas/engineStoreHooks';
import { ToolbarNumberField, useNumberCommit } from '@workbench/widgets/canvas/tool-presentation/ToolbarPrimitives';