From 53870bd6f001d3e3af7dc377785dd8e1362b8cff Mon Sep 17 00:00:00 2001 From: laansdole Date: Sun, 8 Feb 2026 10:59:22 +0700 Subject: [PATCH] feat: wrapping nodes with tooltip content --- frontend/src/components/StartNode.vue | 14 ++-- frontend/src/components/WorkflowEdge.vue | 30 +++++++ frontend/src/components/WorkflowNode.vue | 68 ++++++++------- frontend/src/pages/WorkflowView.vue | 102 ++++++++++++++--------- 4 files changed, 140 insertions(+), 74 deletions(-) diff --git a/frontend/src/components/StartNode.vue b/frontend/src/components/StartNode.vue index 36308697..1aa0b20a 100755 --- a/frontend/src/components/StartNode.vue +++ b/frontend/src/components/StartNode.vue @@ -1,6 +1,8 @@ diff --git a/frontend/src/components/WorkflowNode.vue b/frontend/src/components/WorkflowNode.vue index cfdc8dd9..d6c20584 100755 --- a/frontend/src/components/WorkflowNode.vue +++ b/frontend/src/components/WorkflowNode.vue @@ -3,6 +3,8 @@ import { computed, ref, onMounted, onUnmounted, watch } from 'vue' import { Handle, Position } from '@vue-flow/core' import { getNodeStyles } from '../utils/colorUtils.js' import { spriteFetcher } from '../utils/spriteFetcher.js' +import RichTooltip from './RichTooltip.vue' +import { getNodeHelp } from '../utils/helpContent.js' const props = defineProps({ id: { @@ -37,6 +39,8 @@ const nodeDescription = computed(() => props.data?.description || '') const isActive = computed(() => props.isActive) const dynamicStyles = computed(() => getNodeStyles(nodeType.value)) +const nodeHelpContent = computed(() => getNodeHelp(nodeType.value)) + // Compute the current sprite path based on active state and walking frame const currentSprite = computed(() => { if (!props.sprite) return '' @@ -83,40 +87,42 @@ onUnmounted(() => {