-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add helper tooltip to display why suggest tags button is not available #894
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
Conversation
abce634 to
858a021
Compare
| :icon="RiSparklingLine" | ||
| :loading="isGeneratingTags" | ||
| :disabled="!canGenerateTags" | ||
| :disabled="!!tagsSuggestionDisabledMessage" |
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.
if there is tagsSuggestionDisabledMessage this button is never rendered
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.
Not sure I get you; the "normal" (not the disabled) BrandedButton component is in he v-else condition, so it is rendered when tagsSuggestionDisabledMessage is empty. But we can actully get rid of :disabled="!!tagsSuggestionDisabledMessage" which is redundant
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, disabled is never true since it's in the v-else
Add tooltip to explain why tag suggestion button is disabled
Adds a tooltip to the tag suggestion button in DescribeDataset.vue to explain why it's disabled, matching the behavior of the short description suggestion button and of #884.
The tooltip shows:
This improves UX by clarifying why the feature is unavailable.