Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
feat: product pages with interactive components (#925)
Maximilian Kaske6645d5f1d64e
diff --git a/apps/web/package.json b/apps/web/package.jsonindex 8a061e895..c030b687f 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -26,8 +26,8 @@"@openstatus/next-monitoring": "0.0.4","@openstatus/notification-discord": "workspace:*","@openstatus/notification-emails": "workspace:*",- "@openstatus/notification-slack": "workspace:*","@openstatus/notification-pagerduty": "workspace:*",+ "@openstatus/notification-slack": "workspace:*","@openstatus/plans": "workspace:*","@openstatus/react": "workspace:*","@openstatus/rum": "workspace:*",diff --git a/apps/web/src/app/(content)/features/_components/assertions-timing-form-example.tsx b/apps/web/src/app/(content)/features/_components/assertions-timing-form-example.tsxnew file mode 100644index 000000000..7a60d0856--- /dev/null+++ b/apps/web/src/app/(content)/features/_components/assertions-timing-form-example.tsx@@ -0,0 +1,33 @@+"use client";++import { SectionAssertions } from "@/components/forms/monitor/section-assertions";+import { zodResolver } from "@hookform/resolvers/zod";+import * as assertions from "@openstatus/assertions";+import {+ type InsertMonitor,+ insertMonitorSchema,+} from "@openstatus/db/src/schema";+import { Form } from "@openstatus/ui";+import { useForm } from "react-hook-form";++const _assertions =+ '[{"version":"v1","type":"header","compare":"eq","key":"Server","target":"Vercel"}]';++export function AssertionsTimingFormExample() {+ const form = useForm<InsertMonitor>({+ resolver: zodResolver(insertMonitorSchema),+ defaultValues: {+ timeout: 45_000,+ headerAssertions: assertions+ .deserialize(_assertions)+ .map((a) => a.schema)+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>+ .filter((a) => a.type === "header") as any,+ },+ });+ return (+ <Form {...form}>+ <SectionAssertions form={form} />+ </Form>+ );+}diff --git a/apps/web/src/app/(content)/features/_components/banner.tsx b/apps/web/src/app/(content)/features/_components/banner.tsxnew file mode 100644index 000000000..86649106c--- /dev/null+++ b/apps/web/src/app/(content)/features/_components/banner.tsx@@ -0,0 +1,22 @@+import { Shell } from "@/components/dashboard/shell";+import { Button } from "@openstatus/ui";+import Link from "next/link";++export function Banner() {+ return (+ <Shell className="flex flex-col gap-6 md:flex-row md:items-center md:justify-between">+ <p className="max-w-xl font-medium text-lg">+ Learn how your services are performing over time, and notify your users+ of any issues.+ </p>+ <div className="flex items-center gap-2 self-end">+ <Button variant="outline" className="min-w-max rounded-full" asChild>+ <Link href="/cal">Book a call</Link>+ </Button>+ <Button className="min-w-max rounded-full" asChild>+ <Link href="/app/login">Get started</Link>+ </Button>+ </div>+ </Shell>+ );+}diff --git a/apps/web/src/app/(content)/features/_components/hero.tsx b/apps/web/src/app/(content)/features/_components/hero.tsxnew file mode 100644index 000000000..77706d0ef--- /dev/null+++ b/apps/web/src/app/(content)/features/_components/hero.tsx@@ -0,0 +1,24 @@+import { cn } from "@/lib/utils";+import type * as React from "react";++interface HeroProps extends React.ComponentPropsWithoutRef<"div"> {+ title: string;+ subTitle: string;+}++export function Hero({ title, subTitle, className, ...props }: HeroProps) {+ return (+ <div+ className={cn(+ "mx-auto my-16 flex max-w-xl flex-col items-center gap-4",+ className+ )}+ {...props}+ >+ <h1 className="text-center font-cal text-5xl">{title}</h1>+ <h2 className="mx-auto max-w-md text-center text-lg text-muted-foreground md:max-w-xl md:text-xl">+ {subTitle}+ </h2>+ </div>+ );+}diff --git a/apps/web/src/app/(content)/features/_components/interactive-feature.tsx b/apps/web/src/app/(content)/features/_components/interactive-feature.tsxnew file mode 100644index 000000000..5d84a0977--- /dev/null+++ b/apps/web/src/app/(content)/features/_components/interactive-feature.tsx@@ -0,0 +1,152 @@+import { Shell } from "@/components/dashboard/shell";+import { Icons, type ValidIcon } from "@/components/icons";+import { cn } from "@/lib/utils";+import { cva } from "class-variance-authority";++const containerVariant = cva(+ "flex w-full max-h-72 overflow-hidden flex-col gap-2",+ {+ variants: {+ col: {+ 1: "col-span-full md:col-span-1",+ 2: "col-span-full md:col-span-2",+ 3: "col-span-full md:col-span-3",+ },+ position: {+ top: "order-2",+ right: "order-2",+ bottom: "order-1 border-b",+ left: "order-1 border-b md:border-b-0 md:border-r",+ },+ },+ },+);++interface InteractiveFeatureProps+ extends React.ComponentPropsWithoutRef<"div"> {+ component: React.ReactNode;+ icon: ValidIcon;+ iconText: string;+ title: string;+ subTitle: string;+ /**+ * Allows to include one or multiple CTA action(s)+ * @example <Button>CTA</Button>+ */+ action?: React.ReactNode;+ // grid aligment+ position: "top" | "right" | "bottom" | "left";+ col: 1 | 2;+ withGradient?: boolean;+}++export function InteractiveFeature({+ icon,+ iconText,+ title,+ subTitle,+ action,+ component,+ position,+ col,+ withGradient = false,+}: InteractiveFeatureProps) {+ const Component = component;+ const isSingleCol = ["top", "bottom"].includes(position);+ return (+ <Shell+ className={cn(+ "grid px-0 py-0 md:grid-cols-3 md:p-0",+ isSingleCol && "md:grid-cols-1",+ )}+ >+ <FeatureCardContentContainer+ variant="secondary"+ className={cn(+ containerVariant({+ col: (3 - col) as 1 | 2,+ position,+ }),+ )}+ >+ <FeatureSubheader icon={icon} text={iconText} />+ <FeatureTitle strong={title} regular={subTitle} />+ {action}+ </FeatureCardContentContainer>+ <FeatureCardContentContainer+ className={cn(+ containerVariant({+ col,+ position: isSingleCol+ ? position === "top"+ ? "bottom"+ : "top"+ : position === "left"+ ? "right"+ : "left",+ }),+ "relative",+ )}+ >+ {Component}+ {withGradient ? <Gradient /> : null}+ </FeatureCardContentContainer>+ </Shell>+ );+}++function Gradient() {+ return (+ <div className="absolute inset-x-0 bottom-0 z-10 h-16 w-full overflow-hidden rounded-b-xl">+ <div className="h-full w-full bg-gradient-to-b from-transparent to-background" />+ </div>+ );+}++interface FeatureCardContentContainer+ extends React.ComponentPropsWithoutRef<"div"> {+ variant?: "default" | "secondary";+}++function FeatureCardContentContainer({+ children,+ variant = "default",+ className,+ ...props+}: FeatureCardContentContainer) {+ return (+ <div+ className={cn(+ "px-3 py-6 md:p-8",+ variant === "secondary" && "bg-accent/50",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+}++function FeatureSubheader({ icon, text }: { icon: ValidIcon; text: string }) {+ const Icon = Icons[icon];+ return (+ <h3 className="flex items-center gap-2 text-muted-foreground">+ <Icon className="h-4 w-4 text-foreground" />+ {text}+ </h3>+ );+}++interface FeatureTitleProps+ extends React.ComponentPropsWithoutRef<"p">,+ Record<"strong" | "regular", string> {}++function FeatureTitle({ strong, regular }: FeatureTitleProps) {+ return (+ <p className="text-muted-foreground text-xl">+ <strong className="font-medium text-foreground">{strong}</strong>{" "}+ {regular}+ </p>+ );+}diff --git a/apps/web/src/app/(content)/features/mock.ts b/apps/web/src/app/(content)/features/mock.tsnew file mode 100644index 000000000..9d6c53636--- /dev/null+++ b/apps/web/src/app/(content)/features/mock.ts@@ -0,0 +1,1073 @@+import * as assertions from "@openstatus/assertions";++export const mockResponseData = {+ timing: {+ dnsStart: 1720297250262,+ dnsDone: 1720297250290,+ connectStart: 1720297250290,+ connectDone: 1720297250291,+ tlsHandshakeStart: 1720297250291,+ tlsHandshakeDone: 1720297250300,+ firstByteStart: 1720297250300,+ firstByteDone: 1720297250635,+ transferStart: 1720297250635,+ transferDone: 1720297250635,+ },+ headers: {+ Age: "0",+ "Cache-Control": "private, no-cache, no-store, max-age=0, must-revalidate",+ "Content-Type": "text/html; charset=utf-8",+ Date: "Sat, 06 Jul 2024 20:20:50 GMT",+ Server: "Vercel",+ "Strict-Transport-Security": "max-age=63072000",+ Vary: "RSC, Next-Router-State-Tree, Next-Router-Prefetch",+ "X-Matched-Path": "/",+ "X-Powered-By": "Next.js",+ "X-Vercel-Cache": "MISS",+ "X-Vercel-Execution-Region": "fra1",+ "X-Vercel-Id": "bom1::fra1::nj6b8-1720297250301-a7b4ff53baa9",+ },+ status: 200,+ message: null,+ assertions: assertions.deserialize(+ '[{"version":"v1","type":"header","compare":"eq","key":"Server","target":"Vercel"}]',+ ),+};++export const mockTrackerData = [+ { day: "2024-07-07T00:00:00.000Z", count: 3944, ok: 3944 },+ { day: "2024-07-06T00:00:00.000Z", count: 4692, ok: 4692 },+ { day: "2024-07-05T00:00:00.000Z", count: 4737, ok: 4737 },+ { day: "2024-07-04T00:00:00.000Z", count: 4862, ok: 4862 },+ { day: "2024-07-03T00:00:00.000Z", count: 1958, ok: 1958 },+ { day: "2024-07-02T00:00:00.000Z", count: 1152, ok: 1152 },+ { day: "2024-07-01T00:00:00.000Z", count: 1152, ok: 1152 },+ { day: "2024-06-30T00:00:00.000Z", count: 1152, ok: 1152 },+ { day: "2024-06-29T00:00:00.000Z", count: 1152, ok: 1152 },+ { day: "2024-06-28T00:00:00.000Z", count: 1128, ok: 1128 },+ { day: "2024-06-27T00:00:00.000Z", count: 1144, ok: 1144 },+ { day: "2024-06-26T00:00:00.000Z", count: 1148, ok: 1148 },+ { day: "2024-06-25T00:00:00.000Z", count: 1152, ok: 1152 },+ { day: "2024-06-24T00:00:00.000Z", count: 1151, ok: 1151 },+ { day: "2024-06-23T00:00:00.000Z", count: 1152, ok: 1152 },+ { day: "2024-06-22T00:00:00.000Z", count: 1152, ok: 1152 },+ { day: "2024-06-21T00:00:00.000Z", count: 1152, ok: 1152 },+ { day: "2024-06-20T00:00:00.000Z", count: 1152, ok: 1151 },+ { day: "2024-06-19T00:00:00.000Z", count: 1064, ok: 1064 },+ { day: "2024-06-18T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-17T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-16T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-15T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-14T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-13T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-12T00:00:00.000Z", count: 863, ok: 863 },+ { day: "2024-06-11T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-10T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-09T00:00:00.000Z", count: 1320, ok: 1320 },+ { day: "2024-06-08T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-07T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-06T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-05T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-04T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-03T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-02T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-06-01T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-05-31T00:00:00.000Z", count: 860, ok: 860 },+ { day: "2024-05-30T00:00:00.000Z", count: 858, ok: 858 },+ { day: "2024-05-29T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-05-28T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-05-27T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-05-26T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-05-25T00:00:00.000Z", count: 864, ok: 864 },+ { day: "2024-05-24T00:00:00.000Z", count: 864, ok: 864 },+];++export const mockChartData = {+ data: [+ {+ timestamp: "Jul 5, 23:00",+ lhr: 991,+ phx: 1870,+ gig: 1088,+ sjc: 658,+ mia: 808,+ dfw: 2403,+ gru: 857,+ gdl: 1043,+ qro: 1183,+ syd: 715,+ jnb: 496,+ yyz: 877,+ mad: 886,+ ams: 562,+ iad: 2311,+ scl: 992,+ fra: 939,+ den: 645,+ ord: 2455,+ hkg: 2082,+ cdg: 984,+ arn: 1179,+ sea: 914,+ sin: 970,+ yul: 677,+ atl: 1083,+ bos: 2061,+ bog: 902,+ eze: 1031,+ ewr: 965,+ otp: 1077,+ bom: 1609,+ waw: 2227,+ lax: 743,+ },+ {+ timestamp: "Jul 6, 00:00",+ hkg: 792,+ cdg: 741,+ den: 744,+ ord: 1001,+ fra: 917,+ sea: 1053,+ sin: 845,+ arn: 955,+ bos: 687,+ bog: 562,+ atl: 764,+ yul: 695,+ lax: 651,+ otp: 599,+ bom: 790,+ waw: 669,+ eze: 789,+ ewr: 614,+ sjc: 707,+ mia: 1146,+ gig: 936,+ lhr: 992,+ phx: 623,+ gdl: 1137,+ qro: 925,+ dfw: 1153,+ gru: 620,+ jnb: 537,+ syd: 703,+ scl: 750,+ iad: 310,+ ams: 580,+ mad: 829,+ yyz: 811,+ },+ {+ timestamp: "Jul 6, 01:00",+ lax: 1386,+ waw: 494,+ bom: 1632,+ otp: 687,+ ewr: 1053,+ eze: 1570,+ bog: 1699,+ bos: 1144,+ atl: 1478,+ yul: 1390,+ sin: 1820,+ sea: 1807,+ arn: 1586,+ cdg: 667,+ hkg: 763,+ ord: 1672,+ den: 924,+ fra: 497,+ scl: 888,+ iad: 702,+ mad: 817,+ ams: 1258,+ yyz: 1768,+ jnb: 496,+ syd: 880,+ qro: 1148,+ gdl: 1568,+ gru: 860,+ dfw: 1578,+ mia: 1564,+ sjc: 1680,+ gig: 1364,+ phx: 788,+ lhr: 778,+ },+ {+ timestamp: "Jul 6, 02:00",+ ord: 1854,+ den: 1543,+ fra: 555,+ cdg: 662,+ hkg: 1066,+ arn: 906,+ sin: 944,+ sea: 1666,+ atl: 950,+ yul: 734,+ bog: 1057,+ bos: 795,+ waw: 542,+ otp: 621,+ bom: 774,+ ewr: 662,+ eze: 888,+ lax: 946,+ gig: 854,+ phx: 822,+ lhr: 780,+ mia: 702,+ sjc: 604,+ gru: 835,+ dfw: 1080,+ qro: 842,+ gdl: 1580,+ jnb: 554,+ syd: 754,+ mad: 756,+ ams: 518,+ yyz: 1058,+ scl: 982,+ iad: 946,+ },+ {+ timestamp: "Jul 6, 03:00",+ bos: 1076,+ bog: 1106,+ atl: 872,+ yul: 825,+ lax: 958,+ otp: 616,+ bom: 844,+ waw: 586,+ eze: 898,+ ewr: 1097,+ hkg: 678,+ cdg: 700,+ den: 766,+ ord: 784,+ fra: 682,+ sea: 983,+ sin: 824,+ arn: 734,+ jnb: 467,+ syd: 1010,+ scl: 780,+ iad: 990,+ mad: 832,+ ams: 547,+ yyz: 816,+ sjc: 972,+ mia: 826,+ gig: 966,+ lhr: 784,+ phx: 554,+ gdl: 990,+ qro: 1012,+ dfw: 1066,+ gru: 848,+ },+ {+ timestamp: "Jul 6, 04:00",+ syd: 1142,+ jnb: 508,+ yyz: 864,+ ams: 412,+ mad: 642,+ iad: 884,+ scl: 866,+ lhr: 797,+ phx: 901,+ gig: 794,+ sjc: 1398,+ mia: 546,+ dfw: 1114,+ gru: 620,+ gdl: 650,+ qro: 1684,+ yul: 760,+ atl: 870,+ bos: 686,+ bog: 868,+ eze: 1065,+ ewr: 854,+ otp: 770,+ bom: 1491,+ waw: 678,+ lax: 846,+ fra: 541,+ den: 1314,+ ord: 714,+ hkg: 1028,+ cdg: 556,+ arn: 1472,+ sea: 1027,+ sin: 1592,+ },+ {+ timestamp: "Jul 6, 05:00",+ gru: 660,+ dfw: 1060,+ qro: 1102,+ gdl: 1650,+ phx: 1502,+ lhr: 706,+ gig: 765,+ mia: 741,+ sjc: 880,+ yyz: 928,+ mad: 622,+ ams: 620,+ iad: 928,+ scl: 942,+ syd: 1692,+ jnb: 480,+ arn: 784,+ sin: 1226,+ sea: 914,+ fra: 512,+ ord: 962,+ den: 1683,+ cdg: 457,+ hkg: 1032,+ ewr: 1740,+ eze: 790,+ waw: 586,+ bom: 1131,+ otp: 724,+ lax: 1774,+ yul: 1366,+ atl: 692,+ bog: 856,+ bos: 1666,+ },+ {+ timestamp: "Jul 6, 06:00",+ iad: 762,+ scl: 802,+ yyz: 1014,+ ams: 644,+ mad: 650,+ syd: 1220,+ jnb: 456,+ gdl: 1072,+ qro: 746,+ dfw: 916,+ gru: 720,+ mia: 597,+ sjc: 594,+ lhr: 908,+ phx: 810,+ gig: 674,+ lax: 1406,+ eze: 918,+ ewr: 582,+ bom: 862,+ otp: 582,+ waw: 498,+ bos: 840,+ bog: 972,+ yul: 524,+ atl: 788,+ sin: 982,+ sea: 1035,+ arn: 1486,+ hkg: 1238,+ cdg: 714,+ fra: 420,+ den: 962,+ ord: 828,+ },+ {+ timestamp: "Jul 6, 07:00",+ syd: 1133,+ jnb: 515,+ yyz: 744,+ ams: 750,+ mad: 716,+ iad: 790,+ scl: 781,+ phx: 944,+ lhr: 746,+ gig: 816,+ mia: 622,+ sjc: 597,+ gru: 667,+ dfw: 896,+ qro: 928,+ gdl: 832,+ yul: 594,+ atl: 668,+ bog: 678,+ bos: 642,+ ewr: 664,+ eze: 638,+ waw: 711,+ otp: 765,+ bom: 685,+ lax: 865,+ fra: 624,+ ord: 645,+ den: 1426,+ cdg: 672,+ hkg: 1026,+ arn: 971,+ sin: 1018,+ sea: 976,+ },+ {+ timestamp: "Jul 6, 08:00",+ sjc: 927,+ mia: 700,+ gig: 1416,+ lhr: 754,+ phx: 584,+ gdl: 1022,+ qro: 880,+ dfw: 811,+ gru: 522,+ jnb: 498,+ syd: 716,+ scl: 826,+ iad: 940,+ ams: 550,+ mad: 621,+ yyz: 718,+ hkg: 1240,+ cdg: 656,+ den: 631,+ ord: 837,+ fra: 554,+ sea: 1008,+ sin: 1014,+ arn: 1148,+ bos: 687,+ bog: 779,+ atl: 832,+ yul: 514,+ lax: 888,+ otp: 748,+ bom: 756,+ waw: 674,+ eze: 576,+ ewr: 600,+ },+ {+ timestamp: "Jul 6, 09:00",+ sea: 921,+ sin: 1022,+ arn: 1199,+ hkg: 1161,+ cdg: 574,+ den: 627,+ ord: 767,+ fra: 536,+ lax: 497,+ bom: 1151,+ otp: 2027,+ waw: 963,+ eze: 2208,+ ewr: 841,+ bos: 623,+ bog: 2252,+ atl: 660,+ yul: 626,+ gdl: 753,+ qro: 2429,+ dfw: 2695,+ gru: 504,+ sjc: 2272,+ mia: 628,+ gig: 655,+ lhr: 784,+ phx: 1087,+ scl: 930,+ iad: 700,+ ams: 602,+ mad: 881,+ yyz: 898,+ jnb: 427,+ syd: 1237,+ },+ {+ timestamp: "Jul 6, 10:00",+ cdg: 919,+ hkg: 1140,+ fra: 648,+ ord: 696,+ den: 771,+ sin: 929,+ sea: 978,+ arn: 1283,+ bog: 693,+ bos: 938,+ yul: 822,+ atl: 741,+ lax: 867,+ ewr: 667,+ eze: 697,+ waw: 1059,+ bom: 882,+ otp: 1144,+ mia: 710,+ sjc: 834,+ phx: 692,+ lhr: 1039,+ gig: 562,+ qro: 1184,+ gdl: 763,+ gru: 559,+ dfw: 1017,+ syd: 1211,+ jnb: 540,+ iad: 903,+ scl: 698,+ yyz: 2359,+ ams: 882,+ mad: 652,+ },+ {+ timestamp: "Jul 6, 11:00",+ mia: 478,+ sjc: 746,+ gig: 695,+ lhr: 873,+ phx: 654,+ gdl: 1040,+ qro: 818,+ dfw: 771,+ gru: 488,+ jnb: 621,+ syd: 1641,+ scl: 832,+ iad: 902,+ ams: 970,+ mad: 651,+ yyz: 858,+ hkg: 1218,+ cdg: 534,+ den: 670,+ ord: 820,+ fra: 582,+ sin: 1031,+ sea: 953,+ arn: 1214,+ bos: 670,+ bog: 1596,+ atl: 572,+ yul: 530,+ lax: 766,+ bom: 730,+ otp: 577,+ waw: 406,+ eze: 888,+ ewr: 544,+ },+ {+ timestamp: "Jul 6, 12:00",+ syd: 1056,+ jnb: 474,+ yyz: 1458,+ ams: 946,+ mad: 1626,+ iad: 942,+ scl: 678,+ phx: 1514,+ lhr: 786,+ gig: 610,+ sjc: 1358,+ mia: 547,+ gru: 542,+ dfw: 936,+ qro: 946,+ gdl: 1024,+ yul: 1455,+ atl: 535,+ bog: 794,+ bos: 756,+ ewr: 877,+ eze: 639,+ waw: 609,+ bom: 1004,+ otp: 724,+ lax: 713,+ fra: 848,+ ord: 1636,+ den: 856,+ cdg: 1002,+ hkg: 1106,+ arn: 1200,+ sea: 952,+ sin: 1027,+ },+ {+ timestamp: "Jul 6, 13:00",+ ewr: 1450,+ eze: 748,+ waw: 900,+ otp: 1000,+ bom: 878,+ lax: 694,+ yul: 752,+ atl: 672,+ bog: 851,+ bos: 679,+ arn: 1143,+ sea: 1073,+ sin: 1085,+ fra: 940,+ ord: 954,+ den: 1604,+ cdg: 781,+ hkg: 1078,+ yyz: 719,+ ams: 702,+ mad: 951,+ iad: 1329,+ scl: 830,+ syd: 1702,+ jnb: 794,+ gru: 530,+ dfw: 931,+ qro: 979,+ gdl: 1704,+ phx: 1432,+ lhr: 633,+ gig: 635,+ sjc: 784,+ mia: 1532,+ },+ {+ timestamp: "Jul 6, 14:00",+ cdg: 704,+ hkg: 1144,+ fra: 392,+ ord: 663,+ den: 705,+ sea: 974,+ sin: 1066,+ arn: 1201,+ bog: 714,+ bos: 686,+ yul: 682,+ atl: 630,+ lax: 682,+ ewr: 1177,+ eze: 636,+ waw: 476,+ otp: 818,+ bom: 1000,+ sjc: 740,+ mia: 754,+ phx: 1424,+ lhr: 872,+ gig: 578,+ qro: 1008,+ gdl: 854,+ gru: 614,+ dfw: 906,+ syd: 921,+ jnb: 712,+ iad: 910,+ scl: 718,+ yyz: 886,+ mad: 693,+ ams: 788,+ },+ {+ timestamp: "Jul 6, 15:00",+ arn: 1198,+ sea: 1036,+ sin: 1271,+ fra: 986,+ den: 966,+ ord: 768,+ hkg: 1188,+ cdg: 740,+ eze: 661,+ ewr: 572,+ bom: 822,+ otp: 796,+ waw: 896,+ lax: 602,+ yul: 824,+ atl: 950,+ bos: 703,+ bog: 1102,+ dfw: 1038,+ gru: 814,+ gdl: 1122,+ qro: 1032,+ lhr: 897,+ phx: 1506,+ gig: 836,+ sjc: 638,+ mia: 958,+ yyz: 878,+ mad: 588,+ ams: 526,+ iad: 794,+ scl: 760,+ syd: 847,+ jnb: 754,+ },+ {+ timestamp: "Jul 6, 16:00",+ bos: 876,+ bog: 974,+ atl: 854,+ yul: 623,+ lax: 775,+ bom: 1265,+ otp: 880,+ waw: 666,+ eze: 614,+ ewr: 620,+ hkg: 1216,+ cdg: 704,+ den: 808,+ ord: 948,+ fra: 682,+ sin: 1112,+ sea: 1044,+ arn: 1179,+ jnb: 690,+ syd: 812,+ scl: 700,+ iad: 1136,+ mad: 796,+ ams: 848,+ yyz: 655,+ mia: 652,+ sjc: 576,+ gig: 660,+ lhr: 744,+ phx: 919,+ gdl: 1658,+ qro: 1036,+ dfw: 781,+ gru: 660,+ },+ {+ timestamp: "Jul 6, 17:00",+ sea: 1016,+ sin: 1122,+ arn: 1180,+ cdg: 674,+ hkg: 1090,+ ord: 950,+ den: 610,+ fra: 778,+ lax: 714,+ waw: 713,+ otp: 911,+ bom: 911,+ ewr: 902,+ eze: 654,+ bog: 935,+ bos: 868,+ atl: 818,+ yul: 625,+ qro: 1102,+ gdl: 1818,+ gru: 610,+ dfw: 880,+ sjc: 758,+ mia: 738,+ gig: 724,+ phx: 1568,+ lhr: 870,+ scl: 1643,+ iad: 1038,+ ams: 312,+ mad: 646,+ yyz: 978,+ jnb: 598,+ syd: 700,+ },+ {+ timestamp: "Jul 6, 18:00",+ gru: 827,+ dfw: 1083,+ qro: 704,+ gdl: 740,+ phx: 750,+ lhr: 916,+ gig: 533,+ sjc: 738,+ mia: 778,+ yyz: 1141,+ mad: 794,+ ams: 730,+ iad: 598,+ scl: 702,+ syd: 714,+ jnb: 608,+ arn: 1198,+ sea: 1006,+ sin: 1140,+ fra: 644,+ ord: 762,+ den: 1090,+ cdg: 667,+ hkg: 1179,+ ewr: 442,+ eze: 648,+ waw: 826,+ bom: 906,+ otp: 570,+ lax: 616,+ yul: 760,+ atl: 748,+ bog: 832,+ bos: 577,+ },+ {+ timestamp: "Jul 6, 19:00",+ ams: 596,+ mad: 946,+ yyz: 1022,+ scl: 932,+ iad: 948,+ jnb: 660,+ syd: 512,+ gru: 692,+ dfw: 930,+ qro: 942,+ gdl: 1192,+ gig: 856,+ phx: 732,+ lhr: 908,+ sjc: 1424,+ mia: 784,+ waw: 824,+ bom: 894,+ otp: 925,+ ewr: 671,+ eze: 614,+ lax: 600,+ atl: 764,+ yul: 692,+ bog: 860,+ bos: 884,+ arn: 1181,+ sea: 1051,+ sin: 1144,+ ord: 704,+ den: 963,+ fra: 768,+ cdg: 812,+ hkg: 1148,+ },+ {+ timestamp: "Jul 6, 20:00",+ arn: 1154,+ sin: 910,+ sea: 996,+ fra: 849,+ den: 692,+ ord: 918,+ hkg: 1009,+ cdg: 857,+ eze: 710,+ ewr: 508,+ otp: 535,+ bom: 939,+ waw: 1037,+ lax: 838,+ yul: 721,+ atl: 706,+ bos: 644,+ bog: 1550,+ dfw: 1158,+ gru: 504,+ gdl: 1247,+ qro: 1030,+ lhr: 991,+ phx: 662,+ gig: 1118,+ mia: 767,+ sjc: 565,+ yyz: 831,+ mad: 676,+ ams: 786,+ iad: 674,+ scl: 855,+ syd: 680,+ jnb: 798,+ },+ {+ timestamp: "Jul 6, 21:00",+ bom: 929,+ otp: 644,+ waw: 789,+ eze: 764,+ ewr: 846,+ lax: 952,+ atl: 802,+ yul: 656,+ bos: 867,+ bog: 937,+ arn: 1238,+ sin: 896,+ sea: 978,+ den: 902,+ ord: 1058,+ fra: 890,+ hkg: 840,+ cdg: 558,+ ams: 722,+ mad: 1050,+ yyz: 810,+ scl: 870,+ iad: 878,+ jnb: 926,+ syd: 670,+ dfw: 1068,+ gru: 856,+ gdl: 1814,+ qro: 1642,+ gig: 856,+ lhr: 884,+ phx: 810,+ mia: 1553,+ sjc: 896,+ },+ {+ timestamp: "Jul 6, 22:00",+ iad: 762,+ scl: 768,+ yyz: 888,+ ams: 568,+ mad: 772,+ syd: 708,+ jnb: 520,+ gdl: 902,+ qro: 935,+ dfw: 941,+ gru: 924,+ mia: 846,+ sjc: 1512,+ lhr: 906,+ phx: 1016,+ gig: 805,+ lax: 520,+ eze: 764,+ ewr: 402,+ bom: 892,+ otp: 766,+ waw: 716,+ bos: 814,+ bog: 1193,+ yul: 668,+ atl: 1036,+ sin: 872,+ sea: 1157,+ arn: 1104,+ hkg: 920,+ cdg: 690,+ fra: 622,+ den: 769,+ ord: 1066,+ },+ {+ timestamp: "Jul 6, 23:00",+ gdl: 2533,+ qro: 2260,+ dfw: 2435,+ gru: 1060,+ mia: 2234,+ sjc: 987,+ gig: 832,+ lhr: 927,+ phx: 2214,+ scl: 2293,+ iad: 1032,+ mad: 872,+ ams: 850,+ yyz: 1206,+ jnb: 682,+ syd: 853,+ sin: 2429,+ sea: 1041,+ arn: 1176,+ hkg: 1077,+ cdg: 740,+ den: 1074,+ ord: 1074,+ fra: 448,+ lax: 2146,+ otp: 857,+ bom: 615,+ waw: 713,+ eze: 514,+ ewr: 797,+ bos: 924,+ bog: 895,+ atl: 1008,+ yul: 414,+ },+ ],+ regions: ["ams", "gru", "iad", "jnb", "syd", "hkg"],+};++export const maintenanceData = {+ id: 0,+ from: new Date("2024-07-09T21:02:43.000Z"),+ to: new Date("2024-07-09T21:05:43.000Z"),+ title: "Maintenance",+ message:+ "We are performing maintenance on our environment. Services and projects may be unavailable for a few minutes.",+ createdAt: null,+ updatedAt: null,+ workspaceId: null,+ pageId: null,+ monitors: undefined,+};++export const statusReportData = {+ report: {+ id: 0,+ status: "resolved" as const,+ title: "Downtime",+ workspaceId: 1,+ createdAt: new Date("2024-07-09T21:22:43.000Z"),+ updatedAt: new Date("2024-07-09T21:23:17.000Z"),+ statusReportUpdates: [+ {+ id: 3,+ status: "resolved" as const,+ date: new Date("2024-07-09T21:59:23.000Z"),+ message:+ "The database server has been successfully restarted and data integrity has been verified. All affected systems are now operational. We are currently monitoring the systems closely to ensure stability and to confirm that there are no further issues.",+ statusReportId: 1,+ createdAt: new Date("2024-07-09T21:59:23.000Z"),+ updatedAt: new Date("2024-07-09T21:59:23.000Z"),+ },+ {+ id: 2,+ status: "identified" as const,+ date: new Date("2024-07-09T21:44:03.000Z"),+ message:+ "The issue has been identified as a database server failure. Our team is working to restart the server and check data integrity. We will provide an estimated time for resolution shortly.",+ statusReportId: 1,+ createdAt: new Date("2024-07-09T21:23:12.000Z"),+ updatedAt: new Date("2024-07-09T21:23:12.000Z"),+ },+ {+ id: 1,+ status: "investigating" as const,+ date: new Date("2024-07-09T21:21:23.000Z"),+ message:+ "An unexpected outage occurred affecting the website, customer portal, and internal email systems. Our team is currently investigating the issue to determine the cause and restore services as quickly as possible. Further updates will be provided as soon as more information is available.",+ statusReportId: 1,+ createdAt: new Date("2024-07-09T21:22:43.000Z"),+ updatedAt: new Date("2024-07-09T21:22:43.000Z"),+ },+ ],+ monitorsToStatusReports: [],+ },+ monitors: [],+};diff --git a/apps/web/src/app/(content)/features/monitoring/page.tsx b/apps/web/src/app/(content)/features/monitoring/page.tsxnew file mode 100644index 000000000..62c73f632--- /dev/null+++ b/apps/web/src/app/(content)/features/monitoring/page.tsx@@ -0,0 +1,140 @@+import { Mdx } from "@/components/content/mdx";+import { Chart } from "@/components/monitor-charts/chart";+import { RegionsPreset } from "@/components/monitor-dashboard/region-preset";+import { ResponseDetailTabs } from "@/components/ping-response-analysis/response-detail-tabs";+import { marketingProductPagesConfig } from "@/config/pages";+import { flyRegions } from "@openstatus/db/src/schema";+import type { Region } from "@openstatus/tinybird";+import { Button } from "@openstatus/ui";+import { allUnrelateds } from "contentlayer/generated";+import Link from "next/link";+import { Suspense } from "react";+import { AssertionsTimingFormExample } from "../_components/assertions-timing-form-example";+import { Banner } from "../_components/banner";+import { Hero } from "../_components/hero";+import { InteractiveFeature } from "../_components/interactive-feature";+import { mockChartData, mockResponseData } from "../mock";+import type { Metadata } from "next";+import { defaultMetadata, ogMetadata, twitterMetadata } from "@/app/shared-metadata";++const { description, subtitle } = marketingProductPagesConfig[0];+const code = allUnrelateds.find(+ (unrelated) => unrelated.slug === "ci-cd-features-block"+);++export const metadata: Metadata = {+ ...defaultMetadata,+ title: "API & Website Monitoring | OpenStatus",+ description:'Get insights of the latency of your API and website from all over the world.',+ twitter: {+ ...twitterMetadata,+ title: "API & Website Monitoring | OpenStatus",+ description:'Get insights of the latency of your API and website from all over the world.',+ },+ openGraph: {+ ...ogMetadata,+ title: "API & Website Monitoring | OpenStatus",+ description:'Get insights of the latency of your API and website from all over the world.',+ },+};+++export default function FeaturePage() {+ return (+ <div className="grid w-full gap-12">+ <Hero title={description} subTitle={subtitle} />+ <InteractiveFeature+ icon="activity"+ iconText="Website & API monitoring"+ title="Global Monitoring."+ subTitle="Get insights of the latency worldwide."+ component={+ <div className="m-auto">+ <RegionsPreset+ regions={flyRegions as unknown as Region[]}+ selectedRegions={flyRegions as unknown as Region[]}+ />+ </div>+ }+ col={1}+ position={"left"}+ />+ <InteractiveFeature+ icon="book-open-check"+ iconText="Timing & Assertions"+ title="Validate the response."+ subTitle="Check the return value, status code, header or maximum response time."+ component={<AssertionsTimingFormExample />}+ col={2}+ position={"left"}+ withGradient+ />+ <InteractiveFeature+ icon="timer"+ iconText="Request Metrics Insights"+ title="Optimize Web Performance."+ subTitle="Analyze DNS, TCP, TLS, and TTFB for every request and inspect Response Headers as needed."+ component={+ <ResponseDetailTabs+ {...mockResponseData}+ defaultOpen="timing"+ hideInfo={false}+ />+ }+ col={2}+ position={"left"}+ withGradient+ />+ <InteractiveFeature+ icon="line-chart"+ iconText="Charts"+ title="Opinionated Dashboard."+ subTitle="Keep an overview about Uptime, P50, P75, P90, P95, P99 of your monitors."+ action={+ <div className="mt-2">+ <Button variant="outline" className="rounded-full" asChild>+ <Link href="/public/monitors/1">Public Dashboard</Link>+ </Button>+ </div>+ }+ component={+ <Suspense fallback={"loading..."}>+ <Chart {...mockChartData} />+ </Suspense>+ }+ col={2}+ position={"top"}+ withGradient+ />+ <InteractiveFeature+ icon="bot"+ iconText="API Monitoring"+ title="Synthetic Monitoring."+ subTitle="Run your check in your CI/CD pipeline or on demand."+ component={+ code ? (+ <Mdx+ code={code.body.code}+ className="max-w-none prose-pre:overflow-hidden"+ />+ ) : (+ <p>Code not found</p>+ )+ }+ action={+ <div className="mt-2">+ <Button variant="outline" className="rounded-full" asChild>+ <Link href="https://docs.openstatus.dev/guides/test-latency-cf-workers-in-github-actions">+ How-to+ </Link>+ </Button>+ </div>+ }+ col={2}+ position={"bottom"}+ withGradient+ />+ <Banner />+ </div>+ );+}diff --git a/apps/web/src/app/(content)/features/status-page/page.tsx b/apps/web/src/app/(content)/features/status-page/page.tsxnew file mode 100644index 000000000..ee9f92a02--- /dev/null+++ b/apps/web/src/app/(content)/features/status-page/page.tsx@@ -0,0 +1,145 @@+import { PasswordFormSuspense } from "@/app/status-page/[domain]/_components/password-form";+import { SubscribeButton } from "@/app/status-page/[domain]/_components/subscribe-button";+import { MaintenanceBanner } from "@/components/status-page/maintenance-banner";+import { StatusCheck } from "@/components/status-page/status-check";+import { StatusReport } from "@/components/status-page/status-report";+import { Tracker } from "@/components/tracker/tracker";+import { marketingProductPagesConfig } from "@/config/pages";+import { Button, InputWithAddons } from "@openstatus/ui";+import Link from "next/link";+import { Banner } from "../_components/banner";+import { Hero } from "../_components/hero";+import { InteractiveFeature } from "../_components/interactive-feature";+import { maintenanceData, mockTrackerData, statusReportData } from "../mock";+import type { Metadata } from "next";+import { defaultMetadata, ogMetadata, twitterMetadata } from "@/app/shared-metadata";++const { description, subtitle } = marketingProductPagesConfig[1];++export const metadata: Metadata = {+ ...defaultMetadata,+ title: "Status Page | OpenStatus",+ description:'Easily report to your users with our public or private status page.',+ twitter: {+ ...twitterMetadata,+ title: "Status Page | OpenStatus",+ description:'Easily report to your users with our public or private status page.',+ },+ openGraph: {+ ...ogMetadata,+ title: "Status Page | OpenStatus",+ description:'Easily report to your users with our public or private status page.',+ },+};++export default function FeaturePage() {+ return (+ <div className="grid w-full gap-12">+ <Hero title={description} subTitle={subtitle} />+ <InteractiveFeature+ icon="globe"+ iconText="Customize"+ title="Custom Domain."+ subTitle="Bring your own domain, give the status page a personal touch."+ component={+ <div className="m-auto">+ <InputWithAddons leading="https://" placeholder="status.acme.com" />+ </div>+ }+ col={1}+ position={"left"}+ />+ <InteractiveFeature+ icon="panel-top"+ iconText="Simple by default"+ title="Status page."+ subTitle="Connect your monitors and inform your users about the uptime."+ component={+ <div className="my-auto">+ <Tracker+ data={mockTrackerData}+ name="OpenStatus"+ description="Website Health"+ />+ </div>+ }+ col={2}+ position={"left"}+ />+ <InteractiveFeature+ icon="users"+ iconText="Reach your users"+ title="Subscriptions."+ subTitle="Let your users subscribe to your status page, to automatically receive updates about the status of your services."+ component={+ <div className="m-auto">+ <SubscribeButton slug={""} isDemo />+ </div>+ }+ col={1}+ position={"left"}+ />+ <InteractiveFeature+ icon="search-check"+ iconText="Stay up to date"+ title="Status Updates."+ subTitle="Down't let your users in the dark and show what's wrong."+ component={+ <div className="-translate-y-6 m-auto scale-[0.80]">+ <StatusReport {...statusReportData} />+ </div>+ }+ col={1}+ position={"bottom"}+ withGradient+ />+ <InteractiveFeature+ icon="eye-off"+ iconText="Restrict access"+ title="Password Protection."+ subTitle="Hide your page to unexepected users."+ component={+ <div className="m-auto max-w-lg">+ <PasswordFormSuspense slug="" />+ </div>+ }+ col={2}+ position={"left"}+ />+ <InteractiveFeature+ icon="user"+ iconText="Keep it simple"+ title="Build trust."+ subTitle="Showcase your reliability to your users, and reduce the number of customer service tickets."+ component={+ <div className="m-auto max-w-lg">+ <StatusCheck />+ </div>+ }+ action={+ <div className="mt-2">+ <Button variant="outline" className="rounded-full" asChild>+ <Link href="https://status.openstatus.dev">Status Page</Link>+ </Button>+ </div>+ }+ col={2}+ position={"bottom"}+ />+ <InteractiveFeature+ icon="hammer"+ iconText="Handle migrations"+ title="Maintenance."+ subTitle="Mute your monitors for a specific period and inform the users about upcoming maintenance."+ component={+ <div className="m-auto">+ <MaintenanceBanner {...maintenanceData} />+ </div>+ }+ col={2}+ position={"left"}+ />+ <Banner />+ </div>+ );+}diff --git a/apps/web/src/app/_components/background.tsx b/apps/web/src/app/_components/background.tsxindex b1a3f9cb7..37c08fd7c 100644--- a/apps/web/src/app/_components/background.tsx+++ b/apps/web/src/app/_components/background.tsx@@ -9,8 +9,8 @@ export default function Background({ children }: { children: ReactNode }) {<><div className="-z-50 fixed top-0 left-0"><div className="sticky top-0 left-0 h-screen w-screen overflow-hidden">- <div className="absolute inset-0 z-[-1] bg-muted-foreground/20" />- <div className="-translate-x-1/2 -translate-y-1/2 absolute top-[--y] left-[--x] z-[-1] h-56 w-56 rounded-full bg-gradient-radial from-0% from-muted-foreground/50 to-90% to-transparent blur-md" />+ <div className="absolute inset-0 z-[-1] bg-muted-foreground/15" />+ <div className="-translate-x-1/2 -translate-y-1/2 absolute top-[--y] left-[--x] z-[-1] h-56 w-56 rounded-full bg-gradient-radial from-0% from-muted-foreground/40 to-90% to-transparent blur-md" /><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><patterndiff --git a/apps/web/src/app/play/checker/[id]/page.tsx b/apps/web/src/app/play/checker/[id]/page.tsxindex 770335ea3..a656d2039 100644--- a/apps/web/src/app/play/checker/[id]/page.tsx+++ b/apps/web/src/app/play/checker/[id]/page.tsx@@ -50,50 +50,47 @@ export default async function CheckPage({ params, searchParams }: Props) {const { region, headers, timing, status } = check;return (- <>- <BackButton href="/play/checker" />- <Shell className="flex flex-col gap-8">- <div className="flex justify-between gap-4">- <div className="flex max-w-[calc(100%-50px)] flex-col gap-1">- <h1 className="truncate text-wrap font-semibold text-lg md:text-3xl sm:text-xl">- {data.url}- </h1>- <p className="text-muted-foreground text-sm sm:text-base">- {timestampFormatter(data.time)}- </p>- </div>+ <Shell className="my-8 flex flex-col gap-8 md:my-16">+ <div className="flex justify-between gap-4">+ <div className="flex max-w-[calc(100%-50px)] flex-col gap-1">+ <h1 className="truncate text-wrap font-semibold text-lg md:text-3xl sm:text-xl">+ {data.url}+ </h1>+ <p className="text-muted-foreground text-sm sm:text-base">+ {timestampFormatter(data.time)}+ </p>+ </div>+ <div>+ <CopyLinkButton />+ </div>+ </div>+ <MultiRegionTabs regions={data.checks} />+ <Separator />+ <div className="flex flex-col gap-8">+ <div className="grid gap-8 md:grid-cols-2"><div>- <CopyLinkButton />+ <SelectRegion defaultValue={region} /></div>- </div>- <MultiRegionTabs regions={data.checks} />- <Separator />- <div className="flex flex-col gap-8">- <div className="grid gap-8 md:grid-cols-2">- <div>- <SelectRegion defaultValue={region} />- </div>- <div>- <RegionInfo check={check} />- </div>+ <div>+ <RegionInfo check={check} /></div>- <ResponseDetailTabs {...{ timing, headers, status }} /></div>- <Separator />- <p className="text-muted-foreground text-sm">- The data will be stored for{" "}- <span className="text-foreground">1 day</span>. If you want to persist- the data,{" "}- <Link- href="/app/login"- className="text-foreground underline underline-offset-4 hover:no-underline"- >- login- </Link>{" "}- to your account.- </p>- </Shell>- </>+ <ResponseDetailTabs {...{ timing, headers, status }} hideInfo={false} />+ </div>+ <Separator />+ <p className="text-muted-foreground text-sm">+ The data will be stored for{" "}+ <span className="text-foreground">1 day</span>. If you want to persist+ the data,{" "}+ <Link+ href="/app/login"+ className="text-foreground underline underline-offset-4 hover:no-underline"+ >+ login+ </Link>{" "}+ to your account.+ </p>+ </Shell>);}diff --git a/apps/web/src/app/play/checker/page.tsx b/apps/web/src/app/play/checker/page.tsxindex 13aae8ca5..f39933c88 100644--- a/apps/web/src/app/play/checker/page.tsx+++ b/apps/web/src/app/play/checker/page.tsx@@ -19,18 +19,13 @@ export const metadata: Metadata = {export default async function PlayPage() {return (- <>- <div className="mx-auto space-y-12">- <div className="mt-12">- <BackButton href="/" />- <CheckerPlay />- </div>- <Testimonial />- <GlobalMonitoring />- <div className="mx-auto max-w-2xl lg:max-w-4xl">- <BottomCTA />- </div>+ <div className="my-8 grid h-full w-full gap-12 md:my-16">+ <CheckerPlay />+ <Testimonial />+ <GlobalMonitoring />+ <div className="mx-auto max-w-2xl lg:max-w-4xl">+ <BottomCTA /></div>- </>+ </div>);}diff --git a/apps/web/src/app/play/page.tsx b/apps/web/src/app/play/page.tsxindex 65206fb2b..8496a8ecc 100644--- a/apps/web/src/app/play/page.tsx+++ b/apps/web/src/app/play/page.tsx@@ -34,8 +34,7 @@ export const metadata: Metadata = {export default async function PlayPage() {return (<>- <BackButton href="/" />- <div className="grid w-full grid-cols-1 gap-4 md:grid-cols-3 sm:grid-cols-2">+ <div className="my-8 grid w-full grid-cols-1 gap-4 md:my-16 md:grid-cols-3 sm:grid-cols-2">{playgrounds.map((play, i) => {const isFirst = i === 0;return (diff --git a/apps/web/src/app/play/status/page.tsx b/apps/web/src/app/play/status/page.tsxindex d7bffb42e..cebb36558 100644--- a/apps/web/src/app/play/status/page.tsx+++ b/apps/web/src/app/play/status/page.tsx@@ -17,9 +17,8 @@ export const revalidate = 600;export default async function PlayPage() {return (- <>- <BackButton href="/" />+ <div className="my-8 md:my-16"><StatusPlay />- </>+ </div>);}diff --git a/apps/web/src/app/status-page/[domain]/_components/password-form.tsx b/apps/web/src/app/status-page/[domain]/_components/password-form.tsxindex 1698b367b..8ff433b35 100644--- a/apps/web/src/app/status-page/[domain]/_components/password-form.tsx+++ b/apps/web/src/app/status-page/[domain]/_components/password-form.tsx@@ -22,6 +22,7 @@ import {import { LoadingAnimation } from "@/components/loading-animation";import { useCookieState } from "@/hooks/use-cookie-state";import { toast, toastAction } from "@/lib/toast";+import { wait } from "@/lib/utils";import { createProtectedCookieKey } from "../utils";import { handleValidatePassword } from "./actions";@@ -30,7 +31,7 @@ import { handleValidatePassword } from "./actions";// in the `layout.tsx` because we cannot access the search params thereconst schema = z.object({- password: z.string(),+ password: z.string().min(1),});type Schema = z.infer<typeof schema>;@@ -69,6 +70,12 @@ export function PasswordForm({ slug }: PasswordFormProps) {formData.append("password", data.password);formData.append("slug", slug);+ // REMINDER: used for the demo on features/status-page+ if (slug === "") {+ await wait(500);+ return;+ }+const res = await handleValidatePassword(formData);if (res?.error || res.data === undefined) {@@ -101,7 +108,7 @@ export function PasswordForm({ slug }: PasswordFormProps) {<FormLabel>Password</FormLabel><FormControl><InputWithAddons- placeholder="top-secret"+ placeholder="open-source"type={inputType}disabled={loading}trailing={@@ -109,7 +116,7 @@ export function PasswordForm({ slug }: PasswordFormProps) {<buttononClick={() =>setInputType((type) =>- type === "password" ? "text" : "password",+ type === "password" ? "text" : "password")}>diff --git a/apps/web/src/app/status-page/[domain]/_components/subscribe-button.tsx b/apps/web/src/app/status-page/[domain]/_components/subscribe-button.tsxindex 9457c1608..3c44d89bf 100644--- a/apps/web/src/app/status-page/[domain]/_components/subscribe-button.tsx+++ b/apps/web/src/app/status-page/[domain]/_components/subscribe-button.tsx@@ -14,13 +14,15 @@ import {import { LoadingAnimation } from "@/components/loading-animation";import { toast } from "@/lib/toast";+import { wait } from "@/lib/utils";import { handleSubscribe } from "./actions";interface Props {slug: string;+ isDemo?: boolean;}-export function SubscribeButton({ slug }: Props) {+export function SubscribeButton({ slug, isDemo = false }: Props) {return (<Popover><PopoverTrigger asChild>@@ -42,16 +44,23 @@ export function SubscribeButton({ slug }: Props) {<formclassName="grid gap-2"action={async (formData) => {- const res = await handleSubscribe(formData);- if (res?.error) {- toast.error("Something went wrong", {- description: res.error,+ if (!isDemo) {+ const res = await handleSubscribe(formData);+ if (res?.error) {+ toast.error("Something went wrong", {+ description: res.error,+ });+ return;+ }+ toast.message("Success", {+ description: "Please confirm your email.",+ });+ } else {+ await wait(1000);+ toast.message("Success (Demo)", {+ description: "Please confirm your email (not).",});- return;}- toast.message("Success", {- description: "Please confirm your email.",- });}}><Label htmlFor="email">Email</Label>diff --git a/apps/web/src/components/content/mdx-components.tsx b/apps/web/src/components/content/mdx-components.tsxindex 61a5d2203..4fa1ea3a1 100644--- a/apps/web/src/components/content/mdx-components.tsx+++ b/apps/web/src/components/content/mdx-components.tsx@@ -23,6 +23,7 @@ import {import type { MetricsCardProps } from "../monitor-dashboard/metrics-card";import { MetricsCard } from "../monitor-dashboard/metrics-card";+import Pre from "./pre";import type { SimpleChartProps } from "./simple-chart";import { SimpleChart } from "./simple-chart";@@ -88,4 +89,5 @@ export const components = {td: (props: TdHTMLAttributes<HTMLTableCellElement>) => (<TableCell {...props} />),+ pre: (props: HTMLAttributes<HTMLPreElement>) => <Pre {...props} />,};diff --git a/apps/web/src/components/content/mdx.tsx b/apps/web/src/components/content/mdx.tsxindex 2dfc66187..520d2130b 100644--- a/apps/web/src/components/content/mdx.tsx+++ b/apps/web/src/components/content/mdx.tsx@@ -15,8 +15,8 @@ export function Mdx({ code, className }: MdxProps) {// FIXME: weird behaviour when `prose-headings:font-cal` and on mouse movement font gets bigger<divclassName={cn(- "prose prose-slate dark:prose-invert prose-img:rounded-lg prose-pre:rounded-lg prose-img:border prose-pre:border prose-img:border-border prose-pre:border-border prose-headings:font-cal prose-headings:font-normal",- className,+ "prose prose-slate dark:prose-invert prose-pre:my-0 prose-img:rounded-lg prose-pre:rounded-lg prose-img:border prose-pre:border prose-img:border-border prose-pre:border-border prose-headings:font-cal prose-headings:font-normal",+ className)}><MDXComponent components={{ ...components }} />diff --git a/apps/web/src/components/content/pre.tsx b/apps/web/src/components/content/pre.tsxnew file mode 100644index 000000000..faf1404a0--- /dev/null+++ b/apps/web/src/components/content/pre.tsx@@ -0,0 +1,52 @@+"use client";++import { Button } from "@openstatus/ui";+import { Clipboard, ClipboardCopy } from "lucide-react";+import React from "react";++export interface PreProps extends React.HTMLAttributes<HTMLPreElement> {}++export default function Pre({ children, ...props }: PreProps) {+ const [copied, setCopied] = React.useState(false);+ const ref = React.useRef<HTMLPreElement>(null);++ React.useEffect(() => {+ let timer: ReturnType<typeof setTimeout>;+ if (copied) {+ timer = setTimeout(() => {+ setCopied(false);+ }, 2000);+ }+ return () => {+ clearTimeout(timer);+ };+ }, [copied]);++ const onClick = () => {+ setCopied(true);+ const content = ref.current?.textContent;+ if (content) {+ navigator.clipboard.writeText(content);+ }+ };++ return (+ <div className="relative overflow-hidden">+ <Button+ variant="outline"+ size="icon"+ className="absolute top-4 right-4"+ onClick={onClick}+ >+ {!copied ? (+ <Clipboard className="h-5 w-5 text-black" />+ ) : (+ <ClipboardCopy className="h-5 w-5 text-brand-900" />+ )}+ </Button>+ <pre ref={ref} {...props}>+ {children}+ </pre>+ </div>+ );+}diff --git a/apps/web/src/components/dashboard/tabs.tsx b/apps/web/src/components/dashboard/tabs.tsxindex 029e0afff..a2671c5b5 100644--- a/apps/web/src/components/dashboard/tabs.tsx+++ b/apps/web/src/components/dashboard/tabs.tsx@@ -11,18 +11,18 @@ import { cn } from "@/lib/utils";export function TabsList({className,...props-}: React.ComponentPropsWithoutRef<typeof ShadcnTabsList>) {+}: React.ComponentPropsWithoutRef<typeof ShadcnTabsList> & {}) {return (- <>+ // REMINDER: needed for sticky header - ideally, we remove the div+ <div className={className}><ShadcnTabsListclassName={cn("w-full justify-start overflow-x-auto overflow-y-hidden rounded-none bg-transparent p-0",- className,)}{...props}/><Separator className="mb-6" />- </>+ </div>);}diff --git a/apps/web/src/components/forms/monitor/section-assertions.tsx b/apps/web/src/components/forms/monitor/section-assertions.tsxindex 4795d65a1..307abdeb3 100644--- a/apps/web/src/components/forms/monitor/section-assertions.tsx+++ b/apps/web/src/components/forms/monitor/section-assertions.tsx@@ -70,10 +70,11 @@ export function SectionAssertions({ form }: Props) {name="degradedAfter"render={({ field }) => (<FormItem className="col-span-6 sm:col-span-3">- <FormLabel>Degraded</FormLabel>+ <FormLabel>+ Degraded <span className="font-normal">(in ms.)</span>+ </FormLabel><FormControl><Input- className="bg-muted"type="number"min={0}max={60000}@@ -84,8 +85,7 @@ export function SectionAssertions({ form }: Props) {/></FormControl><FormDescription>- In milliseconds, the time after which the endpoint is considered- degraded.+ Time after which the endpoint is considered degraded.</FormDescription></FormItem>)}@@ -95,10 +95,11 @@ export function SectionAssertions({ form }: Props) {name="timeout"render={({ field }) => (<FormItem className="col-span-6 sm:col-span-3">- <FormLabel>Timeout</FormLabel>+ <FormLabel>+ Timeout <span className="font-normal">(in ms.)</span>+ </FormLabel><FormControl><Input- className="bg-muted"type="number"placeholder="45000"min={0}@@ -107,8 +108,7 @@ export function SectionAssertions({ form }: Props) {/></FormControl><FormDescription>- In milliseconds, the maximum time allowed for the request to- complete.+ Max. time allowed for request to complete.</FormDescription>{/* <FormMessage /> */}@@ -293,7 +293,7 @@ export function SectionAssertions({ form }: Props) {</div></div>))}- <div className="flex gap-4">+ <div className="flex flex-wrap gap-4"><Buttonvariant="outline"type="button"diff --git a/apps/web/src/components/icons.tsx b/apps/web/src/components/icons.tsxindex 2ceff714b..976b8afdf 100644--- a/apps/web/src/components/icons.tsx+++ b/apps/web/src/components/icons.tsx@@ -3,6 +3,7 @@ import {AlertTriangle,Bell,Book,+ BookOpenCheck,Bot,Calendar,Camera,@@ -13,8 +14,10 @@ import {Copy,CreditCard,Eye,+ EyeOff,FileClock,Fingerprint,+ Gauge,Globe2,Hammer,Hourglass,@@ -22,6 +25,7 @@ import {KeyRound,Laptop,LayoutDashboard,+ Library,LineChart,Link,Linkedin,@@ -30,6 +34,7 @@ import {Minus,Moon,Newspaper,+ Package,PanelTop,Pencil,Play,@@ -66,6 +71,9 @@ export const Icons = {"panel-top": PanelTop,table: Table,"toy-brick": ToyBrick,+ gauge: Gauge,+ package: Package,+ library: Library,cog: Cog,hammer: Hammer,search: Search,@@ -88,6 +96,7 @@ export const Icons = {bell: Bell,zap: Zap,eye: Eye,+ "eye-off": EyeOff,users: Users,key: KeyRound,"credit-card": CreditCard,@@ -112,6 +121,7 @@ export const Icons = {ratio: Ratio,user: UserCircle,camera: Camera,+ "book-open-check": BookOpenCheck,discord: ({ ...props }: LucideProps) => (<svg viewBox="0 0 640 512" {...props}><pathdiff --git a/apps/web/src/components/layout/brand-name.tsx b/apps/web/src/components/layout/brand-name.tsxindex c140283e2..744aad1af 100644--- a/apps/web/src/components/layout/brand-name.tsx+++ b/apps/web/src/components/layout/brand-name.tsx@@ -10,15 +10,20 @@ import {ContextMenuItem,ContextMenuTrigger,} from "@openstatus/ui";+import Image from "next/image";export function BrandName() {return (<ContextMenu><ContextMenuTrigger>- <Link- href="/"- className="font-cal text-lg text-muted-foreground hover:text-foreground"- >+ <Link href="/" className="flex items-center gap-2 font-cal">+ <Image+ src="/icon.png"+ alt="OpenStatus"+ height={30}+ width={30}+ className="rounded-full border border-border bg-transparent"+ />OpenStatus</Link></ContextMenuTrigger>diff --git a/apps/web/src/components/layout/marketing-footer.tsx b/apps/web/src/components/layout/marketing-footer.tsxindex 0d6701b7d..ca60c8678 100644--- a/apps/web/src/components/layout/marketing-footer.tsx+++ b/apps/web/src/components/layout/marketing-footer.tsx@@ -21,7 +21,7 @@ export function MarketingFooter({ className }: Props) {<div className="col-span-2 flex flex-col gap-3"><div><BrandName />- <p className="mt-2 font-light text-muted-foreground text-sm">+ <p className="mt-2 max-w-md font-light text-muted-foreground text-sm">We are on a mission to provide a reliable, easy and fast way tomonitor the performance of your APIs and websites.<br />diff --git a/apps/web/src/components/layout/marketing-header.tsx b/apps/web/src/components/layout/marketing-header.tsxindex 06ab32586..c359e7625 100644--- a/apps/web/src/components/layout/marketing-header.tsx+++ b/apps/web/src/components/layout/marketing-header.tsx@@ -1,12 +1,22 @@"use client";-import Link from "next/link";+import Link, { type LinkProps } from "next/link";import { usePathname } from "next/navigation";-import { Button } from "@openstatus/ui";+import {+ NavigationMenu,+ NavigationMenuContent,+ NavigationMenuItem,+ NavigationMenuLink,+ NavigationMenuList,+ NavigationMenuTrigger,+ navigationMenuTriggerStyle,+} from "@openstatus/ui";import { marketingPagesConfig } from "@/config/pages";import { cn } from "@/lib/utils";+import * as React from "react";+import { Icons, type ValidIcon } from "../icons";import { BrandName } from "./brand-name";import { LoginButton } from "./login-button";import { MarketingMenu } from "./marketing-menu";@@ -20,31 +30,76 @@ export function MarketingHeader({ className }: Props) {return (<header- className={cn("grid w-full grid-cols-2 gap-2 md:grid-cols-5", className)}+ className={cn(+ "sticky top-3 z-10 flex w-full items-center justify-between gap-8 rounded-full border border-border px-2.5 py-1.5 backdrop-blur-lg md:top-6",+ className+ )}>- <div className="flex items-center md:col-span-1">- <BrandName />- </div>- <div className="mx-auto hidden items-center justify-center rounded-full border border-border px-2 backdrop-blur-[2px] md:col-span-3 md:flex md:gap-1">- {marketingPagesConfig.map(({ href, title, segment }) => {- const isExternal = href.startsWith("http");- const externalProps = isExternal ? { target: "_blank" } : {};- const isActive = pathname.startsWith(href);- return (- <Button- key={segment}- variant="link"- className={isActive ? "font-semibold" : undefined}- asChild- >- <Link href={href} {...externalProps}>- {title}- </Link>- </Button>- );- })}+ <div className="flex items-center gap-6">+ <div className="ml-3 flex items-center gap-3">+ <BrandName />+ </div>+ <div+ className={cn(+ "mx-auto hidden items-center justify-center border border-transparent md:flex md:gap-1"+ )}+ >+ <NavigationMenu>+ <NavigationMenuList>+ {marketingPagesConfig.map((page) => {+ const { href, title, segment, children } = page;+ if (!children) {+ return (+ <NavigationMenuItem key={title}>+ <Link href={href} legacyBehavior passHref>+ <NavigationMenuLink+ className={cn(+ navigationMenuTriggerStyle(),+ "h-9 rounded-full bg-transparent text-muted-foreground hover:bg-accent/50",+ { "text-foreground": href === pathname }+ )}+ >+ {title}+ </NavigationMenuLink>+ </Link>+ </NavigationMenuItem>+ );+ }++ return (+ <NavigationMenuItem key={href}>+ <NavigationMenuTrigger className="h-9 rounded-full bg-transparent text-muted-foreground hover:bg-transparent data-[state=open]:text-accent-foreground">+ {title}+ </NavigationMenuTrigger>+ <NavigationMenuContent>+ <ul className="grid w-[400px] gap-3 p-4 lg:w-[600px] md:w-[500px] md:grid-cols-2">+ {children?.map((item) => {+ const isExternal = item.href.startsWith("http");+ const _externalProps = isExternal+ ? { target: "_blank" }+ : {};+ const _isActive = pathname.startsWith(item.href);+ return (+ <ListItem+ key={item.title}+ title={item.title}+ href={item.href}+ icon={item.icon}+ >+ {item.description}+ </ListItem>+ );+ })}+ </ul>+ </NavigationMenuContent>+ </NavigationMenuItem>+ );+ })}+ </NavigationMenuList>+ </NavigationMenu>+ </div></div>- <div className="flex items-center justify-end gap-3 md:col-span-1">+ <div className="flex items-center justify-end gap-3"><div className="block md:hidden"><MarketingMenu /></div>@@ -53,3 +108,36 @@ export function MarketingHeader({ className }: Props) {</header>);}++const ListItem = React.forwardRef<+ React.ElementRef<"a">,+ React.ComponentPropsWithoutRef<"a"> & LinkProps & { icon: ValidIcon }+>(({ className, title, children, icon, ...props }, ref) => {+ // TODO: if external, add Arrow-Right-Up Icon+ const Icon = Icons[icon];+ return (+ <li className="group">+ <NavigationMenuLink asChild>+ <Link+ ref={ref}+ className={cn(+ "flex select-none gap-3 space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors focus:bg-accent hover:bg-accent focus:text-accent-foreground hover:text-accent-foreground",+ className+ )}+ {...props}+ >+ <div className="self-start rounded-md border p-2 group-hover:bg-background">+ <Icon className="h-4 w-4" />+ </div>+ <div className="grid gap-1">+ <div className="font-medium text-sm leading-none">{title}</div>+ <p className="line-clamp-2 text-muted-foreground text-sm leading-snug">+ {children}+ </p>+ </div>+ </Link>+ </NavigationMenuLink>+ </li>+ );+});+ListItem.displayName = "ListItem";diff --git a/apps/web/src/components/layout/marketing-menu.tsx b/apps/web/src/components/layout/marketing-menu.tsxindex 395cd3c95..0a9f2c458 100644--- a/apps/web/src/components/layout/marketing-menu.tsx+++ b/apps/web/src/components/layout/marketing-menu.tsx@@ -5,6 +5,10 @@ import { usePathname } from "next/navigation";import * as React from "react";import {+ Accordion,+ AccordionContent,+ AccordionItem,+ AccordionTrigger,Button,Sheet,SheetContent,@@ -15,13 +19,18 @@ import {import { marketingPagesConfig } from "@/config/pages";import { socialsConfig } from "@/config/socials";-import { AppLink } from "./app-link";+import { useWindowScroll } from "@/hooks/use-window-scroll";+import { cn } from "@/lib/utils";+import Link, { type LinkProps } from "next/link";+import { Icons, type ValidIcon } from "../icons";import { LoginButton } from "./login-button";import { SocialIconButton } from "./social-icon-button";export function MarketingMenu() {const [open, setOpen] = React.useState(false);const pathname = usePathname();+ const [{ y }] = useWindowScroll();+ const _isScroll = React.useMemo(() => y && y > 0, [y]);React.useEffect(() => {setOpen(false);@@ -39,25 +48,58 @@ export function MarketingMenu() {<Menu className="h-6 w-6" /></Button></SheetTrigger>- <SheetContent side="top" className="flex flex-col">+ <SheetContent side="top" className={cn("flex flex-col")}><SheetHeader>- <SheetTitle className="ml-2 text-left">Menu</SheetTitle>+ <SheetTitle className="text-left">Menu</SheetTitle></SheetHeader>- <div className="flex flex-1 flex-col justify-between gap-4">+ <div className="flex flex-1 flex-col justify-between gap-8"><ul className="grid gap-1">- {/* biome-ignore lint/correctness/noUnusedVariables: <explanation> */}- {marketingPagesConfig.map(({ href, title, segment }) => {- const isExternal = href.startsWith("http");- const externalProps = isExternal ? { target: "_blank" } : {};- const isActive = pathname.startsWith(href);+ {marketingPagesConfig.map(({ href, title, icon, children }) => {+ if (!children) {+ const isExternal = href.startsWith("http");+ const _externalProps = isExternal ? { target: "_blank" } : {};+ const _isActive = pathname.startsWith(href);+ return (+ <li key={href} className="w-full">+ <ListItemSingle+ title={title}+ href={href}+ icon={icon}+ onClick={() => setOpen(false)}+ />+ </li>+ );+ }+return (- <li key={href} className="w-full">- <AppLink- href={href}- label={title}- active={isActive}- {...externalProps}- />+ <li key={href}>+ <Accordion type="single" collapsible className="w-full">+ <AccordionItem value={title}>+ <AccordionTrigger>{title}</AccordionTrigger>+ <AccordionContent>+ <ul>+ {children.map((page) => {+ const { href, title, icon } = page;+ const isExternal = href.startsWith("http");+ const _externalProps = isExternal+ ? { target: "_blank" }+ : {};+ const _isActive = pathname.startsWith(href);+ return (+ <li key={href} className="w-full">+ <ListItem+ title={title}+ href={href}+ icon={icon}+ onClick={() => setOpen(false)}+ />+ </li>+ );+ })}+ </ul>+ </AccordionContent>+ </AccordionItem>+ </Accordion></li>);})}@@ -77,3 +119,50 @@ export function MarketingMenu() {</Sheet>);}++const ListItem = React.forwardRef<+ React.ElementRef<"a">,+ React.ComponentPropsWithoutRef<"a"> & LinkProps & { icon: ValidIcon }+>(({ className, title, children, icon, ...props }, ref) => {+ // TODO: if external, add Arrow-Right-Up Icon+ const Icon = Icons[icon];+ return (+ <li className="group">+ <Link+ ref={ref}+ className={cn(+ "flex select-none items-center gap-2 space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors focus:bg-accent hover:bg-accent focus:text-accent-foreground hover:text-accent-foreground",+ className+ )}+ {...props}+ >+ <Icon className="h-4 w-4" />+ <div className="font-medium text-sm leading-none">{title}</div>+ </Link>+ </li>+ );+});+ListItem.displayName = "ListItem";++const ListItemSingle = React.forwardRef<+ React.ElementRef<"a">,+ React.ComponentPropsWithoutRef<"a"> & LinkProps & { icon: ValidIcon }+>(({ className, title, children, icon, ...props }, ref) => {+ // TODO: if external, add Arrow-Right-Up Icon+ const _Icon = Icons[icon];+ return (+ <li className="group">+ <Link+ ref={ref}+ className={cn(+ "flex flex-1 items-center justify-between border-b py-4 font-medium transition-all hover:underline",+ className+ )}+ {...props}+ >+ {title}+ </Link>+ </li>+ );+});+ListItemSingle.displayName = "ListItemSingle";diff --git a/apps/web/src/components/marketing/status-page/tracker-example.tsx b/apps/web/src/components/marketing/status-page/tracker-example.tsxindex f8c13e239..8ab38d32a 100644--- a/apps/web/src/components/marketing/status-page/tracker-example.tsx+++ b/apps/web/src/components/marketing/status-page/tracker-example.tsx@@ -35,7 +35,7 @@ async function ExampleTracker() {},{revalidate: 600, // 10 minutes- },+ });if (!data) return null;diff --git a/apps/web/src/components/monitor-charts/chart.tsx b/apps/web/src/components/monitor-charts/chart.tsxindex dcb6349a7..c84e49e54 100644--- a/apps/web/src/components/monitor-charts/chart.tsx+++ b/apps/web/src/components/monitor-charts/chart.tsx@@ -10,7 +10,7 @@ import { cn } from "@/lib/utils";import { dataFormatter, regionFormatter } from "./utils";interface ChartProps {- data: { timestamp: string; [key: string]: string }[];+ data: { timestamp: string; [key: string]: string | number }[];regions: string[];}diff --git a/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsx b/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsxindex f59f199b4..119be1bb4 100644--- a/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsx+++ b/apps/web/src/components/ping-response-analysis/response-detail-tabs.tsx@@ -17,17 +17,24 @@ export async function ResponseDetailTabs({status,message,assertions,+ defaultOpen,+ hideInfo = true,+ className,}: {timing: Timing | null;headers: Record<string, string> | null;status: number | null;message?: string | null;assertions?: Assertion[] | null;+ defaultOpen?: string;+ hideInfo?: boolean;+ className?: string;}) {- const defaultValue = headers ? "headers" : timing ? "timing" : "message";+ const defaultValue =+ defaultOpen || headers ? "headers" : timing ? "timing" : "message";return (- <Tabs defaultValue={defaultValue}>- <TabsList>+ <Tabs defaultValue={defaultValue} className={className}>+ <TabsList className="sticky top-0 bg-background"><TabsTrigger value="headers" disabled={!headers}>Headers</TabsTrigger>@@ -50,8 +57,9 @@ export async function ResponseDetailTabs({) : null}</TabsContent><TabsContent value="timing">- {/* TODO: show hideInfo={false} when in /play/checker page */}- {timing ? <ResponseTimingTable timing={timing} hideInfo /> : null}+ {timing ? (+ <ResponseTimingTable timing={timing} hideInfo={hideInfo} />+ ) : null}</TabsContent><TabsContent value="message">{message ? (diff --git a/apps/web/src/components/ping-response-analysis/response-timing-table.tsx b/apps/web/src/components/ping-response-analysis/response-timing-table.tsxindex bb9a019f6..5ab84b5a0 100644--- a/apps/web/src/components/ping-response-analysis/response-timing-table.tsx+++ b/apps/web/src/components/ping-response-analysis/response-timing-table.tsx@@ -46,12 +46,12 @@ export function ResponseTimingTable({return (<TableRow key={key}><TableCell>- <div className="flex w-[72px] items-center justify-between gap-2">+ <div className="flex items-center justify-between gap-2"><p className="text-muted-foreground">{short}</p>{!hideInfo ? (<Popover><PopoverTrigger className="text-muted-foreground data-[state=open]:text-foreground hover:text-foreground">- <Info className="h-4 w-4" />+ <Info className="mr-2 h-4 w-4" /></PopoverTrigger><PopoverContent><p className="font-medium">{long}</p>diff --git a/apps/web/src/components/status-page/status-check.tsx b/apps/web/src/components/status-page/status-check.tsxindex 1dfff6cb3..145d1a4a6 100644--- a/apps/web/src/components/status-page/status-check.tsx+++ b/apps/web/src/components/status-page/status-check.tsx@@ -15,9 +15,9 @@ export async function StatusCheck({incidents,maintenances,}: {- statusReports: StatusReport[];- incidents: Incident[];- maintenances: Maintenance[];+ statusReports?: StatusReport[];+ incidents?: Incident[];+ maintenances?: Maintenance[];}) {const tracker = new Tracker({ statusReports, incidents, maintenances });const className = tracker.currentClassName;diff --git a/apps/web/src/components/status-page/status-report.tsx b/apps/web/src/components/status-page/status-report.tsxindex 416ff235f..ebefaeab3 100644--- a/apps/web/src/components/status-page/status-report.tsx+++ b/apps/web/src/components/status-page/status-report.tsx@@ -16,8 +16,6 @@ import { cn } from "@/lib/utils";import { StatusBadge } from "../status-update/status-badge";import { ProcessMessage } from "./process-message";import { DateTimeTooltip } from "./datetime-tooltip";-import { format } from "date-fns";-import { formatInTimeZone } from "date-fns-tz";function StatusReport({report,@@ -42,16 +40,18 @@ function StatusReportHeader({ report }: { report: StatusReportWithUpdates }) {return (<div className="flex items-center gap-2"><h3 className="font-semibold text-xl">{report.title}</h3>- <Button- variant="ghost"- size="icon"- className="text-muted-foreground/50 group-hover:text-foreground"- asChild- >- <Link href={setPrefixUrl(`/incidents/${report.id}`, params)}>- <ChevronRight className="h-4 w-4" />- </Link>- </Button>+ {report.id ? (+ <Button+ variant="ghost"+ size="icon"+ className="text-muted-foreground/50 group-hover:text-foreground"+ asChild+ >+ <Link href={setPrefixUrl(`/incidents/${report.id}`, params)}>+ <ChevronRight className="h-4 w-4" />+ </Link>+ </Button>+ ) : null}</div>);}diff --git a/apps/web/src/components/tracker/tracker.tsx b/apps/web/src/components/tracker/tracker.tsxindex 229e62ca4..fa18ae89c 100644--- a/apps/web/src/components/tracker/tracker.tsx+++ b/apps/web/src/components/tracker/tracker.tsx@@ -77,7 +77,7 @@ export function Tracker({const isMissing = tracker.isDataMissing;return (- <div className="flex flex-col gap-1.5">+ <div className="flex w-full flex-col gap-1.5"><div className="flex justify-between text-sm"><div className="flex items-center gap-2"><p className="line-clamp-1 font-semibold text-foreground">{name}</p>diff --git a/apps/web/src/config/pages.ts b/apps/web/src/config/pages.tsindex 367968ba7..c4034a7ba 100644--- a/apps/web/src/config/pages.ts+++ b/apps/web/src/config/pages.ts@@ -207,7 +207,29 @@ export const pagesConfig = [},] as const satisfies readonly Page[];-export const marketingPagesConfig = [+type MarketingPageType = Page & { subtitle: string };++export const marketingProductPagesConfig = [+ {+ subtitle: "Get insights of the latency of your API and website from all over the world.",+ href: "/features/monitoring",+ title: "Monitoring",+ description:+ "Monitor your API and website globablly.",+ segment: "features",+ icon: "activity",+ },+ {+ subtitle: "Easily report to your users with our public or private status page.",+ href: "/features/status-page",+ title: "Status Page",+ description: "Create beautiful status pages within seconds.",+ segment: "features",+ icon: "panel-top",+ },+] as const satisfies MarketingPageType[];++export const marketingResourcePagesConfig = [{href: "/blog",title: "Blog",@@ -215,6 +237,20 @@ export const marketingPagesConfig = [segment: "blog",icon: "book",},+ {+ href: "/changelog",+ title: "Changelog",+ description: "All the latest features, fixes and work to OpenStatus.",+ segment: "changelog",+ icon: "newspaper",+ },+ {+ href: "/play/checker",+ title: "Speed Checker",+ description: "Check your endpoints latency right away.",+ segment: "checker",+ icon: "gauge",+ },{href: "/play",title: "Playground",@@ -222,12 +258,24 @@ export const marketingPagesConfig = [segment: "play",icon: "toy-brick",},+] as const satisfies Page[];++export const marketingPagesConfig = [{- href: "/changelog",- title: "Changelog",- description: "All the latest features, fixes and work to OpenStatus.",- segment: "changelog",- icon: "newspaper",+ href: "/product",+ title: "Product",+ description: "All product features for OpenStatus",+ segment: "",+ icon: "package",+ children: marketingProductPagesConfig,+ },+ {+ href: "/resources",+ description: "All resources for OpenStatus",+ title: "Resources",+ segment: "",+ icon: "library",+ children: marketingResourcePagesConfig,},{href: "/pricing",@@ -243,11 +291,11 @@ export const marketingPagesConfig = [segment: "docs",icon: "book",},-] as const satisfies readonly Page[];+] satisfies Page[];export function getPageBySegment(segment: string | string[],- currentPage: readonly Page[] = pagesConfig,+ currentPage: readonly Page[] = pagesConfig): Page | undefined {if (typeof segment === "string") {const page = currentPage.find((page) => page.segment === segment);diff --git a/apps/web/src/content/unrelated/ci-cd-features-block.mdx b/apps/web/src/content/unrelated/ci-cd-features-block.mdxnew file mode 100644index 000000000..2570b4d96--- /dev/null+++ b/apps/web/src/content/unrelated/ci-cd-features-block.mdx@@ -0,0 +1,18 @@+```ts+test("should fail if slow", async () => {+ const data = await fetch("https://api.openstatus.dev/v1/check", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ "x-openstatus-key": process.env.OPENSTATUS_API_KEY,+ },+ body: JSON.stringify({+ url: "https://openstat.us",+ method: "GET",+ regions: ["ams", "iad", "gru"],+ runCount: 5,+ aggregated: true,+ }),+ });+});+```diff --git a/apps/web/src/hooks/use-window-scroll.ts b/apps/web/src/hooks/use-window-scroll.tsnew file mode 100644index 000000000..e98e56e5a--- /dev/null+++ b/apps/web/src/hooks/use-window-scroll.ts@@ -0,0 +1,41 @@+// Props: https://github.com/uidotdev/usehooks/blob/90fbbb4cc085e74e50c36a62a5759a40c62bb98e/index.js#L1310++import * as React from "react";++export function useWindowScroll() {+ const [state, setState] = React.useState<{+ x: number | null;+ y: number | null;+ }>({+ x: null,+ y: null,+ });++ // biome-ignore lint/suspicious/noExplicitAny: <explanation>+ const scrollTo = React.useCallback((...args: any[]) => {+ if (typeof args[0] === "object") {+ window.scrollTo(args[0]);+ } else if (typeof args[0] === "number" && typeof args[1] === "number") {+ window.scrollTo(args[0], args[1]);+ } else {+ throw new Error(+ "Invalid arguments passed to scrollTo. See here for more info. https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo",+ );+ }+ }, []);++ React.useLayoutEffect(() => {+ const handleScroll = () => {+ setState({ x: window.scrollX, y: window.scrollY });+ };++ handleScroll();+ window.addEventListener("scroll", handleScroll);++ return () => {+ window.removeEventListener("scroll", handleScroll);+ };+ }, []);++ return [state, scrollTo] as const;+}diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 8b2639d0f..1bd67338b 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -32,6 +32,7 @@"@radix-ui/react-dropdown-menu": "2.0.6","@radix-ui/react-hover-card": "1.0.7","@radix-ui/react-label": "2.0.2",+ "@radix-ui/react-navigation-menu": "1.2.0","@radix-ui/react-popover": "1.0.7","@radix-ui/react-progress": "1.0.3","@radix-ui/react-radio-group": "1.1.3",diff --git a/packages/ui/src/components/navigation-menu.tsx b/packages/ui/src/components/navigation-menu.tsxnew file mode 100644index 000000000..2b3d741fc--- /dev/null+++ b/packages/ui/src/components/navigation-menu.tsx@@ -0,0 +1,128 @@+import * as React from "react";+import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";+import { cva } from "class-variance-authority";+import { ChevronDown } from "lucide-react";++import { cn } from "@/lib/utils";++const NavigationMenu = React.forwardRef<+ React.ElementRef<typeof NavigationMenuPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>+>(({ className, children, ...props }, ref) => (+ <NavigationMenuPrimitive.Root+ ref={ref}+ className={cn(+ "relative z-10 flex max-w-max flex-1 items-center justify-center",+ className+ )}+ {...props}+ >+ {children}+ <NavigationMenuViewport />+ </NavigationMenuPrimitive.Root>+));+NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;++const NavigationMenuList = React.forwardRef<+ React.ElementRef<typeof NavigationMenuPrimitive.List>,+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>+>(({ className, ...props }, ref) => (+ <NavigationMenuPrimitive.List+ ref={ref}+ className={cn(+ "group flex flex-1 list-none items-center justify-center space-x-1",+ className+ )}+ {...props}+ />+));+NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;++const NavigationMenuItem = NavigationMenuPrimitive.Item;++const navigationMenuTriggerStyle = cva(+ "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"+);++const NavigationMenuTrigger = React.forwardRef<+ React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>+>(({ className, children, ...props }, ref) => (+ <NavigationMenuPrimitive.Trigger+ ref={ref}+ className={cn(navigationMenuTriggerStyle(), "group", className)}+ {...props}+ >+ {children}{" "}+ <ChevronDown+ className="relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180"+ aria-hidden="true"+ />+ </NavigationMenuPrimitive.Trigger>+));+NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;++const NavigationMenuContent = React.forwardRef<+ React.ElementRef<typeof NavigationMenuPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>+>(({ className, ...props }, ref) => (+ <NavigationMenuPrimitive.Content+ ref={ref}+ className={cn(+ "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",+ className+ )}+ {...props}+ />+));+NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;++const NavigationMenuLink = NavigationMenuPrimitive.Link;++const NavigationMenuViewport = React.forwardRef<+ React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>+>(({ className, ...props }, ref) => (+ <div className={cn("absolute left-0 top-full flex justify-center")}>+ <NavigationMenuPrimitive.Viewport+ className={cn(+ "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",+ className+ )}+ ref={ref}+ {...props}+ />+ </div>+));+NavigationMenuViewport.displayName =+ NavigationMenuPrimitive.Viewport.displayName;++const NavigationMenuIndicator = React.forwardRef<+ React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>+>(({ className, ...props }, ref) => (+ <NavigationMenuPrimitive.Indicator+ ref={ref}+ className={cn(+ "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",+ className+ )}+ {...props}+ >+ <div className="relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" />+ </NavigationMenuPrimitive.Indicator>+));+NavigationMenuIndicator.displayName =+ NavigationMenuPrimitive.Indicator.displayName;++export {+ navigationMenuTriggerStyle,+ NavigationMenu,+ NavigationMenuList,+ NavigationMenuItem,+ NavigationMenuContent,+ NavigationMenuTrigger,+ NavigationMenuLink,+ NavigationMenuIndicator,+ NavigationMenuViewport,+};diff --git a/packages/ui/src/index.tsx b/packages/ui/src/index.tsxindex 93421518d..d603697b9 100644--- a/packages/ui/src/index.tsx+++ b/packages/ui/src/index.tsx@@ -37,3 +37,4 @@ export * from "./components/toggle";export * from "./components/collabsible";export * from "./components/sonner";export * from "./components/sortable";+export * from "./components/navigation-menu";diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 59ef559e7..7cdf49b5d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1052,6 +1052,9 @@ importers:'@radix-ui/react-label':specifier: 2.0.2version: 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-navigation-menu':+ specifier: 1.2.0+ version: 1.2.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-popover':specifier: 1.0.7version: 1.0.7(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])@@ -3593,6 +3596,9 @@ packages:'@radix-ui/[email protected]':resolution: {integrity: sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA==}+'@radix-ui/[email protected]':resolution: {integrity: sha512-fDG7jcoNKVjSK6yfmuAs0EnPDro0WMXIhMtXdTBWqEioVW206ku+4Lw07e+13lUkFkpoEQ2PdeMIAGpdqEAmDg==}peerDependencies:@@ -3684,6 +3690,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-GZsZslMJEyo1VKm5L1ZJY8tGDxZNPAoUeQUIbKeJfoi7Q4kmig5AsgLMYYuyYbfjd8fBmFORAIwYAkXMnXZgZw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==}peerDependencies:@@ -3698,6 +3717,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-R5XaDj06Xul1KGb+WP8qiOh7tKJNz2durpLBXAGZjSVtctcRFCuEvy2gtMwRJGePwQQE5nV77gs4FwRi8T+r2g==}peerDependencies:@@ -3720,6 +3748,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-OKrckBy+sMEgYM/sMmqmErVn0kZqrHPJze+Ql3DzYsDDp0hl0L62nx/2122/Bvps1qz645jlcu2tD9lrRSdf8A==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-hJtRy/jPULGQZceSAP2Re6/4NpKo8im6V8P2hUqZsdFiSL8l35kYsw3qbRI6Ay5mQd2+wlLqje770eq+RJ3yZg==}peerDependencies:@@ -3755,6 +3792,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-7UpBa/RKMoHJYjie1gkF1DlK8l1fdU/VKDpoS3rCCo8YBJR294GwcEHyxHw72yvphJ7ld0AXEcSLAzY2F/WyCg==}peerDependencies:@@ -3781,6 +3827,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-/UovfmmXGptwGcBQawLzvn2jOfM0t4z3/uKffoBlj724+n3FvBbZ7M0aaBOmkp6pqFYpO4yx8tSVJjx3Fl2jig==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-i6TuFOoWmLWq+M/eCLGd/bQ2HfAX1RJgvrBQ6AQLmzfvsLdefxbWu8G9zczcPFfcSPehz9GcpF6K9QYreFV8hA==}peerDependencies:@@ -3851,6 +3910,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-N5ehvlM7qoTLx7nWPodsPYPgMzA5WM8zZChQg8nyFJKnDO5WHdba1vv5/H6IO5LtJMfD2Q3wh1qHFGNtK0w3bQ==}peerDependencies:@@ -3877,6 +3945,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-OQ8tcwAOR0DhPlSY3e4VMXeHiol7la4PPdJWhhwJiJA+NLX0SaCaonOkRnI3gCDHoZ7Fo7bb/G6q25fRM2Y+3Q==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-shtvVnlsxT6faMnK/a7n0wptwBD23xc1Z5mdrtKLwVEfsEMXodS0r5s0/g5P0hX//EKYZS2sxUjqfzlg52ZSnQ==}peerDependencies:@@ -3942,6 +4023,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Gq6wuRN/asf9H/E/VzdKoUtT8GC9PQc9z40/vEr0VCJ4u5XvvhWIrSsCB6vD2/cH7ugTdSfYq9fLJCcM00acrQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-yi58uVyoAcK/Nq1inRY56ZSjKypBNKTa/1mcL8qdl6oJeEaDbOldlzrGn7P6Q3Id5d+SYNGc5AJgc4vGhjs5+g==}peerDependencies:@@ -3955,6 +4049,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-5G6Om/tYSxjSeEdrb1VfKkfZfn/1IlPWd731h2RfPuSbIfNUgfqAwbKfJCg/PP6nuUCTrYzalwHSpSinoWoCag==}peerDependencies:@@ -4034,6 +4141,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-mxm87F88HyHztsI7N+ZUmEoARGkC22YVW5CaC+Byc+HRpuvCrOBPTAnXgf+tZ/7i0Sg/eOePGdMhUKhPaQEqow==}peerDependencies:@@ -4095,6 +4211,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-Svl5GY5FQeN758fWKrjM6Qb7asvXeiZltlT4U2gVfl8Gx5UAv2sMR0LWo8yhsIZh2oQ0eFdZ59aoOOMV7b47VA==}peerDependencies:@@ -4104,6 +4229,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-vyL82j40hcFicA+M4Ex7hVkB9vHgSse1ZWomAqV2Je3RleKGO5iM8KMOEtfoSB0PnIelMd2lATjTGMYqN5ylTg==}peerDependencies:@@ -4113,6 +4247,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-L7vwWlR1kTTQ3oh7g1O0CBF3YCyyTj8NmhLR+phShpyA50HCfBFKVJTpshm9PzLiKmehsrQzTYTpX9HvmC9rhw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==}peerDependencies:@@ -4122,6 +4265,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-cV5La9DPwiQ7S0gf/0qiD6YgNqM5Fk97Kdrlc5yBcrF3jyEZQwm7vYFqMo4IfeHgJXsRaMvLABFtd0OVEmZhDw==}peerDependencies:@@ -4131,6 +4283,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Z/e78qg2YFnnXcW88A4JmTtm4ADckLno6F7OXotmkQfeuCVaKuYzqAATPhVzl3delXE7CxIV8shofPn3jPc5Og==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-Cq5DLuSiuYVKNU8orzJMbl15TXilTnJKUCltMVQg53BQOF1/C5toAaGrowkgksdBQ9H+SRL23g0HDmg9tvmxXw==}peerDependencies:@@ -4162,6 +4323,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-N8MDZqtgCgG5S3aV60INAB475osJousYpZ4cTJ2cFbMpdHS5Y6loLTH8LPtkj2QN0x93J30HT/M3qJXM0+lyeQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==}@@ -13025,6 +13199,8 @@ snapshots:dependencies:'@babel/runtime': 7.23.2+ '@radix-ui/[email protected]': {}+'@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13128,6 +13304,18 @@ snapshots:'@types/react': 18.3.3'@types/react-dom': 18.3.0+ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.3+ '@types/react-dom': 18.3.0+'@radix-ui/[email protected]([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13140,6 +13328,12 @@ snapshots:optionalDependencies:'@types/react': 18.3.3+ dependencies:+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.3+'@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13162,6 +13356,12 @@ snapshots:optionalDependencies:'@types/react': 18.3.3+ dependencies:+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.3+'@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13215,6 +13415,12 @@ snapshots:optionalDependencies:'@types/react': 18.3.3+ dependencies:+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.3+'@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13243,6 +13449,19 @@ snapshots:'@types/react': 18.3.3'@types/react-dom': 18.3.0+ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.0+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.0(@types/[email protected])([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.3+ '@types/react-dom': 18.3.0+'@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13316,6 +13535,13 @@ snapshots:optionalDependencies:'@types/react': 18.3.3+ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.3+'@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13353,6 +13579,28 @@ snapshots:'@types/react': 18.3.3'@types/react-dom': 18.3.0+ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.0+ '@radix-ui/react-collection': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.1.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.3+ '@types/react-dom': 18.3.0+'@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13427,6 +13675,16 @@ snapshots:'@types/react': 18.3.3'@types/react-dom': 18.3.0+ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.3+ '@types/react-dom': 18.3.0+'@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13437,6 +13695,15 @@ snapshots:'@types/react': 18.3.3'@types/react-dom': 18.3.0+ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.3+ '@types/react-dom': 18.3.0+'@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13539,6 +13806,13 @@ snapshots:optionalDependencies:'@types/react': 18.3.3+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.3+'@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.23.2@@ -13612,6 +13886,12 @@ snapshots:optionalDependencies:'@types/react': 18.3.3+ dependencies:+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.3+dependencies:'@babel/runtime': 7.23.2@@ -13620,6 +13900,13 @@ snapshots:optionalDependencies:'@types/react': 18.3.3+ dependencies:+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.3+dependencies:'@babel/runtime': 7.23.2@@ -13628,6 +13915,13 @@ snapshots:optionalDependencies:'@types/react': 18.3.3+ dependencies:+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.3+dependencies:'@babel/runtime': 7.23.2@@ -13635,6 +13929,12 @@ snapshots:optionalDependencies:'@types/react': 18.3.3+ dependencies:+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.3+dependencies:'@babel/runtime': 7.23.2@@ -13642,6 +13942,12 @@ snapshots:optionalDependencies:'@types/react': 18.3.3+ dependencies:+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.3+dependencies:'@babel/runtime': 7.23.2@@ -13668,6 +13974,15 @@ snapshots:'@types/react': 18.3.3'@types/react-dom': 18.3.0+ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.3+ '@types/react-dom': 18.3.0+'@radix-ui/[email protected]':dependencies:'@babel/runtime': 7.23.2