From a78198bd0237966d27ebed53bafffbe0476d24bf Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Wed, 29 Jul 2026 01:17:22 -0700 Subject: [PATCH] wip nux lite --- .../ComfyRunButton/ComfyQueueButton.vue | 3 + src/composables/graph/useGraphNodeManager.ts | 8 ++- src/locales/en/main.json | 14 +++++ src/platform/onboarding/TourSpotlight.vue | 13 ++++- src/platform/onboarding/coachmarkLayout.ts | 8 +++ src/platform/onboarding/onboardingTours.ts | 56 +++++++++++++++++-- src/platform/onboarding/useTourTriggers.ts | 13 +++++ .../vueNodes/components/LGraphNode.vue | 2 + 8 files changed, 110 insertions(+), 7 deletions(-) diff --git a/src/components/actionbar/ComfyRunButton/ComfyQueueButton.vue b/src/components/actionbar/ComfyRunButton/ComfyQueueButton.vue index bc060b5fd70..cf8df37a6e9 100644 --- a/src/components/actionbar/ComfyRunButton/ComfyQueueButton.vue +++ b/src/components/actionbar/ComfyRunButton/ComfyQueueButton.vue @@ -8,6 +8,7 @@ value: queueButtonTooltip, showDelay: 600 }" + v-coachmark="COACH_IDS.graphRunButton" :variant="queueButtonVariant" size="unset" :class="queueActionButtonClass" @@ -79,6 +80,8 @@ import TinyChevronIcon from '@/components/actionbar/TinyChevronIcon.vue' import Button from '@/components/ui/button/Button.vue' import ButtonGroup from '@/components/ui/button-group/ButtonGroup.vue' import { isCloud } from '@/platform/distribution/types' +import { COACH_IDS } from '@/platform/onboarding/onboardingTours' +import { vCoachmark } from '@/platform/onboarding/vCoachmark' import { useTelemetry } from '@/platform/telemetry' import { useCommandStore } from '@/stores/commandStore' import { useExecutionErrorStore } from '@/stores/executionErrorStore' diff --git a/src/composables/graph/useGraphNodeManager.ts b/src/composables/graph/useGraphNodeManager.ts index 60e41bbed8e..7d6ee1303b9 100644 --- a/src/composables/graph/useGraphNodeManager.ts +++ b/src/composables/graph/useGraphNodeManager.ts @@ -14,6 +14,8 @@ import type { INodeOutputSlot } from '@/lib/litegraph/src/interfaces' import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets' +import { isCoachKey, COACH_IDS } from '@/platform/onboarding/onboardingTours' +import type { CoachId } from '@/platform/onboarding/onboardingTours' import { useLayoutMutations } from '@/renderer/core/layout/operations/layoutMutations' import { layoutStore } from '@/renderer/core/layout/store/layoutStore' import { LayoutSource } from '@/renderer/core/layout/types' @@ -124,6 +126,7 @@ export interface VueNodeData { showAdvanced?: boolean subgraphId?: string | null titleMode?: TitleMode + tourStep?: CoachId widgets?: SafeWidgetData[] } @@ -451,7 +454,7 @@ export function extractVueNodeData(node: LGraphNode): VueNodeData { const apiNode = node.constructor?.nodeData?.api_node ?? false const badges = node.badges - + const tourStep = node.properties.tourStep return { id: node.id, title: typeof node.title === 'string' ? node.title : '', @@ -472,7 +475,8 @@ export function extractVueNodeData(node: LGraphNode): VueNodeData { bgcolor: node.bgcolor || undefined, resizable: node.resizable, shape: node.shape, - showAdvanced: node.showAdvanced + showAdvanced: node.showAdvanced, + tourStep: isCoachKey(tourStep) ? COACH_IDS[tourStep] : undefined } } diff --git a/src/locales/en/main.json b/src/locales/en/main.json index aeeadffcb60..bcae2355ee4 100644 --- a/src/locales/en/main.json +++ b/src/locales/en/main.json @@ -4737,6 +4737,20 @@ "title": "Find all your assets", "body": "Every generation and import lives in Media Assets. Open it anytime to browse, download, or reuse past work." } + }, + "graph": { + "nodeReference": { + "title": "Start with an image", + "body": "This picture will be used as reference. Swap in your own whenever you like." + }, + "nodePrompt": { + "title": "Describe what you want", + "body": "Your image gets built from this description. Try anything you like." + }, + "run": { + "title": "Run your workflow", + "body": "Press Run to start generating your result." + } } } } diff --git a/src/platform/onboarding/TourSpotlight.vue b/src/platform/onboarding/TourSpotlight.vue index 4ee474a4c62..5bd99e95c46 100644 --- a/src/platform/onboarding/TourSpotlight.vue +++ b/src/platform/onboarding/TourSpotlight.vue @@ -7,6 +7,7 @@ !targetRect && 'bg-coach-scrim' ) " + :style="blockerStyle" />