From 09e997c104b02916b620e126bcb510001919856d Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Mon, 23 Dec 2024 17:54:27 +0000 Subject: [PATCH] Add noValueMessage prop to description fields across multiple components --- AdminDashboard/src/Pages/Settings/Probes/Index.tsx | 1 + Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx | 1 + Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx | 2 ++ Dashboard/src/Pages/AICopilot/Index.tsx | 1 + Dashboard/src/Pages/Dashboards/Dashboards.tsx | 1 + Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx | 1 + Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Escalation.tsx | 2 +- Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx | 1 + Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx | 1 + Dashboard/src/Pages/Settings/APIKeys.tsx | 1 + Dashboard/src/Pages/Settings/Base/CustomFieldsPageBase.tsx | 1 + Dashboard/src/Pages/Settings/Labels.tsx | 1 + Dashboard/src/Pages/Settings/Teams.tsx | 1 + Dashboard/src/Pages/Settings/TelemetryIngestionKeys.tsx | 1 + Dashboard/src/Pages/StatusPages/StatusPages.tsx | 1 + Dashboard/src/Pages/Workflow/Variable.tsx | 1 + Dashboard/src/Pages/Workflow/View/Variable.tsx | 1 + 17 files changed, 18 insertions(+), 1 deletion(-) diff --git a/AdminDashboard/src/Pages/Settings/Probes/Index.tsx b/AdminDashboard/src/Pages/Settings/Probes/Index.tsx index 67da8aa801..0f1985092f 100644 --- a/AdminDashboard/src/Pages/Settings/Probes/Index.tsx +++ b/AdminDashboard/src/Pages/Settings/Probes/Index.tsx @@ -170,6 +170,7 @@ const Settings: FunctionComponent = (): ReactElement => { field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx b/Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx index 44629697db..c380a1c85c 100644 --- a/Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx +++ b/Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx @@ -227,6 +227,7 @@ const CustomCallSMSTable: FunctionComponent = (): ReactElement => { field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx b/Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx index 7d8d37088f..7b1c6d95cc 100644 --- a/Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx +++ b/Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx @@ -230,7 +230,9 @@ const CustomSMTPTable: FunctionComponent = (): ReactElement => { field: { description: true, }, + title: "Description", + noValueMessage: "-", type: FieldType.Text, }, { diff --git a/Dashboard/src/Pages/AICopilot/Index.tsx b/Dashboard/src/Pages/AICopilot/Index.tsx index 6563a90c1b..71ef519060 100644 --- a/Dashboard/src/Pages/AICopilot/Index.tsx +++ b/Dashboard/src/Pages/AICopilot/Index.tsx @@ -191,6 +191,7 @@ const CodeRepositoryPage: FunctionComponent< field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/Dashboards/Dashboards.tsx b/Dashboard/src/Pages/Dashboards/Dashboards.tsx index 90b08a7100..2adae9f215 100644 --- a/Dashboard/src/Pages/Dashboards/Dashboards.tsx +++ b/Dashboard/src/Pages/Dashboards/Dashboards.tsx @@ -122,6 +122,7 @@ const Dashboards: FunctionComponent = (): ReactElement => { field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx index bbd896c3b6..deb7454328 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx @@ -127,6 +127,7 @@ const OnCallDutyPage: FunctionComponent< field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Escalation.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Escalation.tsx index a6147405fe..62ec5e9011 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Escalation.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Escalation.tsx @@ -212,7 +212,7 @@ const OnCallPolicyDelete: FunctionComponent = ( field: { description: true, }, - + noValueMessage: "-", title: "Description", description: "The description of the escalation rule.", type: FieldType.Text, diff --git a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx index a2a1c81b18..09781544dc 100644 --- a/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx +++ b/Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx @@ -116,6 +116,7 @@ const OnCallDutyPage: FunctionComponent< field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx b/Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx index 4269f2b1c0..2219e77b67 100644 --- a/Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx +++ b/Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx @@ -142,6 +142,7 @@ const ServiceCatalogPage: FunctionComponent< field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/Settings/APIKeys.tsx b/Dashboard/src/Pages/Settings/APIKeys.tsx index e406b01061..7198a683a9 100644 --- a/Dashboard/src/Pages/Settings/APIKeys.tsx +++ b/Dashboard/src/Pages/Settings/APIKeys.tsx @@ -100,6 +100,7 @@ const APIKeys: FunctionComponent = (): ReactElement => { field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/Settings/Base/CustomFieldsPageBase.tsx b/Dashboard/src/Pages/Settings/Base/CustomFieldsPageBase.tsx index 8869aabbf0..ea1672fe8e 100644 --- a/Dashboard/src/Pages/Settings/Base/CustomFieldsPageBase.tsx +++ b/Dashboard/src/Pages/Settings/Base/CustomFieldsPageBase.tsx @@ -126,6 +126,7 @@ const CustomFieldsPageBase: ( field: { description: true, }, + noValueMessage: "-", title: "Field Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/Settings/Labels.tsx b/Dashboard/src/Pages/Settings/Labels.tsx index 07f4a52938..8721a49fe6 100644 --- a/Dashboard/src/Pages/Settings/Labels.tsx +++ b/Dashboard/src/Pages/Settings/Labels.tsx @@ -103,6 +103,7 @@ const Labels: FunctionComponent = (): ReactElement => { field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/Settings/Teams.tsx b/Dashboard/src/Pages/Settings/Teams.tsx index fafe08cfc5..bbe9c04b77 100644 --- a/Dashboard/src/Pages/Settings/Teams.tsx +++ b/Dashboard/src/Pages/Settings/Teams.tsx @@ -82,6 +82,7 @@ const Teams: FunctionComponent = ( field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/Settings/TelemetryIngestionKeys.tsx b/Dashboard/src/Pages/Settings/TelemetryIngestionKeys.tsx index ee16041660..89857699a6 100644 --- a/Dashboard/src/Pages/Settings/TelemetryIngestionKeys.tsx +++ b/Dashboard/src/Pages/Settings/TelemetryIngestionKeys.tsx @@ -82,6 +82,7 @@ const APIKeys: FunctionComponent = (): ReactElement => { field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/StatusPages/StatusPages.tsx b/Dashboard/src/Pages/StatusPages/StatusPages.tsx index 2705e65038..ebd3413ed7 100644 --- a/Dashboard/src/Pages/StatusPages/StatusPages.tsx +++ b/Dashboard/src/Pages/StatusPages/StatusPages.tsx @@ -130,6 +130,7 @@ const StatusPages: FunctionComponent = (): ReactElement => { field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/Workflow/Variable.tsx b/Dashboard/src/Pages/Workflow/Variable.tsx index 2317d62e80..b22420150c 100644 --- a/Dashboard/src/Pages/Workflow/Variable.tsx +++ b/Dashboard/src/Pages/Workflow/Variable.tsx @@ -117,6 +117,7 @@ const Workflows: FunctionComponent = (): ReactElement => { field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, }, diff --git a/Dashboard/src/Pages/Workflow/View/Variable.tsx b/Dashboard/src/Pages/Workflow/View/Variable.tsx index 105224a74e..f08dde0992 100644 --- a/Dashboard/src/Pages/Workflow/View/Variable.tsx +++ b/Dashboard/src/Pages/Workflow/View/Variable.tsx @@ -124,6 +124,7 @@ const Workflows: FunctionComponent = (): ReactElement => { field: { description: true, }, + noValueMessage: "-", title: "Description", type: FieldType.Text, },