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): list Models before Fonts on the Launchpad

Josh Corbettd4792b0addb9
diff --git a/invokeai/frontend/webv2/scripts/run-accessibility-journeys.mjs b/invokeai/frontend/webv2/scripts/run-accessibility-journeys.mjs
index 6cf82b09cc..36fca2ecba 100644
--- a/invokeai/frontend/webv2/scripts/run-accessibility-journeys.mjs
+++ b/invokeai/frontend/webv2/scripts/run-accessibility-journeys.mjs
@@ -329,17 +329,17 @@ const runKeyboardJourney = async (browser) => {
'Launchpad rail links must follow their visual order.'
);
- await fontsLink.focus();
- await fontsLink.press('Enter');
- await page.waitForURL(/#\/fonts$/);
- assert.equal(await fontsLink.getAttribute('aria-current'), 'page');
- await fontsLink.press('Tab');
- await expectFocused(modelsLink, 'Tab should move focus from Fonts to Models.');
+ await modelsLink.focus();
await modelsLink.press('Enter');
await waitForModels(page);
assert.match(page.url(), /#\/models$/);
assert.equal(await modelsLink.getAttribute('aria-current'), 'page');
- assert.equal(await fontsLink.getAttribute('aria-current'), null);
+ await modelsLink.press('Tab');
+ await expectFocused(fontsLink, 'Tab should move focus from Models to Fonts.');
+ await fontsLink.press('Enter');
+ await page.waitForURL(/#\/fonts$/);
+ assert.equal(await fontsLink.getAttribute('aria-current'), 'page');
+ assert.equal(await modelsLink.getAttribute('aria-current'), null);
const paletteTrigger = page.getByRole('button', { exact: true, name: 'Command palette' });
diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/Launchpad.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/Launchpad.tsx
index 657536d24f..a71b4843c5 100644
--- a/invokeai/frontend/webv2/src/workbench/launchpad/Launchpad.tsx
+++ b/invokeai/frontend/webv2/src/workbench/launchpad/Launchpad.tsx
@@ -122,13 +122,6 @@ export const Launchpad = () => {
label: t('launchpad.sections.projects'),
render: () => <ProjectsPage />,
},
- {
- group: 'manage',
- icon: TypeIcon,
- id: 'fonts',
- label: t('launchpad.sections.fonts'),
- render: () => <FontsPage />,
- },
{
condition: canManageModels,
group: 'manage',
@@ -137,6 +130,13 @@ export const Launchpad = () => {
label: t('launchpad.sections.models'),
render: () => <ModelsPage />,
},
+ {
+ group: 'manage',
+ icon: TypeIcon,
+ id: 'fonts',
+ label: t('launchpad.sections.fonts'),
+ render: () => <FontsPage />,
+ },
{
condition: canManageNodes,
group: 'manage',
diff --git a/invokeai/frontend/webv2/src/workbench/palette/LaunchpadCommandPaletteDialog.tsx b/invokeai/frontend/webv2/src/workbench/palette/LaunchpadCommandPaletteDialog.tsx
index 74093bab12..3bb92fc3f8 100644
--- a/invokeai/frontend/webv2/src/workbench/palette/LaunchpadCommandPaletteDialog.tsx
+++ b/invokeai/frontend/webv2/src/workbench/palette/LaunchpadCommandPaletteDialog.tsx
@@ -62,8 +62,8 @@ const LaunchpadCommandPaletteDialog = ({
run: () => void navigate({ search: search.project ? { project: search.project } : {}, to: '/app' }),
}),
navEntry({ id: 'goToProjects', run: () => void navigate({ to: '/projects' }) }),
- navEntry({ id: 'goToFonts', keywords: 'font typeface typography', run: () => void navigate({ to: '/fonts' }) }),
...(canManageModels ? [navEntry({ id: 'goToModels', run: () => void navigate({ to: '/models' }) })] : []),
+ navEntry({ id: 'goToFonts', keywords: 'font typeface typography', run: () => void navigate({ to: '/fonts' }) }),
...(canManageNodes ? [navEntry({ id: 'goToNodes', run: () => void navigate({ to: '/nodes' }) })] : []),
...(canManageUsers ? [navEntry({ id: 'goToUsers', run: () => void navigate({ to: '/users' }) })] : []),
buildOpenSettingsEntry(t, () => void navigate({ to: '/preferences' })),