2020-10-13 08:08:41 -04:00
/* eslint-disable @gitlab/require-i18n-strings */
2020-10-15 14:08:43 -04:00
import { s _ _ } from '~/locale' ;
2020-07-23 05:09:18 -04:00
export const I18N = {
errorMsg : s _ _ ( 'IncidentManagement|There was an error displaying the incidents.' ) ,
noIncidents : s _ _ ( 'IncidentManagement|No incidents to display.' ) ,
2020-07-23 14:10:06 -04:00
unassigned : s _ _ ( 'IncidentManagement|Unassigned' ) ,
2020-07-24 20:09:23 -04:00
createIncidentBtnLabel : s _ _ ( 'IncidentManagement|Create incident' ) ,
2020-08-04 23:10:58 -04:00
unPublished : s _ _ ( 'IncidentManagement|Unpublished' ) ,
2022-02-23 13:16:59 -05:00
noEscalationStatus : s _ _ ( 'IncidentManagement|None' ) ,
2020-08-19 08:10:17 -04:00
emptyState : {
title : s _ _ ( 'IncidentManagement|Display your incidents in a dedicated view' ) ,
2020-09-02 17:10:43 -04:00
emptyClosedTabTitle : s _ _ ( 'IncidentManagement|There are no closed incidents' ) ,
2020-08-19 08:10:17 -04:00
description : s _ _ (
2021-11-09 16:10:00 -05:00
'IncidentManagement|All alerts promoted to incidents are automatically displayed within the list. You can also create a new incident using the button below.' ,
) ,
cannotCreateIncidentDescription : s _ _ (
'IncidentManagement|All alerts promoted to incidents are automatically displayed within the list.' ,
2020-08-19 08:10:17 -04:00
) ,
} ,
2020-07-23 05:09:18 -04:00
} ;
2020-07-28 08:09:49 -04:00
2020-08-13 14:10:36 -04:00
export const INCIDENT _STATUS _TABS = [
2020-07-31 08:10:02 -04:00
{
title : s _ _ ( 'IncidentManagement|Open' ) ,
2020-08-13 14:10:36 -04:00
status : 'OPENED' ,
2020-07-31 08:10:02 -04:00
filters : 'opened' ,
} ,
{
title : s _ _ ( 'IncidentManagement|Closed' ) ,
2020-08-13 14:10:36 -04:00
status : 'CLOSED' ,
2020-07-31 08:10:02 -04:00
filters : 'closed' ,
} ,
{
2020-08-06 05:09:42 -04:00
title : s _ _ ( 'IncidentManagement|All' ) ,
2020-08-13 14:10:36 -04:00
status : 'ALL' ,
2020-07-31 08:10:02 -04:00
filters : 'all' ,
} ,
] ;
2022-02-23 13:16:59 -05:00
export const ESCALATION _STATUSES = {
TRIGGERED : s _ _ ( 'AlertManagement|Triggered' ) ,
ACKNOWLEDGED : s _ _ ( 'AlertManagement|Acknowledged' ) ,
RESOLVED : s _ _ ( 'AlertManagement|Resolved' ) ,
} ;
2020-07-31 08:10:02 -04:00
2020-10-16 05:09:06 -04:00
export const DEFAULT _PAGE _SIZE = 20 ;
export const TH _CREATED _AT _TEST _ID = { 'data-testid' : 'incident-management-created-at-sort' } ;
export const TH _SEVERITY _TEST _ID = { 'data-testid' : 'incident-management-severity-sort' } ;
export const TH _INCIDENT _SLA _TEST _ID = { 'data-testid' : 'incident-management-sla' } ;
export const TH _PUBLISHED _TEST _ID = { 'data-testid' : 'incident-management-published-sort' } ;
export const INCIDENT _DETAILS _PATH = 'incident' ;
2020-10-13 08:08:41 -04:00
/ * *
* Tracks snowplow event when user clicks create new incident
* /
export const trackIncidentCreateNewOptions = {
category : 'Incident Management' ,
action : 'create_incident_button_clicks' ,
} ;
2020-10-15 14:08:43 -04:00
/ * *
2020-10-16 05:09:06 -04:00
* Tracks snowplow event when user views incidents list
2020-10-15 14:08:43 -04:00
* /
export const trackIncidentListViewsOptions = {
category : 'Incident Management' ,
action : 'view_incidents_list' ,
} ;
2020-10-16 05:09:06 -04:00
/ * *
* Tracks snowplow event when user views incident details
* /
export const trackIncidentDetailsViewsOptions = {
category : 'Incident Management' ,
action : 'view_incident_details' ,
} ;