Skip to content

feat(workflow): 'needs setup' status dot on nodes#2606

Open
simlarsen wants to merge 1 commit into
feat/workflow-condition-builderfrom
feat/workflow-node-status
Open

feat(workflow): 'needs setup' status dot on nodes#2606
simlarsen wants to merge 1 commit into
feat/workflow-condition-builderfrom
feat/workflow-node-status

Conversation

@simlarsen

Copy link
Copy Markdown
Contributor

Small node-face polish completing the "self-documenting canvas" theme. Stacked on #2605.

What

The canvas already shows a red badge when a step errored on its last run, but nothing flagged a step that simply isn't configured yet. On a graph with several steps you couldn't tell at a glance which ones still need attention.

This adds a small amber "needs setup" dot to a node's corner when a required argument is still empty (mutually exclusive with the existing error badge).

Backed by a pure helper:

getNodeStatus(data) → "error" | "incomplete" | "ready"

so the logic is unit-tested; the node face just renders the indicator.

Verification

  • getNodeStatus (5 tests): error / incomplete / ready / ignores optional args / no-args step.
  • 54 workflow tests pass; tsc ✓, eslint ✓.

🤖 Generated with Claude Code

…red field

The canvas already shows a red badge when a step errored on its last run, but
nothing indicated a step that simply isn't configured yet. On a graph with
several steps it wasn't obvious which ones still need attention.

This adds a small amber dot to a node's corner when a required argument is
still empty (mutually exclusive with the existing error badge). Backed by a
pure getNodeStatus(data) → "error" | "incomplete" | "ready" helper so the
logic is unit-tested; the node face just renders the indicator.

Tests: 5 getNodeStatus cases (error / incomplete / ready / ignores optional /
no-args). 54 workflow tests pass; tsc + eslint clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@simlarsen

Copy link
Copy Markdown
Contributor Author

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants