-
Notifications
You must be signed in to change notification settings - Fork 36
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
Utilize EuiEmptyPrompt to represent empty state #320
Conversation
Signed-off-by: Nicholas Ung <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #320 +/- ##
=======================================
Coverage 87.08% 87.08%
=======================================
Files 16 16
Lines 209 209
Branches 43 43
=======================================
Hits 182 182
Misses 26 26
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Could you add screenshots for when sample data has already been added to the OpenSearch cluster? |
Signed-off-by: Nicholas Ung <[email protected]>
I updated the content of the empty prompt after a discussion on the #257 thread: |
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.
Thanks for the fix - one minor suggestion, as well as a plugin-wide issue that could be opened.
public/components/query_compare/search_result/result_components/result_components.tsx
Outdated
Show resolved
Hide resolved
…s/result_components.tsx Co-authored-by: Josh Romero <[email protected]> Signed-off-by: Nicholas Ung <[email protected]>
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.
LGTM! Thanks for the changes.
* Utilize EuiEmptyPrompt to represent empty state Signed-off-by: Nicholas Ung <[email protected]> * Update icon and text for empty prompts Signed-off-by: Nicholas Ung <[email protected]> * Update public/components/query_compare/search_result/result_components/result_components.tsx Co-authored-by: Josh Romero <[email protected]> Signed-off-by: Nicholas Ung <[email protected]> --------- Signed-off-by: Nicholas Ung <[email protected]> Co-authored-by: Josh Romero <[email protected]> (cherry picked from commit 53d6fe3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Utilize EuiEmptyPrompt to represent empty state * Update icon and text for empty prompts * Update public/components/query_compare/search_result/result_components/result_components.tsx --------- (cherry picked from commit 53d6fe3) Signed-off-by: Nicholas Ung <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Josh Romero <[email protected]>
Description
Implements
EuiEmptyPrompt
component to represent empty state in the result panel of Search Relevance. "Connect to data source" button links to thetutorial_directory
endpoint so users can add sample data if they wish.Issues Resolved
Closes #308
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.
Screenshots
Before:
Dark Mode
Light Mode
After:
Dark Mode
Light Mode
Navigation to "Add Sample Data" page:
Dark Mode
Light Mode