Grouped features for space management (#74151)

* Grouped features for space management

* Apply suggestions from code review

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* Address PR Feedback

* docs changes

* updating types/docs

* update APM feature name

* Reintroduce extraAction following EUI update

* change ordering of infra features, and render callout for management category

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Larry Gregory 2020-09-18 12:30:59 -04:00 committed by GitHub
parent cdb3c30ab9
commit 9f3992f6c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
70 changed files with 965 additions and 313 deletions

View file

@ -5,6 +5,7 @@
*/
import { RecursiveReadonly } from '@kbn/utility-types';
import { AppCategory } from 'src/core/types';
import { FeatureKibanaPrivileges } from './feature_kibana_privileges';
import { SubFeatureConfig, SubFeature as KibanaSubFeature } from './sub_feature';
import { ReservedKibanaPrivilege } from './reserved_kibana_privilege';
@ -29,6 +30,13 @@ export interface KibanaFeatureConfig {
*/
name: string;
/**
* The category for this feature.
* This will be used to organize the list of features for display within the
* Spaces and Roles management screens.
*/
category: AppCategory;
/**
* An ordinal used to sort features relative to one another for display.
*/
@ -158,6 +166,10 @@ export class KibanaFeature {
return this.config.order;
}
public get category() {
return this.config.category;
}
public get navLinkId() {
return this.config.navLinkId;
}