-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
Explore: Add a query template to query library from query history #88047
Conversation
…ery-history # Conflicts: # public/app/features/explore/RichHistory/RichHistoryCard.tsx
variant="secondary" | ||
aria-label={buttonLabel} | ||
onClick={() => { | ||
handleAddQueryTemplate({ title: 'Test', targets: [query] }); |
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 know this will get replaced later, but I'd like the title field to be optional, could we have a better default here? Like "Imported from Explore - {timestamp}" or something?
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.
but I'd like the title field to be optional,
By optional you mean so the user can leave the input blank and then it'd default to "Imported from Explore - {timestamp}"?
cc @diegoadams. Not sure if we've discussed. In your designs - is the description field required or would default to something it the description is not provided? If we fallback to a default, what's the best way to show it to the user? With a placeholder in the input field?
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.
Added in db9a12f
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.
Great! Already approved but now I EXTRA approve :D
@ifrost , if I'm understanding this correctly, I would say that it is not required. this is an example of queries that have and done have descriptions. |
Fixes #88042
Screen.Recording.2024-05-20.at.13.06.26.mov