Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Aug 24, 2023
1 parent f6e4023 commit a558c40
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/kbn-optimizer/limits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ pageLoadAssetSize:
monitoring: 80000
navigation: 37269
newsfeed: 42228
noDataPage: 5000
observability: 115443
observabilityAIAssistant: 25000
observabilityOnboarding: 19573
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const AnalyticsNoDataPageKibanaProvider: FC<AnalyticsNoDataPageKibanaDepe
hasCustomBranding$: dependencies.coreStart.customBranding.hasCustomBranding$,
},
prependBasePath: dependencies.coreStart.http.basePath.prepend,
pageFlavor: dependencies.noDataPage.getAnalyticsNoDataPageFlavor(),
pageFlavor: dependencies.noDataPage?.getAnalyticsNoDataPageFlavor() ?? 'kibana',
};
return (
<Context.Provider {...{ value }}>
Expand Down
2 changes: 1 addition & 1 deletion packages/shared-ux/page/analytics_no_data/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface KibanaDependencies {
};
};
};
noDataPage: {
noDataPage?: {
getAnalyticsNoDataPageFlavor: () => AnalyticsNoDataPageFlavor;
};
}
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/visualizations/public/visualize_app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ const NoDataComponent = ({
coreStart: core,
dataViews,
dataViewEditor,
noDataPage: {
getAnalyticsNoDataPageFlavor: () => 'kibana' as const,
},
};
return (
<AnalyticsNoDataPageKibanaProvider {...analyticsServices}>
Expand Down

0 comments on commit a558c40

Please sign in to comment.