-
Notifications
You must be signed in to change notification settings - Fork 892
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
[Look&Feel] Updated Discover No Results panel #7891
[Look&Feel] Updated Discover No Results panel #7891
Conversation
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7891 +/- ##
=======================================
Coverage 64.04% 64.04%
=======================================
Files 3740 3740
Lines 88608 88603 -5
Branches 13799 13797 -2
=======================================
- Hits 56746 56744 -2
+ Misses 31264 31261 -3
Partials 598 598
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
1eb28e5
to
4bc9fc9
Compare
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
70dec94
to
10b578b
Compare
10b578b
to
e06b51e
Compare
6427f7d
to
80348c1
Compare
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 take over this pr, but lmk about the localization q
// Commented out due to no usage in code | ||
// See: https://github.com/opensearch-project/OpenSearch-Dashboards/issues/8149 | ||
// | ||
// let luceneQueryMessage; |
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.
nit: Not a huge fan of dead code, but sounds like @ashwin-pc requested this so fine as is
<EuiText size="s"> | ||
<h2>No results</h2> | ||
</EuiText> | ||
} | ||
body={ | ||
<EuiText size="s" data-test-subj="discoverNoResultsTimefilter"> | ||
<p> | ||
Try selecting a different data source, expanding your time range or modifying the | ||
query & filters. | ||
</p> | ||
</EuiText> |
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.
Is there a reason we're not localizing this text?
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.
Just updated with localization!
Signed-off-by: Dan Dong <danieldong51@gmail.com> Update src/plugins/discover/public/application/components/no_results/no_results.tsx Co-authored-by: Miki <amoo_miki@yahoo.com> Signed-off-by: Dan Dong <58446449+danieldong51@users.noreply.github.com> Updated Discover No Results panel Signed-off-by: Dan Dong <danieldong51@gmail.com>
Signed-off-by: Dan Dong <danieldong51@gmail.com>
Signed-off-by: Dan Dong <danieldong51@gmail.com>
36a1fa1
to
7412c35
Compare
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
comments was addressed and resolved
* Empty Prompt changes Signed-off-by: Dan Dong <danieldong51@gmail.com> Update src/plugins/discover/public/application/components/no_results/no_results.tsx Co-authored-by: Miki <amoo_miki@yahoo.com> Signed-off-by: Dan Dong <58446449+danieldong51@users.noreply.github.com> Updated Discover No Results panel Signed-off-by: Dan Dong <danieldong51@gmail.com> * Changeset file for PR #7891 created/updated * Changes for Cypress tests Signed-off-by: Dan Dong <danieldong51@gmail.com> * Added localization Signed-off-by: Dan Dong <danieldong51@gmail.com> --------- Signed-off-by: Dan Dong <danieldong51@gmail.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 5d1c21b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Empty Prompt changes Signed-off-by: Dan Dong <danieldong51@gmail.com> Update src/plugins/discover/public/application/components/no_results/no_results.tsx Co-authored-by: Miki <amoo_miki@yahoo.com> Signed-off-by: Dan Dong <58446449+danieldong51@users.noreply.github.com> Updated Discover No Results panel Signed-off-by: Dan Dong <danieldong51@gmail.com> * Changeset file for PR #7891 created/updated * Changes for Cypress tests Signed-off-by: Dan Dong <danieldong51@gmail.com> * Added localization Signed-off-by: Dan Dong <danieldong51@gmail.com> --------- Signed-off-by: Dan Dong <danieldong51@gmail.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 5d1c21b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Empty Prompt changes Update src/plugins/discover/public/application/components/no_results/no_results.tsx Updated Discover No Results panel * Changeset file for PR #7891 created/updated * Changes for Cypress tests * Added localization --------- (cherry picked from commit 5d1c21b) Signed-off-by: Dan Dong <danieldong51@gmail.com> 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: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* Empty Prompt changes Update src/plugins/discover/public/application/components/no_results/no_results.tsx Updated Discover No Results panel * Changeset file for PR #7891 created/updated * Changes for Cypress tests * Added localization --------- (cherry picked from commit 5d1c21b) Signed-off-by: Dan Dong <danieldong51@gmail.com> 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: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
Updates empty prompt in Discover. Comments out the Lucene Query Message prompt due to #8149.
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration