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(settings): About section with server version and system information
Josh Corbett6c3f1be245f9
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.jsonindex 159ddbfb48..8bc6679c47 100644--- a/invokeai/frontend/webv2/public/locales/en.json+++ b/invokeai/frontend/webv2/public/locales/en.json@@ -1445,6 +1445,7 @@"language": "Language","languageDescription": "Interface language. New workbench copy falls back to English until translators add coverage.","tabs": {+ "about": "About","appearance": "Appearance","behavior": "Behavior","developer": "Developer",@@ -1455,6 +1456,14 @@"workspace": "Workspace","imageMap": "Image Map"},+ "about": {+ "title": "About Invoke",+ "description": "Version and system information for this Invoke server.",+ "github": "GitHub",+ "discord": "Discord",+ "loading": "Loading system information…",+ "systemInformation": "System information"+ },"imageMapVocabulary": {"title": "Cluster Label Vocabulary","description": "Supplementary terms the image map can use when labeling clusters, alongside its built-in vocabulary. This is a server-wide list.",@@ -1512,6 +1521,8 @@"unshade": "Unshade"},"loadingLabel": "Loading {{label}}",+ "moveToLeftSide": "Move to left side",+ "moveToRightSide": "Move to right side","removeWidget": "Remove {{label}}","panelLabel": "{{region}} widget panel","resizePanel": "Resize {{region}} widget panel",diff --git a/invokeai/frontend/webv2/src/platform/ui/BrandIcon.tsx b/invokeai/frontend/webv2/src/platform/ui/BrandIcon.tsxindex a1e40365d3..3f0a44a17f 100644--- a/invokeai/frontend/webv2/src/platform/ui/BrandIcon.tsx+++ b/invokeai/frontend/webv2/src/platform/ui/BrandIcon.tsx@@ -75,6 +75,12 @@ export const GoogleGeminiIcon = createBrandIcon({title: 'Google Gemini',});+export const GithubIcon = createBrandIcon({+ path: 'M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12',+ slug: 'github',+ title: 'GitHub',+});+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',diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/HelpMenu.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/HelpMenu.tsxindex 512d000158..c7eb153639 100644--- a/invokeai/frontend/webv2/src/workbench/launchpad/HelpMenu.tsx+++ b/invokeai/frontend/webv2/src/workbench/launchpad/HelpMenu.tsx@@ -2,10 +2,10 @@ 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 { DiscordIcon, GithubIcon } from '@platform/ui/BrandIcon';import { Button } from '@platform/ui/Button';import { MenuContent } from '@platform/ui/Menu';-import { BookOpenTextIcon, ChevronRightIcon, ClapperboardIcon, CircleQuestionMarkIcon, CodeIcon } from 'lucide-react';+import { BookOpenTextIcon, ChevronRightIcon, ClapperboardIcon, CircleQuestionMarkIcon } from 'lucide-react';import { useTranslation } from 'react-i18next';/**@@ -51,7 +51,7 @@ const COMMUNITY: HelpLink[] = [},{href: 'https://github.com/invoke-ai/InvokeAI',- icon: CodeIcon,+ icon: GithubIcon,labelKey: 'launchpad.help.github',value: 'github',},diff --git a/invokeai/frontend/webv2/src/workbench/palette/entries.ts b/invokeai/frontend/webv2/src/workbench/palette/entries.tsindex d9dfa296fd..c85ae39c9a 100644--- a/invokeai/frontend/webv2/src/workbench/palette/entries.ts+++ b/invokeai/frontend/webv2/src/workbench/palette/entries.ts@@ -305,8 +305,10 @@ const SETTINGS_SECTIONS: ReadonlyArray<{ id: SettingsSectionId; title: string }>{ id: 'project', title: 'Project' },{ id: 'queue', title: 'Queue' },{ id: 'workflow', title: 'Workflow' },+ { id: 'imageMap', title: 'Image Map' },{ id: 'developer', title: 'Developer' },{ id: 'workspace', title: 'Workspace' },+ { id: 'about', title: 'About' },];export interface SettingsEntryDeps {diff --git a/invokeai/frontend/webv2/src/workbench/settings/AboutSettings.tsx b/invokeai/frontend/webv2/src/workbench/settings/AboutSettings.tsxnew file mode 100644index 0000000000..1798df2947--- /dev/null+++ b/invokeai/frontend/webv2/src/workbench/settings/AboutSettings.tsx@@ -0,0 +1,70 @@+import { HStack, Icon, Link, Spinner, Stack, Text } from '@chakra-ui/react';+import { useCapabilities } from '@features/identity';+import { useMountEffect } from '@platform/react/useMountEffect';+import { DiscordIcon, GithubIcon } from '@platform/ui/BrandIcon';+import { JsonPreview } from '@platform/ui/JsonPreview';+import { useMemo } from 'react';+import { useTranslation } from 'react-i18next';++import { refreshAboutInfo, useAboutInfo } from './aboutInfoStore';++const GITHUB_URL = 'https://github.com/invoke-ai/InvokeAI';+const DISCORD_URL = 'https://discord.gg/ZmtBAhwWhy';++/**+ * The legacy About modal's content as a settings section: the server's+ * version, the community links, and the full system-information blob+ * (installed dependency versions plus, for admins, the redacted runtime+ * config) as copyable JSON.+ */+export const AboutSettings = () => {+ const { t } = useTranslation();+ const { canManageAppConfig } = useCapabilities();+ const info = useAboutInfo();++ useMountEffect(() => {+ void refreshAboutInfo(canManageAppConfig);+ });++ const systemInfo = useMemo(+ () => ({+ version: info.version,+ dependencies: info.dependencies,+ ...(info.runtimeConfig ? { config: info.runtimeConfig } : {}),+ }),+ [info.dependencies, info.runtimeConfig, info.version]+ );++ return (+ <Stack gap="4">+ <HStack gap="4">+ <Text fontSize="xs" fontWeight="700">+ {info.version ? `Invoke v${info.version}` : 'Invoke'}+ </Text>+ <HStack gap="3">+ <Link fontSize="xs" href={GITHUB_URL} rel="noreferrer" target="_blank">+ <Icon as={GithubIcon} boxSize="3.5" />+ {t('settings.about.github')}+ </Link>+ <Link fontSize="xs" href={DISCORD_URL} rel="noreferrer" target="_blank">+ <Icon as={DiscordIcon} boxSize="3.5" />+ {t('settings.about.discord')}+ </Link>+ </HStack>+ </HStack>++ {info.loadState === 'loading' || info.loadState === 'idle' ? (+ <HStack color="fg.subtle" gap="2">+ <Spinner size="xs" />+ <Text fontSize="xs">{t('settings.about.loading')}</Text>+ </HStack>+ ) : info.loadState === 'error' ? (+ <Text color="fg.error" fontSize="xs">+ {info.error}+ </Text>+ ) : (+ <JsonPreview label={t('settings.about.systemInformation')} maxH="24rem" value={systemInfo} />+ )}+ </Stack>+ );+};diff --git a/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsx b/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsxindex 2ea3315352..c0c504b6f8 100644--- a/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsx+++ b/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsx@@ -39,6 +39,7 @@ import {Code2Icon,DatabaseIcon,FolderIcon,+ InfoIcon,KeyboardIcon,ListOrderedIcon,MapIcon,@@ -53,6 +54,7 @@ import {import { useCallback, useEffect, useId, useMemo, useState, type ReactNode } from 'react';import { useTranslation } from 'react-i18next';+import { AboutSettings } from './AboutSettings';import { GenerationDevicesSettings } from './GenerationDevicesSettings';import { HotkeysSettingsSection } from './HotkeysSettingsSection';import { ImageMapVocabularySettings } from './ImageMapVocabularySettings';@@ -228,6 +230,12 @@ const SettingsTabs = () => {label: t('settings.tabs.workspace'),value: 'workspace',},+ {+ children: <AboutSection />,+ icon: InfoIcon,+ label: t('settings.tabs.about'),+ value: 'about',+ },],[hasWorkbench, t]);@@ -590,6 +598,18 @@ const QueueSection = () => {);};+const AboutSection = () => {+ const { t } = useTranslation();++ return (+ <Stack gap="6">+ <SettingsSection description={t('settings.about.description')} title={t('settings.about.title')}>+ <AboutSettings />+ </SettingsSection>+ </Stack>+ );+};+const ImageMapSection = () => {const { t } = useTranslation();diff --git a/invokeai/frontend/webv2/src/workbench/settings/aboutInfoStore.ts b/invokeai/frontend/webv2/src/workbench/settings/aboutInfoStore.tsnew file mode 100644index 0000000000..08b0165c1e--- /dev/null+++ b/invokeai/frontend/webv2/src/workbench/settings/aboutInfoStore.ts@@ -0,0 +1,104 @@+import {+ captureAccountScope,+ isAccountScopeCurrent,+ registerAccountOwnedResource,+} from '@platform/state/accountLifecycle';+import { createExternalStore } from '@platform/state/externalStore';+import { apiFetchJson, getApiErrorMessage } from '@platform/transport/http';++/**+ * System information for the settings About section: the server's version and+ * its installed dependency versions (with the synthesized `CUDA` entry), plus+ * — for admins — the redacted runtime config, mirroring the legacy About+ * modal's blob. Pull-based: nothing here changes without a server restart.+ */++export interface AboutInfoSnapshot {+ /** The server's app version, or null while unknown. */+ version: string | null;+ /** Installed distributions by name, sorted by the backend. Empty until loaded. */+ dependencies: Record<string, string>;+ /** Admin-only redacted runtime config; null for non-admins. */+ runtimeConfig: Record<string, unknown> | null;+ loadState: 'idle' | 'loading' | 'loaded' | 'error';+ error: string | null;+}++const EMPTY_SNAPSHOT: AboutInfoSnapshot = {+ dependencies: {},+ error: null,+ loadState: 'idle',+ runtimeConfig: null,+ version: null,+};++const store = createExternalStore<AboutInfoSnapshot>(EMPTY_SNAPSHOT);++let inflight: Promise<void> | null = null;++registerAccountOwnedResource({+ clear: () => {+ inflight = null;+ store.setSnapshot(EMPTY_SNAPSHOT);+ },+ name: 'about-info',+});++interface RuntimeConfigResponse {+ config?: Record<string, unknown> | null;+}++export const refreshAboutInfo = (includeRuntimeConfig: boolean): Promise<void> => {+ if (inflight) {+ return inflight;+ }++ const owner = captureAccountScope();++ if (store.getSnapshot().loadState === 'idle') {+ store.patchSnapshot({ loadState: 'loading' });+ }++ const refresh = Promise.all([+ apiFetchJson<{ version: string }>('/api/v1/app/version', { signal: owner.signal }),+ apiFetchJson<Record<string, string>>('/api/v1/app/app_deps', { signal: owner.signal }),+ // Admin-only; a non-admin shows the blob without it rather than an error.+ includeRuntimeConfig+ ? apiFetchJson<RuntimeConfigResponse>('/api/v1/app/runtime_config', { signal: owner.signal }).catch(() => null)+ : Promise.resolve(null),+ ])+ .then(([version, dependencies, runtimeConfig]) => {+ if (!isAccountScopeCurrent(owner)) {+ return;+ }++ store.patchSnapshot({+ dependencies,+ error: null,+ loadState: 'loaded',+ runtimeConfig: runtimeConfig?.config ?? null,+ version: version.version,+ });+ })+ .catch((error: unknown) => {+ if (!isAccountScopeCurrent(owner)) {+ return;+ }++ store.patchSnapshot({+ error: getApiErrorMessage(error, 'Failed to load system information'),+ loadState: 'error',+ });+ })+ .finally(() => {+ if (inflight === refresh) {+ inflight = null;+ }+ });++ inflight = refresh;++ return inflight;+};++export const useAboutInfo = (): AboutInfoSnapshot => store.useSnapshot();diff --git a/invokeai/frontend/webv2/src/workbench/widgetContracts.ts b/invokeai/frontend/webv2/src/workbench/widgetContracts.tsindex c1e6eecf83..eafd8b7960 100644--- a/invokeai/frontend/webv2/src/workbench/widgetContracts.ts+++ b/invokeai/frontend/webv2/src/workbench/widgetContracts.ts@@ -283,7 +283,8 @@ export type SettingsSectionId =| 'workflow'| 'imageMap'| 'developer'- | 'workspace';+ | 'workspace'+ | 'about';export interface WidgetManifest {/** Widget runtime API contract version. Defaults to 1 during registry normalization. */