Skip to content

Commit

Permalink
feat: remove unused CardModelDetail components for Alert Description,…
Browse files Browse the repository at this point in the history
… Root Cause, and Remediation Notes
  • Loading branch information
simlarsen committed Jan 17, 2025
1 parent 3d34118 commit 7b733c3
Showing 1 changed file with 0 additions and 102 deletions.
102 changes: 0 additions & 102 deletions Dashboard/src/Pages/Alerts/View/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -557,108 +557,6 @@ const AlertView: FunctionComponent<PageComponentProps> = (): ReactElement => {
/>
</div>

<CardModelDetail
name="Alert Description"
cardProps={{
title: "Alert Description",
description:
"Description of this alert. This is visible on Status Page and is in markdown format.",
}}
editButtonText="Edit Alert Description"
isEditable={true}
formFields={[
{
field: {
description: true,
},
title: "Description",

fieldType: FormFieldSchemaType.Markdown,
required: false,
placeholder: "Description",
},
]}
modelDetailProps={{
showDetailsInNumberOfColumns: 1,
modelType: Alert,
id: "model-detail-alert-description",
fields: [
{
field: {
description: true,
},
title: "Description",
fieldType: FieldType.Markdown,
},
],
modelId: modelId,
}}
/>

<CardModelDetail
name="Root Cause"
cardProps={{
title: "Root Cause",
description:
"Why did this alert happen? Here is the root cause of this alert.",
}}
isEditable={false}
modelDetailProps={{
showDetailsInNumberOfColumns: 1,
modelType: Alert,
id: "model-detail-alert-root-cause",
fields: [
{
field: {
rootCause: true,
},
title: "",
placeholder: "No root cause identified for this alert.",
fieldType: FieldType.Markdown,
},
],
modelId: modelId,
}}
/>

<CardModelDetail
name="Remediation Notes"
cardProps={{
title: "Remediation Notes",
description:
"What steps should be taken to resolve this alert? Here are the remediation notes.",
}}
editButtonText="Edit Remediation Notes"
isEditable={true}
formFields={[
{
field: {
remediationNotes: true,
},
title: "Remediation Notes",

fieldType: FormFieldSchemaType.Markdown,
required: true,
placeholder: "Remediation Notes",
},
]}
modelDetailProps={{
showDetailsInNumberOfColumns: 1,
modelType: Alert,
id: "model-detail-alert-remediation-notes",
fields: [
{
field: {
remediationNotes: true,
},
title: "Remediation Notes",
placeholder: "No remediation notes added for this alert.",
fieldType: FieldType.Markdown,
},
],
modelId: modelId,
}}
/>

{telemetryQuery &&
telemetryQuery.telemetryType === TelemetryType.Log &&
Expand Down

0 comments on commit 7b733c3

Please sign in to comment.