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

[Discover] Improve empty state page #103602

Merged
merged 12 commits into from
Jul 21, 2021

Conversation

andreadelrio
Copy link
Contributor

@andreadelrio andreadelrio commented Jun 29, 2021

Summary

Closes #86765

  • Improves the "no results" page in Discover
  • Added illustration provided by the visual design team
  • Added the option to remove existing filters as a way to help the user get results.

image

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@timroes timroes added Feature:Discover Discover Application release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jul 5, 2021
@andreadelrio andreadelrio marked this pull request as ready for review July 13, 2021 00:20
@andreadelrio andreadelrio requested a review from a team July 13, 2021 00:20
@andreadelrio andreadelrio requested a review from a team as a code owner July 13, 2021 00:20
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@andreadelrio
Copy link
Contributor Author

Frame 1

@gchaps can we please get your input for the copy on the pink rectangle?

@ryankeairns
Copy link
Contributor

+1 for helping people get out of an undesirable situation :)

Not having the back history and just opening this PR for review, the amount of copy struck me as quite verbose making the entire prompt feel a bit jam packed. Could we carve this down even more into, say, a bullet point or two within each section?

@andreadelrio andreadelrio added release_note:skip Skip the PR/issue when compiling release notes v7.15.0 and removed release_note:skip Skip the PR/issue when compiling release notes labels Jul 13, 2021
@gchaps
Copy link
Contributor

gchaps commented Jul 13, 2021

Short version

No results match your search criteria

  • If you are searching time series data, try searching over a larger period of time.
  • If you applied filters, try disabling them to reveal more matches.
  • If you still don't see any results, try searching for a different combination of terms.

Using the existing format

No results match your search criteria

Expand the time range
You are searching time series data and no matches were found in the specified time range. Try searching over a larger period of time.

Remove filters from your search
You have applied filters to narrow the search results. Try removing filters to reveal more matches.

Temporarily remove all filters

Modify your query
If you still don’t see any results, there might just not be any matches for your query. Try searching for a different combination of terms.

@andreadelrio
Copy link
Contributor Author

Thank you @ryankeairns for pointing that out and to @gchaps for the suggestions. I've simplified the copy as shown below to cover for three scenarios a) a query exists and there are no filters b) a query exists and there's filters c) there are filters and there's no query. Let me know what you think.

a) A query exists and there are no filters

onlyQuery

b) A query exists and there's filters

query+filters

c) There are filters and there's no query

onlyFilters

@timroes I added a big if statement that I'm guessing needs a cleanup, would appreciate your support on that side.

@andreadelrio andreadelrio requested a review from timroes July 13, 2021 21:56
@gchaps
Copy link
Contributor

gchaps commented Jul 13, 2021

  • It feels to me that the two paragraphs should either have headings or use bullets to show that they are separate ideas.

  • For this text:

You have narrowed your search results. Try searching for a different combination of terms or removing filters to remove more matches.

"narrowing search results" is specific to filtering, so I don't think we should include the text about a different combination of terms. Can you use:

You have applied filters to narrow the search results. Try disabling filters to reveal more matches.

  • Would you ever have a case where there are filters and no query? The title indicates that there was a query.

@timroes
Copy link
Contributor

timroes commented Jul 14, 2021

We changed the wording to "remove filters". Since there is a difference between removing them (which makes them gone) and just disabling them, I think we should continue calling it "disable filters" instead.

@andreadelrio I'll have a look at the code/if statement, once we settled on the wording and criterias applied to it :-)

@ryankeairns
Copy link
Contributor

+1 to @gchaps point.

@andreadelrio perhaps we could use the EuiDescriptionList component to achieve the section headings. This will help with scannability and may encourage users to read the longer text if the short title seems relevant to them.

Visually, it would good to see how this looks with a more even amount of padding around all four sides. The heavy title may have extra padding so, practically speaking, this may require setting some slightly different padding values to achieve the more-even visual effect.

Let me know if that is not clear, I feel I got a bit wordy :)

@andreadelrio
Copy link
Contributor Author

andreadelrio commented Jul 14, 2021

  • Would you ever have a case where there are filters and no query? The title indicates that there was a query.

Yes, we could either change the heading per scenario or come up with a more general heading.

  • It feels to me that the two paragraphs should either have headings or use bullets to show that they are separate ideas.
  • For this text:

You have narrowed your search results. Try searching for a different combination of terms or removing filters to remove more matches.

"narrowing search results" is specific to filtering, so I don't think we should include the text about a different combination of terms. Can you use:

You have applied filters to narrow the search results. Try removing filters to reveal more matches.

  • Would you ever have a case where there are filters and no query? The title indicates that there was a query.

Considering this and Tim's comment above, here are the updated three scenarios. @gchaps can you have another look please?

1. Only filters

Heading: Adjust your filters
Description: You have narrowed your search results. Try temporarily disabling filters to reveal more matches.

2. Filters and query

Heading: Adjust your search
Description: You have entered a query and have narrowed your search results. Try searching for a different combination of terms or temporarily disabling filters to reveal more matches.

3. Only query

Heading: Adjust your search
Description: Try searching for a different combination of terms to reveal more matches.

@ryankeairns
Copy link
Contributor

ryankeairns commented Jul 19, 2021

Perhaps we can consolidate this into two discrete items and not handle the combined version.

Adjust your filters

Try removing or temporarily disabling filters.

Adjust your query

Try searching for a different combination of terms.

cc:/ @gchaps

@andreadelrio
Copy link
Contributor Author

Perhaps we can consolidate this into two discrete items and not handle the combined version.

Adjust your filters

Try removing or temporarily disabling filters.

Adjust your query

Try searching for a different combination of terms.

cc:/ @gchaps

I like this approach! I updated the code to have these discrete items. This should be ready for a design review @ryankeairns

@timroes
Copy link
Contributor

timroes commented Jul 20, 2021

@elasticmachine merge upstream

Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Code and texts LGTM

@gchaps
Copy link
Contributor

gchaps commented Jul 20, 2021

@andreadelrio Can you provide an updated screenshot?

@ryankeairns
Copy link
Contributor

ryankeairns commented Jul 20, 2021

Thanks for the copy updates.

From a visual design perspective, let's try and match this up more closely to the 'No index patterns' empty state. For example: restricted/max-width, smaller illustration (?), double check typography, padding, and margins, etc.

Screen Shot 2021-07-20 at 10 31 25 AM

Side note: you can see this when data exists but there are no index patterns present.

@andreadelrio
Copy link
Contributor Author

@andreadelrio Can you provide an updated screenshot?

@gchaps here you go. Do you think we should reduce the first item? it is now a bit lengthy compared to the other ones.
image

@gchaps
Copy link
Contributor

gchaps commented Jul 20, 2021

Yes. Remove the sentence "You are searching time series data..." Starting with "Try searching....", makes it parallel with the other two.

@gchaps
Copy link
Contributor

gchaps commented Jul 21, 2021

just noticed this. "larger" should be "longer".

Try searching over a longer period of time.

Copy link
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

Thanks for the adjustments. The copy and result (in the description) look great!

Copy link
Contributor

@gchaps gchaps left a comment

Choose a reason for hiding this comment

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

Copy LGTM

@andreadelrio
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
discover 378 388 +10

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 425.1KB 492.8KB +67.6KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@andreadelrio andreadelrio merged commit 09c49f5 into elastic:master Jul 21, 2021
andreadelrio added a commit that referenced this pull request Jul 22, 2021
Co-authored-by: Tim Roes <tim.roes@elastic.co>

Co-authored-by: Tim Roes <tim.roes@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discover] Improve empty message
6 participants