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(() => { - - - - - - - {{ nodeType }} - {{ nodeId }} - - - {{ nodeDescription }} + + + + + + + {{ nodeType }} + {{ nodeId }} + + + {{ nodeDescription }} + - - + + + - +