-
Notifications
You must be signed in to change notification settings - Fork 23
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
T2viz ux improvements #330
Conversation
1. Only preselect index pattern that is enabled 2. Display an error toast when PPL query returns no result 3. Disable nature language input if no index pattern was selected Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
58ca933
to
01bedc2
Compare
@@ -342,16 +343,17 @@ export const Text2Viz = () => { | |||
onChange={(e) => setInput(e.target.value)} | |||
fullWidth | |||
compressed | |||
prepend={<EuiIcon type={chatIcon} />} | |||
prepend={<EuiIcon type={config.branding.logo || chatIcon} />} |
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.
will config.branding.logo
supports svg file?
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, url to svg is supported
@@ -31,6 +31,7 @@ export const ActionContextMenu = (props: Props) => { | |||
trigger: AI_ASSISTANT_QUERY_EDITOR_TRIGGER as any, | |||
})), | |||
closeMenu: () => setOpen(false), | |||
title: '', |
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.
does this empty title is needed here?
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, the default title is Options
but we don't need a title, so set it to ''
if (res.rawResponse.total === 0) { | ||
throw new Error(`There is no result with the generated query: '${value.ppl}'.`); | ||
} |
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.
would there a place to show this error on page?
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, in text2viz.tsx line 110
* fix(t2viz): UI fix and improvements 1. Only preselect index pattern that is enabled 2. Display an error toast when PPL query returns no result 3. Disable nature language input if no index pattern was selected Signed-off-by: Yulong Ruan <[email protected]> --------- Signed-off-by: Yulong Ruan <[email protected]> (cherry picked from commit 3cdd0e2) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
* fix(t2viz): UI fix and improvements 1. Only preselect index pattern that is enabled 2. Display an error toast when PPL query returns no result 3. Disable nature language input if no index pattern was selected Signed-off-by: Yulong Ruan <[email protected]> --------- Signed-off-by: Yulong Ruan <[email protected]> (cherry picked from commit 3cdd0e2) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.