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): open What's New from the launchpad and add Home to the app menu

Lincoln Stein1d6c832da62a
diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadNav.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadNav.tsx
index 9d1a5e4955..98a95bbb0f 100644
--- a/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadNav.tsx
+++ b/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadNav.tsx
@@ -3,7 +3,9 @@ import type { LucideIcon } from 'lucide-react';
import { Icon, Stack, Text } from '@chakra-ui/react';
import { Button } from '@platform/ui/Button';
+import { LightbulbFilamentIcon } from '@platform/ui/VendoredIcon';
import { Link } from '@tanstack/react-router';
+import { openWhatsNew } from '@workbench/shell/whatsNewStore';
import { useId, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -19,7 +21,7 @@ const FOOTER_MARGIN_TOP = { md: 'auto' } as const;
/**
* Sections are routes, so the rail is route links in visual order: Workspace, the open projects, Manage, then the
- * footer (Preferences). Tab and reading order follow what the rail shows.
+ * footer (Preferences, then the What's New and Help actions). Tab and reading order follow what the rail shows.
*/
export type LaunchpadNavGroupId = 'workspace' | 'manage' | 'footer';
@@ -68,6 +70,22 @@ const NavLink = ({ isActive, item }: { isActive: boolean; item: LaunchpadNavItem
</Button>
);
+const WHATS_NEW_JUSTIFY = { justifyContent: 'start' } as const;
+
+/** An action, not a route: styled like the Help trigger beneath it rather than as a rail link. */
+const WhatsNewButton = () => {
+ const { t } = useTranslation();
+
+ return (
+ <Button color="fg.muted" css={WHATS_NEW_JUSTIFY} size="xs" variant="ghost" w="full" onClick={openWhatsNew}>
+ <Icon as={LightbulbFilamentIcon} boxSize="3.5" />
+ <Text flex="1" textAlign="start" truncate>
+ {t('whatsNew.whatsNewInInvoke')}
+ </Text>
+ </Button>
+ );
+};
+
const NavGroup = ({
activeId,
group,
@@ -131,6 +149,7 @@ export const LaunchpadNav = ({ activeId, items }: { activeId: string; items: Lau
{footerItems.map((item) => (
<NavLink key={item.id} isActive={item.id === activeId} item={item} />
))}
+ <WhatsNewButton />
<HelpMenu />
</Stack>
</Stack>
diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx
index 65ece9c981..2628db703b 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx
@@ -20,6 +20,7 @@ import {
BoxIcon,
ChevronDownIcon,
FolderIcon,
+ HouseIcon,
ListOrderedIcon,
SearchIcon,
SettingsIcon,
@@ -42,6 +43,9 @@ export const AppMenu = () => {
const openWorkbenchWidget = useOpenWorkbenchWidget();
const queuedCount = useActiveProjectSelector((project) => getQueueSummary(project.queue.items).total);
+ const openHome = useCallback(() => {
+ void navigate({ to: '/' });
+ }, [navigate]);
const openProjects = useCallback(() => {
void navigate({ to: '/projects' });
}, [navigate]);
@@ -76,6 +80,11 @@ export const AppMenu = () => {
</Text>
</HStack>
<Menu.Separator />
+ <Menu.Item value="home" onClick={openHome}>
+ <Icon as={HouseIcon} boxSize="3.5" />
+ <Menu.ItemText>{t('launchpad.sections.home')}</Menu.ItemText>
+ </Menu.Item>
+ <Menu.Separator />
<Menu.ItemGroup>
<Menu.ItemGroupLabel color="fg.subtle" fontSize="2xs" textTransform="uppercase">
{t('topbar.appMenu.manage')}