Skip to content

Conversation

arjansingh
Copy link
Contributor

@arjansingh arjansingh commented Sep 24, 2025

Summary

I want to take a more general look at comfyApp.graph.onTrigger but this is the cleanest fix I could come up with for #5694.

I will explore simplifying onTrigger in a separate PR.

Changes

  1. Create a node:slot-errors:changed trigger.
  2. Trigger it if we find any of the node slots have errors.
  3. Check each node to see if there is any error present.
  4. Add an error class if there are.

Screenshots (if applicable)

Working error states!

Screenshot 2025-09-23 at 8 40 04 PM

┆Issue is synchronized with this Notion page by Unito

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 24, 2025
Copy link

github-actions bot commented Sep 24, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 09/24/2025, 08:38:56 PM UTC

📈 Summary

  • Total Tests: 460
  • Passed: 430 ✅
  • Failed: 0
  • Flaky: 1 ⚠️
  • Skipped: 29 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 423 / ❌ 0 / ⚠️ 1 / ⏭️ 29
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 4 / ❌ 0 / ⚠️ 0 / ⏭️ 0

🎉 Click on the links above to view detailed test results for each browser configuration.

Co-authored-by: Alexander Brown <[email protected]>
Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

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

How about the red circular outlines around the slots?

@arjansingh
Copy link
Contributor Author

@DrJKL I'm gonna follow up immediately with the open requested changes in a new pr

@arjansingh arjansingh merged commit 1749cfa into main Sep 24, 2025
21 checks passed
@arjansingh arjansingh deleted the fix/error-states branch September 24, 2025 23:34
@arjansingh arjansingh mentioned this pull request Sep 25, 2025
AustinMroz pushed a commit that referenced this pull request Sep 25, 2025
## Summary

1. Fixes nits for #5758
2. Adds some git ignores

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5763-Fixes-nits-for-5758-2796d73d36508192b3e6feecfcacf38b)
by [Unito](https://www.unito.io)

---------

Co-authored-by: filtered <[email protected]>
@christian-byrne
Copy link
Contributor

Do we still need the little red outline on the slots with errors or is that already working?

@DrJKL
Copy link
Contributor

DrJKL commented Sep 25, 2025

Do we still need the little red outline on the slots with errors or is that already working?

Still need it

christian-byrne added a commit that referenced this pull request Sep 25, 2025
## Summary

Added browser test to verify Vue nodes display error state when workflow
contains missing/unknown nodes, complementing

- #5758

## Changes

- **What**: Added [Playwright
test](https://playwright.dev/docs/writing-tests) for Vue nodes error
state handling with missing nodes
- **Test Coverage**: Validates `border-error` class application on nodes
with `UNKNOWN NODE` text

## Review Focus

Test reliability when loading workflows with missing nodes and dialog
interaction timing.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5768-test-add-browser-test-for-missing-vue-nodes-error-state-2796d73d365081aea187cdbc7920a643)
by [Unito](https://www.unito.io)
@arjansingh
Copy link
Contributor Author

Do we still need the little red outline on the slots with errors or is that already working?

@christian-byrne Yes we still need those. I didn't fix those because I didn't have enough context on how stuff worked when I fixed this. I probably have enough now to fix that bug. Would you like me to?

@christian-byrne
Copy link
Contributor

@arjansingh Yes, please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants