Skip to content

Open-source status page, incident response and uptime monitoring

feat: playground with tracker and router interception (#15)

Maximilian Kaskebe004c704d69
diff --git a/apps/web/package.json b/apps/web/package.json
index ccfdbfd80..9fc7db89d 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -14,10 +14,16 @@
"@openstatus/db": "workspace:^",
"@openstatus/tinybird": "workspace:*",
"@openstatus/upstash": "workspace:*",
+ "@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-dialog": "^1.0.4",
+ "@radix-ui/react-dropdown-menu": "^2.0.5",
+ "@radix-ui/react-hover-card": "^1.0.6",
+ "@radix-ui/react-select": "^1.2.2",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.4",
+ "@radix-ui/react-tooltip": "^1.0.6",
"@t3-oss/env-nextjs": "0.4.1",
+ "@tanstack/react-table": "^8.9.3",
"@trpc/client": "10.32.0",
"@trpc/next": "10.32.0",
"@trpc/react-query": "10.32.0",
@@ -30,7 +36,7 @@
"date-fns": "^2.30.0",
"lucide-react": "^0.244.0",
"micro": "10.0.1",
- "next": "13.4.6",
+ "next": "13.4.8",
"next-plausible": "3.7.2",
"react": "18.2.0",
"react-dom": "18.2.0",
diff --git a/apps/web/src/app/_components/event-table.tsx b/apps/web/src/app/_components/event-table.tsx
index b46f32a76..eeca608b2 100644
--- a/apps/web/src/app/_components/event-table.tsx
+++ b/apps/web/src/app/_components/event-table.tsx
@@ -2,9 +2,8 @@
import React from "react";
import { formatDistance } from "date-fns";
-import type { z } from "zod";
-import type { tinyBirdEventType } from "@openstatus/tinybird";
+import type { Ping } from "@openstatus/tinybird";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
@@ -19,12 +18,7 @@ import {
} from "@/components/ui/table";
import { cn } from "@/lib/utils";
-export function EventTable({
- events,
-}: {
- // FIXME: should be return type
- events: z.infer<typeof tinyBirdEventType>[];
-}) {
+export function EventTable({ events }: { events: Ping[] }) {
const [open, toggle] = React.useReducer((state) => !state, false);
return (
<div className="relative max-h-56 overflow-hidden">
@@ -37,16 +31,15 @@ export function EventTable({
<TableRow className="sticky top-0">
<TableHead>Time</TableHead>
<TableHead>Status</TableHead>
- <TableHead>Latency</TableHead>
- <TableHead className="text-right">URL</TableHead>
+ <TableHead>Latency (ms)</TableHead>
+ <TableHead className="text-right">Region</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{events.map((event) => {
const isOk = event.statusCode === 200;
- const url = new URL(event.url);
return (
- <TableRow key={event.timestamp}>
+ <TableRow key={`${event.timestamp}-${event.region}`}>
<TableCell className="font-medium">
{formatDistance(new Date(event.timestamp), new Date(), {
addSuffix: true,
@@ -72,11 +65,11 @@ export function EventTable({
/>
</Badge>
</TableCell>
- <TableCell className="text-muted-foreground">
+ <TableCell className="text-muted-foreground font-light">
{event.latency}
</TableCell>
- <TableCell className="truncate text-right font-light">
- {url.pathname}
+ <TableCell className="text-muted-foreground truncate text-right">
+ {event.region}
</TableCell>
</TableRow>
);
diff --git a/apps/web/src/app/_components/input-search.tsx b/apps/web/src/app/_components/input-search.tsx
index 91dbbe796..b50796c8e 100644
--- a/apps/web/src/app/_components/input-search.tsx
+++ b/apps/web/src/app/_components/input-search.tsx
@@ -1,13 +1,16 @@
"use client";
import * as React from "react";
+import { Command as CommandPrimitive, useCommandState } from "cmdk";
+
+import type { Ping } from "@openstatus/tinybird";
+
import {
Command,
CommandEmpty,
CommandGroup,
CommandItem,
} from "@/components/ui/command";
-import { Command as CommandPrimitive, useCommandState } from "cmdk";
// TODO: once stable, use the shallow route to store the search params inside of the search params
@@ -16,14 +19,7 @@ export function InputSearch({
onSearch,
}: {
onSearch(value: Record<string, string>): void;
- // FIXME: should be return type
- events: {
- id: string;
- timestamp: number;
- statusCode: number;
- latency: number;
- url: string;
- }[];
+ events: Ping[];
}) {
const inputRef = React.useRef<HTMLInputElement>(null);
const [open, setOpen] = React.useState<boolean>(false);
@@ -51,21 +47,20 @@ export function InputSearch({
() =>
events.reduce(
(prev, curr) => {
- const { pathname } = new URL(curr.url);
return {
...prev,
status: [...new Set([curr.statusCode, ...(prev.status || [])])],
- pathname: [...new Set([pathname, ...(prev.pathname || [])])],
+ region: [...new Set([curr.region, ...(prev.region || [])])],
};
},
// defaultState
- { limit: [10, 25, 50], status: [], pathname: [] } as {
+ { limit: [10, 25, 50], status: [], region: [] } as {
status: number[];
limit: number[];
- pathname: string[];
- }
+ region: string[];
+ },
),
- [events]
+ [events],
);
type SearchKey = keyof typeof search;
@@ -105,12 +100,12 @@ export function InputSearch({
setCurrentWord(word);
}}
placeholder={`${events.length} total logs found...`}
- className="flex-1 rounded-md border border-input bg-transparent px-3 py-2 text-sm outline-none ring-offset-background placeholder:text-muted-foreground focus:ring-2 focus:ring-ring focus:ring-offset-2"
+ className="border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring flex-1 rounded-md border bg-transparent px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-offset-2"
/>
<div className="relative mt-2">
{open ? (
- <div className="z-10 absolute top-0 w-full rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in">
- <CommandGroup className="h-full overflow-auto">
+ <div className="bg-popover text-popover-foreground animate-in absolute top-0 z-10 w-full rounded-md border shadow-md outline-none">
+ <CommandGroup className="max-h-64 overflow-auto">
{Object.keys(search).map((key) => {
if (
inputValue.includes(`${key}:`) &&
@@ -137,7 +132,7 @@ export function InputSearch({
const prefix = isStarting ? "" : " ";
const input = prev.replace(
`${prefix}${currentWord}`,
- `${prefix}${value}`
+ `${prefix}${value}`,
);
return `${input}:`;
});
@@ -146,7 +141,7 @@ export function InputSearch({
className="group"
>
{key}
- <span className="ml-1 hidden truncate text-muted-foreground/90 group-aria-[selected=true]:block">
+ <span className="text-muted-foreground/90 ml-1 hidden truncate group-aria-[selected=true]:block">
{search[key as SearchKey]
.map((str) => `[${str}]`)
.join(" ")}
diff --git a/apps/web/src/app/_components/table-input-container.tsx b/apps/web/src/app/_components/table-input-container.tsx
index cc8a6ff15..44a5dbf67 100644
--- a/apps/web/src/app/_components/table-input-container.tsx
+++ b/apps/web/src/app/_components/table-input-container.tsx
@@ -1,29 +1,22 @@
"use client";
import React from "react";
-import type { z } from "zod";
-import type { tinyBirdEventType } from "@openstatus/tinybird";
+import type { Ping } from "@openstatus/tinybird";
import { EventTable } from "./event-table";
import { InputSearch } from "./input-search";
// TODO: once stable, use the shallow route to store the search params inside of the search params
-export function TableInputContainer({
- events,
-}: {
- // FIXME: should be return type
- events: z.infer<typeof tinyBirdEventType>[];
-}) {
+export function TableInputContainer({ events }: { events: Ping[] }) {
const [search, setSearch] = React.useState<Record<string, string>>({});
const filteredEvents = events
.filter((event) => {
- const url = new URL(event.url);
if (search?.status && event.statusCode !== Number(search.status)) {
return false;
- } else if (search?.pathname && url.pathname !== search.pathname) {
+ } else if (search?.region && event.region !== search.region) {
return false;
}
return true;
diff --git a/apps/web/src/app/api/checker/cron/_cron.ts b/apps/web/src/app/api/checker/cron/_cron.ts
index f9007afac..8faa62fc6 100644
--- a/apps/web/src/app/api/checker/cron/_cron.ts
+++ b/apps/web/src/app/api/checker/cron/_cron.ts
@@ -4,9 +4,9 @@ import type { z } from "zod";
import { db, eq } from "@openstatus/db";
import { monitor, selectMonitorSchema } from "@openstatus/db/src/schema";
+import { availableRegions } from "@openstatus/tinybird";
import { env } from "@/env.mjs";
-import { availableRegions } from "../regions/_checker";
const frequencyAvailable = selectMonitorSchema.pick({ frequency: true });
@@ -21,6 +21,7 @@ export const cron = async ({
token: env.QSTASH_TOKEN,
});
+ const timestamp = Date.now();
// FIXME: Wait until db is ready
// const result = await db
// .select()
@@ -33,6 +34,7 @@ export const cron = async ({
// url: `${DEFAULT_URL}/api/checker/region/${region}`,
// body: {
// url: row.url,
+ // cronTimestamp: timestamp, // used to group all region requests
// },
// });
// }
@@ -44,6 +46,7 @@ export const cron = async ({
url: `${DEFAULT_URL}/api/checker/regions/${region}`,
body: {
url: `${DEFAULT_URL}/api/ping`,
+ cronTimestamp: timestamp, // used to group all region requests - can be also cronId
},
});
}
diff --git a/apps/web/src/app/api/checker/regions/_checker.ts b/apps/web/src/app/api/checker/regions/_checker.ts
index a242780cb..f48ce46b1 100644
--- a/apps/web/src/app/api/checker/regions/_checker.ts
+++ b/apps/web/src/app/api/checker/regions/_checker.ts
@@ -1,42 +1,29 @@
import { Receiver } from "@upstash/qstash/cloudflare";
import { z } from "zod";
-import { publishPingResponse, Tinybird } from "@openstatus/tinybird";
+import {
+ publishPingResponse,
+ tbIngestPingResponse,
+ Tinybird,
+} from "@openstatus/tinybird";
import { env } from "@/env.mjs";
-export const monitorSchema = z.object({
- url: z.string().url(),
+export const monitorSchema = tbIngestPingResponse.pick({
+ url: true,
+ cronTimestamp: true,
});
-export const availableRegions = [
- "arn1",
- "bom1",
- "cdg1",
- "cle1",
- "cpt1",
- "dub1",
- "ewr1",
- "fra1",
- "gru1",
- "hkg1",
- "hnd1",
- "icn1",
- "kix1",
- "lhr1",
- "pdx1",
- "sfo1",
- "sin1",
- "syd1",
-] as const;
-
-export const availableRegionsEnum = z.enum(availableRegions);
-
const tb = new Tinybird({ token: env.TINY_BIRD_API_KEY });
const monitor = async (
res: Response,
- { latency, url, region }: { latency: number; url: string; region: string },
+ {
+ latency,
+ url,
+ region,
+ cronTimestamp,
+ }: { latency: number; url: string; region: string; cronTimestamp: number },
) => {
await publishPingResponse(tb)({
id: "openstatus",
@@ -48,6 +35,18 @@ const monitor = async (
latency,
url,
region,
+ cronTimestamp,
+ // TODO: discuss how to use the metadata properly
+ // metadata: {
+ // status: res.status,
+ // statusText: res.statusText,
+ // ok: res.ok,
+ // headers: res.headers,
+ // // body: res.body ? JSON.parse(res.body),
+ // bodyUsed: res.bodyUsed,
+ // redirected: res.redirected,
+ // type: res.type,
+ // },
});
};
@@ -67,11 +66,18 @@ export const checker = async (request: Request, region: string) => {
throw new Error("Could not parse request");
}
- const data = monitorSchema.parse(jsonData);
+ const result = monitorSchema.safeParse(jsonData);
+
+ if (!result.success) {
+ throw new Error("Invalid response body");
+ }
+
+ const { url, cronTimestamp } = result.data;
+
const startTime = Date.now();
- const res = await fetch(data.url, { cache: "no-store" });
+ const res = await fetch(url, { cache: "no-store" });
const endTime = Date.now();
const latency = endTime - startTime;
- await monitor(res, { latency, url: data.url, region: region });
+ await monitor(res, { latency, url, region, cronTimestamp });
};
diff --git a/apps/web/src/app/monitor/[id]/[region]/page.tsx b/apps/web/src/app/monitor/[id]/[region]/page.tsx
new file mode 100644
index 000000000..e52865c43
--- /dev/null
+++ b/apps/web/src/app/monitor/[id]/[region]/page.tsx
@@ -0,0 +1,17 @@
+import type { Region } from "@openstatus/tinybird";
+
+import { columns } from "@/components/monitor/columns";
+import { DataTable } from "@/components/monitor/data-table";
+import { getResponseListData } from "@/lib/tb";
+
+export default async function Monitor({
+ params,
+}: {
+ params: { id: string; region: Region };
+}) {
+ const data = await getResponseListData({
+ siteId: params.id,
+ region: params.region,
+ });
+ return <DataTable columns={columns} data={data} />;
+}
diff --git a/apps/web/src/app/monitor/[id]/page.tsx b/apps/web/src/app/monitor/[id]/page.tsx
new file mode 100644
index 000000000..f95b9e3bd
--- /dev/null
+++ b/apps/web/src/app/monitor/[id]/page.tsx
@@ -0,0 +1,8 @@
+import { columns } from "@/components/monitor/columns";
+import { DataTable } from "@/components/monitor/data-table";
+import { getResponseListData } from "@/lib/tb";
+
+export default async function Monitor({ params }: { params: { id: string } }) {
+ const data = await getResponseListData({ siteId: params.id });
+ return <DataTable columns={columns} data={data} />;
+}
diff --git a/apps/web/src/app/monitor/layout.tsx b/apps/web/src/app/monitor/layout.tsx
new file mode 100644
index 000000000..4a7b8bfa9
--- /dev/null
+++ b/apps/web/src/app/monitor/layout.tsx
@@ -0,0 +1,21 @@
+import * as React from "react";
+
+import { Footer } from "@/components/layout/footer";
+
+// same layout as /play
+export default function MonitorLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
+ return (
+ <main className="container mx-auto flex min-h-screen w-full flex-col items-center justify-center space-y-6 p-4 md:p-8">
+ <div className="flex w-full flex-1 items-center justify-center">
+ <div className="border-border z-10 w-full rounded-lg border p-3 backdrop-blur-[2px] md:p-6">
+ {children}
+ </div>
+ </div>
+ <Footer />
+ </main>
+ );
+}
diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx
index a2754e606..5d0b1f962 100644
--- a/apps/web/src/app/page.tsx
+++ b/apps/web/src/app/page.tsx
@@ -1,20 +1,14 @@
-import { getResponseList, Tinybird } from "@openstatus/tinybird";
+import Link from "next/link";
-import MOCK from "@/app/_mocks/response-list.json";
+import { Footer } from "@/components/layout/footer";
import { Badge } from "@/components/ui/badge";
-import { env } from "@/env.mjs";
+import { Button } from "@/components/ui/button";
+import { getResponseListData } from "@/lib/tb";
import { HeroForm } from "./_components/hero-form";
import { TableInputContainer } from "./_components/table-input-container";
-const tb = new Tinybird({ token: env.TINY_BIRD_API_KEY });
-
export default async function Page() {
- // REMINDER: to be removed
- let data = MOCK;
- if (process.env.NODE_ENV !== "development") {
- const res = await getResponseList(tb)({});
- data = res.data;
- }
+ const data = await getResponseListData({ siteId: "openstatus" });
return (
<main className="flex min-h-screen w-full flex-col space-y-6 p-4 md:p-8">
@@ -25,10 +19,25 @@ export default async function Page() {
<h1 className="text-foreground font-cal mb-6 mt-2 text-3xl">
Open-source monitoring service
</h1>
- <p className="text-muted-foreground mb-4">
+ <p className="text-muted-foreground">
OpenStatus is an open source alternative to your current
monitoring service with beautiful status page.
</p>
+ {/* think of using the `A total of X events as Link as well */}
+ <div className="my-4 flex items-center justify-center gap-2">
+ <Button asChild variant="outline" className="rounded-full">
+ <Link href="/play">Playground</Link>
+ </Button>
+ <Button asChild variant="link">
+ <a
+ href="https://github.com/mxkaske/openstatus"
+ rel="noreferrer"
+ target="_blank"
+ >
+ Star on GitHub
+ </a>
+ </Button>
+ </div>
<HeroForm />
</div>
</div>
@@ -38,38 +47,7 @@ export default async function Page() {
</div>
</div>
</div>
- <footer className="text-muted-foreground mx-auto grid gap-4 text-sm">
- <p className="border-border rounded-full border px-4 py-2 text-center backdrop-blur-[2px]">
- A collaboration between{" "}
- <a
- href="https://twitter.com/mxkaske"
- target="_blank"
- rel="noreferrer"
- className="text-foreground underline underline-offset-4 hover:no-underline"
- >
- @mxkaske
- </a>{" "}
- and{" "}
- <a
- href="https://twitter.com/thibaultleouay"
- target="_blank"
- rel="noreferrer"
- className="text-foreground underline underline-offset-4 hover:no-underline"
- >
- @thibaultleouay
- </a>
- <span className="text-muted-foreground/70 mx-1">&bull;</span>
- See on{" "}
- <a
- href="https://github.com/mxkaske/openstatus"
- target="_blank"
- rel="noreferrer"
- className="text-foreground underline underline-offset-4 hover:no-underline"
- >
- GitHub
- </a>
- </p>
- </footer>
+ <Footer />
</main>
);
}
diff --git a/apps/web/src/app/play/@modal/(..)monitor/[id]/modal.tsx b/apps/web/src/app/play/@modal/(..)monitor/[id]/modal.tsx
new file mode 100644
index 000000000..b68a28bb0
--- /dev/null
+++ b/apps/web/src/app/play/@modal/(..)monitor/[id]/modal.tsx
@@ -0,0 +1,24 @@
+"use client";
+
+import { useRouter } from "next/navigation";
+
+import { Dialog, DialogContent } from "@/components/ui/dialog";
+
+export function Modal({ children }: { children: React.ReactNode }) {
+ const router = useRouter();
+
+ const handleOpenChange = (open: boolean) => {
+ if (!open) {
+ router.back();
+ }
+ };
+
+ return (
+ <Dialog open onOpenChange={handleOpenChange}>
+ {/* overflow-auto should happen inside content table */}
+ <DialogContent className="max-h-screen w-full overflow-auto sm:max-w-3xl">
+ {children}
+ </DialogContent>
+ </Dialog>
+ );
+}
diff --git a/apps/web/src/app/play/@modal/(..)monitor/[id]/page.tsx b/apps/web/src/app/play/@modal/(..)monitor/[id]/page.tsx
new file mode 100644
index 000000000..a8506fccf
--- /dev/null
+++ b/apps/web/src/app/play/@modal/(..)monitor/[id]/page.tsx
@@ -0,0 +1,13 @@
+import { columns } from "@/components/monitor/columns";
+import { DataTable } from "@/components/monitor/data-table";
+import { getResponseListData } from "@/lib/tb";
+import { Modal } from "./modal";
+
+export default async function Monitor({ params }: { params: { id: string } }) {
+ const data = await getResponseListData({ siteId: params.id });
+ return (
+ <Modal>
+ <DataTable columns={columns} data={data} />
+ </Modal>
+ );
+}
diff --git a/apps/web/src/app/play/@modal/default.tsx b/apps/web/src/app/play/@modal/default.tsx
new file mode 100644
index 000000000..6ddf1b76f
--- /dev/null
+++ b/apps/web/src/app/play/@modal/default.tsx
@@ -0,0 +1,3 @@
+export default function Default() {
+ return null;
+}
diff --git a/apps/web/src/app/play/default.tsx b/apps/web/src/app/play/default.tsx
new file mode 100644
index 000000000..6ddf1b76f
--- /dev/null
+++ b/apps/web/src/app/play/default.tsx
@@ -0,0 +1,3 @@
+export default function Default() {
+ return null;
+}
diff --git a/apps/web/src/app/play/layout.tsx b/apps/web/src/app/play/layout.tsx
new file mode 100644
index 000000000..099f6cdd6
--- /dev/null
+++ b/apps/web/src/app/play/layout.tsx
@@ -0,0 +1,23 @@
+import * as React from "react";
+
+import { Footer } from "@/components/layout/footer";
+
+export default function PlayLayout({
+ children,
+ modal,
+}: {
+ children: React.ReactNode;
+ modal: React.ReactNode;
+}) {
+ return (
+ <main className="container mx-auto flex min-h-screen w-full flex-col items-center justify-center space-y-6 p-4 md:p-8">
+ <div className="flex w-full flex-1 items-center justify-center">
+ <div className="border-border z-10 w-full rounded-lg border p-3 backdrop-blur-[2px] md:p-6">
+ {children}
+ {modal}
+ </div>
+ </div>
+ <Footer />
+ </main>
+ );
+}
diff --git a/apps/web/src/app/play/page.tsx b/apps/web/src/app/play/page.tsx
new file mode 100644
index 000000000..0f8293dbf
--- /dev/null
+++ b/apps/web/src/app/play/page.tsx
@@ -0,0 +1,13 @@
+import { Tracker } from "@/components/monitor/tracker";
+import { getResponseListData } from "@/lib/tb";
+
+export default async function PlayPage() {
+ const data = await getResponseListData({ siteId: "openstatus" });
+ return (
+ <div className="flex flex-col items-center justify-center gap-4">
+ <p className="mb-2 text-2xl font-semibold">Status</p>
+ <p className="text-lg font-light">Learn more on how to build your own.</p>
+ <Tracker data={data} />
+ </div>
+ );
+}
diff --git a/apps/web/src/components/layout/footer.tsx b/apps/web/src/components/layout/footer.tsx
new file mode 100644
index 000000000..4571b7b02
--- /dev/null
+++ b/apps/web/src/components/layout/footer.tsx
@@ -0,0 +1,36 @@
+export function Footer() {
+ return (
+ <footer className="text-muted-foreground mx-auto grid gap-4 text-sm">
+ <p className="border-border rounded-full border px-4 py-2 text-center backdrop-blur-[2px]">
+ A collaboration between{" "}
+ <a
+ href="https://twitter.com/mxkaske"
+ target="_blank"
+ rel="noreferrer"
+ className="text-foreground underline underline-offset-4 hover:no-underline"
+ >
+ @mxkaske
+ </a>{" "}
+ and{" "}
+ <a
+ href="https://twitter.com/thibaultleouay"
+ target="_blank"
+ rel="noreferrer"
+ className="text-foreground underline underline-offset-4 hover:no-underline"
+ >
+ @thibaultleouay
+ </a>
+ <span className="text-muted-foreground/70 mx-1">&bull;</span>
+ See on{" "}
+ <a
+ href="https://github.com/mxkaske/openstatus"
+ target="_blank"
+ rel="noreferrer"
+ className="text-foreground underline underline-offset-4 hover:no-underline"
+ >
+ GitHub
+ </a>
+ </p>
+ </footer>
+ );
+}
diff --git a/apps/web/src/components/monitor/columns.tsx b/apps/web/src/components/monitor/columns.tsx
new file mode 100644
index 000000000..dbf93c4f0
--- /dev/null
+++ b/apps/web/src/components/monitor/columns.tsx
@@ -0,0 +1,96 @@
+"use client";
+
+import type { ColumnDef } from "@tanstack/react-table";
+
+import type { Ping } from "@openstatus/tinybird";
+
+import { Badge } from "@/components/ui/badge";
+import { cn } from "@/lib/utils";
+import { DataTableColumnHeader } from "./data-table-column-header";
+import { DataTableRowActions } from "./data-table-row-action";
+
+export const columns: ColumnDef<Ping>[] = [
+ {
+ accessorKey: "timestamp",
+ header: ({ column }) => (
+ <DataTableColumnHeader column={column} title="Date" />
+ ),
+ cell: ({ row }) => {
+ return (
+ <div>
+ {new Intl.DateTimeFormat("en", {
+ year: "numeric",
+ month: "numeric",
+ day: "numeric",
+ hour: "numeric",
+ minute: "numeric",
+ hour12: false, // dismiss hydration issue ("_PM" and "__PM")
+ }).format(row.getValue("timestamp"))}
+ </div>
+ );
+ },
+ },
+ {
+ accessorKey: "statusCode",
+ header: ({ column }) => (
+ <DataTableColumnHeader column={column} title="Status" />
+ ),
+ cell: ({ row }) => {
+ const statusCode = String(row.getValue("statusCode"));
+ const isOk = statusCode.startsWith("2");
+ return (
+ <Badge
+ variant="outline"
+ className={cn(
+ "px-2 py-0.5 text-xs",
+ isOk ? "border-green-100 bg-green-50" : "border-red-100 bg-red-50",
+ )}
+ >
+ {statusCode}
+ <div
+ className={cn(
+ "bg-foreground ml-1 h-1.5 w-1.5 rounded-full",
+ isOk ? "bg-green-500" : "bg-red-500",
+ )}
+ />
+ </Badge>
+ );
+ },
+ filterFn: (row, id, value) => {
+ // needed because value is number, not string
+ return `${row.getValue(id)}`.includes(`${value}`);
+ },
+ },
+ {
+ accessorKey: "latency",
+ header: ({ column }) => (
+ <DataTableColumnHeader column={column} title="Latency" />
+ ),
+ },
+ {
+ accessorKey: "region",
+ header: ({ column }) => (
+ <DataTableColumnHeader column={column} title="Region" />
+ ),
+ },
+ {
+ accessorKey: "url",
+ header: ({ column }) => (
+ <DataTableColumnHeader column={column} title="URL" />
+ ),
+ cell: ({ row }) => {
+ const url = new URL(row.getValue("url"));
+ return <div>{url.pathname}</div>;
+ },
+ },
+ {
+ id: "actions",
+ cell: ({ row }) => {
+ return (
+ <div className="text-right">
+ <DataTableRowActions row={row} />
+ </div>
+ );
+ },
+ },
+];
diff --git a/apps/web/src/components/monitor/data-table-column-header.tsx b/apps/web/src/components/monitor/data-table-column-header.tsx
new file mode 100644
index 000000000..e16de1516
--- /dev/null
+++ b/apps/web/src/components/monitor/data-table-column-header.tsx
@@ -0,0 +1,66 @@
+import type { Column } from "@tanstack/react-table";
+import { ChevronsUpDown, EyeOff, SortAsc, SortDesc } from "lucide-react";
+
+import { Button } from "@/components/ui/button";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from "@/components/ui/dropdown-menu";
+import { cn } from "@/lib/utils";
+
+interface DataTableColumnHeaderProps<TData, TValue>
+ extends React.HTMLAttributes<HTMLDivElement> {
+ column: Column<TData, TValue>;
+ title: string;
+}
+
+export function DataTableColumnHeader<TData, TValue>({
+ column,
+ title,
+ className,
+}: DataTableColumnHeaderProps<TData, TValue>) {
+ if (!column.getCanSort()) {
+ return <div className={cn(className)}>{title}</div>;
+ }
+
+ return (
+ <div className={cn("flex items-center space-x-2", className)}>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button
+ variant="ghost"
+ size="sm"
+ className="data-[state=open]:bg-accent -ml-3 h-8"
+ >
+ <span>{title}</span>
+ {column.getIsSorted() === "desc" ? (
+ <SortDesc className="ml-2 h-4 w-4" />
+ ) : column.getIsSorted() === "asc" ? (
+ <SortAsc className="ml-2 h-4 w-4" />
+ ) : (
+ <ChevronsUpDown className="ml-2 h-4 w-4" />
+ )}
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="start">
+ <DropdownMenuItem onClick={() => column.toggleSorting(false)}>
+ <SortAsc className="text-muted-foreground/70 mr-2 h-3.5 w-3.5" />
+ Asc
+ </DropdownMenuItem>
+ <DropdownMenuItem onClick={() => column.toggleSorting(true)}>
+ <SortDesc className="text-muted-foreground/70 mr-2 h-3.5 w-3.5" />
+ Desc
+ </DropdownMenuItem>
+ {/* <DropdownMenuSeparator />
+ <DropdownMenuItem onClick={() => column.toggleVisibility(false)}>
+ <EyeOff className="text-muted-foreground/70 mr-2 h-3.5 w-3.5" />
+ Hide
+ </DropdownMenuItem> */}
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </div>
+ );
+}
diff --git a/apps/web/src/components/monitor/data-table-filter-input.tsx b/apps/web/src/components/monitor/data-table-filter-input.tsx
new file mode 100644
index 000000000..6e6414b52
--- /dev/null
+++ b/apps/web/src/components/monitor/data-table-filter-input.tsx
@@ -0,0 +1,25 @@
+"use client";
+
+import type { Table } from "@tanstack/react-table";
+
+import { Input } from "@/components/ui/input";
+
+interface DataTableFilterInputProps<TData> {
+ table: Table<TData>;
+}
+
+export function DataTableFilterInput<TData>({
+ table,
+}: DataTableFilterInputProps<TData>) {
+ // const isFiltered = table.getState().columnFilters.length > 0;
+ return (
+ <Input
+ placeholder="Filter status code..."
+ value={(table.getColumn("statusCode")?.getFilterValue() as string) ?? ""}
+ onChange={(event) => {
+ table.getColumn("statusCode")?.setFilterValue(event.target.value);
+ }}
+ className="h-8 w-[150px] lg:w-[250px]"
+ />
+ );
+}
diff --git a/apps/web/src/components/monitor/data-table-pagination.tsx b/apps/web/src/components/monitor/data-table-pagination.tsx
new file mode 100644
index 000000000..276ed4352
--- /dev/null
+++ b/apps/web/src/components/monitor/data-table-pagination.tsx
@@ -0,0 +1,94 @@
+import type { Table } from "@tanstack/react-table";
+import {
+ ChevronLeft,
+ ChevronRight,
+ ChevronsLeft,
+ ChevronsRight,
+} from "lucide-react";
+
+import { Button } from "@/components/ui/button";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+
+interface DataTablePaginationProps<TData> {
+ table: Table<TData>;
+}
+
+export function DataTablePagination<TData>({
+ table,
+}: DataTablePaginationProps<TData>) {
+ return (
+ <div className="flex items-center justify-between px-2">
+ <div />
+ <div className="flex items-center space-x-6 lg:space-x-8">
+ <div className="flex items-center space-x-2">
+ <p className="text-sm font-medium">Rows per page</p>
+ <Select
+ value={`${table.getState().pagination.pageSize}`}
+ onValueChange={(value) => {
+ table.setPageSize(Number(value));
+ }}
+ >
+ <SelectTrigger className="h-8 w-[70px]">
+ <SelectValue placeholder={table.getState().pagination.pageSize} />
+ </SelectTrigger>
+ <SelectContent side="top">
+ {[10, 20, 30, 40, 50].map((pageSize) => (
+ <SelectItem key={pageSize} value={`${pageSize}`}>
+ {pageSize}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+ <div className="flex w-[100px] items-center justify-center text-sm font-medium">
+ Page {table.getState().pagination.pageIndex + 1} of{" "}
+ {table.getPageCount()}
+ </div>
+ <div className="flex items-center space-x-2">
+ <Button
+ variant="outline"
+ className="hidden h-8 w-8 p-0 lg:flex"
+ onClick={() => table.setPageIndex(0)}
+ disabled={!table.getCanPreviousPage()}
+ >
+ <span className="sr-only">Go to first page</span>
+ <ChevronsLeft className="h-4 w-4" />
+ </Button>
+ <Button
+ variant="outline"
+ className="h-8 w-8 p-0"
+ onClick={() => table.previousPage()}
+ disabled={!table.getCanPreviousPage()}
+ >
+ <span className="sr-only">Go to previous page</span>
+ <ChevronLeft className="h-4 w-4" />
+ </Button>
+ <Button
+ variant="outline"
+ className="h-8 w-8 p-0"
+ onClick={() => table.nextPage()}
+ disabled={!table.getCanNextPage()}
+ >
+ <span className="sr-only">Go to next page</span>
+ <ChevronRight className="h-4 w-4" />
+ </Button>
+ <Button
+ variant="outline"
+ className="hidden h-8 w-8 p-0 lg:flex"
+ onClick={() => table.setPageIndex(table.getPageCount() - 1)}
+ disabled={!table.getCanNextPage()}
+ >
+ <span className="sr-only">Go to last page</span>
+ <ChevronsRight className="h-4 w-4" />
+ </Button>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/apps/web/src/components/monitor/data-table-row-action.tsx b/apps/web/src/components/monitor/data-table-row-action.tsx
new file mode 100644
index 000000000..fcc704092
--- /dev/null
+++ b/apps/web/src/components/monitor/data-table-row-action.tsx
@@ -0,0 +1,46 @@
+"use client";
+
+import type { Row } from "@tanstack/react-table";
+import { MoreHorizontal } from "lucide-react";
+
+import { tbIngestPingResponse } from "@openstatus/tinybird";
+
+import { Button } from "@/components/ui/button";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuLabel,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from "@/components/ui/dropdown-menu";
+
+interface DataTableRowActionsProps<TData> {
+ row: Row<TData>;
+}
+
+export function DataTableRowActions<TData>({
+ row,
+}: DataTableRowActionsProps<TData>) {
+ const ping = tbIngestPingResponse.parse(row.original); // shouldn't it be tbBuild?
+ return (
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="ghost" className="h-8 w-8 p-0">
+ <span className="sr-only">Open menu</span>
+ <MoreHorizontal className="h-4 w-4" />
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuLabel>Actions</DropdownMenuLabel>
+ <DropdownMenuItem
+ onClick={() => navigator.clipboard.writeText(ping.id)}
+ >
+ Copy ping ID
+ </DropdownMenuItem>
+ <DropdownMenuSeparator />
+ <DropdownMenuItem>View Response</DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ );
+}
diff --git a/apps/web/src/components/monitor/data-table.tsx b/apps/web/src/components/monitor/data-table.tsx
new file mode 100644
index 000000000..371a08ce0
--- /dev/null
+++ b/apps/web/src/components/monitor/data-table.tsx
@@ -0,0 +1,114 @@
+"use client";
+
+import * as React from "react";
+import type {
+ ColumnDef,
+ ColumnFiltersState,
+ SortingState,
+} from "@tanstack/react-table";
+import {
+ flexRender,
+ getCoreRowModel,
+ getFilteredRowModel,
+ getPaginationRowModel,
+ getSortedRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
+
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from "@/components/ui/table";
+import { DataTableFilterInput } from "./data-table-filter-input";
+import { DataTablePagination } from "./data-table-pagination";
+
+interface DataTableProps<TData, TValue> {
+ columns: ColumnDef<TData, TValue>[];
+ data: TData[];
+}
+
+export function DataTable<TData, TValue>({
+ columns,
+ data,
+}: DataTableProps<TData, TValue>) {
+ const [sorting, setSorting] = React.useState<SortingState>([]);
+ const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>(
+ [],
+ );
+
+ const table = useReactTable({
+ data,
+ columns,
+ getCoreRowModel: getCoreRowModel(),
+ getPaginationRowModel: getPaginationRowModel(),
+ onSortingChange: setSorting,
+ getSortedRowModel: getSortedRowModel(),
+ onColumnFiltersChange: setColumnFilters,
+ getFilteredRowModel: getFilteredRowModel(),
+ state: {
+ sorting,
+ columnFilters,
+ },
+ });
+
+ return (
+ <div className="space-y-3">
+ <DataTableFilterInput table={table} />
+ <div className="rounded-md border">
+ <Table>
+ <TableHeader>
+ {table.getHeaderGroups().map((headerGroup) => (
+ <TableRow key={headerGroup.id}>
+ {headerGroup.headers.map((header) => {
+ return (
+ <TableHead key={header.id}>
+ {header.isPlaceholder
+ ? null
+ : flexRender(
+ header.column.columnDef.header,
+ header.getContext(),
+ )}
+ </TableHead>
+ );
+ })}
+ </TableRow>
+ ))}
+ </TableHeader>
+ <TableBody>
+ {table.getRowModel().rows?.length ? (
+ table.getRowModel().rows.map((row) => (
+ <TableRow
+ key={row.id}
+ data-state={row.getIsSelected() && "selected"}
+ >
+ {row.getVisibleCells().map((cell) => (
+ <TableCell key={cell.id}>
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
+ </TableCell>
+ ))}
+ </TableRow>
+ ))
+ ) : (
+ <TableRow>
+ <TableCell
+ colSpan={columns.length}
+ className="h-24 text-center"
+ >
+ No results.
+ </TableCell>
+ </TableRow>
+ )}
+ </TableBody>
+ </Table>
+ </div>
+ <DataTablePagination table={table} />
+ </div>
+ );
+}
diff --git a/apps/web/src/components/monitor/tracker.tsx b/apps/web/src/components/monitor/tracker.tsx
new file mode 100644
index 000000000..dfc5810b0
--- /dev/null
+++ b/apps/web/src/components/monitor/tracker.tsx
@@ -0,0 +1,98 @@
+// TODO: create Compound Components like Tracker.Legend instead of passing props
+import Link from "next/link";
+import { cva } from "class-variance-authority";
+import { formatDistance } from "date-fns";
+
+import type { Ping } from "@openstatus/tinybird";
+
+import {
+ HoverCard,
+ HoverCardContent,
+ HoverCardTrigger,
+} from "@/components/ui/hover-card";
+
+const tracker = cva("h-10 w-1.5 sm:w-2 rounded-full md:w-2.5", {
+ variants: {
+ variant: {
+ up: "bg-green-500",
+ down: "bg-red-500",
+ degraded: "bg-yellow-500",
+ empty: "bg-muted-foreground/20",
+ },
+ },
+ defaultVariants: {
+ variant: "empty",
+ },
+});
+
+interface TrackerProps {
+ data: Ping[];
+ /**
+ * Maximium length of the data array
+ */
+ maxSize?: number;
+}
+
+export function Tracker({ data, maxSize = 35 }: TrackerProps) {
+ const sliceData = data.slice(0, maxSize);
+ const placeholderData: null[] = Array(
+ Math.max(0, maxSize - sliceData.length),
+ ).fill(null);
+
+ // TODO: use tinybird for data aggregation
+ // IDEA: We want to group X events and aggregate data,
+ // only on hover you will get the individual informations
+
+ return (
+ <div className="max-w-max">
+ <div className="flex justify-end">
+ <p className="text-muted-foreground mb-2 text-sm">
+ <Link
+ href={`/monitor/openstatus`}
+ className="hover:text-foreground font-semibold"
+ >
+ openstatus.dev
+ </Link>
+ <span className="text-muted-foreground/70 mx-1">&bull;</span>
+ <span className="font-light">last {maxSize} pings</span>
+ </p>
+ </div>
+ <div className="flex gap-0.5">
+ {placeholderData.map((_, i) => {
+ return <div key={i} className={tracker({ variant: "empty" })} />;
+ })}
+ {sliceData
+ .reverse()
+ .map(({ statusCode, latency, timestamp, region }, i) => {
+ const isOk = statusCode === 200;
+ return (
+ <HoverCard key={i} openDelay={100} closeDelay={100}>
+ <HoverCardTrigger>
+ <div className={tracker({ variant: isOk ? "up" : "down" })} />
+ </HoverCardTrigger>
+ <HoverCardContent side="top" className="w-56">
+ <div className="flex justify-between">
+ <p className="text-sm font-semibold">
+ {isOk ? "Operational" : "Downtime"}
+ </p>
+ <p className="text-muted-foreground font-mono text-xs">
+ {region}
+ </p>
+ </div>
+ <div className="flex justify-between">
+ <p className="text-xs font-light">
+ {formatDistance(new Date(timestamp), new Date(), {
+ addSuffix: true,
+ includeSeconds: true,
+ })}
+ </p>
+ <p className="text-muted-foreground text-xs">{latency}ms</p>
+ </div>
+ </HoverCardContent>
+ </HoverCard>
+ );
+ })}
+ </div>
+ </div>
+ );
+}
diff --git a/apps/web/src/components/ui/accordion.tsx b/apps/web/src/components/ui/accordion.tsx
new file mode 100644
index 000000000..937620af2
--- /dev/null
+++ b/apps/web/src/components/ui/accordion.tsx
@@ -0,0 +1,60 @@
+"use client"
+
+import * as React from "react"
+import * as AccordionPrimitive from "@radix-ui/react-accordion"
+import { ChevronDown } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+
+const Accordion = AccordionPrimitive.Root
+
+const AccordionItem = React.forwardRef<
+ React.ElementRef<typeof AccordionPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
+>(({ className, ...props }, ref) => (
+ <AccordionPrimitive.Item
+ ref={ref}
+ className={cn("border-b", className)}
+ {...props}
+ />
+))
+AccordionItem.displayName = "AccordionItem"
+
+const AccordionTrigger = React.forwardRef<
+ React.ElementRef<typeof AccordionPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
+>(({ className, children, ...props }, ref) => (
+ <AccordionPrimitive.Header className="flex">
+ <AccordionPrimitive.Trigger
+ ref={ref}
+ className={cn(
+ "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200" />
+ </AccordionPrimitive.Trigger>
+ </AccordionPrimitive.Header>
+))
+AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName
+
+const AccordionContent = React.forwardRef<
+ React.ElementRef<typeof AccordionPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
+>(({ className, children, ...props }, ref) => (
+ <AccordionPrimitive.Content
+ ref={ref}
+ className={cn(
+ "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
+ className
+ )}
+ {...props}
+ >
+ <div className="pb-4 pt-0">{children}</div>
+ </AccordionPrimitive.Content>
+))
+AccordionContent.displayName = AccordionPrimitive.Content.displayName
+
+export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }
diff --git a/apps/web/src/components/ui/dropdown-menu.tsx b/apps/web/src/components/ui/dropdown-menu.tsx
new file mode 100644
index 000000000..f69a0d64c
--- /dev/null
+++ b/apps/web/src/components/ui/dropdown-menu.tsx
@@ -0,0 +1,200 @@
+"use client"
+
+import * as React from "react"
+import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
+import { Check, ChevronRight, Circle } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+
+const DropdownMenu = DropdownMenuPrimitive.Root
+
+const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger
+
+const DropdownMenuGroup = DropdownMenuPrimitive.Group
+
+const DropdownMenuPortal = DropdownMenuPrimitive.Portal
+
+const DropdownMenuSub = DropdownMenuPrimitive.Sub
+
+const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup
+
+const DropdownMenuSubTrigger = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
+ inset?: boolean
+ }
+>(({ className, inset, children, ...props }, ref) => (
+ <DropdownMenuPrimitive.SubTrigger
+ ref={ref}
+ className={cn(
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
+ inset && "pl-8",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <ChevronRight className="ml-auto h-4 w-4" />
+ </DropdownMenuPrimitive.SubTrigger>
+))
+DropdownMenuSubTrigger.displayName =
+ DropdownMenuPrimitive.SubTrigger.displayName
+
+const DropdownMenuSubContent = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
+>(({ className, ...props }, ref) => (
+ <DropdownMenuPrimitive.SubContent
+ ref={ref}
+ className={cn(
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className
+ )}
+ {...props}
+ />
+))
+DropdownMenuSubContent.displayName =
+ DropdownMenuPrimitive.SubContent.displayName
+
+const DropdownMenuContent = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
+>(({ className, sideOffset = 4, ...props }, ref) => (
+ <DropdownMenuPrimitive.Portal>
+ <DropdownMenuPrimitive.Content
+ ref={ref}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className
+ )}
+ {...props}
+ />
+ </DropdownMenuPrimitive.Portal>
+))
+DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName
+
+const DropdownMenuItem = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
+ inset?: boolean
+ }
+>(({ className, inset, ...props }, ref) => (
+ <DropdownMenuPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ inset && "pl-8",
+ className
+ )}
+ {...props}
+ />
+))
+DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName
+
+const DropdownMenuCheckboxItem = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
+>(({ className, children, checked, ...props }, ref) => (
+ <DropdownMenuPrimitive.CheckboxItem
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ className
+ )}
+ checked={checked}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <DropdownMenuPrimitive.ItemIndicator>
+ <Check className="h-4 w-4" />
+ </DropdownMenuPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </DropdownMenuPrimitive.CheckboxItem>
+))
+DropdownMenuCheckboxItem.displayName =
+ DropdownMenuPrimitive.CheckboxItem.displayName
+
+const DropdownMenuRadioItem = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
+>(({ className, children, ...props }, ref) => (
+ <DropdownMenuPrimitive.RadioItem
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ className
+ )}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <DropdownMenuPrimitive.ItemIndicator>
+ <Circle className="h-2 w-2 fill-current" />
+ </DropdownMenuPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </DropdownMenuPrimitive.RadioItem>
+))
+DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName
+
+const DropdownMenuLabel = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Label>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
+ inset?: boolean
+ }
+>(({ className, inset, ...props }, ref) => (
+ <DropdownMenuPrimitive.Label
+ ref={ref}
+ className={cn(
+ "px-2 py-1.5 text-sm font-semibold",
+ inset && "pl-8",
+ className
+ )}
+ {...props}
+ />
+))
+DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName
+
+const DropdownMenuSeparator = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <DropdownMenuPrimitive.Separator
+ ref={ref}
+ className={cn("-mx-1 my-1 h-px bg-muted", className)}
+ {...props}
+ />
+))
+DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName
+
+const DropdownMenuShortcut = ({
+ className,
+ ...props
+}: React.HTMLAttributes<HTMLSpanElement>) => {
+ return (
+ <span
+ className={cn("ml-auto text-xs tracking-widest opacity-60", className)}
+ {...props}
+ />
+ )
+}
+DropdownMenuShortcut.displayName = "DropdownMenuShortcut"
+
+export {
+ DropdownMenu,
+ DropdownMenuTrigger,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuCheckboxItem,
+ DropdownMenuRadioItem,
+ DropdownMenuLabel,
+ DropdownMenuSeparator,
+ DropdownMenuShortcut,
+ DropdownMenuGroup,
+ DropdownMenuPortal,
+ DropdownMenuSub,
+ DropdownMenuSubContent,
+ DropdownMenuSubTrigger,
+ DropdownMenuRadioGroup,
+}
diff --git a/apps/web/src/components/ui/hover-card.tsx b/apps/web/src/components/ui/hover-card.tsx
new file mode 100644
index 000000000..e54d91cf8
--- /dev/null
+++ b/apps/web/src/components/ui/hover-card.tsx
@@ -0,0 +1,29 @@
+"use client"
+
+import * as React from "react"
+import * as HoverCardPrimitive from "@radix-ui/react-hover-card"
+
+import { cn } from "@/lib/utils"
+
+const HoverCard = HoverCardPrimitive.Root
+
+const HoverCardTrigger = HoverCardPrimitive.Trigger
+
+const HoverCardContent = React.forwardRef<
+ React.ElementRef<typeof HoverCardPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>
+>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
+ <HoverCardPrimitive.Content
+ ref={ref}
+ align={align}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className
+ )}
+ {...props}
+ />
+))
+HoverCardContent.displayName = HoverCardPrimitive.Content.displayName
+
+export { HoverCard, HoverCardTrigger, HoverCardContent }
diff --git a/apps/web/src/components/ui/select.tsx b/apps/web/src/components/ui/select.tsx
new file mode 100644
index 000000000..16429d668
--- /dev/null
+++ b/apps/web/src/components/ui/select.tsx
@@ -0,0 +1,121 @@
+"use client"
+
+import * as React from "react"
+import * as SelectPrimitive from "@radix-ui/react-select"
+import { Check, ChevronDown } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+
+const Select = SelectPrimitive.Root
+
+const SelectGroup = SelectPrimitive.Group
+
+const SelectValue = SelectPrimitive.Value
+
+const SelectTrigger = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
+>(({ className, children, ...props }, ref) => (
+ <SelectPrimitive.Trigger
+ ref={ref}
+ className={cn(
+ "flex h-10 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <SelectPrimitive.Icon asChild>
+ <ChevronDown className="h-4 w-4 opacity-50" />
+ </SelectPrimitive.Icon>
+ </SelectPrimitive.Trigger>
+))
+SelectTrigger.displayName = SelectPrimitive.Trigger.displayName
+
+const SelectContent = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
+>(({ className, children, position = "popper", ...props }, ref) => (
+ <SelectPrimitive.Portal>
+ <SelectPrimitive.Content
+ ref={ref}
+ className={cn(
+ "relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ position === "popper" &&
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
+ className
+ )}
+ position={position}
+ {...props}
+ >
+ <SelectPrimitive.Viewport
+ className={cn(
+ "p-1",
+ position === "popper" &&
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
+ )}
+ >
+ {children}
+ </SelectPrimitive.Viewport>
+ </SelectPrimitive.Content>
+ </SelectPrimitive.Portal>
+))
+SelectContent.displayName = SelectPrimitive.Content.displayName
+
+const SelectLabel = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Label>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.Label
+ ref={ref}
+ className={cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)}
+ {...props}
+ />
+))
+SelectLabel.displayName = SelectPrimitive.Label.displayName
+
+const SelectItem = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
+>(({ className, children, ...props }, ref) => (
+ <SelectPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ className
+ )}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <SelectPrimitive.ItemIndicator>
+ <Check className="h-4 w-4" />
+ </SelectPrimitive.ItemIndicator>
+ </span>
+
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ </SelectPrimitive.Item>
+))
+SelectItem.displayName = SelectPrimitive.Item.displayName
+
+const SelectSeparator = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.Separator
+ ref={ref}
+ className={cn("-mx-1 my-1 h-px bg-muted", className)}
+ {...props}
+ />
+))
+SelectSeparator.displayName = SelectPrimitive.Separator.displayName
+
+export {
+ Select,
+ SelectGroup,
+ SelectValue,
+ SelectTrigger,
+ SelectContent,
+ SelectLabel,
+ SelectItem,
+ SelectSeparator,
+}
diff --git a/apps/web/src/components/ui/tooltip.tsx b/apps/web/src/components/ui/tooltip.tsx
new file mode 100644
index 000000000..30fc44d90
--- /dev/null
+++ b/apps/web/src/components/ui/tooltip.tsx
@@ -0,0 +1,30 @@
+"use client"
+
+import * as React from "react"
+import * as TooltipPrimitive from "@radix-ui/react-tooltip"
+
+import { cn } from "@/lib/utils"
+
+const TooltipProvider = TooltipPrimitive.Provider
+
+const Tooltip = TooltipPrimitive.Root
+
+const TooltipTrigger = TooltipPrimitive.Trigger
+
+const TooltipContent = React.forwardRef<
+ React.ElementRef<typeof TooltipPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
+>(({ className, sideOffset = 4, ...props }, ref) => (
+ <TooltipPrimitive.Content
+ ref={ref}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className
+ )}
+ {...props}
+ />
+))
+TooltipContent.displayName = TooltipPrimitive.Content.displayName
+
+export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
diff --git a/apps/web/src/lib/tb.ts b/apps/web/src/lib/tb.ts
new file mode 100644
index 000000000..45ba6dd89
--- /dev/null
+++ b/apps/web/src/lib/tb.ts
@@ -0,0 +1,19 @@
+import type { ResponseListParams } from "@openstatus/tinybird";
+import { getResponseList, Tinybird } from "@openstatus/tinybird";
+
+import { env } from "@/env.mjs";
+import MOCK from "@/mock/response-list.json";
+
+const tb = new Tinybird({ token: env.TINY_BIRD_API_KEY });
+
+export async function getResponseListData({
+ siteId,
+ region,
+}: Pick<ResponseListParams, "siteId" | "region">) {
+ let data = MOCK;
+ if (process.env.NODE_ENV !== "development") {
+ const res = await getResponseList(tb)({ siteId, region });
+ data = res.data;
+ }
+ return data;
+}
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts
index d87e05be6..f744dfb90 100644
--- a/apps/web/src/middleware.ts
+++ b/apps/web/src/middleware.ts
@@ -3,6 +3,9 @@ import { authMiddleware } from "@clerk/nextjs";
export default authMiddleware({
publicRoutes: [
"/",
+ "/play",
+ "/play/(.*)",
+ "/monitor/(.*)",
"/api/(.*)",
"/api/og",
"/api/ping",
diff --git a/apps/web/src/app/_mocks/response-list.json b/apps/web/src/mock/response-list.json
similarity index 88%
rename from apps/web/src/app/_mocks/response-list.json
rename to apps/web/src/mock/response-list.json
index 08b049fce..07bb8c2d6 100644
--- a/apps/web/src/app/_mocks/response-list.json
+++ b/apps/web/src/mock/response-list.json
@@ -4,8 +4,8 @@
"monitorId": "openstatus",
"workspaceId": "openstatus",
"pageId": "openstatus",
- "metadata": "openstatus",
"timestamp": 1687718354031,
+ "cronTimestamp": 1687718354031,
"statusCode": 200,
"latency": 221,
"region": "fra1",
@@ -16,8 +16,8 @@
"monitorId": "openstatus",
"workspaceId": "openstatus",
"pageId": "openstatus",
- "metadata": "openstatus",
"timestamp": 16877183268,
+ "cronTimestamp": 1687718354031,
"statusCode": 200,
"latency": 660,
"region": "fra1",
@@ -28,8 +28,8 @@
"monitorId": "openstatus",
"workspaceId": "openstatus",
"pageId": "openstatus",
- "metadata": "openstatus",
"timestamp": 1687718289489,
+ "cronTimestamp": 1687718354031,
"statusCode": 500,
"latency": 332,
"region": "fra1",
@@ -40,8 +40,8 @@
"monitorId": "openstatus",
"workspaceId": "openstatus",
"pageId": "openstatus",
- "metadata": "openstatus",
"timestamp": 168771832688,
+ "cronTimestamp": 1687718354031,
"statusCode": 500,
"latency": 660,
"region": "fra1",
@@ -52,8 +52,8 @@
"monitorId": "openstatus",
"workspaceId": "openstatus",
"pageId": "openstatus",
- "metadata": "openstatus",
"timestamp": 16877182894,
+ "cronTimestamp": 1687718354031,
"statusCode": 200,
"latency": 332,
"region": "fra1",
diff --git a/package.json b/package.json
index 01eae62cd..7c294e5bc 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,8 @@
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
- "format": "prettier --write \"**/*.{ts,tsx,md}\""
+ "format": "prettier --write \"**/*.{ts,tsx,md}\"",
+ "tsc": "tsc"
},
"devDependencies": {
"@turbo/gen": "1.10.3",
diff --git a/packages/tinybird/src/client.ts b/packages/tinybird/src/client.ts
index cded2aacf..c44a0a822 100644
--- a/packages/tinybird/src/client.ts
+++ b/packages/tinybird/src/client.ts
@@ -1,41 +1,28 @@
import type { Tinybird } from "@chronark/zod-bird";
-import * as z from "zod";
+
+import {
+ tbBuildResponseList,
+ tbIngestPingResponse,
+ tbParameterResponseList,
+} from "./validation";
// REMINDER:
// const tb = new Tinybird({ token: process.env.TINYBIRD_TOKEN! });
-export const tinyBirdEventType = z.object({
- id: z.string(),
- workspaceId: z.string(),
- pageId: z.string(),
- monitorId: z.string(),
- timestamp: z.number().int(),
- statusCode: z.number().int(),
- latency: z.number().int(), // in ms
- url: z.string(),
- metadata: z.string().optional().default(""),
- region: z.string().min(4).max(4), // TODO: object + stringify json
-});
-
-// TODO: think of a better name `publishHttpResponse`
export function publishPingResponse(tb: Tinybird) {
return tb.buildIngestEndpoint({
datasource: "ping_response__v2",
- event: tinyBirdEventType,
+ // @ts-ignore TODO: this is caused by the metadata even though the
+ // error says something regarding _input.cronTimestamp
+ event: tbIngestPingResponse,
});
}
export function getResponseList(tb: Tinybird) {
return tb.buildPipe({
pipe: "response_list__v1",
- parameters: z.object({
- siteId: z.string().default("openstatus"), // REMINDER: remove default once alpha
- monitorId: z.string().default("openstatus"), // REMINDER: remove default once alpha
- start: z.number().int().default(0), // always start from a date
- end: z.number().int().optional(),
- limit: z.number().int().optional().default(100), // used for pagination
- }),
- data: tinyBirdEventType,
+ parameters: tbParameterResponseList,
+ data: tbBuildResponseList,
opts: {
revalidate: 5 * 60, // 5 minutes cache validation
},
diff --git a/packages/tinybird/src/index.ts b/packages/tinybird/src/index.ts
index 408d8d6ae..2c54b7aeb 100644
--- a/packages/tinybird/src/index.ts
+++ b/packages/tinybird/src/index.ts
@@ -1,2 +1,3 @@
export * from "./client";
+export * from "./validation";
export * from "@chronark/zod-bird";
diff --git a/packages/tinybird/src/validation.ts b/packages/tinybird/src/validation.ts
new file mode 100644
index 000000000..6e973181d
--- /dev/null
+++ b/packages/tinybird/src/validation.ts
@@ -0,0 +1,81 @@
+import * as z from "zod";
+
+/**
+ * All available Vercel (AWS) regions
+ */
+export const availableRegions = [
+ "arn1",
+ "bom1",
+ "cdg1",
+ "cle1",
+ "cpt1",
+ "dub1",
+ "fra1",
+ "gru1",
+ "hkg1",
+ "hnd1",
+ "icn1",
+ "kix1",
+ "lhr1",
+ "pdx1",
+ "sfo1",
+ "sin1",
+ "syd1",
+] as const;
+
+/**
+ * Values for the datasource ping_response_v2
+ */
+export const tbIngestPingResponse = z.object({
+ id: z.string(),
+ workspaceId: z.string(),
+ pageId: z.string(),
+ monitorId: z.string(),
+ timestamp: z.number().int(),
+ statusCode: z.number().int(),
+ latency: z.number().int(), // in ms
+ cronTimestamp: z.number().int().optional().default(Date.now()),
+ url: z.string().url(),
+ metadata: z
+ .record(z.string(), z.unknown())
+ .default({})
+ .transform((t) => JSON.stringify(t))
+ .optional(),
+ region: z.string().min(4).max(4),
+});
+
+/**
+ * Values from the pip response_list_v1
+ */
+export const tbBuildResponseList = z.object({
+ id: z.string(),
+ workspaceId: z.string(),
+ pageId: z.string(),
+ monitorId: z.string(),
+ timestamp: z.number().int(),
+ statusCode: z.number().int(),
+ latency: z.number().int(), // in ms
+ cronTimestamp: z.number().int().default(Date.now()),
+ url: z.string().url(),
+ metadata: z
+ .string()
+ .default("{}")
+ .transform((t) => JSON.parse(t)),
+ region: z.string().min(4).max(4),
+});
+
+/**
+ * Params for pipe response_list_v1
+ */
+export const tbParameterResponseList = z.object({
+ siteId: z.string().optional().default("openstatus"), // REMINDER: remove default once alpha
+ monitorId: z.string().optional().default("openstatus"), // REMINDER: remove default once alpha
+ start: z.number().int().default(0), // always start from a date
+ end: z.number().int().optional(),
+ limit: z.number().int().optional().default(100), // used for pagination
+ region: z.enum(availableRegions).optional(),
+});
+
+export type Ping = z.infer<typeof tbIngestPingResponse>;
+export type Region = (typeof availableRegions)[number];
+export type ResponseListParams = z.infer<typeof tbParameterResponseList>;
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b361e8495..287c5d914 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -37,7 +37,7 @@ importers:
dependencies:
'@clerk/nextjs':
specifier: 4.21.10
'@openstatus/api':
specifier: workspace:^
version: link:../../packages/api
@@ -50,24 +50,42 @@ importers:
'@openstatus/upstash':
specifier: workspace:*
version: link:../../packages/upstash
+ '@radix-ui/react-accordion':
+ specifier: ^1.1.2
'@radix-ui/react-dialog':
specifier: ^1.0.4
+ '@radix-ui/react-dropdown-menu':
+ specifier: ^2.0.5
+ '@radix-ui/react-hover-card':
+ specifier: ^1.0.6
+ '@radix-ui/react-select':
+ specifier: ^1.2.2
'@radix-ui/react-slot':
specifier: ^1.0.2
version: 1.0.2(@types/[email protected])([email protected])
'@radix-ui/react-toast':
specifier: ^1.1.4
+ '@radix-ui/react-tooltip':
+ specifier: ^1.0.6
'@t3-oss/env-nextjs':
specifier: 0.4.1
+ '@tanstack/react-table':
+ specifier: ^8.9.3
'@trpc/client':
specifier: 10.32.0
version: 10.32.0(@trpc/[email protected])
'@trpc/next':
specifier: 10.32.0
'@trpc/react-query':
specifier: 10.32.0
@@ -99,11 +117,11 @@ importers:
specifier: 10.0.1
version: 10.0.1
next:
- specifier: 13.4.6
+ specifier: 13.4.8
next-plausible:
specifier: 3.7.2
react:
specifier: 18.2.0
version: 18.2.0
@@ -164,7 +182,7 @@ importers:
dependencies:
'@clerk/nextjs':
specifier: 4.21.10
'@openstatus/db':
specifier: workspace:^
version: link:../db
@@ -578,7 +596,7 @@ packages:
tslib: 2.4.1
dev: false
resolution: {integrity: sha512-5G02qZOBwbYvBxbHVPKpINyhZ1a3TLZ3noBExx5JHo8+UbpEp7ENd1TyFF/oO0EWG/VTbloP1Gegjm2XG9KeKw==}
engines: {node: '>=14'}
peerDependencies:
@@ -590,7 +608,7 @@ packages:
'@clerk/clerk-react': 4.20.5([email protected])
'@clerk/clerk-sdk-node': 4.10.12
'@clerk/types': 3.46.0
path-to-regexp: 6.2.1
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -1267,6 +1285,27 @@ packages:
resolution: {integrity: sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ /@floating-ui/[email protected]:
+ resolution: {integrity: sha512-Bu+AMaXNjrpjh41znzHqaz3r2Nr8hHuHZT6V2LBKMhyMl0FgKA62PNYbqnfgmzOhoWZj70Zecisbo4H1rotP5g==}
+ dev: false
+
+ /@floating-ui/[email protected]:
+ resolution: {integrity: sha512-nB/68NyaQlcdY22L+Fgd1HERQ7UGv7XFN+tPxwrEfQL4nKtAP/jIZnZtpUlXbtV+VEGHh6W/63Gy2C5biWI3sA==}
+ dependencies:
+ '@floating-ui/core': 1.3.1
+ dev: false
+
+ resolution: {integrity: sha512-rZtAmSht4Lry6gdhAJDrCp/6rKN7++JnL1/Anbr/DdeyYXQPxvg/ivrbYvJulbRf4vL8b212suwMM2lxbv+RQA==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+ dependencies:
+ '@floating-ui/dom': 1.4.3
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
/@humanwhocodes/[email protected]:
resolution: {integrity: sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==}
engines: {node: '>=10.10.0'}
@@ -1342,8 +1381,8 @@ packages:
'@jridgewell/resolve-uri': 3.1.1
'@jridgewell/sourcemap-codec': 1.4.15
- resolution: {integrity: sha512-nqUxEtvDqFhmV1/awSg0K2XHNwkftNaiUqCYO9e6+MYmqNObpKVl7OgMkGaQ2SZnFx5YqF0t60ZJTlyJIDAijg==}
+ resolution: {integrity: sha512-twuSf1klb3k9wXI7IZhbZGtFCWvGD4wXTY2rmvzIgVhXhs7ISThrbNyutBx3jWIL8Y/Hk9+woytFz5QsgtcRKQ==}
dev: false
@@ -1352,8 +1391,8 @@ packages:
glob: 7.1.7
dev: false
- resolution: {integrity: sha512-ahi6VP98o4HV19rkOXPSUu+ovfHfUxbJQ7VVJ7gL2FnZRr7onEFC1oGQ6NQHpm8CxpIzSSBW79kumlFMOmZVjg==}
+ resolution: {integrity: sha512-MSFplVM4dTWOuKAUv0XR9gY7AWtMSBu9os9f+kp+s5rWhM1I2CdR3obFttd6366nS/W/VZxbPM5oEIdlIa46zA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
@@ -1361,8 +1400,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-13cXxKFsPJIJKzUqrU5XB1mc0xbUgYsRcdH6/rB8c4NMEbWGdtD4QoK9ShN31TZdePpD4k416Ur7p+deMIxnnA==}
+ resolution: {integrity: sha512-Reox+UXgonon9P0WNDE6w85DGtyBqGitl/ryznOvn6TvfxEaZIpTgeu3ZrJLU9dHSMhiK7YAM793mE/Zii2/Qw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
@@ -1370,8 +1409,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-Ti+NMHEjTNktCVxNjeWbYgmZvA2AqMMI2AMlzkXsU7W4pXCMhrryAmAIoo+7YdJbsx01JQWYVxGe62G6DoCLaA==}
+ resolution: {integrity: sha512-kdyzYvAYtqQVgzIKNN7e1rLU8aZv86FDSRqPlOkKZlvqudvTO0iohuTPmnEEDlECeBM6qRPShNffotDcU/R2KA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@@ -1379,8 +1418,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-OHoC6gO7XfjstgwR+z6UHKlvhqJfyMtNaJidjx3sEcfaDwS7R2lqR5AABi8PuilGgi0BO0O0sCXqLlpp3a0emQ==}
+ resolution: {integrity: sha512-oWxx4yRkUGcR81XwbI+T0zhZ3bDF6V1aVLpG+C7hSG50ULpV8gC39UxVO22/bv93ZlcfMY4zl8xkz9Klct6dpQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@@ -1388,8 +1427,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-zHZxPGkUlpfNJCboUrFqwlwEX5vI9LSN70b8XEb0DYzzlrZyCyOi7hwDp/+3Urm9AB7YCAJkgR5Sp1XBVjHdfQ==}
+ resolution: {integrity: sha512-anhtvuO6eE9YRhYnaEGTfbpH3L5gT/9qPFcNoi6xS432r/4DAtpJY8kNktqkTVevVIC/pVumqO8tV59PR3zbNg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@@ -1397,8 +1436,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-K/Y8lYGTwTpv5ME8PSJxwxLolaDRdVy+lOd9yMRMiQE0BLUhtxtCWC9ypV42uh9WpLjoaD0joOsB9Q6mbrSGJg==}
+ resolution: {integrity: sha512-aR+J4wWfNgH1DwCCBNjan7Iumx0lLtn+2/rEYuhIrYLY4vnxqSVGz9u3fXcgUwo6Q9LT8NFkaqK1vPprdq+BXg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@@ -1406,8 +1445,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-U6LtxEUrjBL2tpW+Kr1nHCSJWNeIed7U7l5o7FiKGGwGgIlFi4UHDiLI6TQ2lxi20fAU33CsruV3U0GuzMlXIw==}
+ resolution: {integrity: sha512-OWBKIrJwQBTqrat0xhxEB/jcsjJR3+diD9nc/Y8F1mRdQzsn4bPsomgJyuqPVZs6Lz3K18qdIkvywmfSq75SsQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
@@ -1415,8 +1454,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-eEBeAqpCfhdPSlCZCayjCiyIllVqy4tcqvm1xmg3BgJG0G5ITiMM4Cw2WVeRSgWDJqQGRyyb+q8Y2ltzhXOWsQ==}
+ resolution: {integrity: sha512-agiPWGjUndXGTOn4ChbKipQXRA6/UPkywAWIkx7BhgGv48TiJfHTK6MGfBoL9tS6B4mtW39++uy0wFPnfD0JWg==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
@@ -1424,8 +1463,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-OrZs94AuO3ZS5tnqlyPRNgfWvboXaDQCi5aXGve3o3C+Sj0ctMUV9+Do+0zMvvLRumR8E0PTWKvtz9n5vzIsWw==}
+ resolution: {integrity: sha512-UIRKoByVKbuR6SnFG4JM8EMFlJrfEGuUQ1ihxzEleWcNwRMMiVaCj1KyqfTOW8VTQhJ0u8P1Ngg6q1RwnIBTtw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@@ -1494,6 +1533,12 @@ packages:
engines: {node: '>=16'}
dev: false
+ /@radix-ui/[email protected]:
+ resolution: {integrity: sha512-T5gIdVO2mmPW3NNhjNgEP3cqMXjXL9UbO0BzWcXfvdBs+BohbQxvd/K5hSVKmn9/lbTdsQVKbUcP5WLCwvUbBg==}
+ dependencies:
+ '@babel/runtime': 7.22.5
+ dev: false
+
/@radix-ui/[email protected]:
resolution: {integrity: sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==}
dependencies:
@@ -1506,6 +1551,84 @@ packages:
'@babel/runtime': 7.22.5
dev: false
+ resolution: {integrity: sha512-fDG7jcoNKVjSK6yfmuAs0EnPDro0WMXIhMtXdTBWqEioVW206ku+4Lw07e+13lUkFkpoEQ2PdeMIAGpdqEAmDg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-collapsible': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-wSP+pHsB/jQRaL6voubsQ/ZlrGBHHrOjmBnr19hxYgtS0WvAFwZhK2WP/YY5yF9uKECCEEDGxuLxq1NBK51wFA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-UBmVDkmR6IvDsloHVN+3rtx4Mi5TFvylYXpluuv0f37dtaz3H99bp8No0LGXRigVpl3UAT4l9j6bIchh42S/Gg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-3SzW+0PW7yBBoQlT8wNcGtaxaD0XSu0uLUFgrtHY08Acx05TaHaOmVLR73c0j/cqpDy53KBMO7s0dx2wmOIDIA==}
peerDependencies:
@@ -1637,6 +1760,20 @@ packages:
react-remove-scroll: 2.5.5(@types/[email protected])([email protected])
dev: false
+ resolution: {integrity: sha512-RXcvnXgyvYvBEOhCBuddKecVkoMiI10Jcm5cTI7abJRAHYfFxeu+FBQs/DvdxSYucxR5mna0dNsL6QFlds5TMA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@types/react': 18.2.12
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-n7kDRfx+LB1zLueRDvZ1Pd0bxdJWDUZNQ/GWoxDn2prnuJKRdxsjulejX/ePkOsLi2tTm6P24mDqlMSgQpsT6g==}
peerDependencies:
@@ -1678,6 +1815,33 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-xdOrZzOTocqqkCkYo8yRPCib5OkTkqN7lqNCdxwPOdE466DOaNl4N8PkUIlsXthQvW5Wwkd+aEmWpfWlBoDPEw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-menu': 2.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-UagjDk4ijOAnGu4WMUPj9ahi7/zJJqNZ9ZAiGPp7waUWJO0O1aWXi/udPphI0IUjvrhBsZJGSN66dR2dsueLWQ==}
peerDependencies:
@@ -1738,6 +1902,35 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-2K3ToJuMk9wjwBOa+jdg2oPma+AmLdcEyTNsG/iC4BDVG3E0/mGCjbY8PEDSLxJcUi+nJi2QII+ec/4kWd88DA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-popper': 1.1.2(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-portal': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==}
peerDependencies:
@@ -1763,6 +1956,74 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-Gw4f9pwdH+w5w+49k0gLjN0PfRDHvxmAgG16AbyJZ7zhwZ6PBHKtWohvnSwfusfnK3L68dpBREHpVkj8wEM7ZA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-focus-guards': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-popper': 1.1.2(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-portal': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ aria-hidden: 1.2.3
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ react-remove-scroll: 2.5.5(@types/[email protected])([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-1CnGGfFi/bbqtJZZ0P/NQY20xdG3E0LALJaLUEoKwPLwl6PPPfbeiCqMVQnhoFRAxjJj4RpBRJzDmUgsex2tSg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@floating-ui/react-dom': 2.0.1([email protected])([email protected])
+ '@radix-ui/react-arrow': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-rect': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/rect': 1.0.1
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-a8qyFO/Xb99d8wQdu4o7qnigNjTPG123uADNecz0eX4usnQEj7o+cG4ZX4zkqq98NYekT7UoEQIjxBNWIFuqTA==}
peerDependencies:
@@ -1864,6 +2125,76 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-2mUg5Mgcu001VkGy+FfzZyzbmuUWzgWkj3rvv4yu+mLw03+mTzbxZHvfcGyFp2b8EkQeMkpRQ5FiA2Vr2O6TeQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-zI7McXr8fNaSrUY9mZe4x/HC0jTLY9fWNhO1oLWYMQGDXuV4UCivIGTxwioSzO0ZCYX9iSLyWmAh/1TOmX3Cnw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/number': 1.0.1
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-focus-guards': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-popper': 1.1.2(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-portal': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ aria-hidden: 1.2.3
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ react-remove-scroll: 2.5.5(@types/[email protected])([email protected])
+ dev: false
+
resolution: {integrity: sha512-3mrKauI/tWXo1Ll+gN5dHcxDPdm/Df1ufcDLCecn+pnCIVcdWE7CujXo8QaXOWRJyZyQWWbpB8eFwHzWXlv5mQ==}
peerDependencies:
@@ -1921,6 +2252,38 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-DmNFOiwEc2UDigsYj6clJENma58OelxD24O4IODoZ+3sQc3Zb+L8w1EP+y9laTuKCLAysPw4fD6/v0j4KNV8rg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-popper': 1.1.2(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-portal': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg==}
peerDependencies:
@@ -2017,6 +2380,50 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-cV5La9DPwiQ7S0gf/0qiD6YgNqM5Fk97Kdrlc5yBcrF3jyEZQwm7vYFqMo4IfeHgJXsRaMvLABFtd0OVEmZhDw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@types/react': 18.2.12
+ react: 18.2.0
+ dev: false
+
+ resolution: {integrity: sha512-Cq5DLuSiuYVKNU8orzJMbl15TXilTnJKUCltMVQg53BQOF1/C5toAaGrowkgksdBQ9H+SRL23g0HDmg9tvmxXw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/rect': 1.0.1
+ '@types/react': 18.2.12
+ react: 18.2.0
+ dev: false
+
+ resolution: {integrity: sha512-ibay+VqrgcaI6veAojjofPATwledXiSmX+C0KrBk/xgpX9rBzPV3OsfwlhQdUOFbh+LKQorLYT+xTXW9V8yd0g==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.12
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-D4w41yN5YRKtu464TLnByKzMDG/JlMPHtfZgQAu9v6mNakUqGUI9vUrfQKz8NK41VMm/xbZbh76NUTVtIYqOMA==}
peerDependencies:
@@ -2038,6 +2445,12 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ /@radix-ui/[email protected]:
+ resolution: {integrity: sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==}
+ dependencies:
+ '@babel/runtime': 7.22.5
+ dev: false
+
/@react-email/[email protected]:
resolution: {integrity: sha512-hMMhxk6TpOcDC5qnKzXPVJoVGEwfm+U5bGOPH+MyTTlx0F02RLQygcATBKsbP7aI/mvkmBAZoFbgPIHop7ovug==}
engines: {node: '>=16.0.0'}
@@ -2112,6 +2525,23 @@ packages:
use-sync-external-store: 1.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-Ng9rdm3JPoSCi6cVZvANsYnF+UoGVRxflMb270tVj0+LjeT/ZtZ9ckxF6oLPLcKesza6VKBqtdF9mQ+vaz24Aw==}
+ engines: {node: '>=12'}
+ peerDependencies:
+ react: '>=16'
+ react-dom: '>=16'
+ dependencies:
+ '@tanstack/table-core': 8.9.3
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
+ /@tanstack/[email protected]:
+ resolution: {integrity: sha512-NpHZBoHTfqyJk0m/s/+CSuAiwtebhYK90mDuf5eylTvgViNOujiaOaxNDxJkQQAsVvHWZftUGAx1EfO1rkKtLg==}
+ engines: {node: '>=12'}
+ dev: false
+
resolution: {integrity: sha512-hrj6XV84nE6DH5AmsPJ0JzIRcx3f6zU0tvS705DnZtNBOoMk7Lx+wX+KCDxj4DxLsTXC+roAxZxWwAB6/LGsXA==}
peerDependencies:
@@ -2120,7 +2550,7 @@ packages:
'@trpc/server': 10.32.0
dev: false
resolution: {integrity: sha512-qJ3yvJDTVmiOOPW1x/FCpmOvtcMJXnP2t3EbcUFrqwgH+D1KdbU2Kk1iSa89Gwy/BBEmXUxaKkWoM3e4Id80gw==}
peerDependencies:
'@tanstack/react-query': ^4.18.0
@@ -2135,7 +2565,7 @@ packages:
'@trpc/client': 10.32.0(@trpc/[email protected])
'@trpc/react-query': 10.32.0(@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])
'@trpc/server': 10.32.0
react: 18.2.0
react-dom: 18.2.0([email protected])
react-ssr-prepass: 1.5.0([email protected])
@@ -5134,14 +5564,14 @@ packages:
resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
dev: true
resolution: {integrity: sha512-9PqFiVtD1kZO5gHFYTcgilHhg2WhMzD6I4NK/RUh9DGavD1N11IhNAvyGLFmvB3f4FtHC9IoAsauYDtQBt+riA==}
peerDependencies:
next: ^11.1.0 || ^12.0.0 || ^13.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
dependencies:
react: 18.2.0
react-dom: 18.2.0([email protected])
dev: false
@@ -5150,8 +5580,8 @@ packages:
resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==}
dev: true
- resolution: {integrity: sha512-sjVqjxU+U2aXZnYt4Ud6CTLNNwWjdSfMgemGpIQJcN3Z7Jni9xRWbR0ie5fQzCg87aLqQVhKA2ud2gPoqJ9lGw==}
+ resolution: {integrity: sha512-lxUjndYKjZHGK3CWeN2RI+/6ni6EUvjiqGWXAYPxUfGIdFGQ5XoisrqAJ/dF74aP27buAfs8MKIbIMMdxjqSBg==}
engines: {node: '>=16.8.0'}
hasBin: true
peerDependencies:
@@ -5168,7 +5598,7 @@ packages:
sass:
optional: true
dependencies:
- '@next/env': 13.4.6
+ '@next/env': 13.4.8
'@swc/helpers': 0.5.1
busboy: 1.6.0
caniuse-lite: 1.0.30001503
@@ -5179,15 +5609,15 @@ packages:
watchpack: 2.4.0
zod: 3.21.4
optionalDependencies:
- '@next/swc-darwin-arm64': 13.4.6
- '@next/swc-darwin-x64': 13.4.6
- '@next/swc-linux-arm64-gnu': 13.4.6
- '@next/swc-linux-arm64-musl': 13.4.6
- '@next/swc-linux-x64-gnu': 13.4.6
- '@next/swc-linux-x64-musl': 13.4.6
- '@next/swc-win32-arm64-msvc': 13.4.6
- '@next/swc-win32-ia32-msvc': 13.4.6
- '@next/swc-win32-x64-msvc': 13.4.6
+ '@next/swc-darwin-arm64': 13.4.8
+ '@next/swc-darwin-x64': 13.4.8
+ '@next/swc-linux-arm64-gnu': 13.4.8
+ '@next/swc-linux-arm64-musl': 13.4.8
+ '@next/swc-linux-x64-gnu': 13.4.8
+ '@next/swc-linux-x64-musl': 13.4.8
+ '@next/swc-win32-arm64-msvc': 13.4.8
+ '@next/swc-win32-ia32-msvc': 13.4.8
+ '@next/swc-win32-x64-msvc': 13.4.8
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros