File tree Expand file tree Collapse file tree
examples/portable_dashboards_example/public Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ import { Redirect } from 'react-router-dom';
1414import { Router , Routes , Route } from '@kbn/shared-ux-router' ;
1515import type { AppMountParameters , CoreStart } from '@kbn/core/public' ;
1616import { EuiButton , EuiCallOut , EuiSpacer } from '@elastic/eui' ;
17- import { DashboardListingTable } from '@kbn/dashboard-plugin/public' ;
17+ import {
18+ DashboardListingTable ,
19+ type DashboardListingViewRegistry ,
20+ } from '@kbn/dashboard-plugin/public' ;
1821import { KibanaPageTemplate } from '@kbn/shared-ux-page-kibana-template' ;
1922
2023import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render' ;
@@ -125,13 +128,14 @@ const DashboardsDemo = ({
125128} ;
126129
127130const PortableDashboardListingDemo = ( { history } : { history : AppMountParameters [ 'history' ] } ) => {
131+ const listingViewRegistry : DashboardListingViewRegistry = new Set ( ) ;
128132 return (
129133 < DashboardListingTable
130134 goToDashboard = { ( dashboardId ) =>
131135 alert ( `Here's where I would redirect you to ${ dashboardId ?? 'a new Dashboard' } ` )
132136 }
133137 getDashboardUrl = { ( ) => 'https://www.elastic.co/' }
134- listingViewRegistry = { new Set ( ) }
138+ listingViewRegistry = { listingViewRegistry }
135139 >
136140 < EuiButton onClick = { ( ) => history . push ( DASHBOARD_DEMO_PATH ) } >
137141 Go back to usage demos
Original file line number Diff line number Diff line change @@ -204,7 +204,8 @@ pageLoadAssetSize:
204204 visTypeVega : 38538
205205 visTypeVislib : 14679
206206 visTypeXy : 32342
207- visualizations : 53333
207+ visualizationListing : 10000
208+ visualizations : 38375
208209 watcher : 10485
209210 workflowsExtensions : 61264
210211 workflowsManagement : 8497
You can’t perform that action at this time.
0 commit comments