feat(user-guide): update NewUserGuide and UserMenu for improved onboarding experience

- Refactored the NewUserGuide component to utilize a new event for opening the guide, enhancing event handling.
- Updated UserMenu to include a button for reopening the guide, improving accessibility for users.
- Enhanced localization strings to provide clearer instructions on accessing the guide from the user menu.
- Introduced a new command in the Global Command Palette to open the product tour, streamlining user onboarding.
- Added styles for new guide-related elements to improve visual consistency and user interaction.
This commit is contained in:
wizardchen
2026-06-03 15:33:23 +08:00
committed by lyingbug
parent bd1a764a91
commit 26895aadc9
9 changed files with 74 additions and 21 deletions
+5
View File
@@ -1,6 +1,11 @@
import type { SpotlightGuideStep } from '@/types/spotlightGuide'
export const GLOBAL_USER_GUIDE_KEY = 'weknora:new-user-guide-done:v1'
export const OPEN_NEW_USER_GUIDE_EVENT = 'weknora:open-new-user-guide'
export function openNewUserGuide() {
window.dispatchEvent(new CustomEvent(OPEN_NEW_USER_GUIDE_EVENT))
}
export const KB_EDITOR_FOCUS_SECTION_EVENT = 'weknora:kb-editor-focus-section'
export const AGENT_EDITOR_FOCUS_SECTION_EVENT = 'weknora:agent-editor-focus-section'