diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsx index a3c6635e..27a0af52 100644 --- a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsx +++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsx @@ -13,6 +13,7 @@ import { useParams } from "next/navigation"; import { Link } from "@/components/common/link"; import { TableCellLink } from "@/components/data-table/table-cell-link"; +import { configurationLabels } from "@/components/forms/status-page/form-configuration"; import { SidebarRight } from "@/components/nav/sidebar-right"; import { getPageUrl } from "@/data/status-pages.client"; import { useTRPC } from "@/lib/trpc/client"; @@ -92,12 +93,16 @@ export function Sidebar() { value: statusPage.configuration?.theme ?? "-", }, { - label: "Bar Value", - value: statusPage.configuration?.type ?? "-", + label: "Status source", + value: statusPage.configuration?.type + ? configurationLabels.type[statusPage.configuration.type] + : "-", }, { - label: "Card Value", - value: statusPage.configuration?.value ?? "-", + label: "Card shows", + value: statusPage.configuration?.value + ? configurationLabels.value[statusPage.configuration.value] + : "-", }, { label: "Show Uptime", diff --git a/apps/dashboard/src/components/forms/status-page/form-configuration.tsx b/apps/dashboard/src/components/forms/status-page/form-configuration.tsx index 8bc361b5..bc2b303b 100644 --- a/apps/dashboard/src/components/forms/status-page/form-configuration.tsx +++ b/apps/dashboard/src/components/forms/status-page/form-configuration.tsx @@ -166,25 +166,21 @@ export function FormConfiguration({ name="configuration.type" render={({ field }) => ( - Bar Type + Status source - - + + {watchConfigurationType === "manual" ? ( + + Not available for reports only + + ) : ( + + )} - {["duration", "requests"].map((type) => ( - - {type} + {(["duration", "requests"] as const).map((value) => ( + + {configurationLabels.value[value]} ))} @@ -232,16 +230,17 @@ export function FormConfiguration({ {hasMonitorComponents ? (