Openstatus www.openstatus.dev

ci: apply automated fixes

authored by

autofix-ci[bot] and committed by
Maximilian Kaske
5d7f095c 540cbb10

+7 -7
+1 -1
apps/web/src/app/status-page/[domain]/events/page.tsx
··· 2 2 import { SearchParamsPreset } from "@/components/monitor-dashboard/search-params-preset"; // TOO: move to shared components 3 3 import { Feed } from "@/components/status-page/feed"; 4 4 import { api } from "@/trpc/server"; 5 + import type { Metadata } from "next"; 5 6 import { notFound } from "next/navigation"; 6 7 import { searchParamsCache } from "./search-params"; 7 8 import { formatter } from "./utils"; 8 - import type { Metadata } from "next"; 9 9 10 10 export const metadata: Metadata = { 11 11 title: "Events",
+2 -2
apps/web/src/app/status-page/[domain]/events/report/[id]/page.tsx
··· 5 5 import { StatusReportUpdates } from "@/components/status-page/status-report"; 6 6 import { api } from "@/trpc/server"; 7 7 import { Badge } from "@openstatus/ui/src/components/badge"; 8 + import type { Metadata } from "next"; 8 9 import { CopyLinkButton } from "./_components/copy-link-button"; 9 - import { Metadata } from "next"; 10 10 11 11 export async function generateMetadata(props: { 12 12 params: Promise<{ domain: string; id: string }>; ··· 34 34 if (!report) return notFound(); 35 35 36 36 const affectedMonitors = report.monitorsToStatusReports.map( 37 - ({ monitor }) => monitor 37 + ({ monitor }) => monitor, 38 38 ); 39 39 40 40 const firstUpdate =
+1 -1
apps/web/src/app/status-page/[domain]/monitors/[id]/page.tsx
··· 17 17 prepareMetricsByPeriod, 18 18 } from "@/lib/tb"; 19 19 import { api } from "@/trpc/server"; 20 + import type { Metadata } from "next"; 20 21 import { 21 22 DEFAULT_INTERVAL, 22 23 DEFAULT_PERIOD, ··· 24 25 periods, 25 26 searchParamsCache, 26 27 } from "./search-params"; 27 - import type { Metadata } from "next"; 28 28 29 29 export const revalidate = 120; 30 30
+3 -3
apps/web/src/app/status-page/[domain]/monitors/page.tsx
··· 10 10 import { groupDataByTimestamp } from "@/components/monitor-charts/utils"; 11 11 import { prepareMetricByIntervalByPeriod } from "@/lib/tb"; 12 12 import { api } from "@/trpc/server"; 13 - import { searchParamsCache } from "./search-params"; 14 13 import type { Metadata } from "next"; 14 + import { searchParamsCache } from "./search-params"; 15 15 16 16 // Add loading page 17 17 ··· 43 43 const type = monitor.jobType as "http" | "tcp"; 44 44 const data = await prepareMetricByIntervalByPeriod( 45 45 period, 46 - type 46 + type, 47 47 ).getData({ 48 48 monitorId: String(monitor.id), 49 49 interval: 60, 50 50 }); 51 51 52 52 return { monitor, data }; 53 - }) 53 + }), 54 54 ) 55 55 : undefined; 56 56