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.

fix(webv2): satisfy UI regression types

joshistoast818989e8f62a
diff --git a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsx b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsx
index f07a68c108..23ec1315a8 100644
--- a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsx
+++ b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsx
@@ -1,4 +1,4 @@
-import { Box, Flex, HStack, Icon, ScrollArea, Spinner, Text } from '@chakra-ui/react';
+import { Box, chakra, Flex, HStack, Icon, ScrollArea, Spinner, Text } from '@chakra-ui/react';
import { getGalleryBoardLabel } from '@features/gallery/core/boardLabels';
import { toGalleryItemKey, type GalleryItem } from '@features/gallery/core/items';
import { DropZone } from '@platform/ui';
@@ -320,8 +320,7 @@ export const GalleryImageGrid = () => {
transform={`translateY(${virtualRow.start}px)`}
w="full"
>
- <Box
- as="button"
+ <chakra.button
aria-expanded={isStarredOpen}
aria-label={t(
isStarredOpen
@@ -369,7 +368,7 @@ export const GalleryImageGrid = () => {
{row.itemCount}
</Text>
</HStack>
- </Box>
+ </chakra.button>
</Flex>
);
}
diff --git a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryLayout.browser.test.tsx b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryLayout.browser.test.tsx
index 2f4ed62151..9c613e9270 100644
--- a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryLayout.browser.test.tsx
+++ b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryLayout.browser.test.tsx
@@ -45,12 +45,12 @@ const board: GalleryBoard = {
const createItem = (name: string) => ({
boardId: 'dogs',
- category: 'general',
+ category: 'general' as const,
createdAt: '2026-07-30T00:00:00.000Z',
fullUrl: `/full/${name}`,
height: 64,
isIntermediate: false,
- kind: 'image',
+ kind: 'image' as const,
name,
starred: false,
thumbnailUrl: `/thumb/${name}`,