-
Notifications
You must be signed in to change notification settings - Fork 322
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
Display warnings on components #9108
Display warnings on components #9108
Conversation
b54c89f
to
22908a2
Compare
<GraphNodeError v-if="error" class="error" :error="error" /> | ||
<GraphNodeError v-if="error" class="message" :message="error" type="error" /> | ||
<GraphNodeError | ||
v-if="warning && nodeHovered && isSelected" |
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'm surprised by nodeHovered && isSelected
here, are our conditions for showing warnings that restrictive?
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.
That is what was requested by @AdRiley
Only show when node is selected and when hovering over it.
Or was that meant to mean, we show it when selected OR when hovering it?
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.
Yes it should be OR. I should have written that better sorry.
if (!externalId) return | ||
const info = projectStore.computedValueRegistry.db.get(externalId) | ||
const warning = info?.payload.type === 'Value' ? info.payload.warnings?.value : undefined | ||
if (!warning) return undefined |
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 think return
or returned undefined
are both fine but let's not mix styles within one function
Co-authored-by: Kaz Wesley <kaz@lambdaverse.org>
Pull Request Description
Closes #8678
Peek.2024-02-20.12-45.webm
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.