Skip to content

Conversation

@cchaos
Copy link
Contributor

@cchaos cchaos commented Apr 22, 2020

Fixes #57401

As detailed in the issue referenced above this PR addresses the empty screens of Management / Index Patterns.

Screenshots below indicate "Before" on the left, and "After" on the right

No data

Artboard

The screen above also shows the case where the license may not include a specific feature.

No index patterns

Screen Shot 2020-04-22 at 17 20 57 PM


Those are the main new screens. Below are some slight updates to current screens.

Creation Wizard

Artboard2

Artboard3

Listing page

Artboard4

Need help with

  • Fix routes: All "Index Pattern" pages should show the "No data" page when no data is available. Right now only the "Create" page does.
  • Get permissions/licensing hooked in for the "Upload" option on the "No data" page so it disables correctly. Similar to how Alerts handles this.

Checklist

@cchaos cchaos changed the title Empty index patterns Empty index patterns page re-design Apr 22, 2020
@cchaos cchaos changed the title Empty index patterns page re-design [WIP] Empty index patterns page re-design Apr 22, 2020
@cchaos
Copy link
Contributor Author

cchaos commented Apr 23, 2020

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@cchaos cchaos force-pushed the empty-index-patterns branch from 97c3ecb to 3a022fb Compare April 23, 2020 20:25
@AlonaNadler
Copy link

Hey, I checked the PR with two states:

  1. I had indices in ES but no index pattern in Kibana, I didn't see a change in the UI, any idea why ?
  2. No data at all overall looks great. One important correction. Upload a file is not a gold capability it's a basic license capability.

@cchaos
Copy link
Contributor Author

cchaos commented Apr 24, 2020

I had indices in ES but no index pattern in Kibana, I didn't see a change in the UI, any idea why?

I have no idea. Can you elaborate further? What did you see vs what you expected to see.

Upload a file is not a gold capability it's a basic license capability.

Yes, that's just a placeholder, sorry I don't know all the license capabilities. I'm hoping that @mattkime will be able to help get the correct license checks in there for that one.

@AlonaNadler
Copy link

I had indices in ES but no index pattern in Kibana, I didn't see a change in the UI, any idea why?

I have no idea. Can you elaborate further? What did you see vs what you expected to see.

I don't see the new design when I land in the index pattern page with data in ES but no index pattern
I should see this:
image

instead this is what I get
index pattern

@elizabetdev
Copy link
Contributor

@cchaos,

I improved the styles and optimized the illustration:

responsive@2x

@AlonaNadler, Caroline talked with @mattkime so he could help us with the routing structure and the licensing checks.

@cchaos
Copy link
Contributor Author

cchaos commented Apr 27, 2020

@AlonaNadler The reason you're not getting the empty index page screen is because the Index pattern page is auto-directing you to the "Create" page. If you click on the "Index patterns" breadcrumb in the header, it should force you back to the listings/empty page.

Screen Shot 2020-04-27 at 10 37 12 AM

We're hoping that fixing the routing will be part of this PR.


Thanks @miukimiu , looks great! I'll pull down and do some cleanup wrt i18n and test (if I can).

@elizabetdev
Copy link
Contributor

@cchaos,

Fixed the illustrations colors. They now change according to the active theme:

light-and-dark-theme@2x

@cchaos
Copy link
Contributor Author

cchaos commented Apr 29, 2020

@elasticmachine merge upstream

@cchaos cchaos changed the title [WIP] Empty index patterns page re-design Empty index patterns page re-design Apr 29, 2020
@cchaos cchaos added Feature:Data Views Data Views code and UI - index patterns before 8.0 release_note:enhancement v7.8.0 v8.0.0 labels Apr 29, 2020
@cchaos cchaos marked this pull request as ready for review April 29, 2020 20:26
@cchaos cchaos requested review from a team as code owners April 29, 2020 20:26
Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

There were a couple designers on this project so I'm gonna consider the code owners review here covered through the pairing. Only suggestion I have after looking at the code is that these pages are so separated, you might want to import the sass directly into the files that are being used rather than chaining the imports off a single index. That's not necessary of course, it's just something I noticed when looking at the diff.

The screens themselves look fantastic. Really nice work @cchaos and @miukimiu

There's a couple small things I noticed, but this overall looks mergeable.

@@ -1,5 +1,6 @@
files:
include:
- 'src/legacy/core_plugins/kibana/public/management/**/*.s+(a|c)ss'
Copy link
Contributor

Choose a reason for hiding this comment

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

👏

Comment on lines +7 to +9
@import 'create_index_pattern_wizard/index';
@import 'empty_index_pattern_prompt/index';
@import 'index_pattern_table/index';
Copy link
Contributor

Choose a reason for hiding this comment

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

This stuff can probably be imported into the individual components, and then use the a more broad import individually into those files for the vars/mixins as needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This section isn't in the NP yet, so we have to stick with our old SASS manifests.

@mattkime
Copy link
Contributor

@cchaos I'd like make sure I understand the routing changes that need to occur.

We need to show the load data screen before the 'create your first index pattern' screen. Those two things are currently tied to routing but I don't think they have to be. We just need to display them appropriately on #/management/kibana/index_patterns - correct?


As I mentioned in slack, I think the design needs to account for a user that needs to create an index pattern on a hidden or system index. This is possible with our existing design. It could just be a link that sidesteps the load data view.

@cchaos
Copy link
Contributor Author

cchaos commented Apr 30, 2020

@mattkime Correct, currently the only time you see the "no data" screen is on the "Create" page. But we want that screen to show in the "Index table" page too. So they can't try to create an index pattern before they have data. And all the apps that re-direct to index-patterns when there are none, should go to the index-pattern table page that will then show the no-data, or no-index-pattern screen.

As for the hidden indices, we could possibly add a link in the footer similar to the docs one that would carry them to the create page with the "Show hidden indices" toggle on by default.

Something like this, though it would need to be word-smithed.

No data card

@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps

History

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

@cchaos cchaos added v7.9.0 and removed v7.8.0 labels Apr 30, 2020
@cchaos
Copy link
Contributor Author

cchaos commented Apr 30, 2020

Following up from a discussion with @mattkime. This has been moved to 7.9 since there seems to be more effort left than can be done in the time left for 7.8. Setting the PR back to draft.


The current problem with what exists in this PR is there is no way to create index patterns with system/hidden indices (which is a current and used feature today).

The consensus is that only the index pattern listing page should show one of the three options:

  1. No data
  2. No index patterns
  3. Listing table

But that the creation page is always reachable. [Whimsical]

Screen Shot 2020-04-30 at 17 08 01 PM

Todo for design:

  • Find a good place for a link to the creation page from the "No data" screen

Todo for eng:

  • Move "No data" screen and visibility logic to the listing page
  • Change all auto-routes when no index patterns exists that currently go to the creation page to go to the listing page instead

@cchaos cchaos marked this pull request as draft April 30, 2020 21:09
@mattkime
Copy link
Contributor

mattkime commented May 6, 2020

Lets make this dependent upon #65026 which moves this codebase to the new platform. I think it will also make it easier to complete this PR.

@elizabetdev
Copy link
Contributor

I've just updated the illustrations with the new designs from https://github.com/elastic/Design/issues/2470.

light-and-dark-theme@2x

@cchaos
Copy link
Contributor Author

cchaos commented Jun 10, 2020

Closing in favor of new NP PR #68819

@cchaos cchaos closed this Jun 10, 2020
@cchaos cchaos deleted the empty-index-patterns branch October 1, 2020 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Data Views Data Views code and UI - index patterns before 8.0 release_note:enhancement v7.9.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redesign and better call to action when users have no index pattern and navigating in Kibana

7 participants