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(webv2): import Picker by module path, not the barrel

joshistoast58bb8452fc6a
diff --git a/invokeai/frontend/webv2/performance/architecture-baseline.json b/invokeai/frontend/webv2/performance/architecture-baseline.json
index 816c073be6..40493e80a3 100644
--- a/invokeai/frontend/webv2/performance/architecture-baseline.json
+++ b/invokeai/frontend/webv2/performance/architecture-baseline.json
@@ -2,15 +2,15 @@
"build": {
"launchpad": {
"baseline": {
- "brotliBytes": 798861,
+ "brotliBytes": 799495,
"cssRawBytes": 2159,
"fontRawBytes": 219480,
- "gzipBytes": 798978,
+ "gzipBytes": 799588,
"imageRawBytes": 156376,
- "initialRawBytes": 1834021,
+ "initialRawBytes": 1835695,
"largestAssetRawBytes": 737757,
"otherAssetRawBytes": 0,
- "ownedRawBytes": 57857,
+ "ownedRawBytes": 57878,
"requestCount": 31,
"scriptRequestCount": 15,
"sourceOwners": [
@@ -239,15 +239,15 @@
]
},
"limits": {
- "brotliBytes": 806850,
+ "brotliBytes": 807490,
"cssRawBytes": 2181,
"fontRawBytes": 221675,
- "gzipBytes": 806968,
+ "gzipBytes": 807584,
"imageRawBytes": 157940,
- "initialRawBytes": 1852362,
+ "initialRawBytes": 1854052,
"largestAssetRawBytes": 745135,
"otherAssetRawBytes": 0,
- "ownedRawBytes": 57857,
+ "ownedRawBytes": 57878,
"requestCount": 31,
"scriptRequestCount": 15
},
@@ -257,15 +257,15 @@
},
"editor": {
"baseline": {
- "brotliBytes": 986211,
+ "brotliBytes": 987794,
"cssRawBytes": 2159,
"fontRawBytes": 219480,
- "gzipBytes": 984908,
+ "gzipBytes": 986463,
"imageRawBytes": 156376,
- "initialRawBytes": 2408718,
+ "initialRawBytes": 2413642,
"largestAssetRawBytes": 737757,
"otherAssetRawBytes": 0,
- "ownedRawBytes": 108868,
+ "ownedRawBytes": 110895,
"requestCount": 72,
"scriptRequestCount": 56,
"sourceOwners": [
@@ -745,15 +745,15 @@
]
},
"limits": {
- "brotliBytes": 996074,
+ "brotliBytes": 997672,
"cssRawBytes": 2181,
"fontRawBytes": 221675,
- "gzipBytes": 994758,
+ "gzipBytes": 996328,
"imageRawBytes": 157940,
- "initialRawBytes": 2432806,
+ "initialRawBytes": 2437779,
"largestAssetRawBytes": 745135,
"otherAssetRawBytes": 0,
- "ownedRawBytes": 108868,
+ "ownedRawBytes": 110895,
"requestCount": 72,
"scriptRequestCount": 56
},
@@ -803,7 +803,9 @@
"src/features/models/ui/ModelManagerView.tsx",
"src/features/nodes/ui/NodeManagerView.tsx"
],
- "editorForbiddenInitialChunkNames": ["ag-psd"],
+ "editorForbiddenInitialChunkNames": [
+ "ag-psd"
+ ],
"inactiveWidgetGateOwner": "deepen-widget-registry-loading"
}
}
diff --git a/invokeai/frontend/webv2/src/features/models/ui/components/ModelSelect.tsx b/invokeai/frontend/webv2/src/features/models/ui/components/ModelSelect.tsx
index c9c68f9907..e26e02af6f 100644
--- a/invokeai/frontend/webv2/src/features/models/ui/components/ModelSelect.tsx
+++ b/invokeai/frontend/webv2/src/features/models/ui/components/ModelSelect.tsx
@@ -1,6 +1,6 @@
/* eslint-disable react/react-compiler, react-perf/jsx-no-new-object-as-prop, react-perf/jsx-no-new-function-as-prop, react-perf/jsx-no-jsx-as-prop */
import type { ModelConfig, ModelTaxonomyType } from '@features/models/core/types';
-import type { PickerGroup, PickerOptionState } from '@platform/ui';
+import type { PickerGroup, PickerOptionState } from '@platform/ui/Picker';
import { Badge, Box, HStack, Icon, Image, Popover, Portal, Spacer, Stack, Text } from '@chakra-ui/react';
import { getModelBaseColorPalette, getModelBaseLabel, getModelBaseLongLabel } from '@features/models/core/baseIdentity';
@@ -11,7 +11,8 @@ import { ensureModelsLoaded, useModelsSelector } from '@features/models/data/mod
import { useModelsUi } from '@features/models/ui/ModelsUiContext';
import { setPickerCompactView, useModelsUiSelector } from '@features/models/ui/uiStore';
import { useMountEffect } from '@platform/react/useMountEffect';
-import { Button, CloseButton, IconButton, Picker, Tooltip } from '@platform/ui';
+import { Button, CloseButton, IconButton, Tooltip } from '@platform/ui';
+import { Picker } from '@platform/ui/Picker';
import { Link } from '@tanstack/react-router';
import { dropdownContent } from '@theme/recipes';
import {
diff --git a/invokeai/frontend/webv2/src/platform/ui/index.ts b/invokeai/frontend/webv2/src/platform/ui/index.ts
index 77ba0593a6..4dd7b61375 100644
--- a/invokeai/frontend/webv2/src/platform/ui/index.ts
+++ b/invokeai/frontend/webv2/src/platform/ui/index.ts
@@ -7,7 +7,6 @@ export * from './Field';
export * from './JsonPreview';
export * from './Menu';
export * from './Panel';
-export * from './Picker';
export * from './RenameDialog';
export * from './ResizableTextarea';
export * from './Row';