-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Create a common no-data view and conditional check for Analytics applications #112109
Comments
@clintandrewhall @thomasneirynck @ryankeairns @snide what is the possibility we could still backport this to 7.16? And if not, how about 8.0? |
@ryankeairns are you referring to the IndexPatternService's API |
cc @elastic/shared-ux |
It appears the check varies between the Home and Overview pages as linked in the 4th bullet point above. The Home page appears to use |
Two questions:
|
I'd be interested in hearing @ryankeairns and teams thoughts here, but if the experience is the same with a single CTA it might be good enough. We want to match solution experiences here. If we can avoid a redirect, I think that'd be the best outcome, but if it speeds up implementation I think it's worth exploring.
There should be logic that exists already we can just leverage in both solution views and the analytics overview page. I believe it checks against integration data views that have been bootstrapped with Kibana. The "no data check" should be standardized, but if it isn't, happy to discuss in more detail. If there's no user generated data, then we want to show this empty state. |
@ryankeairns Oh! I see that it could be confusing. When the renaming occurred, we switched to that same API
I'm happy to create a quick PR to rename the prop if you think it will help in the future 🙂 |
Thanks for explaining @afharo . I do think that would be a good idea in order to clarify the logic. @majagrubic @alexfrancoeur +1 for the redirect if that gets things addressed more quickly. When Clint and I last spoke, that was his inclination as well. I apparently just did not update this issue to reflect his proposal at the time. |
Before I say I am in favor of a redirect, I'd still like to understand benefits of a non-redirect better. Is the idea that the user stays in the same app, to speed things up after the setup? |
It's probably trivial, but suppose you try to open Discover and then the breadcrumbs/url show you are on Kibana Overview. It may feel broken if it's not clear why you can't get to Discover. There may be other considerations, but that is what came to mind for me when reading the comments above. |
It's a fair point. I still think that when users are presented with a completely empty Kibana, they'll have bigger worries than which app they are on. So my vote goes for redirect. |
@alexfrancoeur the release label should be 8.1... |
Closed by #123366 |
Similar to how this has been handled for Solutions, we would like to show the same empty state page for all Analytics applications, as the default. Specifically, this new empty state design for the Kibana Overview page should be displayed for each Analytics application when no data is present.
Proposed technical approach
One way we could handle this would be to:
/src
or/x-pack
(PoC PR merely for demo purposes; need to be replaced)What exists today?
noDataConfig
andtemplate="empty"
props on the existingKibanaPageTemplate
. The proposal is to, essentially, pull out the Overview setup into a shared component that all Analytics apps can use, perhaps alongside the page template itself atsrc/plugins/kibana_react/public/page_template
isNewKibanaInstance
state. Given that we want all Analytics to behave the same, we should probably pull this out into service, of sorts, for each app to use conditionally like:Where
<AnalyticsNoData />
is the aforementioned shared, no-data view component (see this PoC PR)The text was updated successfully, but these errors were encountered: