Skip to content

fix: clarify plugin node panel states#277

Merged
ckakgun merged 3 commits into
heymrun:mainfrom
VeraPyuyi:codex/fix-plugin-node-panel-states
Jul 2, 2026
Merged

fix: clarify plugin node panel states#277
ckakgun merged 3 commits into
heymrun:mainfrom
VeraPyuyi:codex/fix-plugin-node-panel-states

Conversation

@VeraPyuyi

Copy link
Copy Markdown
Contributor

Summary

  • show distinct Plugin node panel states for loading, disabled plugin subsystem, plugin API errors, no installed plugins, missing package binding, missing/disabled packages, and missing plugin node keys
  • preserve existing generated field rendering when a valid plugin package and plugin node key are available
  • add Playwright coverage with mocked /api/plugins responses for the new panel states and a valid plugin fixture

Validation

  • cd frontend && bun run lint:check
  • cd frontend && bun run typecheck
  • ./check.sh (1729 tests, 1729 passed)

E2E note

  • Added frontend/e2e/plugin-node-properties.spec.ts.
  • Targeted local run ./run_e2e.sh e2e/plugin-node-properties.spec.ts was blocked because Docker daemon is not running and Docker Desktop is not installed/found on this machine.

Review

  • Initial review found missing pluginNodeKey was still falling back to the first plugin node; fixed with an explicit missing-key state and E2E case.
  • Final review reported no Critical, Important, or Minor findings.

@mbakgun mbakgun 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.

Thanks for this one, and for the earlier plugin PRs too. Nice follow-up work and good test coverage. 🎉🤗

Two things to fix before merge:

  1. The frontend and backend now disagree on a missing pluginNodeKey. This PR shows a "missing plugin node key" state and hides the config fields, but the backend resolve_node_function still falls back to the first node of the matching kind and runs it. So such a node is unconfigurable in the panel while still executing. Please align the two sides (either both fall back, or both treat it as an error).

  2. nodeDef's ?? nodes[0] fallback is now dead code since statusMessage blanks the fields. Please remove it.

Once those are in, good to merge. 🚀

@ckakgun ckakgun merged commit cb0a9ab into heymrun:main Jul 2, 2026
2 checks passed
@ckakgun

ckakgun commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

thank you ! :) 🚀

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants