Skip to content

feat(git): enhance automation node handling with plugin configuration… - #701

Merged
pikann merged 3 commits into
masterfrom
feature/enhance-git-automation-ui
Nov 4, 2026
Merged

pikann merged 3 commits into
masterfrom
feature/enhance-git-automation-ui

Conversation

@pikann

@pikann pikann commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Makes the Git nodes in the automation builder easier to find and read. Git triggers, conditions and actions get their own Git section in the Add menus instead of being listed under "Plugins", and the graph now shows what each node is configured to do.

Changes

  • Git section in the palette: Git node types (type prefix git.) are listed under a "Git" group in Add Trigger / Add Condition / Add Action, separate from plugins. The Git: prefix is dropped inside that section; nodes on the canvas keep it.
  • Condition match output shows the expected value: a plugin/Git condition's output used to read "Matched". It now reads the configured value, e.g. Pull Request State = merged shows Merged / Else. A text field shows Title: value (e.g. Target Branch: main). An unconfigured condition still falls back to "Matched".
  • Node body summaries for plugin/Git actions: configured values are read through the node's config schema and shown on the node (merge method, comment body, labels, reviewers). Conditions don't repeat them in the body, since the value is on the match output.
  • Wait action summary: the built-in Wait action now shows Wait {n}m.
  • No more JSON editor for empty Git nodes: Close / Reopen / Mark Ready for Review declare a schema with no fields, which fell through to the raw JSON editor. They now show "This node needs no configuration". The JSON editor remains only for plugin nodes that declare no schema at all.
  • i18n: new keys (palette.git, description.pluginField, description.waitMinutes, nodeConfig.noConfigNeeded) added with translations in all nine locales.

Frontend only; no API changes.

Testing

  • tsc -b, biome and the i18n locale tests pass.
  • Not yet checked end to end in the running UI.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — two minor suggestions inline.

Reviewed changes

Reviewed the full 13-file diff at 21a70b6 (frontend-only).

  • Git palette section: git.* node types are split out of the Plugins lists into a dedicated Git group in all three Add menus, with the Git: prefix stripped inside that group (automation-node-palette.tsx).
  • Condition match labels: plugin/Git conditions now label their match output with the configured expected value instead of "Matched", threaded through AutomationCanvas via a new conditionMatchLabel prop (automation-canvas.tsx, $automationId.tsx).
  • Plugin action/trigger summaries: configured values are read through the declared configSchema and rendered as node-body summaries; the built-in Wait action shows Wait {n}m.
  • No-config notice: plugin/Git conditions and actions whose schema declares no fields show a "needs no configuration" notice instead of the raw JSON editor (automation-node-config-panel.tsx).
  • i18n: new keys added across all nine locales (verified key paths present in each).

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. Both prior findings are addressed cleanly.

Reviewed changes

Reviewed the incremental delta at bb7b51e — two files changed since the prior review at 21a70b6, both responding to earlier feedback.

  • Restored the Built-in heading: the Add Condition and Add Action menus now gate their Built-in label on git* + plugin* counts, so it renders again now that Git types are split out of the plugin lists.
  • Fixed the Wait fallback: an unconfigured or non-positive wait_minutes now shows the notConfigured description instead of Wait 0m.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. The 8c901a7 delta is a clean refactor plus tests.

Reviewed changes

Reviewed the incremental delta at 8c901a7 (5 files, 240+/77−) on top of the prior approval at bb7b51e. All previous threads remain resolved.

  • Extracted label helpers into apps/web/src/lib/automation-plugin-config.ts: isGitNodeType, gitNodeShortLabel, pluginConfigRows, and pluginMatchLabel. Behavior matches the prior inline implementation, with enum values now also de-underscored (ready_for_review → "Ready for review") and arrays/objects formatted without [object Object].
  • Unit tests added (automation-plugin-config.test.ts) covering empty schemas, unconfigured configs, defaults-vs-explicit values, enum prettification, array/object formatting, whitespace collapse, and the single-enum pluginMatchLabel case.
  • conditionMatchLabel now opts out of schema defaults (useDefaults: false), so an unconfigured condition falls back to "Matched" as documented; describePluginNode retains defaults for action/trigger summaries.
  • Palette simplification: PluginTypeGroup takes a git boolean instead of a labelKey string; the actual file renders one label per group and routes all four call sites correctly.
  • Canvas: adds title={b.label || undefined} to branch labels for truncated-label tooltips.
  • i18n: verified branchFallback and all prior keys (palette.git, description.pluginField, waitMinutes, noConfigNeeded) exist in all nine locales; branchFallback is correctly nested under automation.nodeConfig.description.

The new vitest file couldn't be executed in this sandbox (bun unavailable), but its expectations line up with the implementation. Remaining risk is unchanged: no e2e/component coverage for the automation UI, and the author hasn't checked it end-to-end in the running app.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit be9b624 into master Nov 4, 2026
2 checks passed
@pikann
pikann deleted the feature/enhance-git-automation-ui branch November 4, 2026 17:03
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.

1 participant