Skip to content

Commit b86a4e9

Browse files
check limits
1 parent dca9ba9 commit b86a4e9

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

examples/portable_dashboards_example/public/app.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import { Redirect } from 'react-router-dom';
1414
import { Router, Routes, Route } from '@kbn/shared-ux-router';
1515
import type { AppMountParameters, CoreStart } from '@kbn/core/public';
1616
import { 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';
1821
import { KibanaPageTemplate } from '@kbn/shared-ux-page-kibana-template';
1922

2023
import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render';
@@ -125,13 +128,14 @@ const DashboardsDemo = ({
125128
};
126129

127130
const 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

packages/kbn-optimizer/limits.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)