Skip to content

Commit

Permalink
Adds Canvas to Kibana Home (#24038)
Browse files Browse the repository at this point in the history
* Adds Canvas to the feature registry

* Removes timelion from the home page
  • Loading branch information
cqliu1 authored Oct 18, 2018
1 parent 2b6cd21 commit 4cc0103
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/core_plugins/timelion/public/register_feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,20 @@
* under the License.
*/

import { FeatureCatalogueRegistryProvider, FeatureCatalogueCategory } from 'ui/registry/feature_catalogue';
import {
FeatureCatalogueRegistryProvider,
FeatureCatalogueCategory,
} from 'ui/registry/feature_catalogue';

FeatureCatalogueRegistryProvider.register(() => {
return {
id: 'timelion',
title: 'Timelion',
description: 'Use an expression language to analyze time series data and visualize the results.',
description:
'Use an expression language to analyze time series data and visualize the results.',
icon: 'timelionApp',
path: '/app/timelion',
showOnHomePage: true,
category: FeatureCatalogueCategory.DATA
showOnHomePage: false,
category: FeatureCatalogueCategory.DATA,
};
});
1 change: 1 addition & 0 deletions x-pack/plugins/canvas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export function canvas(kibana) {
'plugins/canvas/lib/load_expression_types.js',
'plugins/canvas/lib/load_transitions.js',
],
home: ['plugins/canvas/register_feature'],
mappings,
},

Expand Down
41 changes: 41 additions & 0 deletions x-pack/plugins/canvas/public/register_feature.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import {
FeatureCatalogueRegistryProvider,
FeatureCatalogueCategory,
} from 'ui/registry/feature_catalogue';

FeatureCatalogueRegistryProvider.register(() => {
return {
id: 'canvas',
title: 'Canvas',
description: 'Showcase your data in a pixel-perfect way.',
icon: 'canvasApp',
path: '/app/canvas',
showOnHomePage: true,
category: FeatureCatalogueCategory.DATA,
};
});

0 comments on commit 4cc0103

Please sign in to comment.