fix: Show debug_prompt_slug instead of node_id
Priority: debug_prompt_slug > node_label > node_type-shortid > node_id
This commit is contained in:
parent
736dc58d81
commit
f97d15288d
|
|
@ -220,13 +220,13 @@ export function WorkflowResultViewer({ result, onClose }) {
|
|||
}}
|
||||
>
|
||||
<div>
|
||||
{node.node_type === 'start' && '🚀'}
|
||||
{node.node_type === 'analysis' && '🤖'}
|
||||
{node.node_type === 'logic' && '⚡'}
|
||||
{node.node_type === 'join' && '🔀'}
|
||||
{node.node_type === 'end' && '🏁'}
|
||||
{(node.debug_node_type || node.node_type) === 'start' && '🚀'}
|
||||
{(node.debug_node_type || node.node_type) === 'analysis' && '🤖'}
|
||||
{(node.debug_node_type || node.node_type) === 'logic' && '⚡'}
|
||||
{(node.debug_node_type || node.node_type) === 'join' && '🔀'}
|
||||
{(node.debug_node_type || node.node_type) === 'end' && '🏁'}
|
||||
{' '}
|
||||
{node.node_label || node.node_id}
|
||||
{node.debug_prompt_slug || node.node_label || ((node.debug_node_type || node.node_type) ? `${node.debug_node_type || node.node_type}-${node.node_id.substring(0, 8)}` : node.node_id)}
|
||||
{node.status === 'skipped' && (
|
||||
<span style={{ color: 'var(--text3)', marginLeft: '8px' }}>
|
||||
(skipped)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user