-
Notifications
You must be signed in to change notification settings - Fork 12
Show error for external set uri #677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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