mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* remove Plugins and CloudIntegrations tab and add ConnectData tab * ConnectData: add Search component and use it * ConnectData: add DataSourcePluginList component * add CardGrid component * add CategoryHeader component * ConnectData: restructure content DataSourcePluginList is removed, because its responsibilities are actually the same as ConnectData's responsibilities. NoResults was added as a reusable component, and was moved out of CardGrid, since there could be more CardGrid on one page, but only one NoResults. * fix spacer * use LoadingPlaceholder * CardGrid: add margin * generalize CardGridProps * move isLoading and error into CardGrid We'd like CardGrid to be reusable, even multiple times within a page. In this case, it's better UX if we show the loading or error states per card grid, not for the whole page. * ConnectData: fix NoResults condition * fix and add meaningful tests * fix indentation * move isLoading and error back to ConnectData * make `url` required for CardGrid items
14 lines
586 B
TypeScript
14 lines
586 B
TypeScript
// The ID of the app plugin that we render under that "Cloud Integrations" tab
|
|
export const CLOUD_ONBOARDING_APP_ID = 'grafana-easystart-app';
|
|
|
|
// The ID of the main nav-tree item (the main item in the NavIndex)
|
|
export const ROUTE_BASE_ID = 'connections';
|
|
|
|
export const ROUTES = {
|
|
DataSources: `/${ROUTE_BASE_ID}/datasources`,
|
|
DataSourcesNew: `/${ROUTE_BASE_ID}/datasources/new`,
|
|
DataSourcesEdit: `/${ROUTE_BASE_ID}/datasources/edit/:uid`,
|
|
DataSourcesDashboards: `/${ROUTE_BASE_ID}/datasources/edit/:uid/dashboards`,
|
|
ConnectData: `/${ROUTE_BASE_ID}/connect-data`,
|
|
} as const;
|