Skip to content
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

Merged

Conversation

danieldong51
Copy link
Contributor

@danieldong51 danieldong51 commented Aug 28, 2024

Description

Updates empty prompt in Discover. Comments out the Lucene Query Message prompt due to #8149.

Screenshot

Before After
No Results Before No Results Post

Testing the changes

Changelog

  • refactor: [Look&Feel] Updated Discover No Results panel

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link
Contributor

❌ Empty Changelog Section

The 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.

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.04%. Comparing base (21f4218) to head (7412c35).
Report is 42 commits behind head on main.

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           
Flag Coverage Δ
Linux_1 30.03% <ø> (+<0.01%) ⬆️
Linux_2 58.83% <ø> (ø)
Linux_3 40.37% <ø> (+<0.01%) ⬆️
Linux_4 31.46% <ø> (-0.01%) ⬇️
Windows_1 30.05% <ø> (+<0.01%) ⬆️
Windows_2 58.78% <ø> (ø)
Windows_3 40.37% <ø> (+<0.01%) ⬆️
Windows_4 31.46% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

❌ Empty Changelog Section

The 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.

@danieldong51 danieldong51 changed the title Updated Discover No Results panel [Look&Feel] Updated Discover No Results panel Aug 30, 2024
opensearch-changeset-bot bot added a commit to danieldong51/OpenSearch-Dashboards that referenced this pull request Aug 30, 2024
@danieldong51 danieldong51 marked this pull request as ready for review August 30, 2024 17:18
danieldong51 pushed a commit to danieldong51/OpenSearch-Dashboards that referenced this pull request Sep 11, 2024
@danieldong51 danieldong51 marked this pull request as ready for review September 11, 2024 20:58
danieldong51 pushed a commit to danieldong51/OpenSearch-Dashboards that referenced this pull request Sep 12, 2024
Copy link
Collaborator

@virajsanghvi virajsanghvi left a 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;
Copy link
Collaborator

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

Comment on lines 167 to 184
<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 &amp; filters.
</p>
</EuiText>
Copy link
Collaborator

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?

Copy link
Contributor Author

@danieldong51 danieldong51 Sep 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just updated with localization!

danieldong51 and others added 4 commits September 13, 2024 14:11
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>
@virajsanghvi virajsanghvi added backport 2.x look & feel Look and Feel Improvements 2.17.1 labels Sep 16, 2024
Copy link
Member

@zhongnansu zhongnansu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@virajsanghvi virajsanghvi dismissed AMoo-Miki’s stale review September 16, 2024 23:02

comments was addressed and resolved

@virajsanghvi virajsanghvi merged commit 5d1c21b into opensearch-project:main Sep 16, 2024
73 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 16, 2024
* 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>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 18, 2024
* 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>
virajsanghvi pushed a commit that referenced this pull request Sep 18, 2024
* 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>
zhongnansu pushed a commit that referenced this pull request Sep 18, 2024
* 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>
abbyhu2000 added a commit to abbyhu2000/OpenSearch-Dashboards that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants