@@ -20,6 +20,10 @@ import {
2020 ManagementAppMountParams ,
2121 ManagementSetup ,
2222} from '../../../../src/plugins/management/public' ;
23+ import {
24+ FeatureCatalogueCategory ,
25+ HomePublicPluginSetup ,
26+ } from '../../../../src/plugins/home/public' ;
2327import { ChartsPluginStart } from '../../../../src/plugins/charts/public' ;
2428import { PluginStartContract as AlertingStart } from '../../alerts/public' ;
2529import { DataPublicPluginStart } from '../../../../src/plugins/data/public' ;
@@ -40,6 +44,7 @@ export interface TriggersAndActionsUIPublicPluginStart {
4044
4145interface PluginsSetup {
4246 management : ManagementSetup ;
47+ home ?: HomePublicPluginSetup ;
4348}
4449
4550interface PluginsStart {
@@ -73,11 +78,31 @@ export class Plugin
7378 const actionTypeRegistry = this . actionTypeRegistry ;
7479 const alertTypeRegistry = this . alertTypeRegistry ;
7580
81+ const featureTitle = i18n . translate ( 'xpack.triggersActionsUI.managementSection.displayName' , {
82+ defaultMessage : 'Alerts and Actions' ,
83+ } ) ;
84+ const featureDescription = i18n . translate (
85+ 'xpack.triggersActionsUI.managementSection.displayDescription' ,
86+ {
87+ defaultMessage : 'Detect conditions using alerts, and take actions using connectors.' ,
88+ }
89+ ) ;
90+
91+ if ( plugins . home ) {
92+ plugins . home . featureCatalogue . register ( {
93+ id : 'triggersActions' ,
94+ title : featureTitle ,
95+ description : featureDescription ,
96+ icon : 'watchesApp' ,
97+ path : '/app/management/insightsAndAlerting/triggersActions' ,
98+ showOnHomePage : false ,
99+ category : FeatureCatalogueCategory . ADMIN ,
100+ } ) ;
101+ }
102+
76103 plugins . management . sections . section . insightsAndAlerting . registerApp ( {
77104 id : 'triggersActions' ,
78- title : i18n . translate ( 'xpack.triggersActionsUI.managementSection.displayName' , {
79- defaultMessage : 'Alerts and Actions' ,
80- } ) ,
105+ title : featureTitle ,
81106 order : 0 ,
82107 async mount ( params : ManagementAppMountParams ) {
83108 const [ coreStart , pluginsStart ] = ( await core . getStartServices ( ) ) as [
0 commit comments