From 6b83d3c3f1c5072dfa171f97df8f6a96eb3b9944 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Wed, 22 Apr 2026 17:27:30 -0700 Subject: [PATCH] add meta titles to alert pages --- server/private/lib/certificates.ts | 1 + .../[orgId]/settings/alerting/[ruleId]/layout.tsx | 13 +++++++++++++ src/app/[orgId]/settings/alerting/create/layout.tsx | 13 +++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 src/app/[orgId]/settings/alerting/[ruleId]/layout.tsx create mode 100644 src/app/[orgId]/settings/alerting/create/layout.tsx diff --git a/server/private/lib/certificates.ts b/server/private/lib/certificates.ts index 844e7b143..8875addda 100644 --- a/server/private/lib/certificates.ts +++ b/server/private/lib/certificates.ts @@ -18,6 +18,7 @@ import { and, eq, isNotNull, or, inArray, sql } from "drizzle-orm"; import { decrypt } from "@server/lib/crypto"; import logger from "@server/logger"; import cache from "#private/lib/cache"; +import { build } from "@server/build"; // Define the return type for clarity and type safety export type CertificateResult = { diff --git a/src/app/[orgId]/settings/alerting/[ruleId]/layout.tsx b/src/app/[orgId]/settings/alerting/[ruleId]/layout.tsx new file mode 100644 index 000000000..be2188758 --- /dev/null +++ b/src/app/[orgId]/settings/alerting/[ruleId]/layout.tsx @@ -0,0 +1,13 @@ +import type { Metadata } from "next"; + +export const metadata: Metadata = { + title: "Edit Alert" +}; + +export default function EditAlertRuleLayout({ + children +}: { + children: React.ReactNode; +}) { + return <>{children}; +} diff --git a/src/app/[orgId]/settings/alerting/create/layout.tsx b/src/app/[orgId]/settings/alerting/create/layout.tsx new file mode 100644 index 000000000..9cb33ac65 --- /dev/null +++ b/src/app/[orgId]/settings/alerting/create/layout.tsx @@ -0,0 +1,13 @@ +import type { Metadata } from "next"; + +export const metadata: Metadata = { + title: "Create Alert" +}; + +export default function CreateAlertRuleLayout({ + children +}: { + children: React.ReactNode; +}) { + return <>{children}; +}