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.

feat(webv2): redesign the What's New dialog around the v7 highlights

Josh Corbett6a6e44d79f40
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.json
index 9ef045e5eb..d1a64e162d 100644
--- a/invokeai/frontend/webv2/public/locales/en.json
+++ b/invokeai/frontend/webv2/public/locales/en.json
@@ -4595,14 +4595,36 @@
}
},
"whatsNew": {
+ "alsoNew": "Also in this release",
+ "highlights": {
+ "canvas": {
+ "description": "A new engine with layer groups, blend modes, pressure-sensitive brushes, text, and PSD export.",
+ "title": "Rebuilt Canvas"
+ },
+ "interface": {
+ "description": "One workbench of widgets you can arrange, pop out into windows, or reach from the command palette.",
+ "title": "Redesigned interface"
+ },
+ "models": {
+ "description": "New video models like Wan-2.2, MiniMax H3, and LTX-2.5, plus larger Anima models.",
+ "title": "Expanded model support"
+ },
+ "projects": {
+ "description": "Autosaving projects keep your canvas, settings, and workflows together, and export as .invk files.",
+ "title": "Projects"
+ }
+ },
"items": [
- "Complete frontend facelift with flexible UI widgets.",
- "Projects that help keep your work organized.",
- "Powerful new Canvas features.",
- "Video models: Wan-2.2, MiniMax H3, LTX-2.5.",
+ "Generation settings presets.",
+ "For-loop workflows.",
"Search galleries by content or image similarity.",
"An interactive image map that groups your gallery by theme and autotags images.",
- "Smaller and faster models.",
+ "Dynamic prompts, wildcards, and prompt templates.",
+ "Smaller, faster models with FP8, NVFP4, and int8 quantization.",
+ "Full color theming system with 6 presets.",
+ "Multi-GPU support.",
+ "Interactive intermediates manager.",
+ "Full tablet support.",
"And much more!"
],
"readReleaseNotes": "Read Release Notes",
diff --git a/invokeai/frontend/webv2/src/assets/V7Logo.webp b/invokeai/frontend/webv2/src/assets/V7Logo.webp
new file mode 100644
index 0000000000..e9353f3e5d
Binary files /dev/null and b/invokeai/frontend/webv2/src/assets/V7Logo.webp differ
diff --git a/invokeai/frontend/webv2/src/workbench/shell/WhatsNewDialog.browser.test.tsx b/invokeai/frontend/webv2/src/workbench/shell/WhatsNewDialog.browser.test.tsx
index 5bce28a715..55794545c2 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/WhatsNewDialog.browser.test.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/WhatsNewDialog.browser.test.tsx
@@ -51,10 +51,8 @@ vi.mock('@platform/transport/http', () => ({
}));
const catalog = (await fetch('/locales/en.json').then((response) => response.json())) as {
- whatsNew: { items: string[] };
+ whatsNew: { highlights: Record<string, { description: string; title: string }>; items: string[] };
};
-// An emphasized item exercises the `<StrongComponent>` markup the shipped catalog may use.
-catalog.whatsNew.items = [...catalog.whatsNew.items, 'Try <StrongComponent>the new thing</StrongComponent> today.'];
const i18n = createInstance();
await i18n.use(initReactI18next).init({
@@ -115,13 +113,17 @@ describe('WhatsNewDialog', () => {
await expect.element(page.getByRole('dialog', { name: title() })).toHaveFocus();
expect(isHotkeyModalLayerActive()).toBe(true);
- const items = i18n.t('whatsNew.items', { returnObjects: true }) as string[];
- expect(page.getByRole('listitem').elements()).toHaveLength(items.length);
- // Item text with `:` and `.` renders verbatim.
- await expect.element(page.getByText('Video models: Wan-2.2, MiniMax H3, LTX-2.5.')).toBeVisible();
- const emphasis = page.getByText('the new thing', { exact: true }).element();
- expect(emphasis.tagName).toBe('SPAN');
- expect(emphasis.parentElement?.textContent).toBe('Try the new thing today.');
+ // Every catalogued highlight renders with its title, and the smaller notes list beneath them.
+ for (const { description, title } of Object.values(catalog.whatsNew.highlights)) {
+ await expect.element(page.getByText(title, { exact: true })).toBeVisible();
+ await expect.element(page.getByText(description, { exact: true })).toBeVisible();
+ }
+ expect(
+ page
+ .getByRole('listitem')
+ .elements()
+ .map((item) => item.textContent)
+ ).toEqual(catalog.whatsNew.items);
expect(page.getByRole('link', { name: i18n.t('whatsNew.readReleaseNotes') }).element()).toHaveAttribute(
'href',
diff --git a/invokeai/frontend/webv2/src/workbench/shell/WhatsNewDialog.tsx b/invokeai/frontend/webv2/src/workbench/shell/WhatsNewDialog.tsx
index 8f2748e726..522d741a3a 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/WhatsNewDialog.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/WhatsNewDialog.tsx
@@ -1,33 +1,46 @@
-import { Dialog, HStack, Link, List, Portal, Stack, Text } from '@chakra-ui/react';
+import type { LucideIcon } from 'lucide-react';
+
+import v7LogoUrl from '@assets/V7Logo.webp';
+import { Badge, Box, Dialog, Flex, Grid, Image, Link, List, Portal, Stack, Text, VStack } from '@chakra-ui/react';
import { useMountEffect } from '@platform/react/useMountEffect';
import { DOCS_URL, getReleaseNotesUrl } from '@platform/runtime/appMetadata';
-import { CloseButton } from '@platform/ui';
-import { InvokeMark } from '@platform/ui/InvokeMark';
+import { Button, CloseButton } from '@platform/ui';
import { registerHotkeyModalLayer } from '@workbench/hotkeys/modalLayer';
import { patchWorkbenchPreferences } from '@workbench/settings/store';
+import { BookOpenIcon, BoxesIcon, BrushIcon, FolderIcon, PanelsTopLeftIcon, ScrollTextIcon } from 'lucide-react';
import { useCallback, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import { useWhatsNew } from './useWhatsNew';
import { dismissWhatsNew } from './whatsNewStore';
-const EMPHASIS = /<StrongComponent>(.*?)<\/StrongComponent>/;
+/** Headline features get an icon and a title; the `whatsNew.items` catalog lists the smaller notes beneath them. */
+const HIGHLIGHTS: readonly { descriptionKey: string; icon: LucideIcon; titleKey: string }[] = [
+ {
+ descriptionKey: 'whatsNew.highlights.interface.description',
+ icon: PanelsTopLeftIcon,
+ titleKey: 'whatsNew.highlights.interface.title',
+ },
+ {
+ descriptionKey: 'whatsNew.highlights.projects.description',
+ icon: FolderIcon,
+ titleKey: 'whatsNew.highlights.projects.title',
+ },
+ {
+ descriptionKey: 'whatsNew.highlights.canvas.description',
+ icon: BrushIcon,
+ titleKey: 'whatsNew.highlights.canvas.title',
+ },
+ {
+ descriptionKey: 'whatsNew.highlights.models.description',
+ icon: BoxesIcon,
+ titleKey: 'whatsNew.highlights.models.title',
+ },
+];
const readItems = (value: unknown): string[] =>
Array.isArray(value) ? value.filter((entry): entry is string => typeof entry === 'string') : [];
-/** Items may emphasize a phrase with `<StrongComponent>…</StrongComponent>`; split captures land on odd indexes. */
-const WhatsNewItem = ({ text }: { text: string }) =>
- text.split(EMPHASIS).map((part, index) =>
- index % 2 === 1 ? (
- <Text key={index} as="span" color="fg" fontWeight="600">
- {part}
- </Text>
- ) : (
- part
- )
- );
-
/** Mounted only while the notes are open: workbench hotkeys stay quiet under them, as under the other dialogs. */
const WhatsNewModalLayer = () => {
useMountEffect(() => registerHotkeyModalLayer('whats-new'));
@@ -65,59 +78,93 @@ export const WhatsNewDialog = () => {
initialFocusEl={getInitialFocusEl}
open={isOpen}
placement="center"
- size="xs"
+ scrollBehavior="inside"
+ size="lg"
onOpenChange={handleOpenChange}
>
{isOpen ? <WhatsNewModalLayer /> : null}
<Portal>
<Dialog.Backdrop />
<Dialog.Positioner>
- <Dialog.Content ref={contentRef}>
- <Dialog.Header>
- <HStack gap="2.5">
- <InvokeMark size={20} />
- <Dialog.Title fontSize="sm">{t('whatsNew.whatsNewInInvoke')}</Dialog.Title>
- {version ? (
- <Text color="fg.subtle" fontSize="xs">
- v{version}
- </Text>
- ) : null}
- </HStack>
+ <Dialog.Content ref={contentRef} overflow="hidden">
+ <Dialog.Header justifyContent="center" pb="4" pt="8">
+ <VStack gap="3">
+ <Image alt="" boxSize="24" draggable={false} src={v7LogoUrl} />
+ <VStack gap="1.5">
+ <Dialog.Title textStyle="xl">{t('whatsNew.whatsNewInInvoke')}</Dialog.Title>
+ {version ? (
+ <Badge fontFamily="mono" size="sm" variant="subtle">
+ v{version}
+ </Badge>
+ ) : null}
+ </VStack>
+ </VStack>
</Dialog.Header>
- <Dialog.Body>
- <Stack gap="4">
- <List.Root fontSize="xs" gap="1" ps="4">
- {items.map((item, index) => (
- // The catalog order is fixed for a build, so the index is a stable key.
- <List.Item key={index}>
- <WhatsNewItem text={item} />
- </List.Item>
+ <Dialog.Body px="6">
+ <Stack gap="5">
+ <Grid gap="3" templateColumns="repeat(auto-fit, minmax(15rem, 1fr))">
+ {HIGHLIGHTS.map(({ descriptionKey, icon: HighlightIcon, titleKey }) => (
+ <Flex
+ key={titleKey}
+ align="start"
+ bg="bg.muted"
+ borderColor="border.subtle"
+ borderRadius="lg"
+ borderWidth="1px"
+ gap="3"
+ p="3"
+ >
+ <Flex
+ align="center"
+ bg="accent.subtle"
+ borderRadius="md"
+ boxSize="8"
+ color="accent.fg"
+ flexShrink="0"
+ justify="center"
+ >
+ <HighlightIcon aria-hidden size={16} />
+ </Flex>
+ <Box minW="0">
+ <Text fontWeight="600" textStyle="sm">
+ {t(titleKey)}
+ </Text>
+ <Text color="fg.muted" textStyle="xs">
+ {t(descriptionKey)}
+ </Text>
+ </Box>
+ </Flex>
))}
- </List.Root>
- <Stack gap="1">
- <Link
- color="accent.fg"
- fontSize="xs"
- fontWeight="600"
- href={getReleaseNotesUrl(version)}
- rel="noreferrer"
- target="_blank"
- >
- {t('whatsNew.readReleaseNotes')}
- </Link>
- <Link
- color="accent.fg"
- fontSize="xs"
- fontWeight="600"
- href={DOCS_URL}
- rel="noreferrer"
- target="_blank"
- >
- {t('whatsNew.readTheDocs')}
- </Link>
- </Stack>
+ </Grid>
+ {items.length > 0 ? (
+ <Stack gap="1.5">
+ <Text color="fg.subtle" fontWeight="600" textStyle="2xs" textTransform="uppercase">
+ {t('whatsNew.alsoNew')}
+ </Text>
+ <List.Root color="fg.muted" gap="1" ps="4" textStyle="xs">
+ {items.map((item, index) => (
+ // The catalog order is fixed for a build, so the index is a stable key.
+ <List.Item key={index}>{item}</List.Item>
+ ))}
+ </List.Root>
+ </Stack>
+ ) : null}
</Stack>
</Dialog.Body>
+ <Dialog.Footer borderColor="border.subtle" borderTopWidth="1px" px="6" py="3">
+ <Button asChild size="xs" variant="outline">
+ <Link href={DOCS_URL} rel="noreferrer" target="_blank">
+ <BookOpenIcon aria-hidden />
+ {t('whatsNew.readTheDocs')}
+ </Link>
+ </Button>
+ <Button asChild size="xs" variant="solid">
+ <Link href={getReleaseNotesUrl(version)} rel="noreferrer" target="_blank">
+ <ScrollTextIcon aria-hidden />
+ {t('whatsNew.readReleaseNotes')}
+ </Link>
+ </Button>
+ </Dialog.Footer>
<Dialog.CloseTrigger asChild>
<CloseButton />
</Dialog.CloseTrigger>