mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
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:
parent
cdb3c30ab9
commit
9f3992f6c2
70 changed files with 965 additions and 313 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue