Conversation
🦋 Changeset detectedLatest commit: a155946 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
|
||
| if (!tokens) { | ||
| // set this so we can show a red border around the node to indicate an error | ||
| this.error = new Error('Failed to load tokens'); |
There was a problem hiding this comment.
This should be automatically populated as there is a run handler around a node that calls the execute function. It populates the error value with whatever error is thrown
There was a problem hiding this comment.
I just tried with the panic node and it feels like the error is being swallowed, we need to find where this is occurring as its more fundamental and would solve the problem easier. Then we can just service the error message directly in the editor without needing an annotation
User description
PR Type
Description
Add UI error message display in PortPanel
Revise external tokens node execution logic
Introduce annotatedInputError for input annotations
Update changeset patch notes for error handling
Changes walkthrough 📝
index.tsx
Add error message display in PortPanel componentpackages/graph-editor/src/components/portPanel/index.tsx
index.ts
Introduce annotatedInputError constantpackages/graph-engine/src/annotations/index.ts
externalTokens.ts
Revise external tokens error handling logicpackages/nodes-design-tokens/src/nodes/externalTokens.ts
tame-bobcats-shop.md
Document changeset update for token error enhancements.changeset/tame-bobcats-shop.md