diff --git a/frontend/src/components/GlobalCommandPalette/commands.ts b/frontend/src/components/GlobalCommandPalette/commands.ts index 365f9127..4db0f49b 100644 --- a/frontend/src/components/GlobalCommandPalette/commands.ts +++ b/frontend/src/components/GlobalCommandPalette/commands.ts @@ -1,5 +1,6 @@ import type { Router } from 'vue-router' import type { Composer } from 'vue-i18n' +import { openNewUserGuide } from '@/config/contextualGuides' /** * A single command that can be searched and invoked from the palette. @@ -82,6 +83,16 @@ export function buildCommands(ctx: CommandContext): CmdkCommand[] { router.push('/platform/settings') }, }, + { + id: 'open-product-tour', + label: t('commandPalette.quick.productTour'), + icon: 'help-circle', + keywords: ['guide', 'tour', 'onboarding', 'help', '引导', '新手', '教程'], + run: () => { + close() + openNewUserGuide() + }, + }, ] } diff --git a/frontend/src/components/NewUserGuide.vue b/frontend/src/components/NewUserGuide.vue index 48d930bb..d7370672 100644 --- a/frontend/src/components/NewUserGuide.vue +++ b/frontend/src/components/NewUserGuide.vue @@ -6,12 +6,10 @@ diff --git a/frontend/src/components/UserMenu.vue b/frontend/src/components/UserMenu.vue index 258e8d1b..5d129581 100644 --- a/frontend/src/components/UserMenu.vue +++ b/frontend/src/components/UserMenu.vue @@ -38,7 +38,15 @@ {{ userInitial }} @@ -144,10 +152,6 @@ -