Skip to content

Commit

Permalink
Update description fields to be optional across multiple components
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Dec 20, 2024
1 parent c9b0d4f commit eee787b
Show file tree
Hide file tree
Showing 50 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion AdminDashboard/src/Pages/Settings/Probes/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const Settings: FunctionComponent = (): ReactElement => {
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "This probe is to monitor all the internal services.",
},

Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const CustomCallSMSTable: FunctionComponent = (): ReactElement => {
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
stepId: "basic-info",
description:
"Friendly description for this config so you remember what this is about.",
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const CustomSMTPTable: FunctionComponent = (): ReactElement => {
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
stepId: "basic-info",
description:
"Friendly description for this config so you remember what this is about.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const MonitorCriteriaAlertForm: FunctionComponent<ComponentProps> = (
title: "Alert Description",
stepId: "alert-details",
fieldType: FormFieldSchemaType.Markdown,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const MonitorCriteriaIncidentForm: FunctionComponent<ComponentProps> = (
title: "Incident Description",
stepId: "incident-details",
fieldType: FormFieldSchemaType.Markdown,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Components/Incident/IncidentsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const IncidentsTable: FunctionComponent<ComponentProps> = (
title: "Description",
stepId: "incident-details",
fieldType: FormFieldSchemaType.Markdown,
required: true,
required: false,
},
{
field: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ const ScheduledMaintenancesTable: FunctionComponent<ComponentProps> = (
title: "Description",
stepId: "event-info",
fieldType: FormFieldSchemaType.Markdown,
required: true,
required: false,
},
{
field: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const TelemetryServiceTable: FunctionComponent<ComponentProps> = (
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Service Description",
},
]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const CopilotPageView: FunctionComponent<
stepId: "repository-info",
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/AICopilot/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const CodeRepositoryPage: FunctionComponent<
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
stepId: "repository-info",
},
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Alerts/View/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ const AlertView: FunctionComponent<PageComponentProps> = (): ReactElement => {
title: "Description",

fieldType: FormFieldSchemaType.Markdown,
required: true,
required: false,
placeholder: "Description",
},
]}
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Dashboards/Dashboards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const Dashboards: FunctionComponent<PageComponentProps> = (): ReactElement => {
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
]}
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Dashboards/View/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const DashboardView: FunctionComponent<
stepId: "dashboard-info",
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Incidents/View/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ const IncidentView: FunctionComponent<
title: "Description",

fieldType: FormFieldSchemaType.Markdown,
required: true,
required: false,
placeholder: "Description",
},
]}
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Monitor/View/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ const MonitorView: FunctionComponent<PageComponentProps> = (): ReactElement => {
stepId: "monitor-info",
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/MonitorGroup/MonitorGroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const MonitorGroupPage: FunctionComponent<PageComponentProps> = (

title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
]}
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/MonitorGroup/View/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const MonitorGroupView: FunctionComponent<
stepId: "monitor-info",
title: "Group Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const OnCallDutyPage: FunctionComponent<
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const OnCallPolicyDelete: FunctionComponent<PageComponentProps> = (
title: "Description",
stepId: "overview",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
description:
"The description of the escalation rule. This is used to describe the rule.",
},
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicy/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const OnCallDutyPolicyView: FunctionComponent<
stepId: "on-call-policy-info",
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const OnCallDutyScheduleView: FunctionComponent<
stepId: "on-call-Schedule-info",
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const OnCallDutyPage: FunctionComponent<
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ const ScheduledMaintenanceView: FunctionComponent<
title: "Description",

fieldType: FormFieldSchemaType.Markdown,
required: true,
required: false,
placeholder: "Description",
},
]}
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const ServiceCatalogPage: FunctionComponent<
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/ServiceCatalog/View/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const StatusPageView: FunctionComponent<
stepId: "service-info",
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/APIKeyView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ const APIKeyView: FunctionComponent<PageComponentProps> = (
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "API Key Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/APIKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const APIKeys: FunctionComponent<PageComponentProps> = (): ReactElement => {
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "API Key Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/AlertSeverity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const AlertSeverityPage: FunctionComponent<
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder:
"This alert state happens when the alert is investigated",
},
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/AlertState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const AlertsPage: FunctionComponent<PageComponentProps> = (): ReactElement => {
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder:
"This alert state happens when the alert is investigated",
},
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/Base/CustomFieldsPageBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const CustomFieldsPageBase: (
},
title: "Field Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "This label is for all the internal services.",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/IncidentSeverity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const IncidentSeverityPage: FunctionComponent<
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder:
"This incident state happens when the incident is investigated",
},
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/IncidentState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const IncidentsPage: FunctionComponent<
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder:
"This incident state happens when the incident is investigated",
},
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/IncidentTemplates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const IncidentTemplates: FunctionComponent<PageComponentProps> = (
title: "Description",
stepId: "incident-details",
fieldType: FormFieldSchemaType.Markdown,
required: true,
required: false,
},
{
field: {
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/IncidentTemplatesView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const TeamView: FunctionComponent<PageComponentProps> = (): ReactElement => {
title: "Description",
stepId: "incident-details",
fieldType: FormFieldSchemaType.Markdown,
required: true,
required: false,
},
{
field: {
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/Labels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Labels: FunctionComponent<PageComponentProps> = (): ReactElement => {
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "This label is for all the internal services.",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/MonitorSecrets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const MonitorSecrets: FunctionComponent<
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Secret Description",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/MonitorStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Monitors: FunctionComponent<PageComponentProps> = (
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Monitors are up and operating normally.",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/ProbeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const TeamView: FunctionComponent<PageComponentProps> = (
title: "Description",
stepId: "basic-info",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "This probe is to monitor all the internal services.",
},

Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/ScheduledMaintenanceState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const ScheduledMaintenancesPage: FunctionComponent<
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder:
"This Scheduled Maintenance state happens when the event is been monitored",
},
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/TeamView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ const TeamView: FunctionComponent<PageComponentProps> = (
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Team Description",
},
]}
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/Teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Teams: FunctionComponent<PageComponentProps> = (
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Team Description",
},
]}
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/TelemetryIngestionKeyView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const TelemetryIngestionKeyView: FunctionComponent<PageComponentProps> = (
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Telemetry Ingestion Key Description",
},
]}
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/Settings/TelemetryIngestionKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const APIKeys: FunctionComponent<PageComponentProps> = (): ReactElement => {
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Ingestion Key Description",
},
]}
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/StatusPages/StatusPages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const StatusPages: FunctionComponent<PageComponentProps> = (): ReactElement => {
},
title: "Description",
fieldType: FormFieldSchemaType.LongText,
required: true,
required: false,
placeholder: "Description",
},
]}
Expand Down
Loading

0 comments on commit eee787b

Please sign in to comment.