diff --git a/App/FeatureSet/Home/Static/img/skillable-logo.svg b/App/FeatureSet/Home/Static/img/skillable-logo.svg index 2d3f95a33f..960e80644c 100644 --- a/App/FeatureSet/Home/Static/img/skillable-logo.svg +++ b/App/FeatureSet/Home/Static/img/skillable-logo.svg @@ -1 +1,12 @@ - \ No newline at end of file + + + + + + + + + + + + \ No newline at end of file diff --git a/App/FeatureSet/Home/Views/logo-roll.ejs b/App/FeatureSet/Home/Views/logo-roll.ejs index 092dd02462..79437ae119 100644 --- a/App/FeatureSet/Home/Views/logo-roll.ejs +++ b/App/FeatureSet/Home/Views/logo-roll.ejs @@ -11,7 +11,7 @@ ViewSonic
- Skillable + Skillable
Sodexo diff --git a/App/FeatureSet/Notification/Templates/IncidentOwnerResourceCreated.hbs b/App/FeatureSet/Notification/Templates/IncidentOwnerResourceCreated.hbs index 1a7d9d6dd8..696f7692b6 100644 --- a/App/FeatureSet/Notification/Templates/IncidentOwnerResourceCreated.hbs +++ b/App/FeatureSet/Notification/Templates/IncidentOwnerResourceCreated.hbs @@ -19,6 +19,10 @@ {{> DetailBoxField title="" text=rootCause }} {{> DetailBoxField title="Description: " text="" }} {{> DetailBoxField title="" text=incidentDescription }} +{{#ifNotCond remediationNotes ""}} +{{> DetailBoxField title="Remediation Notes: " text="" }} +{{> DetailBoxField title="" text=remediationNotes }} +{{/ifNotCond}} {{> DetailBoxEnd this }} diff --git a/App/FeatureSet/Workers/Jobs/IncidentOwners/SendCreatedResourceNotification.ts b/App/FeatureSet/Workers/Jobs/IncidentOwners/SendCreatedResourceNotification.ts index 90b0355e1b..f07c7f810b 100644 --- a/App/FeatureSet/Workers/Jobs/IncidentOwners/SendCreatedResourceNotification.ts +++ b/App/FeatureSet/Workers/Jobs/IncidentOwners/SendCreatedResourceNotification.ts @@ -102,6 +102,7 @@ RunCron( date: incidentIdentifiedDate, timezones: user.timezone ? [user.timezone] : [], }), + remediationNotes: incident.remediationNotes || "", rootCause: incident.rootCause || "No root cause identified for this incident", incidentViewLink: ( diff --git a/Common/Types/Monitor/CriteriaIncident.ts b/Common/Types/Monitor/CriteriaIncident.ts index a641e564fd..f8558154af 100644 --- a/Common/Types/Monitor/CriteriaIncident.ts +++ b/Common/Types/Monitor/CriteriaIncident.ts @@ -5,6 +5,7 @@ export interface CriteriaIncident { description: string; incidentSeverityId?: ObjectID | undefined; autoResolveIncident?: boolean | undefined; + remediationNotes?: string | undefined; id: string; onCallPolicyIds?: Array | undefined; } diff --git a/Dashboard/src/Components/Form/Monitor/MonitorCriteriaIncidentForm.tsx b/Dashboard/src/Components/Form/Monitor/MonitorCriteriaIncidentForm.tsx index 9d4e56e37e..eafa8f8390 100644 --- a/Dashboard/src/Components/Form/Monitor/MonitorCriteriaIncidentForm.tsx +++ b/Dashboard/src/Components/Form/Monitor/MonitorCriteriaIncidentForm.tsx @@ -1,10 +1,11 @@ import { CriteriaIncident } from "Common/Types/Monitor/CriteriaIncident"; +import Button, { ButtonStyleType } from "CommonUI/src/Components/Button/Button"; import { DropdownOption } from "CommonUI/src/Components/Dropdown/Dropdown"; import BasicForm from "CommonUI/src/Components/Forms/BasicForm"; import FormFieldSchemaType from "CommonUI/src/Components/Forms/Types/FormFieldSchemaType"; import FormValues from "CommonUI/src/Components/Forms/Types/FormValues"; import Incident from "Model/Models/Incident"; -import React, { FunctionComponent, ReactElement } from "react"; +import React, { FunctionComponent, ReactElement, useEffect } from "react"; export interface ComponentProps { initialValue?: undefined | CriteriaIncident; @@ -17,6 +18,16 @@ export interface ComponentProps { const MonitorCriteriaIncidentForm: FunctionComponent = ( props: ComponentProps, ): ReactElement => { + + + const [showAdvancedFields, setShowAdvancedFields] = React.useState(false); + + useEffect(() => { + if (props.initialValue && props.initialValue.remediationNotes) { + setShowAdvancedFields(true); + } + }, [props.initialValue]); + return (
= ( "Notes to help the on-call engineer resolve this incident.", fieldType: FormFieldSchemaType.Markdown, required: false, + showIf: () => { + return showAdvancedFields; + } }, ]} /> + {!showAdvancedFields &&