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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
feat(ui): give the Discord links their own brand mark
joshistoast1998e09a0515
diff --git a/invokeai/frontend/webv2/performance/architecture-baseline.json b/invokeai/frontend/webv2/performance/architecture-baseline.jsonindex f33e3aa11e..34ef20e702 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": 834004,+ "brotliBytes": 836632,"cssRawBytes": 2159,"fontRawBytes": 219480,- "gzipBytes": 833838,+ "gzipBytes": 836584,"imageRawBytes": 156376,- "initialRawBytes": 1938174,+ "initialRawBytes": 1945255,"largestAssetRawBytes": 746569,"otherAssetRawBytes": 0,- "ownedRawBytes": 67459,+ "ownedRawBytes": 68878,"requestCount": 41,"scriptRequestCount": 25,"sourceOwners": [@@ -193,6 +193,7 @@"source:src/platform/transport/deploymentBase.ts","source:src/platform/transport/http.ts","source:src/platform/transport/socketHub.ts",+ "source:src/platform/ui/BrandIcon.tsx","source:src/platform/ui/Button.tsx","source:src/platform/ui/ColorPicker.tsx","source:src/platform/ui/Combobox.tsx",@@ -249,6 +250,7 @@"source:src/workbench/launchpad/intents.ts","source:src/workbench/launchpad/pages/HomePage.tsx","source:src/workbench/launchpad/pages/ProjectsPage.tsx",+ "source:src/workbench/launchpad/projects/NewProjectButton.tsx","source:src/workbench/launchpad/projects/ProjectActionsMenu.tsx","source:src/workbench/launchpad/projects/ProjectCard.tsx","source:src/workbench/launchpad/projects/ProjectCover.tsx",@@ -284,15 +286,15 @@]},"limits": {- "brotliBytes": 842345,+ "brotliBytes": 844999,"cssRawBytes": 2181,"fontRawBytes": 221675,- "gzipBytes": 842177,+ "gzipBytes": 844950,"imageRawBytes": 157940,- "initialRawBytes": 1957556,+ "initialRawBytes": 1964708,"largestAssetRawBytes": 754035,"otherAssetRawBytes": 0,- "ownedRawBytes": 67459,+ "ownedRawBytes": 68878,"requestCount": 41,"scriptRequestCount": 25},@@ -302,17 +304,17 @@},"editor": {"baseline": {- "brotliBytes": 1034640,+ "brotliBytes": 1037061,"cssRawBytes": 2159,"fontRawBytes": 219480,- "gzipBytes": 1031951,+ "gzipBytes": 1034691,"imageRawBytes": 156376,- "initialRawBytes": 2536883,+ "initialRawBytes": 2544068,"largestAssetRawBytes": 746569,"otherAssetRawBytes": 0,- "ownedRawBytes": 111579,- "requestCount": 92,- "scriptRequestCount": 76,+ "ownedRawBytes": 112220,+ "requestCount": 91,+ "scriptRequestCount": 75,"sourceOwners": ["package:@ark-ui/react","package:@chakra-ui/react",@@ -630,6 +632,7 @@"source:src/platform/transport/deploymentBase.ts","source:src/platform/transport/http.ts","source:src/platform/transport/socketHub.ts",+ "source:src/platform/ui/BrandIcon.tsx","source:src/platform/ui/Button.tsx","source:src/platform/ui/ColorPicker.tsx","source:src/platform/ui/Combobox.tsx",@@ -848,24 +851,24 @@]},"limits": {- "brotliBytes": 1044987,+ "brotliBytes": 1047432,"cssRawBytes": 2181,"fontRawBytes": 221675,- "gzipBytes": 1042271,+ "gzipBytes": 1045038,"imageRawBytes": 157940,- "initialRawBytes": 2562252,+ "initialRawBytes": 2569509,"largestAssetRawBytes": 754035,"otherAssetRawBytes": 0,- "ownedRawBytes": 111579,- "requestCount": 92,- "scriptRequestCount": 76+ "ownedRawBytes": 112220,+ "requestCount": 91,+ "scriptRequestCount": 75},"owner": "workbench","remediationTicket": "deepen-widget-registry-loading","source": "src/app/WorkbenchApp.tsx"}},- "capturedAt": "2026-08-19",+ "capturedAt": "2026-08-20","developmentInvalidation": {"platformUiBarrel": {"specifier": "@platform/ui",diff --git a/invokeai/frontend/webv2/src/platform/ui/BrandIcon.tsx b/invokeai/frontend/webv2/src/platform/ui/BrandIcon.tsxindex 8f95b0e0ce..a1e40365d3 100644--- a/invokeai/frontend/webv2/src/platform/ui/BrandIcon.tsx+++ b/invokeai/frontend/webv2/src/platform/ui/BrandIcon.tsx@@ -1,7 +1,8 @@import type { SVGProps } from 'react';/**- * Brand marks, vendored from Simple Icons (https://simpleicons.org, CC0-1.0).+ * Brand marks, vendored mostly from Simple Icons (https://simpleicons.org,+ * CC0-1.0); `origin` records any mark that came from somewhere else.** Everything non-brand is a Lucide icon; brands are the only exception, and* there are a handful of them. Both `react-icons/si` and the `simple-icons`@@ -15,12 +16,14 @@ import type { SVGProps } from 'react';*/interface BrandIconSource {- /** Upstream Simple Icons slug, for refreshing the path later. */+ /** Upstream slug, for refreshing the path later. */slug: string;/** Upstream title, used as the accessible name when the icon is not decorative. */title: string;/** The 24×24 `path` `d` attribute. */path: string;+ /** Where the path came from, when it is not Simple Icons. */+ origin?: string;}const createBrandIcon = ({ path, title }: BrandIconSource) => {@@ -71,3 +74,10 @@ export const GoogleGeminiIcon = createBrandIcon({slug: 'googlegemini',title: 'Google Gemini',});++export const DiscordIcon = createBrandIcon({+ origin: 'Material Icons (Apache-2.0)',+ path: 'M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12',+ slug: 'discord',+ title: 'Discord',+});diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/HelpMenu.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/HelpMenu.tsxindex 1882f317a1..512d000158 100644--- a/invokeai/frontend/webv2/src/workbench/launchpad/HelpMenu.tsx+++ b/invokeai/frontend/webv2/src/workbench/launchpad/HelpMenu.tsx@@ -1,17 +1,11 @@-import type { LucideIcon } from 'lucide-react';+import type { ElementType } from 'react';import { chakra, HStack, Icon, Menu, Portal, Text } from '@chakra-ui/react';import { APP_VERSION } from '@platform/runtime/appMetadata';+import { DiscordIcon } from '@platform/ui/BrandIcon';import { Button } from '@platform/ui/Button';import { MenuContent } from '@platform/ui/Menu';-import {- BookOpenTextIcon,- ChevronRightIcon,- ClapperboardIcon,- CircleQuestionMarkIcon,- CodeIcon,- MessagesSquareIcon,-} from 'lucide-react';+import { BookOpenTextIcon, ChevronRightIcon, ClapperboardIcon, CircleQuestionMarkIcon, CodeIcon } from 'lucide-react';import { useTranslation } from 'react-i18next';/**@@ -27,7 +21,8 @@ const TRIGGER_JUSTIFY = { justifyContent: 'space-between' } as const;interface HelpLink {href: string;- icon: LucideIcon;+ /** Lucide for generic destinations, a brand mark where the destination has one. */+ icon: ElementType;labelKey: string;value: string;}@@ -50,7 +45,7 @@ const GUIDES: HelpLink[] = [const COMMUNITY: HelpLink[] = [{href: 'https://discord.gg/ZmtBAhwWhy',- icon: MessagesSquareIcon,+ icon: DiscordIcon,labelKey: 'launchpad.help.discord',value: 'discord',},diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/intents.ts b/invokeai/frontend/webv2/src/workbench/launchpad/intents.tsindex b76a715176..283cd9a4e2 100644--- a/invokeai/frontend/webv2/src/workbench/launchpad/intents.ts+++ b/invokeai/frontend/webv2/src/workbench/launchpad/intents.ts@@ -47,6 +47,19 @@ export const isLaunchpadIntentId = (value: unknown): value is LaunchpadIntentId*/export const LAUNCHPAD_LAYOUT_IDS: readonly BuiltInLayoutPresetId[] = ['compose', 'edit', 'automate'];+/**+ * Display names for the built-in arrangements, kept here rather than read off+ * `layoutPresets` so the Launchpad can name them without pulling that table —+ * which carries three full widget-region snapshots — onto its route chunk.+ * `layoutPresets` builds its own labels from this map, so there is still one+ * definition.+ */+export const BUILT_IN_LAYOUT_PRESET_LABELS: Record<BuiltInLayoutPresetId, string> = {+ automate: 'Automate',+ compose: 'Compose',+ edit: 'Edit',+};+export const isLaunchpadLayoutId = (value: unknown): value is BuiltInLayoutPresetId =>typeof value === 'string' && LAUNCHPAD_LAYOUT_IDS.includes(value as BuiltInLayoutPresetId);diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/projects/NewProjectButton.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/projects/NewProjectButton.tsxindex 24ac949c3b..b879ae4132 100644--- a/invokeai/frontend/webv2/src/workbench/launchpad/projects/NewProjectButton.tsx+++ b/invokeai/frontend/webv2/src/workbench/launchpad/projects/NewProjectButton.tsx@@ -2,11 +2,14 @@ import type { BuiltInLayoutPresetId } from '@workbench/layoutContracts';import type { LucideIcon } from 'lucide-react';import { Icon, Menu, Portal } from '@chakra-ui/react';-import { Button, Group, IconButton, MenuContent } from '@platform/ui';+// Concrete modules, not the barrel: `@platform/ui` sits at its direct-importer+// budget, and this component needs four of its exports.+import { Button, IconButton } from '@platform/ui/Button';+import { Group } from '@platform/ui/Group';+import { MenuContent } from '@platform/ui/Menu';import { Link } from '@tanstack/react-router';-import { LAUNCHPAD_LAYOUT_IDS } from '@workbench/launchpad/intents';-import { layoutPresets } from '@workbench/layoutPresets';-import { ChevronDownIcon, LayersIcon, LayoutGridIcon, PlusIcon, TypeIcon, WorkflowIcon } from 'lucide-react';+import { BUILT_IN_LAYOUT_PRESET_LABELS, LAUNCHPAD_LAYOUT_IDS } from '@workbench/launchpad/intents';+import { ChevronDownIcon, LayersIcon, PlusIcon, TypeIcon, WorkflowIcon } from 'lucide-react';import { useTranslation } from 'react-i18next';/**@@ -18,20 +21,21 @@ import { useTranslation } from 'react-i18next';* layouts so starting from "Edit" does not mean opening a draft and then* rearranging it.*- * Labels come from the preset table itself rather than a parallel list, so the- * menu and the editor's preset strip can never disagree about what a layout is- * called. Icons are mapped locally: `resolveLayoutPresetIcon` exists for the- * custom-preset picker and carries its whole curated catalogue, which is a- * lot of Lucide to pull onto the Launchpad for three entries.+ * Labels come from the shared id/label map that `layoutPresets` also builds+ * from, so the menu and the editor's preset strip cannot disagree about what a+ * layout is called — without the Launchpad having to load the preset table's+ * three full widget-region snapshots. Icons are mapped locally for the same+ * reason: `resolveLayoutPresetIcon` exists for the custom-preset picker and+ * carries its whole curated catalogue.*/const NEW_PROJECT_SEARCH = { new: true } as const;const MENU_POSITIONING = { placement: 'bottom-end' } as const;-const LAYOUT_ICONS: Record<string, LucideIcon> = {- layers: LayersIcon,- type: TypeIcon,- workflow: WorkflowIcon,+const LAYOUT_ICONS: Record<BuiltInLayoutPresetId, LucideIcon> = {+ automate: WorkflowIcon,+ compose: TypeIcon,+ edit: LayersIcon,};interface NewProjectLayoutItem {@@ -41,20 +45,12 @@ interface NewProjectLayoutItem {search: { new: true; preset: BuiltInLayoutPresetId };}-const LAYOUT_ITEMS: NewProjectLayoutItem[] = LAUNCHPAD_LAYOUT_IDS.flatMap((id) => {- const preset = layoutPresets.find((candidate) => candidate.id === id);-- return preset- ? [- {- icon: LAYOUT_ICONS[preset.iconId ?? ''] ?? LayoutGridIcon,- id,- label: preset.label,- search: { new: true, preset: id },- },- ]- : [];-});+const LAYOUT_ITEMS: NewProjectLayoutItem[] = LAUNCHPAD_LAYOUT_IDS.map((id) => ({+ icon: LAYOUT_ICONS[id],+ id,+ label: BUILT_IN_LAYOUT_PRESET_LABELS[id],+ search: { new: true, preset: id },+}));export const NewProjectButton = ({ variant = 'solid' }: { variant?: 'outline' | 'solid' }) => {const { t } = useTranslation();diff --git a/invokeai/frontend/webv2/src/workbench/layoutPresets.ts b/invokeai/frontend/webv2/src/workbench/layoutPresets.tsindex 2e2566fe03..92f8ddd2fa 100644--- a/invokeai/frontend/webv2/src/workbench/layoutPresets.ts+++ b/invokeai/frontend/webv2/src/workbench/layoutPresets.ts@@ -11,6 +11,8 @@ import type {} from '@workbench/layoutContracts';import type { WidgetInstanceId, WidgetTypeId } from '@workbench/widgetContracts';+import { BUILT_IN_LAYOUT_PRESET_LABELS } from '@workbench/launchpad/intents';+const defaultBottomInstanceIds: WidgetInstanceId[] = ['server-status','queue-status',@@ -149,7 +151,7 @@ export const builtInLayoutPresetDescriptors: BuiltInLayoutPresetDescriptor[] = [hotkeyId: 'selectComposePreset',id: 'compose',iconId: 'type',- label: 'Compose',+ label: BUILT_IN_LAYOUT_PRESET_LABELS.compose,panels: { isBottomOpen: false, isLeftOpen: true, isRightOpen: true },widgetRegions: {bottom: createRegion({@@ -188,7 +190,7 @@ export const builtInLayoutPresetDescriptors: BuiltInLayoutPresetDescriptor[] = [hotkeyId: 'selectEditPreset',id: 'edit',iconId: 'layers',- label: 'Edit',+ label: BUILT_IN_LAYOUT_PRESET_LABELS.edit,panels: { isBottomOpen: false, isLeftOpen: true, isRightOpen: true },widgetRegions: {bottom: createRegion({@@ -221,7 +223,7 @@ export const builtInLayoutPresetDescriptors: BuiltInLayoutPresetDescriptor[] = [hotkeyId: 'selectAutomatePreset',id: 'automate',iconId: 'workflow',- label: 'Automate',+ label: BUILT_IN_LAYOUT_PRESET_LABELS.automate,panels: { isBottomOpen: false, isLeftOpen: true, isRightOpen: true },widgetRegions: {bottom: createRegion({diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsxindex 87895a6fa9..8cacc6d83b 100644--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx@@ -2,6 +2,7 @@ import { Badge, Box, chakra, HStack, Icon, Menu, Portal, Text } from '@chakra-uiimport { AccountMenuSection, useCapabilities, useHasAccountSection } from '@features/identity';import { getQueueSummary } from '@features/queue/contracts';import { APP_VERSION } from '@platform/runtime/appMetadata';+import { DiscordIcon } from '@platform/ui/BrandIcon';import { IconButton } from '@platform/ui/Button';import { InvokeMark } from '@platform/ui/InvokeMark';import { MenuContent } from '@platform/ui/Menu';@@ -19,12 +20,11 @@ import {ChevronDownIcon,FolderIcon,ListOrderedIcon,- MessagesSquareIcon,SearchIcon,SettingsIcon,type LucideIcon,} from 'lucide-react';-import { useCallback } from 'react';+import { useCallback, type ElementType } from 'react';import { useTranslation } from 'react-i18next';import { useTopbarShortcut } from './useTopbarShortcut';@@ -119,7 +119,7 @@ export const AppMenu = () => {label={t('topbar.appMenu.documentation')}value="documentation"/>- <AppMenuLink href={DISCORD_URL} icon={MessagesSquareIcon} label="Discord" value="discord" />+ <AppMenuLink href={DISCORD_URL} icon={DiscordIcon} label="Discord" value="discord" /></HStack></MenuContent></Menu.Positioner>@@ -205,7 +205,8 @@ const AppMenuLink = ({value,}: {href: string;- icon: LucideIcon;+ /** Lucide for generic destinations, a brand mark where the destination has one. */+ icon: ElementType;label: string;value: string;}) => (diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/RailActiveContrast.browser.test.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/RailActiveContrast.browser.test.tsxindex f32d753932..09c32137b0 100644--- a/invokeai/frontend/webv2/src/workbench/widget-frame/RailActiveContrast.browser.test.tsx+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/RailActiveContrast.browser.test.tsx@@ -1,5 +1,5 @@import { Box, ChakraProvider } from '@chakra-ui/react';-import { Row } from '@platform/ui';+import { Row } from '@platform/ui/Row';import { applyThemeToRoot } from '@theme/applyTheme';import { getContrastRatio } from '@theme/contrastRatio.testing';import { system } from '@theme/system';diff --git a/invokeai/frontend/webv2/vite.config.mts b/invokeai/frontend/webv2/vite.config.mtsindex ce8cbffe73..9c3a283876 100644--- a/invokeai/frontend/webv2/vite.config.mts+++ b/invokeai/frontend/webv2/vite.config.mts@@ -26,6 +26,11 @@ const ROUTE_SHARED_MODULES = ['/features/nodes/index.ts','/features/nodes/ui/NodesPage.tsx','/platform/browser/downloadBlob.ts',+ // Brand marks. The Launchpad's help menu and the editor's app menu both link+ // to Discord, and without grouping that one shared module the editor pulls+ // the whole Launchpad chunk in after it — the same regression the+ // `launchpad/intents.ts` note below describes.+ '/platform/ui/BrandIcon.tsx','/platform/core/concurrency.ts','/platform/query/client.ts','/platform/time/serverTimestamp.ts',