Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
feat: dashboard v2 (#1273)
Maximilian Kaske2bdf3540100a
diff --git a/.gitignore b/.gitignoreindex 25fa87876..fe9bfebab 100644--- a/.gitignore+++ b/.gitignore@@ -66,3 +66,4 @@ openstatus-dev.db-shmapps/ingest-worker/.production.varsapps/ingest-worker/.dev.varsapps/alerting-engine/tmp/+.env*.localdiff --git a/apps/dashboard/.gitignore b/apps/dashboard/.gitignorenew file mode 100644index 000000000..e985853ed--- /dev/null+++ b/apps/dashboard/.gitignore@@ -0,0 +1 @@+.verceldiff --git a/apps/dashboard/components.json b/apps/dashboard/components.jsonnew file mode 100644index 000000000..3289f237a--- /dev/null+++ b/apps/dashboard/components.json@@ -0,0 +1,21 @@+{+ "$schema": "https://ui.shadcn.com/schema.json",+ "style": "new-york",+ "rsc": true,+ "tsx": true,+ "tailwind": {+ "config": "",+ "css": "src/app/globals.css",+ "baseColor": "neutral",+ "cssVariables": true,+ "prefix": ""+ },+ "aliases": {+ "components": "@/components",+ "utils": "@/lib/utils",+ "ui": "@/components/ui",+ "lib": "@/lib",+ "hooks": "@/hooks"+ },+ "iconLibrary": "lucide"+}diff --git a/apps/dashboard/next-env.d.ts b/apps/dashboard/next-env.d.tsnew file mode 100644index 000000000..1b3be0840--- /dev/null+++ b/apps/dashboard/next-env.d.ts@@ -0,0 +1,5 @@+/// <reference types="next" />+/// <reference types="next/image-types/global" />++// NOTE: This file should not be edited+// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.diff --git a/apps/dashboard/next.config.ts b/apps/dashboard/next.config.tsnew file mode 100644index 000000000..113a50310--- /dev/null+++ b/apps/dashboard/next.config.ts@@ -0,0 +1,17 @@+import type { NextConfig } from "next";++const nextConfig: NextConfig = {+ images: {+ remotePatterns: [+ new URL("https://openstatus.dev/**"),+ new URL("https://**.public.blob.vercel-storage.com/**"),+ ],+ },+ logging: {+ fetches: {+ fullUrl: true,+ },+ },+};++export default nextConfig;diff --git a/apps/dashboard/package.json b/apps/dashboard/package.jsonnew file mode 100644index 000000000..253b19eb2--- /dev/null+++ b/apps/dashboard/package.json@@ -0,0 +1,109 @@+{+ "name": "@openstatus/dashboard",+ "version": "1.0.0",+ "private": true,+ "scripts": {+ "dev": "next dev --turbopack",+ "build": "next build",+ "start": "next start",+ "lint": "next lint",+ "tsc": "tsc --noEmit"+ },+ "dependencies": {+ "@auth/core": "0.40.0",+ "@auth/drizzle-adapter": "1.10.0",+ "@date-fns/tz": "1.2.0",+ "@date-fns/utc": "2.1.0",+ "@dnd-kit/core": "6.3.1",+ "@dnd-kit/modifiers": "9.0.0",+ "@dnd-kit/sortable": "10.0.0",+ "@dnd-kit/utilities": "3.2.2",+ "@hookform/devtools": "4.4.0",+ "@hookform/resolvers": "3.9.1",+ "@libsql/client": "0.15.9",+ "@openpanel/nextjs": "1.0.8",+ "@openstatus/analytics": "workspace:*",+ "@openstatus/api": "workspace:*",+ "@openstatus/assertions": "workspace:*",+ "@openstatus/db": "workspace:*",+ "@openstatus/emails": "workspace:*",+ "@openstatus/error": "workspace:*",+ "@openstatus/header-analysis": "workspace:*",+ "@openstatus/notification-discord": "workspace:*",+ "@openstatus/notification-emails": "workspace:*",+ "@openstatus/notification-ntfy": "workspace:*",+ "@openstatus/notification-opsgenie": "workspace:*",+ "@openstatus/notification-pagerduty": "workspace:*",+ "@openstatus/notification-slack": "workspace:*",+ "@openstatus/notification-webhook": "workspace:*",+ "@openstatus/react": "workspace:*",+ "@openstatus/tinybird": "workspace:*",+ "@openstatus/tracker": "workspace:*",+ "@openstatus/upstash": "workspace:*",+ "@openstatus/utils": "workspace:*",+ "@radix-ui/react-alert-dialog": "1.1.14",+ "@radix-ui/react-avatar": "1.1.10",+ "@radix-ui/react-checkbox": "1.3.2",+ "@radix-ui/react-collapsible": "1.1.11",+ "@radix-ui/react-dialog": "1.1.14",+ "@radix-ui/react-dropdown-menu": "2.1.15",+ "@radix-ui/react-hover-card": "1.1.14",+ "@radix-ui/react-label": "2.1.7",+ "@radix-ui/react-popover": "1.1.14",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-progress": "1.1.7",+ "@radix-ui/react-radio-group": "1.3.7",+ "@radix-ui/react-select": "2.2.5",+ "@radix-ui/react-separator": "1.1.7",+ "@radix-ui/react-slider": "1.3.5",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-switch": "1.2.5",+ "@radix-ui/react-tabs": "1.1.12",+ "@radix-ui/react-tooltip": "1.2.7",+ "@sentry/nextjs": "8.46.0",+ "@stripe/stripe-js": "2.1.6",+ "@tanstack/react-query": "5.81.5",+ "@tanstack/react-table": "8.21.3",+ "@trpc/client": "11.4.3",+ "@trpc/next": "11.4.3",+ "@trpc/react-query": "11.4.3",+ "@trpc/server": "11.4.3",+ "@trpc/tanstack-react-query": "11.4.3",+ "class-variance-authority": "0.7.1",+ "clsx": "2.1.1",+ "cmdk": "1.1.1",+ "date-fns": "4.1.0",+ "lucide-react": "0.525.0",+ "next": "15.3.4",+ "next-auth": "5.0.0-beta.28",+ "next-themes": "0.4.6",+ "nuqs": "2.4.3",+ "random-word-slugs": "0.1.7",+ "react": "19.1.0",+ "react-day-picker": "8.10.1",+ "react-dom": "19.1.0",+ "react-hook-form": "7.54.1",+ "recharts": "2.15.0",+ "rehype-react": "8.0.0",+ "remark-gfm": "4.0.1",+ "remark-parse": "11.0.0",+ "remark-rehype": "11.1.2",+ "sonner": "2.0.5",+ "stripe": "13.8.0",+ "superjson": "2.2.2",+ "tailwind-merge": "3.3.1",+ "unified": "11.0.5",+ "zod": "3.24.1"+ },+ "devDependencies": {+ "@tailwindcss/postcss": "4.1.11",+ "@types/dom-speech-recognition": "0.0.6",+ "@types/node": "24.0.8",+ "@types/react": "19.1.6",+ "@types/react-dom": "19.1.6",+ "shadcn": "2.7.0",+ "tailwindcss": "4.1.11",+ "tw-animate-css": "1.3.4",+ "typescript": "5.7.2"+ }+}diff --git a/apps/dashboard/postcss.config.mjs b/apps/dashboard/postcss.config.mjsnew file mode 100644index 000000000..c7bcb4b1e--- /dev/null+++ b/apps/dashboard/postcss.config.mjs@@ -0,0 +1,5 @@+const config = {+ plugins: ["@tailwindcss/postcss"],+};++export default config;diff --git a/apps/dashboard/public/file.svg b/apps/dashboard/public/file.svgnew file mode 100644index 000000000..004145cdd--- /dev/null+++ b/apps/dashboard/public/file.svg@@ -0,0 +1 @@+<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>\ No newline at end of filediff --git a/apps/dashboard/public/fonts/CalSans-SemiBold.ttf b/apps/dashboard/public/fonts/CalSans-SemiBold.ttfnew file mode 100644index 000000000..4a2950a04Binary files /dev/null and b/apps/dashboard/public/fonts/CalSans-SemiBold.ttf differdiff --git a/apps/dashboard/public/globe.svg b/apps/dashboard/public/globe.svgnew file mode 100644index 000000000..567f17b0d--- /dev/null+++ b/apps/dashboard/public/globe.svg@@ -0,0 +1 @@+<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>\ No newline at end of filediff --git a/apps/dashboard/public/next.svg b/apps/dashboard/public/next.svgnew file mode 100644index 000000000..5174b28c5--- /dev/null+++ b/apps/dashboard/public/next.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>\ No newline at end of filediff --git a/apps/dashboard/public/vercel.svg b/apps/dashboard/public/vercel.svgnew file mode 100644index 000000000..770539603--- /dev/null+++ b/apps/dashboard/public/vercel.svg@@ -0,0 +1 @@+<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1155 1000"><path d="m577.3 0 577.4 1000H0z" fill="#fff"/></svg>\ No newline at end of filediff --git a/apps/dashboard/public/window.svg b/apps/dashboard/public/window.svgnew file mode 100644index 000000000..b2b2a44f6--- /dev/null+++ b/apps/dashboard/public/window.svg@@ -0,0 +1 @@+<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5h13v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1zM0 1h16v11.5a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 12.5zm3.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M7 4.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" fill="#666"/></svg>\ No newline at end of filediff --git a/apps/dashboard/sentry.client.config.ts b/apps/dashboard/sentry.client.config.tsnew file mode 100644index 000000000..c30964939--- /dev/null+++ b/apps/dashboard/sentry.client.config.ts@@ -0,0 +1,27 @@+// This file configures the initialization of Sentry on the client.+// The config you add here will be used whenever a users loads a page in their browser.+// https://docs.sentry.io/platforms/javascript/guides/nextjs/++import * as Sentry from "@sentry/nextjs";++Sentry.init({+ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,++ // Adjust this value in production, or use tracesSampler for greater control+ tracesSampleRate: 0.5,++ // Setting this option to true will print useful information to the console while you're setting up Sentry.+ debug: false,++ replaysOnErrorSampleRate: 1.0,++ // This sets the sample rate to be 10%. You may want this to be 100% while+ // in development and sample at a lower rate in production+ replaysSessionSampleRate: 0.1,++ // You can remove this option if you're not planning to use the Sentry Session Replay feature:+ integrations: [+ Sentry.replayIntegration({ maskAllText: true, blockAllMedia: true }),+ Sentry.captureConsoleIntegration({ levels: ["error"] }),+ ],+});diff --git a/apps/dashboard/sentry.edge.config.ts b/apps/dashboard/sentry.edge.config.tsnew file mode 100644index 000000000..0d4fd1acb--- /dev/null+++ b/apps/dashboard/sentry.edge.config.ts@@ -0,0 +1,16 @@+// This file configures the initialization of Sentry for edge features (middleware, edge routes, and so on).+// The config you add here will be used whenever one of the edge features is loaded.+// Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally.+// https://docs.sentry.io/platforms/javascript/guides/nextjs/+import * as Sentry from "@sentry/nextjs";++Sentry.init({+ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,++ // Adjust this value in production, or use tracesSampler for greater control+ tracesSampleRate: 0,++ // Setting this option to true will print useful information to the console while you're setting up Sentry.+ debug: false,+ integrations: [Sentry.captureConsoleIntegration({ levels: ["error"] })],+});diff --git a/apps/dashboard/sentry.server.config.ts b/apps/dashboard/sentry.server.config.tsnew file mode 100644index 000000000..b0e1adde7--- /dev/null+++ b/apps/dashboard/sentry.server.config.ts@@ -0,0 +1,16 @@+// This file configures the initialization of Sentry on the server.+// The config you add here will be used whenever the server handles a request.+// https://docs.sentry.io/platforms/javascript/guides/nextjs/++import * as Sentry from "@sentry/nextjs";++Sentry.init({+ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,++ // Adjust this value in production, or use tracesSampler for greater control+ tracesSampleRate: 0.2,++ // Setting this option to true will print useful information to the console while you're setting up Sentry.+ debug: false,+ integrations: [Sentry.captureConsoleIntegration({ levels: ["error"] })],+});diff --git a/apps/dashboard/src/app/(dashboard)/cli/layout.tsx b/apps/dashboard/src/app/(dashboard)/cli/layout.tsxnew file mode 100644index 000000000..f2f89e5d1--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/cli/layout.tsx@@ -0,0 +1,26 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { NavActions } from "./nav-actions";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <NavBreadcrumb items={[{ type: "page", label: "CLI" }]} />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/cli/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/cli/nav-actions.tsxnew file mode 100644index 000000000..1faf18959--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/cli/nav-actions.tsx@@ -0,0 +1,33 @@+import { NavFeedback } from "@/components/nav/nav-feedback";+import { Button } from "@/components/ui/button";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { Book } from "lucide-react";++export function NavActions() {+ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button variant="ghost" size="sm" className="group h-7 w-7" asChild>+ <a+ href={"https://docs.openstatus.dev/cli/getting-started/"}+ target="_blank"+ rel="noreferrer"+ >+ <Book className="h-4 w-4 text-muted-foreground group-hover:text-foreground" />+ </a>+ </Button>+ </TooltipTrigger>+ <TooltipContent>View Documentation</TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/cli/page.tsx b/apps/dashboard/src/app/(dashboard)/cli/page.tsxnew file mode 100644index 000000000..8f9a10de2--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/cli/page.tsx@@ -0,0 +1,242 @@+import { Code } from "@/components/common/code";+import { Link } from "@/components/common/link";+import {+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { Section } from "@/components/content/section";+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";+import { FileDown, FileJson, Key, Terminal } from "lucide-react";+import React from "react";++const OS = ["macOs", "Windows", "Linux"] as const;++const installs = [+ {+ title: "Install CLI",+ icon: Terminal,+ description:+ "Install the OpenStatus CLI to set up your monitors straight in your code.",+ command: {+ macOs: [+ "brew install openstatusHQ/cli/openstatus --cask",+ "curl -sSL instl.sh/openstatushq/cli/macos | bash",+ ],+ Linux: ["curl -sSL instl.sh/openstatushq/cli/linux | bash"],+ Windows: ["iwr instl.sh/openstatushq/cli/windows | iex"],+ },+ },+ {+ title: "Add API Key",+ icon: Key,+ description: (+ <>+ Create an API key in your workspace{" "}+ <Link href="/settings/workspace">settings.</Link>+ </>+ ),+ command: {+ macOs: ["export OPENSTATUS_API_TOKEN=<your-api-token>"],+ Windows: ["set OPENSTATUS_API_TOKEN=<your-api-token>"],+ Linux: ["export OPENSTATUS_API_TOKEN=<your-api-token>"],+ },+ },+ {+ title: "Import Monitors",+ icon: FileDown,+ description: "Import monitors from your workspace to a YAML file.",+ command: "openstatus monitors import",+ },+ {+ title: "Manage Monitors",+ icon: FileJson,+ description:+ "Add, remove, or update monitors from a YAML file and apply your changes.",+ command: "openstatus monitors apply",+ },+] satisfies {+ title: string;+ icon: React.ElementType;+ description: React.ReactNode;+ command: string | Record<(typeof OS)[number], string[]>;+}[];++const commands = [+ {+ command: "openstatus monitors list [options]",+ description: "List all monitors in your workspace.",+ },+ {+ command: "openstatus monitors info [monitor-id] [options]",+ description: "Get information about a specific monitor.",+ },+ {+ command: "openstatus monitors trigger [monitor-id] [options]",+ description: "Trigger a monitor.",+ },+ {+ command: "openstatus run [options]",+ description: "Run a list of monitors.",+ },+];++const templates = [+ {+ description: "MCP server",+ template: `# yaml-language-server: $schema=https://www.openstatus.dev/schema.json++mcp-server:+ name: "HF MCP Server"+ description: "Hugging Face MCP server monitoring"+ frequency: "1m"+ active: true+ regions: ["iad", "ams", "lax"]+ retry: 3+ kind: http+ request:+ url: https://hf.co/mcp+ method: POST+ body: >+ {+ "jsonrpc": "2.0",+ "id": "openstatus",+ "method": "ping"+ }+ headers:+ User-Agent: OpenStatus+ Accept: application/json, text/event-stream+ Content-Type: application/json+ assertions:+ - kind: statusCode+ compare: eq+ target: 200+ - kind: textBody+ compare: eq+ target: '{"result":{},"jsonrpc":"2.0","id":"openstatus"}'+`,+ },+];++export default function Page() {+ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>CLI</SectionTitle>+ <SectionDescription>+ Get started with the CLI to export and manage your monitors in your+ code.{" "}+ <Link+ href="https://docs.openstatus.dev/cli/getting-started/"+ target="_blank"+ rel="noopener noreferrer"+ >+ Read more+ </Link>+ .+ </SectionDescription>+ </SectionHeader>+ <Tabs defaultValue={OS[0]} className="flex flex-col gap-3">+ <TabsList>+ {OS.map((os) => (+ <TabsTrigger key={os} value={os}>+ {os}+ </TabsTrigger>+ ))}+ </TabsList>+ {OS.map((os) => (+ <TabsContent key={os} value={os} className="flex flex-col gap-6">+ {installs.map((step, i) => {+ const commands =+ typeof step.command === "string"+ ? step.command+ : step.command[os];+ return (+ <div key={i} className="flex flex-col gap-3">+ <div className="flex flex-col gap-1">+ <p className="flex items-center gap-2 font-medium text-sm">+ <step.icon className="size-4" />+ {step.title}+ </p>+ <p className="text-muted-foreground text-sm">+ {step.description}+ </p>+ </div>+ {typeof commands === "string" ? (+ <Code>{commands}</Code>+ ) : (+ <>+ {commands.map((command, i) => (+ <React.Fragment key={command}>+ <Code>{command}</Code>+ {i < commands.length - 1 && (+ <span className="text-muted-foreground">or</span>+ )}+ </React.Fragment>+ ))}+ </>+ )}+ </div>+ );+ })}+ </TabsContent>+ ))}+ </Tabs>+ </Section>+ <Section>+ <SectionHeader>+ <SectionTitle>Commands</SectionTitle>+ <SectionDescription>+ We have a few more commands to run. Check the{" "}+ <Link+ href="https://docs.openstatus.dev/cli/getting-started/"+ target="_blank"+ rel="noopener noreferrer"+ >+ documentation+ </Link>{" "}+ to read more.+ </SectionDescription>+ </SectionHeader>+ <ul className="flex flex-col gap-2">+ {commands.map((command, i) => (+ <li key={i} className="flex flex-col gap-0.5">+ <p className="text-muted-foreground text-xs">+ {command.description}+ </p>+ <Code>{command.command}</Code>+ </li>+ ))}+ </ul>+ </Section>+ <Section>+ <SectionHeader>+ <SectionTitle>Templates</SectionTitle>+ <SectionDescription>+ We have a few templates to help you get started. Check the{" "}+ <Link+ href="https://github.com/openstatusHQ/cli-template"+ target="_blank"+ rel="noopener noreferrer"+ >+ <code>@openstatusHQ/cli-template</code>+ </Link>{" "}+ repository for more.+ </SectionDescription>+ </SectionHeader>+ <div className="flex flex-col gap-6">+ {templates.map((template, i) => (+ <div key={i} className="flex flex-col gap-0.5">+ <p className="text-muted-foreground text-xs">+ {template.description}+ </p>+ <Code>{template.template}</Code>+ </div>+ ))}+ </div>+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/invite/client.tsx b/apps/dashboard/src/app/(dashboard)/invite/client.tsxnew file mode 100644index 000000000..f28d7c8c3--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/invite/client.tsx@@ -0,0 +1,101 @@+"use client";++import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { Button } from "@/components/ui/button";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery } from "@tanstack/react-query";+import { isTRPCClientError } from "@trpc/client";+import { useQueryStates } from "nuqs";+import { useTransition } from "react";+import { toast } from "sonner";+import { searchParamsParsers } from "./search-params";++export function Client() {+ const trpc = useTRPC();+ const [isPending, startTransition] = useTransition();+ const [{ token }] = useQueryStates(searchParamsParsers);+ const { data: invitation, error } = useQuery({+ ...trpc.invitation.get.queryOptions({ token }),+ retry: false,+ });+ const acceptInvitationMutation = useMutation(+ trpc.invitation.accept.mutationOptions({+ onSuccess: (workspace) => {+ if (!workspace) return;+ document.cookie = `workspace-slug=${workspace.slug}; path=/;`;+ window.location.href = "/overview";+ },+ }),+ );++ // TODO: check if we can have a high level wrapper for isTRPCClientError errors+ if (isTRPCClientError(error)) {+ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle className="text-destructive">Error</SectionTitle>+ <SectionDescription className="font-mono">+ {error.message}+ </SectionDescription>+ </SectionHeader>+ </Section>+ </SectionGroup>+ );+ }++ if (!invitation) return null;+ if (invitation.acceptedAt) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>Invitation</SectionTitle>+ <SectionDescription>+ You've been invited to join the workspace+ {invitation.workspace.name ? (+ <span className="font-semibold">{` ${invitation.workspace.name}`}</span>+ ) : (+ ""+ )}+ .+ </SectionDescription>+ </SectionHeader>+ <Button+ size="sm"+ onClick={() => {+ startTransition(async () => {+ try {+ const promise = acceptInvitationMutation.mutateAsync({+ id: invitation.id,+ });+ toast.promise(promise, {+ loading: "Accepting invitation...",+ success: "Invitation accepted",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to accept invitation";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }}+ >+ {isPending ? "Accepting..." : "Accept Invitation"}+ </Button>+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/invite/layout.tsx b/apps/dashboard/src/app/(dashboard)/invite/layout.tsxnew file mode 100644index 000000000..23734266d--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/invite/layout.tsx@@ -0,0 +1,25 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { NavActions } from "./nav-actions";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <NavBreadcrumb items={[{ type: "page", label: "Invite" }]} />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/invite/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/invite/nav-actions.tsxnew file mode 100644index 000000000..768c5c97f--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/invite/nav-actions.tsx@@ -0,0 +1,9 @@+import { NavFeedback } from "@/components/nav/nav-feedback";++export function NavActions() {+ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/invite/page.tsx b/apps/dashboard/src/app/(dashboard)/invite/page.tsxnew file mode 100644index 000000000..d1e38078a--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/invite/page.tsx@@ -0,0 +1,24 @@+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import { redirect } from "next/navigation";+import type { SearchParams } from "nuqs";+import { Client } from "./client";+import { searchParamsCache } from "./search-params";++export default async function InvitePage(props: {+ searchParams: Promise<SearchParams>;+}) {+ const { token } = await searchParamsCache.parse(props.searchParams);++ if (!token) {+ return redirect("/overview");+ }++ const queryClient = getQueryClient();+ await queryClient.prefetchQuery(trpc.invitation.get.queryOptions({ token }));++ return (+ <HydrateClient>+ <Client />+ </HydrateClient>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/invite/search-params.tsx b/apps/dashboard/src/app/(dashboard)/invite/search-params.tsxnew file mode 100644index 000000000..9f29abbef--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/invite/search-params.tsx@@ -0,0 +1,7 @@+import { createSearchParamsCache, parseAsString } from "nuqs/server";++export const searchParamsParsers = {+ token: parseAsString,+};++export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/dashboard/src/app/(dashboard)/layout.tsx b/apps/dashboard/src/app/(dashboard)/layout.tsxnew file mode 100644index 000000000..c418d08c6--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/layout.tsx@@ -0,0 +1,43 @@+import { AppSidebar } from "@/components/nav/app-sidebar";+import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";+import { auth } from "@/lib/auth";+import { TRPCReactProvider } from "@/lib/trpc/client";+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import { SessionProvider } from "next-auth/react";+import { cookies } from "next/headers";++export default async function Layout({+ children,+}: {+ children: React.ReactNode;+}) {+ const session = await auth();+ const cookieStore = await cookies();+ const hasState = cookieStore.has("sidebar_state");+ const defaultOpen = hasState+ ? cookieStore.get("sidebar_state")?.value === "true"+ : true;++ return (+ <SessionProvider session={session}>+ <TRPCReactProvider>+ <HydrateSidebar>+ <SidebarProvider defaultOpen={defaultOpen}>+ <AppSidebar />+ <SidebarInset>{children}</SidebarInset>+ </SidebarProvider>+ </HydrateSidebar>+ </TRPCReactProvider>+ </SessionProvider>+ );+}++async function HydrateSidebar({ children }: { children: React.ReactNode }) {+ const queryClient = getQueryClient();+ await queryClient.prefetchQuery(trpc.page.list.queryOptions());+ await queryClient.prefetchQuery(trpc.monitor.list.queryOptions());+ await queryClient.prefetchQuery(trpc.workspace.get.queryOptions());+ await queryClient.prefetchQuery(trpc.user.get.queryOptions());++ return <HydrateClient>{children}</HydrateClient>;+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/monitors/(list)/breadcrumb.tsxnew file mode 100644index 000000000..34e419b40--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/breadcrumb.tsx@@ -0,0 +1,5 @@+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";++export function Breadcrumb() {+ return <NavBreadcrumb items={[{ type: "page", label: "Monitors" }]} />;+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/client.tsx b/apps/dashboard/src/app/(dashboard)/monitors/(list)/client.tsxnew file mode 100644index 000000000..7ba47b3a9--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/client.tsx@@ -0,0 +1,198 @@+"use client";++import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { columns } from "@/components/data-table/monitors/columns";+import { MonitorDataTableActionBar } from "@/components/data-table/monitors/data-table-action-bar";+import { MonitorDataTableToolbar } from "@/components/data-table/monitors/data-table-toolbar";+import {+ MetricCardButton,+ MetricCardGroup,+ MetricCardHeader,+ MetricCardSkeleton,+ MetricCardTitle,+ MetricCardValue,+} from "@/components/metric/metric-card";+import { DataTable } from "@/components/ui/data-table/data-table";+import { DataTablePaginationSimple } from "@/components/ui/data-table/data-table-pagination";+import { getMonitorListMetrics } from "@/data/metrics.client";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import type { ColumnFiltersState, SortingState } from "@tanstack/react-table";+import { ArrowDown, CheckCircle, ListFilter } from "lucide-react";+import { useQueryStates } from "nuqs";+import { useEffect, useState } from "react";+import { searchParamsParsers } from "./search-params";++const icons = {+ default: {+ active: CheckCircle,+ inactive: ListFilter,+ },+ p95: {+ active: ArrowDown,+ inactive: ListFilter,+ },+} as const;++export function Client() {+ const trpc = useTRPC();+ const { data: monitors } = useQuery(trpc.monitor.list.queryOptions());+ const { data: tags } = useQuery(trpc.monitorTag.list.queryOptions());+ const [searchParams, setSearchParams] = useQueryStates(searchParamsParsers);+ const [sorting, setSorting] = useState<SortingState>([]);+ const [columnFilters, setColumnFilters] = useState<ColumnFiltersState>([]);++ const monitorsByType = {+ http:+ monitors+ ?.filter((m) => m.jobType === "http")+ .map((m) => m.id.toString()) ?? [],+ tcp:+ monitors+ ?.filter((m) => m.jobType === "tcp")+ .map((m) => m.id.toString()) ?? [],+ };+ const { http: httpMonitors, tcp: tcpMonitors } = monitorsByType;++ // HMM: why do we need two queries?+ const { data: globalHttpMetrics, isLoading: isLoadingHttp } = useQuery({+ ...trpc.tinybird.globalMetrics.queryOptions({+ monitorIds: httpMonitors,+ type: "http",+ }),+ enabled: httpMonitors.length > 0,+ });++ const { data: globalTcpMetrics, isLoading: isLoadingTcp } = useQuery({+ ...trpc.tinybird.globalMetrics.queryOptions({+ monitorIds: tcpMonitors,+ type: "tcp",+ }),+ enabled: tcpMonitors.length > 0,+ });++ // TODO: ideally we read from the searchParamsCache and there is no layout shift+ // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>+ useEffect(() => {+ if (searchParams.status) {+ setColumnFilters([{ id: "status", value: [searchParams.status] }]);+ }+ if (searchParams.sort) {+ setSorting([searchParams.sort]);+ }+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, []);++ if (!monitors) return null;++ const metrics = getMonitorListMetrics(monitors, [+ ...(globalHttpMetrics?.data ?? []),+ ...(globalTcpMetrics?.data ?? []),+ ]);++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>Monitors</SectionTitle>+ <SectionDescription>+ Create and manage your monitors.+ </SectionDescription>+ </SectionHeader>+ <MetricCardGroup>+ {metrics.map((metric) => {+ const statusArray = columnFilters.find((f) => f.id === "status")+ ?.value as string[] | undefined;++ let isActive = false;+ if (metric.key === "p95") {+ isActive = !!sorting.find((s) => s.id === "p95" && s.desc);+ } else {+ isActive =+ Array.isArray(statusArray) && statusArray.includes(metric.key);+ }++ const iconGroup = metric.key === "p95" ? icons.p95 : icons.default;+ const Icon = iconGroup[isActive ? "active" : "inactive"];++ return (+ <MetricCardButton+ key={metric.title}+ variant={metric.variant}+ onClick={() => {+ if (metric.key === "p95") {+ if (sorting.length === 0 || !isActive) {+ setSearchParams({ sort: { id: "p95", desc: true } });+ setSorting([{ id: "p95", desc: true }]);+ } else {+ setSearchParams({ sort: null });+ setSorting([]);+ }+ } else {+ if (columnFilters.length === 0 || !isActive) {+ setSearchParams({ status: metric.key });+ setColumnFilters([{ id: "status", value: [metric.key] }]);+ } else {+ setSearchParams({ status: null });+ setColumnFilters([]);+ }+ }+ }}+ >+ <MetricCardHeader className="flex w-full items-center justify-between gap-2">+ <MetricCardTitle className="truncate">+ {metric.title}+ </MetricCardTitle>+ <Icon className="size-4" />+ </MetricCardHeader>+ {metric.key === "p95" && (isLoadingHttp || isLoadingTcp) ? (+ <MetricCardSkeleton className="h-6 w-12" />+ ) : (+ <MetricCardValue>{metric.value}</MetricCardValue>+ )}+ </MetricCardButton>+ );+ })}+ </MetricCardGroup>+ </Section>+ <Section>+ <DataTable+ columns={columns}+ data={monitors.map((monitor) => ({+ ...monitor,+ globalMetrics:+ isLoadingHttp || isLoadingTcp+ ? undefined+ : monitor.jobType === "http"+ ? globalHttpMetrics?.data?.find(+ (m) => m.monitorId === monitor.id.toString(),+ ) ?? false+ : globalTcpMetrics?.data?.find(+ (m) => m.monitorId === monitor.id.toString(),+ ) ?? false,+ }))}+ actionBar={MonitorDataTableActionBar}+ toolbarComponent={(props) => (+ <MonitorDataTableToolbar {...props} tags={tags ?? []} />+ )}+ paginationComponent={DataTablePaginationSimple}+ columnFilters={columnFilters}+ setColumnFilters={setColumnFilters}+ sorting={sorting}+ setSorting={setSorting}+ defaultColumnVisibility={{+ active: false,+ url: false,+ jobType: false,+ }}+ />+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/(list)/layout.tsxnew file mode 100644index 000000000..29afe1b3d--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/layout.tsx@@ -0,0 +1,25 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";+import { Breadcrumb } from "./breadcrumb";+import { NavActions } from "./nav-actions";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <Breadcrumb />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/monitors/(list)/nav-actions.tsxnew file mode 100644index 000000000..f20ad743f--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/nav-actions.tsx@@ -0,0 +1,41 @@+"use client";++import { UpgradeDialog } from "@/components/dialogs/upgrade";+import { NavFeedback } from "@/components/nav/nav-feedback";+import { Button } from "@/components/ui/button";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import Link from "next/link";+import { useState } from "react";++export function NavActions() {+ const trpc = useTRPC();+ const [openDialog, setOpenDialog] = useState(false);+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const { data: monitors } = useQuery(trpc.monitor.list.queryOptions());++ if (!workspace || !monitors) return null;++ const limitReached = monitors.length >= workspace.limits.monitors;++ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ {limitReached ? (+ <Button+ size="sm"+ data-disabled={limitReached}+ className="data-[disabled=true]:opacity-50"+ onClick={() => setOpenDialog(true)}+ >+ Create Monitor+ </Button>+ ) : (+ <Button size="sm" asChild>+ <Link href="/monitors/create">Create Monitor</Link>+ </Button>+ )}+ <UpgradeDialog open={openDialog} onOpenChange={setOpenDialog} />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/(list)/page.tsxnew file mode 100644index 000000000..a22b1904d--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/page.tsx@@ -0,0 +1,22 @@+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import type { SearchParams } from "nuqs";+import { Client } from "./client";+import { searchParamsCache } from "./search-params";++export default async function Page({+ searchParams,+}: {+ searchParams: Promise<SearchParams>;+}) {+ const queryClient = getQueryClient();++ await searchParamsCache.parse(searchParams);+ await queryClient.prefetchQuery(trpc.monitor.list.queryOptions());+ await queryClient.prefetchQuery(trpc.monitorTag.list.queryOptions());++ return (+ <HydrateClient>+ <Client />+ </HydrateClient>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/(list)/search-params.ts b/apps/dashboard/src/app/(dashboard)/monitors/(list)/search-params.tsnew file mode 100644index 000000000..4843b0ddf--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/(list)/search-params.ts@@ -0,0 +1,23 @@+import {+ createParser,+ createSearchParamsCache,+ parseAsStringEnum,+} from "nuqs/server";++export const parseAsSort = createParser({+ parse(queryValue) {+ const [id, desc] = queryValue.split(".");+ if (!id && !desc) return null;+ return { id, desc: desc === "desc" };+ },+ serialize(value) {+ return `${value.id}.${value.desc ? "desc" : "asc"}`;+ },+});++export const searchParamsParsers = {+ status: parseAsStringEnum(["active", "degraded", "error", "inactive"]),+ sort: parseAsSort,+};++export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/breadcrumb.tsxnew file mode 100644index 000000000..d9dd73d1c--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/breadcrumb.tsx@@ -0,0 +1,35 @@+"use client";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { Cog, LayoutGrid, Logs, Siren } from "lucide-react";+import { useParams } from "next/navigation";++export function Breadcrumb() {+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const { data: monitor } = useQuery(+ trpc.monitor.get.queryOptions({ id: Number.parseInt(id) }),+ );++ if (!monitor) return null;++ return (+ <NavBreadcrumb+ items={[+ { type: "link", label: "Monitors", href: "/monitors" },+ { type: "page", label: monitor.name },+ {+ type: "select",+ items: [+ { value: "overview", label: "Overview", icon: LayoutGrid },+ { value: "logs", label: "Logs", icon: Logs },+ { value: "incidents", label: "Incidents", icon: Siren },+ { value: "edit", label: "Settings", icon: Cog },+ ],+ },+ ]}+ />+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/edit/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/edit/layout.tsxnew file mode 100644index 000000000..34360a88b--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/edit/layout.tsx@@ -0,0 +1,12 @@+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";++export default async function Layout({+ children,+}: {+ children: React.ReactNode;+}) {+ const queryClient = getQueryClient();+ await queryClient.prefetchQuery(trpc.monitorTag.list.queryOptions());++ return <HydrateClient>{children}</HydrateClient>;+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/edit/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/edit/page.tsxnew file mode 100644index 000000000..98e2f66a9--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/edit/page.tsx@@ -0,0 +1,35 @@+"use client";++import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { FormMonitorUpdate } from "@/components/forms/monitor/update";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { useParams } from "next/navigation";++export default function Page() {+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const { data: monitor } = useQuery(+ trpc.monitor.get.queryOptions({ id: Number.parseInt(id) }),+ );++ if (!monitor) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>{monitor.name}</SectionTitle>+ <SectionDescription>Customize your monitor.</SectionDescription>+ </SectionHeader>+ <FormMonitorUpdate />+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/layout.tsxnew file mode 100644index 000000000..abc810d42--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/layout.tsx@@ -0,0 +1,13 @@+import { SidebarProvider } from "@/components/ui/sidebar";+import { Sidebar } from "../sidebar";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <SidebarProvider defaultOpen={false}>+ <div className="w-full flex-1">{children}</div>+ <div className="hidden lg:block">+ <Sidebar />+ </div>+ </SidebarProvider>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/page.tsxnew file mode 100644index 000000000..c50e7afa2--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/incidents/page.tsx@@ -0,0 +1,68 @@+"use client";++import {+ EmptyStateContainer,+ EmptyStateDescription,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { columns } from "@/components/data-table/incidents/columns";+import { DataTable } from "@/components/ui/data-table/data-table";+import { DataTablePaginationSimple } from "@/components/ui/data-table/data-table-pagination";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { useParams } from "next/navigation";++export default function Page() {+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const { data: incidents } = useQuery(+ trpc.incident.list.queryOptions({+ monitorId: Number.parseInt(id),+ }),+ );+ const { data: monitor } = useQuery(+ trpc.monitor.get.queryOptions({ id: Number.parseInt(id) }),+ );++ if (!incidents || !monitor) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>{monitor.name}</SectionTitle>+ <SectionDescription>+ {monitor.jobType === "http" ? (+ <a href={monitor.url} target="_blank" rel="noopener noreferrer">+ {monitor.url}+ </a>+ ) : (+ monitor.url+ )}+ </SectionDescription>+ </SectionHeader>+ {incidents.length === 0 ? (+ <EmptyStateContainer>+ <EmptyStateTitle>No incidents</EmptyStateTitle>+ <EmptyStateDescription>+ No incidents found for this monitor.+ </EmptyStateDescription>+ </EmptyStateContainer>+ ) : (+ <DataTable+ columns={columns}+ data={incidents}+ paginationComponent={DataTablePaginationSimple}+ />+ )}+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/layout.tsxnew file mode 100644index 000000000..b881d52cc--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/layout.tsx@@ -0,0 +1,43 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import { Breadcrumb } from "./breadcrumb";+import { NavActions } from "./nav-actions";++export default async function Layout({+ children,+ params,+}: {+ children: React.ReactNode;+ params: Promise<{ id: string }>;+}) {+ const { id } = await params;+ const queryClient = getQueryClient();++ await queryClient.prefetchQuery(+ trpc.monitor.get.queryOptions({ id: Number.parseInt(id) }),+ );++ await queryClient.prefetchQuery(trpc.notification.list.queryOptions());++ return (+ <HydrateClient>+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <Breadcrumb />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="flex-1">{children}</main>+ </div>+ </HydrateClient>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/client.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/client.tsxnew file mode 100644index 000000000..52e75286e--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/client.tsx@@ -0,0 +1,169 @@+"use client";++import { Link } from "@/components/common/link";+import {+ BillingOverlay,+ BillingOverlayButton,+ BillingOverlayContainer,+ BillingOverlayDescription,+} from "@/components/content/billing-overlay";+import {+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";++import { Section } from "@/components/content/section";+import { ButtonReset } from "@/components/controls-search/button-reset";+import { CommandRegion } from "@/components/controls-search/command-region";+import { DropdownStatus } from "@/components/controls-search/dropdown-status";+import { DropdownTrigger } from "@/components/controls-search/dropdown-trigger";+import { PopoverDate } from "@/components/controls-search/popover-date";+import { columns } from "@/components/data-table/response-logs/columns";+import { Sheet } from "@/components/data-table/response-logs/data-table-sheet";+import { DataTable } from "@/components/ui/data-table/data-table";+import { DataTablePagination } from "@/components/ui/data-table/data-table-pagination";+import { DataTableSkeleton } from "@/components/ui/data-table/data-table-skeleton";+import { exampleLogs } from "@/data/response-logs";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import type { PaginationState } from "@tanstack/react-table";+import { Lock } from "lucide-react";+import { useParams } from "next/navigation";+import { useQueryStates } from "nuqs";+import { useCallback, useMemo } from "react";+import { searchParamsParsers } from "./search-params";++export function Client() {+ const trpc = useTRPC();+ const { id } = useParams<{ id: string }>();+ const [+ { regions, status, selected, trigger, from, to, pageIndex, pageSize },+ setSearchParams,+ ] = useQueryStates(searchParamsParsers);+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const { data: monitor } = useQuery(+ trpc.monitor.get.queryOptions({ id: Number.parseInt(id) }),+ );+ const enabled = workspace && workspace?.plan !== "free";+ const { data: _logs, isLoading } = useQuery({+ ...trpc.tinybird.list.queryOptions({ monitorId: id, from, to }),+ enabled,+ });+ const { data: _log } = useQuery({+ ...trpc.tinybird.get.queryOptions({ id: selected, monitorId: id }),+ enabled: !!selected && enabled,+ });++ const pagination = useMemo(+ () => ({ pageIndex, pageSize }),+ [pageIndex, pageSize],+ );++ const setPagination = useCallback(+ (p: PaginationState | ((old: PaginationState) => PaginationState)) => {+ const next = typeof p === "function" ? p({ pageIndex, pageSize }) : p;++ if (next.pageIndex !== pageIndex || next.pageSize !== pageSize) {+ setSearchParams({+ pageIndex: next.pageIndex,+ pageSize: next.pageSize,+ });+ }+ },+ [pageIndex, pageSize, setSearchParams],+ );++ if (!workspace || !monitor) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>{monitor.name}</SectionTitle>+ <SectionDescription>+ {monitor.jobType === "http" ? (+ <a href={monitor.url} target="_blank" rel="noopener noreferrer">+ {monitor.url}+ </a>+ ) : (+ monitor.url+ )}+ </SectionDescription>+ </SectionHeader>+ <div className="flex flex-wrap items-center gap-2">+ <PopoverDate />+ {monitor.jobType === "http" ? <DropdownStatus /> : null}+ <DropdownTrigger />+ <CommandRegion regions={monitor.regions} />+ <ButtonReset />+ </div>+ </Section>+ <Section>+ {isLoading ? (+ <DataTableSkeleton rows={10} />+ ) : !enabled ? (+ <BillingPlaceholder />+ ) : (+ <DataTable+ data={_logs?.data ?? []}+ columns={columns}+ onRowClick={(row) => {+ if (!row.original.id) return;+ setSearchParams({ selected: row.original.id });+ }}+ columnFilters={[+ { id: "trigger", value: trigger },+ { id: "requestStatus", value: status },+ { id: "region", value: regions },+ ].filter((i) => Boolean(i.value))}+ pagination={pagination}+ setPagination={setPagination}+ paginationComponent={DataTablePagination}+ defaultColumnVisibility={+ monitor.jobType === "tcp"+ ? { timing: false, statusCode: false }+ : {}+ }+ // NOTE: required to control the pagination+ autoResetPageIndex={false}+ />+ )}+ <Sheet+ data={_log?.data?.length ? _log.data[0] : null}+ onClose={() =>+ setTimeout(() => setSearchParams({ selected: null }), 300)+ }+ />+ </Section>+ </SectionGroup>+ );+}++function BillingPlaceholder() {+ return (+ <BillingOverlayContainer>+ <DataTable data={exampleLogs} columns={columns} />+ <BillingOverlay>+ <BillingOverlayButton asChild>+ <Link href="/settings/billing">+ <Lock />+ Upgrade+ </Link>+ </BillingOverlayButton>+ <BillingOverlayDescription>+ Access response headers, timing phases and more for each request.{" "}+ <Link+ href="https://docs.openstatus.dev/monitoring/monitor-data-collected/"+ rel="noreferrer"+ target="_blank"+ >+ Learn more+ </Link>+ .+ </BillingOverlayDescription>+ </BillingOverlay>+ </BillingOverlayContainer>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/page.tsxnew file mode 100644index 000000000..478df3192--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/page.tsx@@ -0,0 +1,14 @@+import type { SearchParams } from "nuqs/server";+import { Client } from "./client";+import { searchParamsCache } from "./search-params";++export default async function Page({+ searchParams,+}: {+ searchParams: Promise<SearchParams>;+}) {+ // NOTE: store in cache to avoid flicker on clients first render+ await searchParamsCache.parse(searchParams);++ return <Client />;+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/search-params.ts b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/search-params.tsnew file mode 100644index 000000000..73cd4f370--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/logs/search-params.ts@@ -0,0 +1,29 @@+import { PERIODS, STATUS, TRIGGER } from "@/data/metrics.client";+import { flyRegions } from "@openstatus/db/src/schema/constants";+import { endOfDay } from "date-fns";+import { startOfDay } from "date-fns";+import {+ createSearchParamsCache,+ parseAsArrayOf,+ parseAsInteger,+ parseAsIsoDateTime,+ parseAsString,+ parseAsStringLiteral,+} from "nuqs/server";++export const searchParamsParsers = {+ period: parseAsStringLiteral(PERIODS).withDefault("1d"),+ regions: parseAsArrayOf(parseAsStringLiteral(flyRegions)).withDefault(+ // FIXME: readonly+ flyRegions as unknown as (typeof flyRegions)[number][],+ ),+ status: parseAsStringLiteral(STATUS),+ trigger: parseAsStringLiteral(TRIGGER),+ selected: parseAsString,+ from: parseAsIsoDateTime.withDefault(startOfDay(new Date())),+ to: parseAsIsoDateTime.withDefault(endOfDay(new Date())),+ pageIndex: parseAsInteger.withDefault(0),+ pageSize: parseAsInteger.withDefault(20),+};++export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/nav-actions.tsxnew file mode 100644index 000000000..307dcceec--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/nav-actions.tsx@@ -0,0 +1,195 @@+"use client";++import { DataTableSheetTest } from "@/components/data-table/response-logs/data-table-sheet-test";+import { QuickActions } from "@/components/dropdowns/quick-actions";+import { NavFeedback } from "@/components/nav/nav-feedback";+import { Button } from "@/components/ui/button";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { getActions } from "@/data/monitors.client";+import { useTRPC } from "@/lib/trpc/client";+import type { RouterOutputs } from "@openstatus/api";+import { deserialize } from "@openstatus/assertions";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { isTRPCClientError } from "@trpc/client";+import { Zap } from "lucide-react";+import { useParams, usePathname, useRouter } from "next/navigation";+import { useState } from "react";+import { toast } from "sonner";++type TestTCP = RouterOutputs["checker"]["testTcp"];+type TestHTTP = RouterOutputs["checker"]["testHttp"];++export function NavActions() {+ const { id } = useParams<{ id: string }>();+ const [test, setTest] = useState<TestTCP | TestHTTP | null>(null);+ const queryClient = useQueryClient();+ const trpc = useTRPC();+ const router = useRouter();+ const pathname = usePathname();++ const { data: monitor } = useQuery(+ trpc.monitor.get.queryOptions({ id: Number.parseInt(id) }),+ );++ const deleteMonitorMutation = useMutation(+ trpc.monitor.delete.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.monitor.list.queryKey(),+ });+ if (pathname.includes(`/monitors/${id}`)) {+ router.push("/monitors");+ }+ },+ }),+ );++ const cloneMonitorMutation = useMutation(+ trpc.monitor.clone.mutationOptions({+ onSuccess: (newMonitor) => {+ queryClient.invalidateQueries({+ queryKey: trpc.monitor.list.queryKey(),+ });+ router.push(`/monitors/${newMonitor.id}`);+ },+ }),+ );++ const testHttpMutation = useMutation(trpc.checker.testHttp.mutationOptions());+ const testTcpMutation = useMutation(trpc.checker.testTcp.mutationOptions());++ const actions = getActions({+ edit: () => router.push(`/monitors/${id}/edit`),+ "copy-id": () => {+ navigator.clipboard.writeText("ID");+ toast.success("Monitor ID copied to clipboard");+ },+ clone: () => {+ const promise = cloneMonitorMutation.mutateAsync({+ id: Number.parseInt(id),+ });+ toast.promise(promise, {+ loading: "Cloning monitor...",+ success: "Monitor cloned",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to clone monitor";+ },+ });+ },+ });++ async function testAction() {+ if (monitor?.jobType === "http") {+ const assertions = deserialize(monitor.assertions ?? "[]");+ const promise = testHttpMutation.mutateAsync({+ url: monitor.url,+ body: monitor.body,+ method: monitor.method,+ headers: monitor.headers,+ assertions: assertions.map((a) => a.schema),+ });++ toast.promise(promise, {+ loading: "Testing HTTP request...",+ success: (data) => {+ setTest(data);+ return "HTTP test completed successfully";+ },+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "HTTP test failed";+ },+ });+ } else if (monitor?.jobType === "tcp") {+ const promise = testTcpMutation.mutateAsync({ url: monitor.url });++ toast.promise(promise, {+ loading: "Testing TCP connection...",+ success: (data) => {+ setTest(data);+ return "TCP test completed successfully";+ },+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "TCP test failed";+ },+ });+ }+ }++ if (!monitor) return null;++ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ <div className="hidden font-medium text-muted-foreground lg:inline-block">+ {!monitor.active ? (+ <span className="relative ml-1.5 inline-flex">+ <span className="relative inline-flex h-2.5 w-2.5 rounded-full bg-muted-foreground/70" />+ </span>+ ) : monitor.status === "active" ? (+ <span className="relative ml-1.5 inline-flex">+ <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-success/80 opacity-75" />+ <span className="relative inline-flex h-2.5 w-2.5 rounded-full bg-success" />+ </span>+ ) : monitor.status === "error" ? (+ <span className="relative ml-1.5 inline-flex">+ <span className="relative inline-flex h-2.5 w-2.5 rounded-full bg-error" />+ </span>+ ) : (+ <span className="relative ml-1.5 inline-flex">+ <span className="relative inline-flex h-2.5 w-2.5 rounded-full bg-warning" />+ </span>+ )}+ </div>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="ghost"+ size="icon"+ className="group h-7 w-7"+ type="button"+ onClick={testAction}+ >+ <Zap className="text-muted-foreground group-hover:text-foreground" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Test Monitor</TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Monitor",+ confirmationValue: "delete monitor",+ submitAction: async () => {+ await deleteMonitorMutation.mutateAsync({+ id: Number.parseInt(id),+ });+ },+ }}+ />+ <DataTableSheetTest+ data={test}+ monitor={monitor}+ onClose={async () => {+ await new Promise((resolve) => setTimeout(() => resolve(true), 300));+ setTest(null);+ }}+ />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/client.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/client.tsxnew file mode 100644index 000000000..43f0cf8a0--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/client.tsx@@ -0,0 +1,167 @@+"use client";++import { ChartAreaLatency } from "@/components/chart/chart-area-latency";+import { ChartAreaTimingPhases } from "@/components/chart/chart-area-timing-phases";+import { ChartBarUptime } from "@/components/chart/chart-bar-uptime";+import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { ButtonReset } from "@/components/controls-search/button-reset";+import { CommandRegion } from "@/components/controls-search/command-region";+import { DropdownInterval } from "@/components/controls-search/dropdown-interval";+import { DropdownPercentile } from "@/components/controls-search/dropdown-percentile";+import { DropdownPeriod } from "@/components/controls-search/dropdown-period";+import { AuditLogsWrapper } from "@/components/data-table/audit-logs/wrapper";+import { columns as regionColumns } from "@/components/data-table/response-logs/regions/columns";+import { GlobalUptimeSection } from "@/components/metric/global-uptime/section";+import { DataTable } from "@/components/ui/data-table/data-table";+import { mapRegionMetrics } from "@/data/metrics.client";+import type { RegionMetric } from "@/data/region-metrics";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { useParams } from "next/navigation";+import { useQueryStates } from "nuqs";+import React from "react";+import { searchParamsParsers } from "./search-params";++const TIMELINE_INTERVAL = 30; // in days++export function Client() {+ const trpc = useTRPC();+ const { id } = useParams<{ id: string }>();+ const [{ period, regions: selectedRegions, percentile, interval }] =+ useQueryStates(searchParamsParsers);+ const { data: monitor } = useQuery(+ trpc.monitor.get.queryOptions({ id: Number.parseInt(id) }),+ );++ const regionTimelineQuery = {+ ...trpc.tinybird.metricsRegions.queryOptions({+ monitorId: id,+ period: period,+ type: (monitor?.jobType ?? "http") as "http" | "tcp",+ regions: selectedRegions,+ // Request 30-minute buckets by default+ interval: 30,+ }),+ enabled: !!monitor,+ } as const;++ const { data: regionTimeline } = useQuery(regionTimelineQuery);++ const regionMetrics: RegionMetric[] = React.useMemo(() => {+ return mapRegionMetrics(regionTimeline, monitor?.regions ?? []);+ }, [regionTimeline, monitor]);++ if (!monitor) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>{monitor.name}</SectionTitle>+ <SectionDescription>+ {monitor.jobType === "http" ? (+ <a href={monitor.url} target="_blank" rel="noopener noreferrer">+ {monitor.url}+ </a>+ ) : (+ monitor.url+ )}+ </SectionDescription>+ </SectionHeader>+ <div className="flex flex-wrap gap-2">+ <div>+ <DropdownPeriod /> including{" "}+ <CommandRegion regions={monitor.regions} />+ </div>+ <div>+ <ButtonReset only={["period", "regions"]} />+ </div>+ </div>+ <GlobalUptimeSection+ monitorId={id}+ jobType={monitor.jobType as "http" | "tcp"}+ period={period}+ regions={selectedRegions}+ />+ </Section>+ <Section>+ <SectionHeader>+ <SectionTitle>Uptime</SectionTitle>+ <SectionDescription>+ Uptime accross all the regions+ </SectionDescription>+ </SectionHeader>+ <ChartBarUptime+ monitorId={id}+ type={monitor.jobType as "http" | "tcp"}+ period={period}+ regions={monitor.regions.filter((region) =>+ selectedRegions.includes(region),+ )}+ />+ </Section>+ <Section>+ {/* TODO: based on http, we have Timing Phases instead of Latency */}+ <SectionHeader>+ <SectionTitle>Latency</SectionTitle>+ <SectionDescription>+ Response time accross all the regions+ </SectionDescription>+ </SectionHeader>+ <div className="flex flex-wrap gap-2">+ <div>+ The <DropdownPercentile /> quantile within a <DropdownInterval />{" "}+ resolution+ </div>+ <div>+ <ButtonReset only={["percentile", "interval"]} />+ </div>+ </div>+ {monitor.jobType === "http" ? (+ <ChartAreaTimingPhases+ monitorId={id}+ degradedAfter={monitor.degradedAfter}+ type={monitor.jobType as "http"}+ period={period}+ percentile={percentile}+ interval={interval}+ regions={selectedRegions}+ />+ ) : (+ <ChartAreaLatency+ monitorId={id}+ percentile={percentile}+ degradedAfter={monitor.degradedAfter}+ type={monitor.jobType as "http" | "tcp"}+ period={period}+ regions={selectedRegions}+ />+ )}+ </Section>+ <Section>+ <SectionHeader>+ <SectionTitle>Timeline</SectionTitle>+ <SectionDescription>+ What happened to your monitor over the last {TIMELINE_INTERVAL} days+ </SectionDescription>+ </SectionHeader>+ <AuditLogsWrapper monitorId={id} interval={TIMELINE_INTERVAL} />+ </Section>+ <Section>+ <SectionHeader>+ <SectionTitle>Regions</SectionTitle>+ <SectionDescription>+ Every region's latency over the last 24 hours+ </SectionDescription>+ </SectionHeader>+ <DataTable data={regionMetrics} columns={regionColumns} />+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/layout.tsxnew file mode 100644index 000000000..2ea65b637--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/layout.tsx@@ -0,0 +1,14 @@+import { SidebarProvider } from "@/components/ui/sidebar";+import { Sidebar } from "../sidebar";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <SidebarProvider defaultOpen={false}>+ {/* blur-2xl */}+ <div className="w-full flex-1">{children}</div>+ <div className="hidden lg:block">+ <Sidebar />+ </div>+ </SidebarProvider>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/page.tsxnew file mode 100644index 000000000..478df3192--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/page.tsx@@ -0,0 +1,14 @@+import type { SearchParams } from "nuqs/server";+import { Client } from "./client";+import { searchParamsCache } from "./search-params";++export default async function Page({+ searchParams,+}: {+ searchParams: Promise<SearchParams>;+}) {+ // NOTE: store in cache to avoid flicker on clients first render+ await searchParamsCache.parse(searchParams);++ return <Client />;+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/search-params.ts b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/search-params.tsnew file mode 100644index 000000000..257a0c917--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/overview/search-params.ts@@ -0,0 +1,23 @@+import { INTERVALS } from "@/data/metrics.client";+import { flyRegions } from "@openstatus/db/src/schema/constants";+import {+ createSearchParamsCache,+ parseAsArrayOf,+ parseAsNumberLiteral,+ parseAsStringLiteral,+} from "nuqs/server";++const PERIOD = ["1d", "7d", "14d"] as const;+const PERCENTILE = ["p50", "p75", "p90", "p95", "p99"] as const;++export const searchParamsParsers = {+ period: parseAsStringLiteral(PERIOD).withDefault("1d"),+ regions: parseAsArrayOf(parseAsStringLiteral(flyRegions)).withDefault(+ // FIXME: readonly+ flyRegions as unknown as (typeof flyRegions)[number][],+ ),+ percentile: parseAsStringLiteral(PERCENTILE).withDefault("p50"),+ interval: parseAsNumberLiteral(INTERVALS).withDefault(30),+};++export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/page.tsxnew file mode 100644index 000000000..51aad8513--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/page.tsx@@ -0,0 +1,10 @@+import { redirect } from "next/navigation";++export default async function Page({+ params,+}: {+ params: Promise<{ id: string }>;+}) {+ const { id } = await params;+ redirect(`/monitors/${id}/overview`);+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/[id]/sidebar.tsx b/apps/dashboard/src/app/(dashboard)/monitors/[id]/sidebar.tsxnew file mode 100644index 000000000..d944c1587--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/[id]/sidebar.tsx@@ -0,0 +1,200 @@+"use client";++import { TableCellLink } from "@/components/data-table/table-cell-link";+import { SidebarRight } from "@/components/nav/sidebar-right";+import { Badge } from "@/components/ui/badge";+import { formatMilliseconds } from "@/lib/formatter";+import { useTRPC } from "@/lib/trpc/client";+import { deserialize } from "@openstatus/assertions";+import { useQuery } from "@tanstack/react-query";+import { Logs } from "lucide-react";+import { useParams, useRouter } from "next/navigation";++export function Sidebar() {+ const router = useRouter();+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const { data: monitor } = useQuery(+ trpc.monitor.get.queryOptions({ id: Number.parseInt(id) }),+ );++ if (!monitor) return null;++ const assertions = monitor.assertions ? deserialize(monitor.assertions) : [];++ return (+ <SidebarRight+ header="Monitor"+ metadata={[+ {+ label: "Overview",+ items: [+ {+ label: "Status",+ // FIXME: dynamic+ value: <span className="text-success">Normal</span>,+ },+ {+ label: "Type",+ value: <span className="uppercase">{monitor.jobType}</span>,+ },+ {+ label: "Endpoint",+ value: monitor.url.replace(/^https?:\/\//, ""),+ },+ {+ label: "Regions",+ value:+ monitor.regions.length > 6+ ? `${monitor.regions.length} regions`+ : monitor.regions.join(", "),+ },+ {+ label: "Tags",+ value: (+ <div className="group/badges -space-x-2 flex flex-wrap">+ {monitor.tags.map((tag) => (+ <Badge+ key={tag.id}+ variant="outline"+ className="relative flex translate-x-0 items-center gap-1.5 rounded-full bg-background transition-transform hover:z-10 hover:translate-x-1"+ >+ <div+ className="size-2.5 rounded-full"+ style={{ backgroundColor: tag.color }}+ />+ {tag.name}+ </Badge>+ ))}+ </div>+ ),+ },+ ],+ },+ {+ label: "Configuration",+ items: [+ { label: "Periodicity", value: monitor.periodicity },+ {+ label: "Timeout",+ value: formatMilliseconds(monitor.timeout),+ },+ { label: "Public", value: String(monitor.public) },+ { label: "Active", value: String(monitor.active) },+ ],+ },+ {+ label: "Notifications",+ items: monitor.notifications.flatMap((notification) => {+ const arr = [];+ arr.push({+ label: "Name",+ value: (+ <TableCellLink+ href={`/notifications/${notification.id}`}+ value={notification.name}+ />+ ),+ });+ arr.push({+ label: "Type",+ value: notification.provider,+ isNested: true,+ });+ arr.push({+ label: "Value",+ value: notification.data, // TODO: improve this based on the provider - we might wanna parse it!+ isNested: true,+ });+ return arr;+ }),+ },+ {+ label: "Assertions",+ items:+ assertions.length > 0+ ? assertions.flatMap((assertion) => {+ const arr = [];++ arr.push({+ label: "Type",+ value: assertion.schema.type,+ });++ arr.push({+ label: "Compare",+ value: assertion.schema.compare,+ isNested: true,+ });++ if (+ assertion.schema.type === "header" &&+ assertion.schema.key+ ) {+ arr.push({+ label: "Key",+ value: assertion.schema.key,+ isNested: true,+ });+ }++ arr.push({+ label: "Value",+ value: assertion.schema.target,+ isNested: true,+ });++ return arr;+ })+ : [],+ },+ // {+ // label: "Last Logs",+ // items: [+ // ...Array.from({ length: 20 }).map((_, index) => {+ // const date = new Date(new Date().getTime() - index * 500000);+ // return {+ // label: [+ // "Amsterdam",+ // "Frankfurt",+ // "New York",+ // "Singapore",+ // "Johannesburg",+ // ][index % 5],+ // value: (+ // <div className="flex items-center justify-between gap-2">+ // <CircleCheck className="h-4 w-4 text-success" />+ // <TooltipProvider>+ // <Tooltip>+ // <TooltipTrigger>+ // <span className="underline decoration-muted-foreground/50 decoration-dashed underline-offset-2">+ // {date.toLocaleTimeString("en-US", {+ // hour: "2-digit",+ // minute: "2-digit",+ // })}+ // </span>+ // </TooltipTrigger>+ // <TooltipContent align="center" side="left">+ // {date.toLocaleString("en-US")}+ // </TooltipContent>+ // </Tooltip>+ // </TooltipProvider>+ // </div>+ // ),+ // };+ // }),+ // ],+ // },+ ]}+ footerButton={{+ onClick: () => router.push(`/monitors/${id}/logs`),+ children: (+ <>+ <Logs />+ <span>View all logs</span>+ </>+ ),+ }}+ />+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/create/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/monitors/create/breadcrumb.tsxnew file mode 100644index 000000000..6fb6b93ab--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/create/breadcrumb.tsx@@ -0,0 +1,18 @@+"use client";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";++export function Breadcrumb() {+ return (+ <NavBreadcrumb+ items={[+ {+ type: "link",+ label: "Monitors",+ href: "/monitors",+ },+ { type: "page", label: "Create Monitor" },+ ]}+ />+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/create/layout.tsx b/apps/dashboard/src/app/(dashboard)/monitors/create/layout.tsxnew file mode 100644index 000000000..0b429f218--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/create/layout.tsx@@ -0,0 +1,17 @@+import { AppHeader, AppHeaderContent } from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";+import { Breadcrumb } from "./breadcrumb";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <Breadcrumb />+ </AppHeaderContent>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/monitors/create/page.tsx b/apps/dashboard/src/app/(dashboard)/monitors/create/page.tsxnew file mode 100644index 000000000..4c6474293--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/monitors/create/page.tsx@@ -0,0 +1,71 @@+"use client";++import {+ EmptyStateContainer,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import { EmptyStateDescription } from "@/components/content/empty-state";+import {+ Section,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { FormGeneral } from "@/components/forms/monitor/form-general";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQueryClient } from "@tanstack/react-query";+import { useRouter } from "next/navigation";++export default function Page() {+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const router = useRouter();+ const createMonitorMutation = useMutation(+ trpc.monitor.new.mutationOptions({+ onSuccess: (data) => {+ queryClient.invalidateQueries({+ queryKey: trpc.monitor.list.queryKey(),+ });+ router.push(`/monitors/${data.id}/edit`);+ },+ }),+ );++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>Create Monitor</SectionTitle>+ </SectionHeader>+ <FormGeneral+ onSubmit={async (data) => {+ await createMonitorMutation.mutateAsync({+ name: data.name,+ jobType: data.type,+ url: data.url,+ method: data.method,+ headers: data.headers,+ body: data.body,+ active: data.active,+ assertions: data.assertions,+ saveCheck: data.saveCheck,+ skipCheck: data.skipCheck,+ });+ }}+ />+ </Section>+ <Section>+ <EmptyStateContainer>+ <EmptyStateTitle>Create and start customizing</EmptyStateTitle>+ <EmptyStateDescription>+ Change the <span className="text-foreground">periodicity</span>, set+ up the <span className="text-foreground">regions</span>,{" "}+ <span className="text-foreground">timeout</span> or{" "}+ <span className="text-foreground">degraded</span> duration and+ more...+ </EmptyStateDescription>+ </EmptyStateContainer>+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/notifications/client.tsx b/apps/dashboard/src/app/(dashboard)/notifications/client.tsxnew file mode 100644index 000000000..835645be7--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/notifications/client.tsx@@ -0,0 +1,176 @@+"use client";++import { Link } from "@/components/common/link";+import {+ ActionCard,+ ActionCardDescription,+ ActionCardHeader,+ ActionCardTitle,+} from "@/components/content/action-card";+import { ActionCardGroup } from "@/components/content/action-card";+import {+ EmptyStateContainer,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { columns } from "@/components/data-table/notifications/columns";+import { FormSheetNotifier } from "@/components/forms/notifications/sheet";+import { DataTable } from "@/components/ui/data-table/data-table";+import { config } from "@/data/notifications.client";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery } from "@tanstack/react-query";+import { useQueryStates } from "nuqs";+import { searchParamsParsers } from "./search-params";++// FIXME: WARNING we are using the `web` api url here+const BASE_URL =+ process.env.NODE_ENV === "development"+ ? "http://localhost:3000"+ : "https://www.openstatus.dev";++export function Client() {+ const trpc = useTRPC();+ const { data: notifications, refetch } = useQuery(+ trpc.notification.list.queryOptions(),+ );+ const [searchParams] = useQueryStates(searchParamsParsers);+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const { data: monitors } = useQuery(trpc.monitor.list.queryOptions());+ const createNotifierMutation = useMutation(+ trpc.notification.new.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ if (!notifications || !monitors || !workspace) return null;++ const limitReached =+ notifications.length >= workspace.limits["notification-channels"];++ return (+ <SectionGroup>+ <SectionHeader>+ <SectionTitle>Notifications</SectionTitle>+ </SectionHeader>+ <Section>+ {notifications.length === 0 ? (+ <EmptyStateContainer>+ <EmptyStateTitle>No notifier found</EmptyStateTitle>+ </EmptyStateContainer>+ ) : (+ <DataTable columns={columns} data={notifications} />+ )}+ </Section>+ <Section>+ <SectionHeader>+ <SectionTitle>Create a new notifier</SectionTitle>+ <SectionDescription>+ Define your notifications to receive alerts when downtime occurs.{" "}+ <Link+ href="https://docs.openstatus.dev/alerting/overview/"+ rel="noreferrer"+ target="_blank"+ >+ Learn more+ </Link>+ .+ </SectionDescription>+ </SectionHeader>+ <ActionCardGroup className="grid-cols-1 md:grid-cols-2 lg:grid-cols-3">+ {Object.keys(config).map((notifier) => {+ const key = notifier as keyof typeof config;+ const Icon = config[key].icon;+ let enabled = true;++ if (key in workspace.limits) {+ enabled =+ workspace.limits[key as "opsgenie" | "sms" | "opsgenie"];+ }++ if (limitReached) {+ enabled = false;+ }++ if (!searchParams.channel && key === "pagerduty") {+ const PAGERDUTY_URL = `https://app.pagerduty.com/install/integration?app_id=${process.env.NEXT_PUBLIC_PAGERDUTY_APP_ID}&redirect_url=${BASE_URL}/api/callback/pagerduty?workspace=${workspace.slug}&version=2`;+ return (+ <a+ key={key}+ href={PAGERDUTY_URL}+ data-disabled={!enabled}+ className="data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"+ >+ <ActionCard className="h-full w-full">+ <ActionCardHeader>+ <div className="flex items-center gap-2">+ <div className="flex size-6 items-center justify-center rounded-md border border-border bg-muted">+ <Icon className="size-3" />+ </div>+ <ActionCardTitle>{config[key].label}</ActionCardTitle>+ </div>+ <ActionCardDescription>+ Send notifications to {config[key].label}+ </ActionCardDescription>+ </ActionCardHeader>+ </ActionCard>+ </a>+ );+ }++ return (+ <FormSheetNotifier+ key={notifier}+ provider={key}+ monitors={monitors}+ defaultOpen={searchParams.channel === key}+ onSubmit={async (values) => {+ await createNotifierMutation.mutateAsync({+ provider: key,+ name: values.name,+ data: { [key]: values.data },+ monitors: values.monitors,+ });+ }}+ disabled={!enabled}+ >+ <ActionCard className="h-full w-full">+ <ActionCardHeader>+ <div className="flex items-center gap-2">+ <div className="flex size-6 items-center justify-center rounded-md border border-border bg-muted">+ <Icon className="size-3" />+ </div>+ <ActionCardTitle>{config[key].label}</ActionCardTitle>+ </div>+ <ActionCardDescription>+ Send notifications to {config[key].label}+ </ActionCardDescription>+ </ActionCardHeader>+ </ActionCard>+ </FormSheetNotifier>+ );+ })}+ <ActionCard className="border-dashed">+ <ActionCardHeader>+ <div className="flex items-center gap-2">+ <div className="flex size-6 items-center justify-center rounded-md border border-border bg-muted" />+ <ActionCardTitle className="text-muted-foreground">+ Your Notifier+ </ActionCardTitle>+ </div>+ <ActionCardDescription>+ Missing a channel?{" "}+ <Link href="mailto:[email protected]">Contact us</Link>+ </ActionCardDescription>+ </ActionCardHeader>+ </ActionCard>+ </ActionCardGroup>+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/notifications/layout.tsx b/apps/dashboard/src/app/(dashboard)/notifications/layout.tsxnew file mode 100644index 000000000..7dbaa0f50--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/notifications/layout.tsx@@ -0,0 +1,32 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import { NavActions } from "./nav-actions";++export default async function Layout({+ children,+}: {+ children: React.ReactNode;+}) {+ const queryClient = getQueryClient();+ await queryClient.prefetchQuery(trpc.notification.list.queryOptions());+ return (+ <HydrateClient>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <NavBreadcrumb items={[{ type: "page", label: "Notifications" }]} />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </HydrateClient>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/notifications/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/notifications/nav-actions.tsxnew file mode 100644index 000000000..768c5c97f--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/notifications/nav-actions.tsx@@ -0,0 +1,9 @@+import { NavFeedback } from "@/components/nav/nav-feedback";++export function NavActions() {+ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/notifications/page.tsx b/apps/dashboard/src/app/(dashboard)/notifications/page.tsxnew file mode 100644index 000000000..b7f03f9a8--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/notifications/page.tsx@@ -0,0 +1,12 @@+import type { SearchParams } from "nuqs";+import { Client } from "./client";+import { searchParamsCache } from "./search-params";++export default async function Page({+ searchParams,+}: {+ searchParams: Promise<SearchParams>;+}) {+ await searchParamsCache.parse(searchParams);+ return <Client />;+}diff --git a/apps/dashboard/src/app/(dashboard)/notifications/search-params.ts b/apps/dashboard/src/app/(dashboard)/notifications/search-params.tsnew file mode 100644index 000000000..71e74b820--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/notifications/search-params.ts@@ -0,0 +1,12 @@+import {+ createSearchParamsCache,+ parseAsString,+ parseAsStringEnum,+} from "nuqs/server";++export const searchParamsParsers = {+ config: parseAsString,+ channel: parseAsStringEnum(["pagerduty"]),+};++export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/dashboard/src/app/(dashboard)/onboarding/client.tsx b/apps/dashboard/src/app/(dashboard)/onboarding/client.tsxnew file mode 100644index 000000000..cd4b410ac--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/onboarding/client.tsx@@ -0,0 +1,254 @@+"use client";++import {+ ActionCard,+ ActionCardDescription,+ ActionCardGroup,+ ActionCardHeader,+ ActionCardTitle,+} from "@/components/content/action-card";+import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardHeader,+ FormCardTitle,+} from "@/components/forms/form-card";+import { CreateMonitorForm } from "@/components/forms/onboarding/create-monitor";+import { CreatePageForm } from "@/components/forms/onboarding/create-page";+import { LearnFromForm } from "@/components/forms/onboarding/learn-from";+import { Button } from "@/components/ui/button";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { ArrowUpRight } from "lucide-react";+import Link from "next/link";+import { useQueryStates } from "nuqs";+import { searchParamsParsers } from "./search-params";++const moreActions = [+ {+ id: "notifier",+ title: "Create a notifier",+ description: "Get notified when your website or API is down.",+ href: "/notifications",+ },+ {+ id: "workspace",+ title: "Setup workspace",+ description: "Add a name to your workspace and share it with your team.",+ href: "/settings/general",+ },+ {+ id: "monitor",+ title: "Update monitor",+ description: "Change region, schedule, timeout and more.",+ href: "/monitors",+ },+ {+ id: "cal",+ title: "Schedule a call",+ description: "Book a meeting with us to get you started with OpenStatus.",+ href: "https://openstatus.dev/cal",+ },+ {+ id: "docs",+ title: "Documentation",+ description: "Read our documentation to get started with OpenStatus.",+ href: "https://docs.openstatus.dev",+ },+ {+ id: "changelog",+ title: "Changelog",+ description: "See what's new in OpenStatus.",+ href: "https://openstatus.dev/changelog",+ },+];++export function Client() {+ const [{ step }, setSearchParams] = useQueryStates(searchParamsParsers);+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const createMonitorMutation = useMutation(+ trpc.monitor.create.mutationOptions({+ onSuccess: () => {+ setSearchParams({ step: "2" });+ queryClient.invalidateQueries({+ queryKey: trpc.monitor.list.queryKey(),+ });+ },+ }),+ );+ const createPageMutation = useMutation(+ trpc.page.create.mutationOptions({+ onSuccess: () => {+ setSearchParams({ step: "next" });+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ },+ }),+ );+ const createFeedbackMutation = useMutation(+ trpc.feedback.submit.mutationOptions({}),+ );++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>Getting Started</SectionTitle>+ <SectionDescription>+ Welcome to OpenStatus. Let's get you set up.+ </SectionDescription>+ </SectionHeader>+ </Section>+ {step === "1" && (+ <Section>+ <SectionHeader>+ <SectionDescription className="tabular-nums">+ Step <span className="font-medium text-foreground">1</span> of{" "}+ <span className="font-medium text-foreground">2</span>+ </SectionDescription>+ </SectionHeader>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Create a monitor</FormCardTitle>+ <FormCardDescription>+ Get uptime, response time and more for your website or API.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ <CreateMonitorForm+ id="create-monitor-form"+ onSubmit={async (values) => {+ await createMonitorMutation.mutateAsync({+ url: values.url,+ name: new URL(values.url).hostname,+ // FIXME: undefined values should be allowed+ headers: [],+ assertions: undefined,+ jobType: "http",+ // FIXME: check which regions are available on free plan+ regions: ["ams", "iad", "syd"],+ active: true,+ public: false,+ workspaceId: workspace?.id,+ });+ }}+ />+ </FormCardContent>+ <FormCardFooter>+ <Button form="create-monitor-form">Submit</Button>+ </FormCardFooter>+ </FormCard>+ </Section>+ )}+ {step === "2" && (+ <Section>+ <SectionHeader>+ <SectionDescription className="tabular-nums">+ Step <span className="font-medium text-foreground">2</span> of{" "}+ <span className="font-medium text-foreground">2</span>+ </SectionDescription>+ </SectionHeader>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Create a page</FormCardTitle>+ <FormCardDescription>+ Inform your users about the status of your website or API.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ <CreatePageForm+ id="create-page-form"+ onSubmit={async (values) => {+ if (!workspace?.id) return;++ await createPageMutation.mutateAsync({+ slug: values.slug,+ title: values.slug.replace(/-/g, " "),+ description: "",+ monitors: createMonitorMutation.data?.id+ ? [{ monitorId: createMonitorMutation.data.id, order: 0 }]+ : [],+ workspaceId: workspace.id,+ });+ }}+ />+ </FormCardContent>+ <FormCardFooter>+ <Button form="create-page-form">Submit</Button>+ </FormCardFooter>+ </FormCard>+ </Section>+ )}+ {step === "next" && (+ <>+ <Section>+ <SectionHeader>+ <SectionDescription>+ We'd love to know how you heard about us. This will help us+ improve our product and services.+ </SectionDescription>+ </SectionHeader>+ <LearnFromForm+ onSubmit={async (values) => {+ await createFeedbackMutation.mutateAsync({+ message: `I learned about OpenStatus from ${values.from}${values.other ? `: ${values.other}` : ""}`,+ });+ }}+ />+ </Section>+ <Section>+ <SectionHeader>+ <SectionDescription className="tabular-nums">+ What's next?+ </SectionDescription>+ </SectionHeader>+ <ActionCardGroup className="sm:grid-cols-2">+ {moreActions.map((action) => {+ const isExternal = action.href.startsWith("http");+ const isMonitor = action.id === "monitor";+ const href =+ isMonitor && createMonitorMutation.data?.id+ ? `${action.href}/${createMonitorMutation.data.id}`+ : action.href;+ return (+ <Link+ key={action.id}+ href={href}+ target={isExternal ? "_blank" : undefined}+ rel={isExternal ? "noopener noreferrer" : undefined}+ >+ <ActionCard className="h-full w-full">+ <ActionCardHeader>+ <ActionCardTitle className="flex items-center justify-between gap-2">+ {action.title}+ {isExternal && (+ <ArrowUpRight className="size-4 shrink-0 text-muted-foreground group-hover/action-card:text-foreground" />+ )}+ </ActionCardTitle>+ <ActionCardDescription>+ {action.description}+ </ActionCardDescription>+ </ActionCardHeader>+ </ActionCard>+ </Link>+ );+ })}+ </ActionCardGroup>+ </Section>+ </>+ )}+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/onboarding/layout.tsx b/apps/dashboard/src/app/(dashboard)/onboarding/layout.tsxnew file mode 100644index 000000000..88e1c9e7b--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/onboarding/layout.tsx@@ -0,0 +1,25 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";+import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { NavActions } from "./nav-actions";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <NavBreadcrumb items={[{ type: "page", label: "Onboarding" }]} />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/onboarding/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/onboarding/nav-actions.tsxnew file mode 100644index 000000000..768c5c97f--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/onboarding/nav-actions.tsx@@ -0,0 +1,9 @@+import { NavFeedback } from "@/components/nav/nav-feedback";++export function NavActions() {+ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/onboarding/page.tsx b/apps/dashboard/src/app/(dashboard)/onboarding/page.tsxnew file mode 100644index 000000000..6f63a2e2d--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/onboarding/page.tsx@@ -0,0 +1,14 @@+import { Client } from "./client";+import { searchParamsCache } from "./search-params";++import type { SearchParams } from "nuqs";++export default async function Page({+ searchParams,+}: {+ searchParams: Promise<SearchParams>;+}) {+ await searchParamsCache.parse(searchParams);++ return <Client />;+}diff --git a/apps/dashboard/src/app/(dashboard)/onboarding/search-params.ts b/apps/dashboard/src/app/(dashboard)/onboarding/search-params.tsnew file mode 100644index 000000000..1ee1a2e4d--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/onboarding/search-params.ts@@ -0,0 +1,9 @@+import { createSearchParamsCache, parseAsStringLiteral } from "nuqs/server";++const STEPS = ["1", "2", "next"] as const;++export const searchParamsParsers = {+ step: parseAsStringLiteral(STEPS).withDefault("1"),+};++export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/dashboard/src/app/(dashboard)/overview/data-table-status-reports.tsx b/apps/dashboard/src/app/(dashboard)/overview/data-table-status-reports.tsxnew file mode 100644index 000000000..30d3ffc84--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/overview/data-table-status-reports.tsx@@ -0,0 +1,30 @@+"use client";++import { DataTable as UpdatesDataTable } from "@/components/data-table/status-report-updates/data-table";+import { columns as statusReportsColumns } from "@/components/data-table/status-reports/columns";+import { DataTable } from "@/components/ui/data-table/data-table";+import type { RouterOutputs } from "@openstatus/api";++type StatusReport = RouterOutputs["statusReport"]["list"][number];++export function DataTableStatusReports({+ statusReports,+}: {+ statusReports: StatusReport[];+}) {+ return (+ <DataTable+ columns={statusReportsColumns}+ data={statusReports}+ onRowClick={(row) =>+ row.getCanExpand() ? row.toggleExpanded() : undefined+ }+ rowComponent={({ row }) => (+ <UpdatesDataTable+ updates={row.original.updates}+ reportId={row.original.id}+ />+ )}+ />+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/overview/layout.tsx b/apps/dashboard/src/app/(dashboard)/overview/layout.tsxnew file mode 100644index 000000000..3dfaae435--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/overview/layout.tsx@@ -0,0 +1,26 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { NavActions } from "./nav-actions";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <NavBreadcrumb items={[{ type: "page", label: "Overview" }]} />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/overview/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/overview/nav-actions.tsxnew file mode 100644index 000000000..768c5c97f--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/overview/nav-actions.tsx@@ -0,0 +1,9 @@+import { NavFeedback } from "@/components/nav/nav-feedback";++export function NavActions() {+ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/overview/page.tsx b/apps/dashboard/src/app/(dashboard)/overview/page.tsxnew file mode 100644index 000000000..426d39bf9--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/overview/page.tsx@@ -0,0 +1,217 @@+import {+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";++import { Note, NoteButton } from "@/components/common/note";+import {+ EmptyStateContainer,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import { Section } from "@/components/content/section";+import { columns as incidentsColumns } from "@/components/data-table/incidents/columns";+import { columns as maintenancesColumns } from "@/components/data-table/maintenances/columns";+import {+ MetricCard,+ MetricCardGroup,+ MetricCardHeader,+ MetricCardTitle,+ MetricCardValue,+} from "@/components/metric/metric-card";+import { DataTable } from "@/components/ui/data-table/data-table";+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import { cn } from "@/lib/utils";+import { formatDistanceToNowStrict } from "date-fns";+import { List, Search } from "lucide-react";+import { Terminal } from "lucide-react";+import Link from "next/link";+import { DataTableStatusReports } from "./data-table-status-reports";++// FIXME: the page is server side+// whenever I change the maintenances, the page is not updated+// we need to move the queryClient to the layout and prefetch the data there++export default async function Page() {+ const queryClient = getQueryClient();++ const monitors = await queryClient.fetchQuery(+ trpc.monitor.list.queryOptions(),+ );+ const pages = await queryClient.fetchQuery(trpc.page.list.queryOptions());+ const incidents = await queryClient.fetchQuery(+ trpc.incident.list.queryOptions({+ order: "desc",+ startedAt: {+ gte: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000), // 7 days ago+ },+ }),+ );+ const statusReports = await queryClient.fetchQuery(+ trpc.statusReport.list.queryOptions({+ order: "desc",+ createdAt: {+ gte: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000), // 7 days ago+ },+ }),+ );+ const maintenances = await queryClient.fetchQuery(+ trpc.maintenance.list.queryOptions({+ order: "desc",+ createdAt: {+ gte: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000), // 7 days ago+ },+ }),+ );++ const lastIncident = incidents.length > 0 ? incidents[0] : null;+ const lastStatusReport = statusReports.length > 0 ? statusReports[0] : null;+ const lastMaintenance = maintenances.length > 0 ? maintenances[0] : null;++ const incidentDistance = lastIncident+ ? formatDistanceToNowStrict(lastIncident.startedAt, {+ addSuffix: true,+ })+ : "None";++ const statusReportDistance = lastStatusReport?.createdAt+ ? formatDistanceToNowStrict(lastStatusReport.createdAt, {+ addSuffix: true,+ })+ : "None";++ const maintenanceDistance = lastMaintenance?.createdAt+ ? formatDistanceToNowStrict(lastMaintenance.createdAt, {+ addSuffix: true,+ })+ : "None";++ const metrics = [+ {+ title: "Total Monitors",+ value: monitors.length,+ href: "/monitors",+ variant: "default" as const,+ icon: List,+ },+ {+ title: "Total Status Pages",+ value: pages.length,+ href: "/status-pages",+ variant: "default" as const,+ icon: List,+ },+ {+ title: "Recent Incident",+ value: incidentDistance,+ disabled: !lastIncident?.monitorId,+ href: `/monitors/${lastIncident?.monitorId}/incidents`,+ variant: "default" as const,+ icon: Search,+ },+ {+ title: "Last Report",+ value: statusReportDistance,+ disabled: !lastStatusReport?.pageId,+ href: `/status-pages/${lastStatusReport?.pageId}/status-reports`,+ variant: "default" as const,+ icon: Search,+ },+ {+ title: "Last Maintenance",+ value: maintenanceDistance,+ disabled: !lastMaintenance?.pageId,+ href: `/status-pages/${lastMaintenance?.pageId}/maintenances`,+ variant: "default" as const,+ icon: Search,+ },+ ];++ return (+ <HydrateClient>+ <SectionGroup>+ <Note>+ <Terminal />+ Use Monitoring as Code to manage your monitors with our CLI.+ <NoteButton variant="outline" asChild>+ <Link href="/cli">Learn more</Link>+ </NoteButton>+ </Note>+ <Section>+ <SectionHeader>+ <SectionTitle>Overview</SectionTitle>+ <SectionDescription>+ Welcome to your OpenStatus dashboard.+ </SectionDescription>+ </SectionHeader>+ <MetricCardGroup>+ {metrics.map((metric) => (+ <Link+ href={metric.href}+ key={metric.title}+ className={cn(metric.disabled && "pointer-events-none")}+ aria-disabled={metric.disabled}+ >+ <MetricCard variant={metric.variant}>+ <MetricCardHeader className="flex items-center justify-between gap-2">+ <MetricCardTitle className="truncate">+ {metric.title}+ </MetricCardTitle>+ <metric.icon className="size-4" />+ </MetricCardHeader>+ <MetricCardValue>{metric.value}</MetricCardValue>+ </MetricCard>+ </Link>+ ))}+ </MetricCardGroup>+ </Section>+ <Section>+ <SectionHeader>+ <SectionTitle>Incidents</SectionTitle>+ <SectionDescription>+ Incidents over the last 7 days.+ </SectionDescription>+ </SectionHeader>+ {incidents.length > 0 ? (+ <DataTable columns={incidentsColumns} data={incidents} />+ ) : (+ <EmptyStateContainer>+ <EmptyStateTitle>No incidents found</EmptyStateTitle>+ </EmptyStateContainer>+ )}+ </Section>+ <Section>+ <SectionHeader>+ <SectionTitle>Reports</SectionTitle>+ <SectionDescription>+ Reports over the last 7 days.+ </SectionDescription>+ </SectionHeader>+ {statusReports.length > 0 ? (+ <DataTableStatusReports statusReports={statusReports} />+ ) : (+ <EmptyStateContainer>+ <EmptyStateTitle>No reports found</EmptyStateTitle>+ </EmptyStateContainer>+ )}+ </Section>+ <Section>+ <SectionHeader>+ <SectionTitle>Maintenance</SectionTitle>+ <SectionDescription>+ Maintenance over the last 7 days.+ </SectionDescription>+ </SectionHeader>+ {maintenances.length > 0 ? (+ <DataTable columns={maintenancesColumns} data={maintenances} />+ ) : (+ <EmptyStateContainer>+ <EmptyStateTitle>No maintenances found</EmptyStateTitle>+ </EmptyStateContainer>+ )}+ </Section>+ </SectionGroup>+ </HydrateClient>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/page.tsx b/apps/dashboard/src/app/(dashboard)/page.tsxnew file mode 100644index 000000000..2d0fb1d66--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function Page() {+ redirect("/overview");+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/(list)/layout.tsx b/apps/dashboard/src/app/(dashboard)/settings/(list)/layout.tsxnew file mode 100644index 000000000..8aa952cdb--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/(list)/layout.tsx@@ -0,0 +1,26 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { NavActions } from "./nav-actions";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <NavBreadcrumb items={[{ type: "page", label: "Settings" }]} />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/(list)/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/settings/(list)/nav-actions.tsxnew file mode 100644index 000000000..768c5c97f--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/(list)/nav-actions.tsx@@ -0,0 +1,9 @@+import { NavFeedback } from "@/components/nav/nav-feedback";++export function NavActions() {+ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/(list)/page.tsx b/apps/dashboard/src/app/(dashboard)/settings/(list)/page.tsxnew file mode 100644index 000000000..25a063214--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/(list)/page.tsx@@ -0,0 +1,61 @@+import { Link } from "@/components/common/link";+import {+ ActionCard,+ ActionCardDescription,+ ActionCardGroup,+ ActionCardHeader,+ ActionCardTitle,+} from "@/components/content/action-card";+import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";++const settings = [+ {+ title: "General",+ description: "Manage your workspace settings.",+ href: "/settings/general",+ },+ {+ title: "Billing",+ description: "Manage your billing information and payment methods.",+ href: "/settings/billing",+ },+ {+ title: "Account",+ description: "Manage your account information.",+ href: "/settings/account",+ },+];+export default function Page() {+ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>Settings</SectionTitle>+ <SectionDescription>+ All your settings in one place.+ </SectionDescription>+ </SectionHeader>+ <ActionCardGroup>+ {settings.map((setting) => (+ <Link href={setting.href} key={setting.href}>+ <ActionCard className="h-full w-full">+ <ActionCardHeader>+ <ActionCardTitle>{setting.title}</ActionCardTitle>+ <ActionCardDescription>+ {setting.description}+ </ActionCardDescription>+ </ActionCardHeader>+ </ActionCard>+ </Link>+ ))}+ </ActionCardGroup>+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/account/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/settings/account/breadcrumb.tsxnew file mode 100644index 000000000..22f35c219--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/account/breadcrumb.tsx@@ -0,0 +1,22 @@+"use client";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { Cog, CreditCard, User } from "lucide-react";++export function Breadcrumb() {+ return (+ <NavBreadcrumb+ items={[+ { type: "page", label: "Settings" },+ {+ type: "select",+ items: [+ { value: "general", label: "General", icon: Cog },+ { value: "account", label: "Account", icon: User },+ { value: "billing", label: "Billing", icon: CreditCard },+ ],+ },+ ]}+ />+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/account/layout.tsx b/apps/dashboard/src/app/(dashboard)/settings/account/layout.tsxnew file mode 100644index 000000000..affb067cb--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/account/layout.tsx@@ -0,0 +1,26 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";++import { Breadcrumb } from "./breadcrumb";+import { NavActions } from "./nav-actions";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <Breadcrumb />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/account/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/settings/account/nav-actions.tsxnew file mode 100644index 000000000..768c5c97f--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/account/nav-actions.tsx@@ -0,0 +1,9 @@+import { NavFeedback } from "@/components/nav/nav-feedback";++export function NavActions() {+ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/account/page.tsx b/apps/dashboard/src/app/(dashboard)/settings/account/page.tsxnew file mode 100644index 000000000..511af2e7a--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/account/page.tsx@@ -0,0 +1,79 @@+"use client";++import {+ Section,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import {+ FormCardDescription,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardTitle,+ FormCardUpgrade,+} from "@/components/forms/form-card";+import {+ FormCard,+ FormCardContent,+ FormCardFooter,+} from "@/components/forms/form-card";+import { ThemeToggle } from "@/components/theme-toggle";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";++export default function Page() {+ const trpc = useTRPC();+ const { data: user } = useQuery(trpc.user.get.queryOptions());++ if (!user) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>Account</SectionTitle>+ </SectionHeader>+ <FormCard>+ <FormCardUpgrade />+ <FormCardHeader>+ <FormCardTitle>Personal Information</FormCardTitle>+ <FormCardDescription>+ Manage your personal information.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ <form className="grid gap-4">+ <div className="grid gap-1.5">+ <Label>Name</Label>+ <Input defaultValue={user?.name ?? undefined} />+ </div>+ <div className="grid gap-1.5">+ <Label>Email</Label>+ <Input defaultValue={user?.email ?? undefined} />+ </div>+ </form>+ </FormCardContent>+ <FormCardFooter className="[&>:last-child]:ml-0">+ <FormCardFooterInfo>+ Please contact us if you want to change your email or name.+ </FormCardFooterInfo>+ </FormCardFooter>+ </FormCard>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Appearance</FormCardTitle>+ <FormCardDescription>+ Choose your preferred theme.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent className="pb-4">+ <ThemeToggle />+ </FormCardContent>+ </FormCard>+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/billing/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/settings/billing/breadcrumb.tsxnew file mode 100644index 000000000..22f35c219--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/billing/breadcrumb.tsx@@ -0,0 +1,22 @@+"use client";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { Cog, CreditCard, User } from "lucide-react";++export function Breadcrumb() {+ return (+ <NavBreadcrumb+ items={[+ { type: "page", label: "Settings" },+ {+ type: "select",+ items: [+ { value: "general", label: "General", icon: Cog },+ { value: "account", label: "Account", icon: User },+ { value: "billing", label: "Billing", icon: CreditCard },+ ],+ },+ ]}+ />+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/billing/client.tsx b/apps/dashboard/src/app/(dashboard)/settings/billing/client.tsxnew file mode 100644index 000000000..41a80c84b--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/billing/client.tsx@@ -0,0 +1,209 @@+"use client";++import { BillingProgress } from "@/components/content/billing-progress";+import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { DataTable } from "@/components/data-table/billing/data-table";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardGroup,+ FormCardHeader,+ FormCardSeparator,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { useTRPC } from "@/lib/trpc/client";+import type { Limits } from "@openstatus/db/src/schema/plan/schema";+import { useMutation, useQuery } from "@tanstack/react-query";+import { useRouter } from "next/navigation";+import { useQueryStates } from "nuqs";+import { useEffect, useMemo, useTransition } from "react";+import { toast } from "sonner";+import { searchParamsParsers } from "./search-params";++const BASE_URL =+ process.env.NODE_ENV === "production"+ ? "https://app.openstatus.dev"+ : "http://localhost:3000";++function calculateTotalRequests(limits: Limits) {+ const monitors = limits.monitors;+ const maxRegions = limits["max-regions"];+ const periodicity = limits.periodicity;++ if (periodicity.includes("30s")) {+ return monitors * maxRegions * 2 * 60 * 24 * 30;+ }++ if (periodicity.includes("1m")) {+ return monitors * maxRegions * 60 * 24 * 30;+ }++ if (periodicity.includes("5m")) {+ return monitors * maxRegions * 12 * 24 * 30;+ }++ if (periodicity.includes("10m")) {+ return monitors * maxRegions * 6 * 24 * 30;+ }++ if (periodicity.includes("30m")) {+ return monitors * maxRegions * 2 * 24 * 30;+ }++ if (periodicity.includes("1h")) {+ return monitors * maxRegions * 24 * 30;+ }++ return 0;+}++export function Client() {+ const trpc = useTRPC();+ const router = useRouter();+ const [isPending, startTransition] = useTransition();+ const [{ success }, setSearchParams] = useQueryStates(searchParamsParsers);+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const customerPortalMutation = useMutation(+ trpc.stripeRouter.getUserCustomerPortal.mutationOptions({+ onSuccess: (url) => {+ if (!url) return;+ router.push(url);+ },+ }),+ );+ const { data: httpWorkspace30d } = useQuery({+ ...trpc.tinybird.workspace30d.queryOptions({+ type: "http",+ }),+ enabled: !!workspace,+ });++ const { data: tcpWorkspace30d } = useQuery({+ ...trpc.tinybird.workspace30d.queryOptions({+ type: "tcp",+ }),+ enabled: !!workspace,+ });++ useEffect(() => {+ if (success) {+ setTimeout(() => {+ toast.success("Billing information updated", {+ duration: 5_000,+ onAutoClose: () => setSearchParams({ success: null }),+ onDismiss: () => setSearchParams({ success: null }),+ });+ }, 500);+ }+ }, [success, setSearchParams]);++ const totalRequests = useMemo(() => {+ const httpRequests = httpWorkspace30d?.data?.reduce(+ (acc, curr) => acc + curr.count,+ 0,+ );+ const tcpRequests = tcpWorkspace30d?.data?.reduce(+ (acc, curr) => acc + curr.count,+ 0,+ );+ return (httpRequests ?? 0) + (tcpRequests ?? 0);+ }, [httpWorkspace30d, tcpWorkspace30d]);++ if (!workspace) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>Billing</SectionTitle>+ <SectionDescription>+ Manage your billing information and payment methods.+ </SectionDescription>+ </SectionHeader>+ <FormCardGroup>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Limits</FormCardTitle>+ <FormCardDescription>+ Overview of your current limits.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ <div className="flex flex-col gap-2">+ <BillingProgress+ label="Monitors"+ value={workspace.usage?.monitors ?? 0}+ max={workspace.limits.monitors}+ />+ <BillingProgress+ label="Status Pages"+ value={workspace.usage?.pages ?? 0}+ max={workspace.limits["status-pages"]}+ />+ <BillingProgress+ label="Notifications"+ value={workspace.usage?.notifications ?? 0}+ max={workspace.limits["notification-channels"]}+ />+ </div>+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <div className="flex flex-col gap-2">+ <BillingProgress+ label="Requests in the last 30 days"+ value={totalRequests}+ max={calculateTotalRequests(workspace.limits)}+ />+ </div>+ </FormCardContent>+ <FormCardFooter>+ <FormCardFooterInfo>+ Access your{" "}+ <span className="font-medium">billing information</span>,{" "}+ <span className="font-medium">invoices</span> and{" "}+ <span className="font-medium">payment methods</span> via Stripe.+ </FormCardFooterInfo>+ <Button+ size="sm"+ onClick={() => {+ startTransition(async () => {+ await customerPortalMutation.mutateAsync({+ workspaceSlug: workspace.slug,+ returnUrl: `${BASE_URL}/settings/billing`,+ });+ });+ }}+ disabled={isPending}+ >+ {isPending ? "Loading..." : "Customer Portal"}+ </Button>+ </FormCardFooter>+ </FormCard>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Plans</FormCardTitle>+ <FormCardDescription>+ Choose a plan that fits your needs.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardSeparator />+ <FormCardContent className="pb-4">+ <DataTable />+ </FormCardContent>+ </FormCard>+ </FormCardGroup>+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/billing/layout.tsx b/apps/dashboard/src/app/(dashboard)/settings/billing/layout.tsxnew file mode 100644index 000000000..affb067cb--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/billing/layout.tsx@@ -0,0 +1,26 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";++import { Breadcrumb } from "./breadcrumb";+import { NavActions } from "./nav-actions";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <Breadcrumb />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/billing/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/settings/billing/nav-actions.tsxnew file mode 100644index 000000000..768c5c97f--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/billing/nav-actions.tsx@@ -0,0 +1,9 @@+import { NavFeedback } from "@/components/nav/nav-feedback";++export function NavActions() {+ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/billing/page.tsx b/apps/dashboard/src/app/(dashboard)/settings/billing/page.tsxnew file mode 100644index 000000000..72bc20a78--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/billing/page.tsx@@ -0,0 +1,13 @@+import type { SearchParams } from "nuqs";+import { Client } from "./client";+import { searchParamsCache } from "./search-params";++export default async function Page({+ searchParams,+}: {+ searchParams: Promise<SearchParams>;+}) {+ await searchParamsCache.parse(searchParams);++ return <Client />;+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/billing/search-params.ts b/apps/dashboard/src/app/(dashboard)/settings/billing/search-params.tsnew file mode 100644index 000000000..d96c8317b--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/billing/search-params.ts@@ -0,0 +1,7 @@+import { createSearchParamsCache, parseAsBoolean } from "nuqs/server";++export const searchParamsParsers = {+ success: parseAsBoolean,+};++export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/dashboard/src/app/(dashboard)/settings/general/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/settings/general/breadcrumb.tsxnew file mode 100644index 000000000..22f35c219--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/general/breadcrumb.tsx@@ -0,0 +1,22 @@+"use client";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { Cog, CreditCard, User } from "lucide-react";++export function Breadcrumb() {+ return (+ <NavBreadcrumb+ items={[+ { type: "page", label: "Settings" },+ {+ type: "select",+ items: [+ { value: "general", label: "General", icon: Cog },+ { value: "account", label: "Account", icon: User },+ { value: "billing", label: "Billing", icon: CreditCard },+ ],+ },+ ]}+ />+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/general/layout.tsx b/apps/dashboard/src/app/(dashboard)/settings/general/layout.tsxnew file mode 100644index 000000000..0c9a86dae--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/general/layout.tsx@@ -0,0 +1,38 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";++import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import { Breadcrumb } from "./breadcrumb";+import { NavActions } from "./nav-actions";++export default async function Layout({+ children,+}: {+ children: React.ReactNode;+}) {+ const queryClient = getQueryClient();+ await queryClient.prefetchQuery(trpc.member.list.queryOptions());+ await queryClient.prefetchQuery(trpc.invitation.list.queryOptions());+ await queryClient.prefetchQuery(trpc.apiKey.get.queryOptions());++ return (+ <HydrateClient>+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <Breadcrumb />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ </HydrateClient>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/general/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/settings/general/nav-actions.tsxnew file mode 100644index 000000000..768c5c97f--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/general/nav-actions.tsx@@ -0,0 +1,9 @@+import { NavFeedback } from "@/components/nav/nav-feedback";++export function NavActions() {+ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/settings/general/page.tsx b/apps/dashboard/src/app/(dashboard)/settings/general/page.tsxnew file mode 100644index 000000000..cc3514624--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/settings/general/page.tsx@@ -0,0 +1,88 @@+"use client";++import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { FormCardGroup } from "@/components/forms/form-card";+import { FormApiKey } from "@/components/forms/settings/form-api-key";+import { FormMembers } from "@/components/forms/settings/form-members";+import { FormSlug } from "@/components/forms/settings/form-slug";+import { FormWorkspace } from "@/components/forms/settings/form-workspace";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";++const BASE_URL = "https://app.openstatus.dev/invite";++export default function Page() {+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const updateWorkspaceNameMutation = useMutation(+ trpc.workspace.updateName.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.workspace.list.queryKey(),+ });+ queryClient.invalidateQueries({+ queryKey: trpc.workspace.get.queryKey(),+ });+ },+ }),+ );+ const sendInvitationMutation = useMutation(+ trpc.emailRouter.sendTeamInvitation.mutationOptions(),+ );+ const createInvitationMutation = useMutation(+ trpc.invitation.create.mutationOptions({+ onSuccess: (data) => {+ sendInvitationMutation.mutate({ id: data.id, baseUrl: BASE_URL });+ queryClient.invalidateQueries({+ queryKey: trpc.invitation.list.queryKey(),+ });+ },+ }),+ );++ if (!workspace) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>General</SectionTitle>+ <SectionDescription>+ Manage your workspace settings.+ </SectionDescription>+ </SectionHeader>+ <FormCardGroup>+ <FormWorkspace+ defaultValues={{ name: workspace.name || "" }}+ onSubmit={async (values) => {+ await updateWorkspaceNameMutation.mutateAsync({+ name: values.name,+ });+ }}+ />+ <FormSlug defaultValues={{ slug: workspace.slug }} />+ <FormMembers+ onCreate={async (values) => {+ await createInvitationMutation.mutateAsync({+ email: values.email,+ });+ }}+ locked={+ (typeof workspace.limits.members === "number" &&+ workspace.limits.members === 1) ||+ workspace.limits.members !== "Unlimited"+ }+ />+ <FormApiKey />+ </FormCardGroup>+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/breadcrumb.tsxnew file mode 100644index 000000000..307c42e3c--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/breadcrumb.tsx@@ -0,0 +1,7 @@+"use client";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";++export function Breadcrumb() {+ return <NavBreadcrumb items={[{ type: "page", label: "Status Pages" }]} />;+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/client.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/client.tsxnew file mode 100644index 000000000..102c77965--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/client.tsx@@ -0,0 +1,37 @@+"use client";++import {+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { columns } from "@/components/data-table/status-pages/columns";+import { DataTable } from "@/components/ui/data-table/data-table";+import { DataTablePaginationSimple } from "@/components/ui/data-table/data-table-pagination";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";++export function Client() {+ const trpc = useTRPC();+ const { data: statusPages } = useQuery(trpc.page.list.queryOptions());++ // TODO: add skeleton+ if (!statusPages) return null;++ return (+ <SectionGroup>+ <SectionHeader>+ <SectionTitle>Status Pages</SectionTitle>+ <SectionDescription>+ Create and manage your status pages.+ </SectionDescription>+ <DataTable+ columns={columns}+ data={statusPages}+ paginationComponent={DataTablePaginationSimple}+ />+ </SectionHeader>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/layout.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/layout.tsxnew file mode 100644index 000000000..affb067cb--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/layout.tsx@@ -0,0 +1,26 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";++import { Breadcrumb } from "./breadcrumb";+import { NavActions } from "./nav-actions";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <Breadcrumb />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/nav-actions.tsxnew file mode 100644index 000000000..1562d6285--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/nav-actions.tsx@@ -0,0 +1,41 @@+"use client";++import { UpgradeDialog } from "@/components/dialogs/upgrade";+import { NavFeedback } from "@/components/nav/nav-feedback";+import { Button } from "@/components/ui/button";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import Link from "next/link";+import { useState } from "react";++export function NavActions() {+ const [openDialog, setOpenDialog] = useState(false);+ const trpc = useTRPC();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const { data: statusPages } = useQuery(trpc.page.list.queryOptions());++ if (!workspace || !statusPages) return null;++ const limitReached = statusPages.length >= workspace.limits["status-pages"];++ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ {limitReached ? (+ <Button+ size="sm"+ data-disabled={limitReached}+ className="data-[disabled=true]:opacity-50"+ onClick={() => setOpenDialog(true)}+ >+ Create Status Page+ </Button>+ ) : (+ <Button size="sm" asChild>+ <Link href="/status-pages/create">Create Status Page</Link>+ </Button>+ )}+ <UpgradeDialog open={openDialog} onOpenChange={setOpenDialog} />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/(list)/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/page.tsxnew file mode 100644index 000000000..1fa143634--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/(list)/page.tsx@@ -0,0 +1,14 @@+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import { Client } from "./client";++export default async function Page() {+ const queryClient = getQueryClient();++ await queryClient.prefetchQuery(trpc.page.list.queryOptions());++ return (+ <HydrateClient>+ <Client />+ </HydrateClient>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/breadcrumb.tsxnew file mode 100644index 000000000..4da51ea52--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/breadcrumb.tsx@@ -0,0 +1,43 @@+"use client";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { Cog, Hammer, Megaphone, Users } from "lucide-react";+import { useParams } from "next/navigation";++export function Breadcrumb() {+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const { data: statusPage } = useQuery(+ trpc.page.get.queryOptions({ id: Number.parseInt(id) }),+ );++ if (!statusPage) return null;++ return (+ <NavBreadcrumb+ items={[+ {+ type: "link",+ label: "Status Pages",+ href: "/status-pages",+ },+ { type: "page", label: statusPage.title },+ {+ type: "select",+ items: [+ {+ value: "status-reports",+ label: "Status Reports",+ icon: Megaphone,+ },+ { value: "maintenances", label: "Maintenances", icon: Hammer },+ { value: "subscribers", label: "Subscribers", icon: Users },+ { value: "edit", label: "Settings", icon: Cog },+ ],+ },+ ]}+ />+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/edit/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/edit/page.tsxnew file mode 100644index 000000000..494659239--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/edit/page.tsx@@ -0,0 +1,35 @@+"use client";++import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { FormStatusPageUpdate } from "@/components/forms/status-page/update";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { useParams } from "next/navigation";++export default function Page() {+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const { data: statusPage } = useQuery(+ trpc.page.get.queryOptions({ id: Number.parseInt(id) }),+ );++ if (!statusPage) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>{statusPage.title}</SectionTitle>+ <SectionDescription>Customize your status page.</SectionDescription>+ </SectionHeader>+ <FormStatusPageUpdate />+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/layout.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/layout.tsxnew file mode 100644index 000000000..d6b933c11--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/layout.tsx@@ -0,0 +1,43 @@+import {+ AppHeader,+ AppHeaderActions,+ AppHeaderContent,+} from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";++import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import { Breadcrumb } from "./breadcrumb";+import { NavActions } from "./nav-actions";++export default async function Layout({+ children,+ params,+}: {+ children: React.ReactNode;+ params: Promise<{ id: string }>;+}) {+ const { id } = await params;+ const queryClient = getQueryClient();++ await queryClient.prefetchQuery(+ trpc.page.get.queryOptions({ id: Number.parseInt(id) }),+ );+ await queryClient.prefetchQuery(trpc.monitor.list.queryOptions());++ return (+ <HydrateClient>+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <Breadcrumb />+ </AppHeaderContent>+ <AppHeaderActions>+ <NavActions />+ </AppHeaderActions>+ </AppHeader>+ <main className="flex-1">{children}</main>+ </div>+ </HydrateClient>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/layout.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/layout.tsxnew file mode 100644index 000000000..45572d9ee--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/layout.tsx@@ -0,0 +1,31 @@+import { SidebarProvider } from "@/components/ui/sidebar";+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import { Sidebar } from "../sidebar";++export default async function Layout({+ children,+ params,+}: {+ children: React.ReactNode;+ params: Promise<{ id: string }>;+}) {+ const { id } = await params;+ const queryClient = await getQueryClient();++ await queryClient.prefetchQuery(+ trpc.maintenance.list.queryOptions({+ pageId: Number.parseInt(id),+ }),+ );++ return (+ <HydrateClient>+ <SidebarProvider defaultOpen={false}>+ <div className="w-full flex-1">{children}</div>+ <div className="hidden lg:block">+ <Sidebar />+ </div>+ </SidebarProvider>+ </HydrateClient>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/page.tsxnew file mode 100644index 000000000..26aa831e1--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/maintenances/page.tsx@@ -0,0 +1,74 @@+"use client";++import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionHeaderRow,+ SectionTitle,+} from "@/components/content/section";+import { columns } from "@/components/data-table/maintenances/columns";+import { FormSheetMaintenance } from "@/components/forms/maintenance/sheet";+import { Button } from "@/components/ui/button";+import { DataTable } from "@/components/ui/data-table/data-table";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery } from "@tanstack/react-query";+import { Plus } from "lucide-react";+import { useParams } from "next/navigation";++export default function Page() {+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const { data: statusPage } = useQuery(+ trpc.page.get.queryOptions({ id: Number.parseInt(id) }),+ );+ const { data: maintenances, refetch } = useQuery(+ trpc.maintenance.list.queryOptions({+ pageId: Number.parseInt(id),+ }),+ );+ const createStatusPageMutation = useMutation(+ trpc.maintenance.new.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ if (!statusPage || !maintenances) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeaderRow>+ <SectionHeader>+ <SectionTitle>Maintenances</SectionTitle>+ <SectionDescription>+ See our maintenances and scheduled downtimes.+ </SectionDescription>+ </SectionHeader>+ <div>+ <FormSheetMaintenance+ monitors={statusPage.monitors}+ onSubmit={async (values) => {+ await createStatusPageMutation.mutateAsync({+ pageId: Number.parseInt(id),+ title: values.title,+ message: values.message,+ startDate: values.startDate,+ endDate: values.endDate,+ monitors: values.monitors,+ });+ }}+ >+ <Button data-section="action" size="sm" variant="ghost">+ <Plus />+ Create Maintenance+ </Button>+ </FormSheetMaintenance>+ </div>+ </SectionHeaderRow>+ <DataTable columns={columns} data={maintenances} />+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/nav-actions.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/nav-actions.tsxnew file mode 100644index 000000000..fd4e842a8--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/nav-actions.tsx@@ -0,0 +1,86 @@+"use client";++import { QuickActions } from "@/components/dropdowns/quick-actions";+import { NavFeedback } from "@/components/nav/nav-feedback";+import { Button } from "@/components/ui/button";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { getActions } from "@/data/status-pages.client";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { Globe } from "lucide-react";+import { useParams, usePathname, useRouter } from "next/navigation";+import { toast } from "sonner";++export function NavActions() {+ const { id } = useParams<{ id: string }>();+ const router = useRouter();+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const pathname = usePathname();++ const { data: statusPage } = useQuery(+ trpc.page.get.queryOptions({ id: Number.parseInt(id) }),+ );++ const deleteStatusPageMutation = useMutation(+ trpc.page.delete.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ if (pathname.includes(`/status-pages/${id}`)) {+ router.push("/status-pages");+ }+ },+ }),+ );++ const actions = getActions({+ edit: () => router.push(`/status-pages/${id}/edit`),+ "copy-id": () => {+ navigator.clipboard.writeText("ID");+ toast.success("Status Page ID copied to clipboard");+ },+ });++ if (!statusPage) return null;++ return (+ <div className="flex items-center gap-2 text-sm">+ <NavFeedback />+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button variant="ghost" size="sm" className="group h-7 w-7" asChild>+ <a+ href={`https://${statusPage.customDomain || `${statusPage.slug}.openstatus.dev`}`}+ target="_blank"+ rel="noreferrer"+ >+ <Globe className="h-4 w-4 text-muted-foreground group-hover:text-foreground" />+ </a>+ </Button>+ </TooltipTrigger>+ <TooltipContent>View Page</TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Status Page",+ confirmationValue: "delete status page",+ submitAction: async () => {+ await deleteStatusPageMutation.mutateAsync({+ id: Number.parseInt(id),+ });+ },+ }}+ />+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/page.tsxnew file mode 100644index 000000000..4a6d5f79d--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/page.tsx@@ -0,0 +1,10 @@+import { redirect } from "next/navigation";++export default async function Page({+ params,+}: {+ params: Promise<{ id: string }>;+}) {+ const { id } = await params;+ redirect(`/status-pages/${id}/status-reports`);+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsxnew file mode 100644index 000000000..b79cc7cca--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/sidebar.tsx@@ -0,0 +1,126 @@+"use client";++import { Link } from "@/components/common/link";+import { TableCellBoolean } from "@/components/data-table/table-cell-boolean";+import { TableCellLink } from "@/components/data-table/table-cell-link";+import { SidebarRight } from "@/components/nav/sidebar-right";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { ExternalLink } from "lucide-react";+import { useParams } from "next/navigation";++// NOTE:+const BADGE_URL =+ "https://openstatus.dev/status-page/hello-world/badge?size=sm&theme=light";++export function Sidebar() {+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const { data: statusPage } = useQuery(+ trpc.page.get.queryOptions({ id: Number.parseInt(id) }),+ );++ if (!statusPage) return null;++ return (+ <SidebarRight+ header="Status Page"+ metadata={[+ {+ label: "Overview",+ items: [+ {+ label: "Slug",+ value: (+ <Link+ href={`https://${statusPage.customDomain || `${statusPage.slug}.openstatus.dev`}`}+ target="_blank"+ >+ {statusPage.slug}+ </Link>+ ),+ },+ { label: "Domain", value: statusPage.customDomain || "-" },+ {+ label: "Favicon",+ value: statusPage.icon ? (+ <div className="size-4 overflow-hidden rounded border bg-muted">+ <img src={statusPage.icon} alt="favicon" />+ </div>+ ) : (+ "-"+ ),+ },+ {+ label: "Badge",+ value: (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger className="align-middle">+ <img className="h-5" src={BADGE_URL} alt="badge" />+ </TooltipTrigger>+ <TooltipContent>Learn more about the badge.</TooltipContent>+ </Tooltip>+ </TooltipProvider>+ ),+ },+ ],+ },+ {+ label: "Configuration",+ items: [+ {+ label: "Protected",+ value: <TableCellBoolean value={statusPage.passwordProtected} />,+ },+ {+ label: "Show values",+ value: <TableCellBoolean value={statusPage.showMonitorValues} />,+ },+ ],+ },+ {+ label: "Monitors",+ items: statusPage.monitors.flatMap((monitor) => {+ const arr = [];+ arr.push({+ label: "Name",+ value: (+ <TableCellLink+ href={`/monitors/${monitor.id}/overview`}+ value={monitor.name}+ />+ ),+ });+ arr.push({+ label: "URL",+ value: monitor.url,+ isNested: true,+ });+ return arr;+ }),+ },+ ]}+ footerButton={{+ onClick: () =>+ typeof window !== "undefined" &&+ window.open(+ `https://${statusPage.customDomain || `${statusPage.slug}.openstatus.dev`}`,+ "_blank",+ ),+ children: (+ <>+ <ExternalLink />+ <span>Visit Status Page</span>+ </>+ ),+ }}+ />+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/layout.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/layout.tsxnew file mode 100644index 000000000..9c927696c--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/layout.tsx@@ -0,0 +1,28 @@+import { SidebarProvider } from "@/components/ui/sidebar";+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";+import { Sidebar } from "../sidebar";++export default async function Layout({+ children,+ params,+}: {+ children: React.ReactNode;+ params: Promise<{ id: string }>;+}) {+ const queryClient = getQueryClient();+ const { id } = await params;+ await queryClient.prefetchQuery(+ trpc.statusReport.list.queryOptions({ pageId: Number.parseInt(id) }),+ );++ return (+ <HydrateClient>+ <SidebarProvider defaultOpen={false}>+ <div className="w-full flex-1">{children}</div>+ <div className="hidden lg:block">+ <Sidebar />+ </div>+ </SidebarProvider>+ </HydrateClient>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/page.tsxnew file mode 100644index 000000000..4633a4936--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/status-reports/page.tsx@@ -0,0 +1,115 @@+"use client";++import {+ Section,+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionHeaderRow,+ SectionTitle,+} from "@/components/content/section";+import { DataTable as UpdatesDataTable } from "@/components/data-table/status-report-updates/data-table";+import { columns } from "@/components/data-table/status-reports/columns";+import { FormSheetStatusReport } from "@/components/forms/status-report/sheet";+import { Button } from "@/components/ui/button";+import { DataTable } from "@/components/ui/data-table/data-table";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { Plus } from "lucide-react";+import { useParams } from "next/navigation";++export default function Page() {+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const { data: page } = useQuery(+ trpc.page.get.queryOptions({ id: Number.parseInt(id) }),+ );+ const { data: statusReports, refetch } = useQuery(+ trpc.statusReport.list.queryOptions({ pageId: Number.parseInt(id) }),+ );+ const { data: monitors } = useQuery(trpc.monitor.list.queryOptions());+ const sendStatusReportUpdateMutation = useMutation(+ trpc.emailRouter.sendStatusReport.mutationOptions(),+ );+ const createStatusReportMutation = useMutation(+ trpc.statusReport.create.mutationOptions({+ onSuccess: (update) => {+ // TODO: move to server+ sendStatusReportUpdateMutation.mutateAsync({ id: update.id });+ //+ refetch();+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ },+ }),+ );++ if (!statusReports || !monitors || !page) return null;++ const hasUnresolvedIssue = statusReports.some(+ (report) => report.status !== "resolved",+ );++ return (+ <SectionGroup>+ <Section>+ <SectionHeaderRow>+ <SectionHeader>+ <SectionTitle>{page.title}</SectionTitle>+ <SectionDescription>+ See our uptime history and status reports.+ </SectionDescription>+ </SectionHeader>+ <div>+ <FormSheetStatusReport+ warning={+ hasUnresolvedIssue ? (+ <>+ An unresolved report already exists. Consider adding a{" "}+ <span className="font-semibold">status report update</span>{" "}+ instead.+ </>+ ) : undefined+ }+ monitors={monitors}+ onSubmit={async (values) => {+ // NOTE: for type safety, we need to check if the values have a date property+ // because of the union type+ if ("date" in values) {+ await createStatusReportMutation.mutateAsync({+ title: values.title,+ status: values.status,+ pageId: Number.parseInt(id),+ monitors: values.monitors,+ date: values.date,+ message: values.message,+ });+ }+ }}+ >+ <Button data-section="action" size="sm">+ <Plus />+ Create Status Report+ </Button>+ </FormSheetStatusReport>+ </div>+ </SectionHeaderRow>+ <DataTable+ columns={columns}+ data={statusReports}+ onRowClick={(row) =>+ row.getCanExpand() ? row.toggleExpanded() : undefined+ }+ rowComponent={({ row }) => (+ <UpdatesDataTable+ updates={row.original.updates}+ reportId={row.original.id}+ />+ )}+ />+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/subscribers/layout.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/subscribers/layout.tsxnew file mode 100644index 000000000..012f9e6c7--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/subscribers/layout.tsx@@ -0,0 +1,18 @@+import { HydrateClient, getQueryClient, trpc } from "@/lib/trpc/server";++export default async function Layout({+ children,+ params,+}: {+ children: React.ReactNode;+ params: Promise<{ id: string }>;+}) {+ const queryClient = getQueryClient();+ const { id } = await params;++ await queryClient.prefetchQuery(+ trpc.pageSubscriber.list.queryOptions({ pageId: Number.parseInt(id) }),+ );++ return <HydrateClient>{children}</HydrateClient>;+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/[id]/subscribers/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/subscribers/page.tsxnew file mode 100644index 000000000..e97f9b793--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/[id]/subscribers/page.tsx@@ -0,0 +1,114 @@+"use client";++import { Link } from "@/components/common/link";+import {+ BillingOverlay,+ BillingOverlayButton,+ BillingOverlayContainer,+ BillingOverlayDescription,+} from "@/components/content/billing-overlay";+import {+ EmptyStateContainer,+ EmptyStateDescription,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import {+ SectionDescription,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";++import { Section } from "@/components/content/section";+import { columns } from "@/components/data-table/subscribers/columns";+import { DataTable } from "@/components/ui/data-table/data-table";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { Lock } from "lucide-react";+import { useParams } from "next/navigation";++const EXAMPLES = [+ {+ id: 1,+ email: "[email protected]",+ createdAt: new Date(),+ updatedAt: null,+ pageId: 1,+ token: null,+ acceptedAt: new Date(),+ expiresAt: new Date(),+ },+ {+ id: 2,+ email: "[email protected]",+ createdAt: new Date(),+ updatedAt: null,+ pageId: 1,+ token: null,+ acceptedAt: new Date(),+ expiresAt: new Date(),+ },+];++export default function Page() {+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const { data: page } = useQuery(+ trpc.page.get.queryOptions({ id: Number.parseInt(id) }),+ );+ const { data: subscribers } = useQuery(+ trpc.pageSubscriber.list.queryOptions({ pageId: Number.parseInt(id) }),+ );+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());++ if (!workspace) return null;++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>{page?.title}</SectionTitle>+ <SectionDescription>+ Allow your users to subscribe to status page updates.+ </SectionDescription>+ </SectionHeader>+ </Section>+ <Section>+ {workspace.limits["status-subscribers"] === false ? (+ <BillingOverlayContainer>+ <DataTable+ columns={columns}+ data={[...EXAMPLES, ...EXAMPLES, ...EXAMPLES]}+ />+ <BillingOverlay>+ <BillingOverlayButton>+ <Lock />+ Upgrade+ </BillingOverlayButton>+ <BillingOverlayDescription>+ Keep your users in the loop with status page updates.{" "}+ <Link+ href="https://docs.openstatus.dev/status-page/work/subscribers/"+ rel="noreferrer"+ target="_blank"+ >+ Learn more+ </Link>+ .+ </BillingOverlayDescription>+ </BillingOverlay>+ </BillingOverlayContainer>+ ) : subscribers?.length ? (+ <DataTable columns={columns} data={subscribers} />+ ) : (+ <EmptyStateContainer>+ <EmptyStateTitle>No subscribers</EmptyStateTitle>+ <EmptyStateDescription>+ No emails have been subscribed to this status page.+ </EmptyStateDescription>+ </EmptyStateContainer>+ )}+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/create/breadcrumb.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/create/breadcrumb.tsxnew file mode 100644index 000000000..ce5b96bbc--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/create/breadcrumb.tsx@@ -0,0 +1,18 @@+"use client";++import { NavBreadcrumb } from "@/components/nav/nav-breadcrumb";++export function Breadcrumb() {+ return (+ <NavBreadcrumb+ items={[+ {+ type: "link",+ label: "Status Pages",+ href: "/status-pages",+ },+ { type: "page", label: "Create Status Page" },+ ]}+ />+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/create/client.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/create/client.tsxnew file mode 100644index 000000000..2d3b555f5--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/create/client.tsx@@ -0,0 +1,72 @@+"use client";++import {+ EmptyStateDescription,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import { EmptyStateContainer } from "@/components/content/empty-state";+import {+ Section,+ SectionGroup,+ SectionHeader,+ SectionTitle,+} from "@/components/content/section";+import { FormGeneral } from "@/components/forms/status-page/form-general";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { useRouter } from "next/navigation";+import { useTransition } from "react";++export function Client() {+ const [isPending, startTransition] = useTransition();+ const trpc = useTRPC();+ const router = useRouter();+ const queryClient = useQueryClient();+ const { refetch } = useQuery(trpc.page.list.queryOptions());+ const createStatusPageMutation = useMutation(+ trpc.page.new.mutationOptions({+ onSuccess: (data) => {+ refetch();+ // NOTE: invalidate workspace to update the usage+ queryClient.invalidateQueries({+ queryKey: trpc.workspace.get.queryKey(),+ });+ startTransition(() => {+ router.push(`/status-pages/${data.id}/edit`);+ });+ },+ }),+ );++ return (+ <SectionGroup>+ <Section>+ <SectionHeader>+ <SectionTitle>Create Status Page</SectionTitle>+ </SectionHeader>+ <FormGeneral+ disabled={isPending}+ onSubmit={async (values) => {+ await createStatusPageMutation.mutateAsync({+ title: values.title,+ slug: values.slug,+ icon: values.icon,+ description: values.description,+ });+ }}+ />+ </Section>+ <Section>+ <EmptyStateContainer>+ <EmptyStateTitle>Create and start customizing</EmptyStateTitle>+ <EmptyStateDescription>+ Connect your <span className="text-foreground">monitors</span>, set+ up a <span className="text-foreground">custom domain</span>,{" "}+ <span className="text-foreground">password protect</span> it and+ more...+ </EmptyStateDescription>+ </EmptyStateContainer>+ </Section>+ </SectionGroup>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/create/layout.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/create/layout.tsxnew file mode 100644index 000000000..d154ddb79--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/create/layout.tsx@@ -0,0 +1,18 @@+import { AppHeader, AppHeaderContent } from "@/components/nav/app-header";+import { AppSidebarTrigger } from "@/components/nav/app-sidebar";++import { Breadcrumb } from "./breadcrumb";++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div>+ <AppHeader>+ <AppHeaderContent>+ <AppSidebarTrigger />+ <Breadcrumb />+ </AppHeaderContent>+ </AppHeader>+ <main className="w-full flex-1">{children}</main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(dashboard)/status-pages/create/page.tsx b/apps/dashboard/src/app/(dashboard)/status-pages/create/page.tsxnew file mode 100644index 000000000..e3dc7ede6--- /dev/null+++ b/apps/dashboard/src/app/(dashboard)/status-pages/create/page.tsx@@ -0,0 +1,5 @@+import { Client } from "./client";++export default function Page() {+ return <Client />;+}diff --git a/apps/dashboard/src/app/(public)/login/_components/actions.ts b/apps/dashboard/src/app/(public)/login/_components/actions.tsnew file mode 100644index 000000000..a90659b51--- /dev/null+++ b/apps/dashboard/src/app/(public)/login/_components/actions.ts@@ -0,0 +1,11 @@+"use server";++import { signIn } from "@/lib/auth";++export async function signInWithResendAction(formData: FormData) {+ try {+ await signIn("resend", formData);+ } catch (e) {+ console.error(e);+ }+}diff --git a/apps/dashboard/src/app/(public)/login/_components/magic-link-form.tsx b/apps/dashboard/src/app/(public)/login/_components/magic-link-form.tsxnew file mode 100644index 000000000..017055878--- /dev/null+++ b/apps/dashboard/src/app/(public)/login/_components/magic-link-form.tsx@@ -0,0 +1,39 @@+"use client";++import { useFormStatus } from "react-dom";++import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { toast } from "sonner";+import { signInWithResendAction } from "./actions";++/**+ * @deprecated - only to be used in development mode+ */+export default function MagicLinkForm() {+ const { pending } = useFormStatus();++ return (+ <form+ action={async (formData) => {+ try {+ await signInWithResendAction(formData);+ toast.success("Check your terminal for the magic link.");+ } catch (e) {+ console.error(e);+ toast.error("Error sending magic link.");+ }+ }}+ className="grid gap-2"+ >+ <div className="grid gap-1.5">+ <Label htmlFor="email">Email</Label>+ <Input id="email" name="email" type="email" required />+ </div>+ <Button variant="secondary" className="w-full">+ {pending ? "Logging..." : "Log magic link"}+ </Button>+ </form>+ );+}diff --git a/apps/dashboard/src/app/(public)/login/layout.tsx b/apps/dashboard/src/app/(public)/login/layout.tsxnew file mode 100644index 000000000..444f0ce30--- /dev/null+++ b/apps/dashboard/src/app/(public)/login/layout.tsx@@ -0,0 +1,56 @@+import Image from "next/image";+import Link from "next/link";+import { redirect } from "next/navigation";++import { auth } from "@/lib/auth";++export default async function AuthLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ const session = await auth();+ if (session) redirect("/");++ return (+ <div className="grid min-h-screen grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-5">+ <aside className="col-span-1 flex w-full flex-col gap-4 border border-border p-4 backdrop-blur-[2px] md:p-8 xl:col-span-2">+ <Link href="/" className="relative h-8 w-8">+ <Image+ src="https://openstatus.dev/icon.png"+ alt="OpenStatus"+ height={32}+ width={32}+ className="rounded-full border border-border"+ />+ </Link>+ <div className="mx-auto flex w-full max-w-lg flex-1 flex-col justify-center gap-8 text-center md:text-left">+ <div className="mx-auto grid gap-3">+ <h1 className="font-cal text-3xl text-foreground">+ Open Source Monitoring Service+ </h1>+ <p className="text-muted-foreground text-sm">+ Monitor your website or API and create your own status page within+ a couple of minutes. Want to know how it works? <br />+ <br />+ Check out{" "}+ <a+ href="https://github.com/openstatushq/openstatus"+ target="_blank"+ rel="noreferrer"+ className="text-foreground underline underline-offset-4 hover:no-underline"+ >+ GitHub+ </a>{" "}+ and let us know your use case!+ </p>+ </div>+ </div>+ <div className="md:h-8" />+ </aside>+ <main className="container col-span-1 mx-auto flex items-center justify-center md:col-span-1 xl:col-span-3">+ {children}+ </main>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(public)/login/page.tsx b/apps/dashboard/src/app/(public)/login/page.tsxnew file mode 100644index 000000000..da6030375--- /dev/null+++ b/apps/dashboard/src/app/(public)/login/page.tsx@@ -0,0 +1,75 @@+import Link from "next/link";++import { GitHubIcon } from "@/components/icons/github";+import { GoogleIcon } from "@/components/icons/google";+import { Button } from "@/components/ui/button";+import { Separator } from "@/components/ui/separator";+import { signIn } from "@/lib/auth";+import type { SearchParams } from "nuqs/server";+import MagicLinkForm from "./_components/magic-link-form";+import { searchParamsCache } from "./search-params";++export default async function Page(props: {+ searchParams: Promise<SearchParams>;+}) {+ const searchParams = await props.searchParams;+ const { redirectTo } = searchParamsCache.parse(searchParams);++ return (+ <div className="my-4 grid w-full max-w-xl gap-6 md:p-10">+ <div className="flex flex-col gap-2 text-center">+ <h1 className="font-semibold text-3xl tracking-tight">Sign In</h1>+ <p className="text-muted-foreground text-sm">+ Get started now. No credit card required.+ </p>+ </div>+ <div className="grid gap-3 p-4">+ {process.env.NODE_ENV === "development" ? (+ <div className="grid gap-3">+ <MagicLinkForm />+ <Separator />+ </div>+ ) : null}+ <form+ action={async () => {+ "use server";+ await signIn("github", { redirectTo });+ }}+ className="w-full"+ >+ <Button type="submit" className="w-full">+ Sign in with GitHub <GitHubIcon className="ml-2 h-4 w-4" />+ </Button>+ </form>+ <form+ action={async () => {+ "use server";+ await signIn("google", { redirectTo });+ }}+ className="w-full"+ >+ <Button type="submit" className="w-full" variant="outline">+ Sign in with Google <GoogleIcon className="ml-2 h-4 w-4" />+ </Button>+ </form>+ </div>+ <p className="px-8 text-center text-muted-foreground text-sm">+ By clicking continue, you agree to our{" "}+ <Link+ href="/legal/terms"+ className="underline underline-offset-4 hover:text-primary hover:no-underline"+ >+ Terms of Service+ </Link>{" "}+ and{" "}+ <Link+ href="/legal/privacy"+ className="underline underline-offset-4 hover:text-primary hover:no-underline"+ >+ Privacy Policy+ </Link>+ .+ </p>+ </div>+ );+}diff --git a/apps/dashboard/src/app/(public)/login/search-params.ts b/apps/dashboard/src/app/(public)/login/search-params.tsnew file mode 100644index 000000000..3447a1e24--- /dev/null+++ b/apps/dashboard/src/app/(public)/login/search-params.ts@@ -0,0 +1,7 @@+import { createSearchParamsCache, parseAsString } from "nuqs/server";++export const searchParamsParsers = {+ redirectTo: parseAsString.withDefault("/"),+};++export const searchParamsCache = createSearchParamsCache(searchParamsParsers);diff --git a/apps/dashboard/src/app/api/auth/[...nextauth]/route.ts b/apps/dashboard/src/app/api/auth/[...nextauth]/route.tsnew file mode 100644index 000000000..c55a45ed7--- /dev/null+++ b/apps/dashboard/src/app/api/auth/[...nextauth]/route.ts@@ -0,0 +1,3 @@+import { handlers } from "@/lib/auth";++export const { GET, POST } = handlers;diff --git a/apps/dashboard/src/app/api/trpc/edge/[trpc]/route.ts b/apps/dashboard/src/app/api/trpc/edge/[trpc]/route.tsnew file mode 100644index 000000000..2c1fc5285--- /dev/null+++ b/apps/dashboard/src/app/api/trpc/edge/[trpc]/route.ts@@ -0,0 +1,21 @@+import { fetchRequestHandler } from "@trpc/server/adapters/fetch";+import type { NextRequest } from "next/server";++import { createTRPCContext } from "@openstatus/api";+import { edgeRouter } from "@openstatus/api/src/edge";++export const runtime = "edge";++const handler = (req: NextRequest) =>+ fetchRequestHandler({+ endpoint: "/api/trpc/edge",+ router: edgeRouter,+ req: req,+ createContext: () => createTRPCContext({ req }),+ onError: ({ error }) => {+ console.log("Error in tRPC handler (edge)");+ console.error(error);+ },+ });++export { handler as GET, handler as POST };diff --git a/apps/dashboard/src/app/api/trpc/lambda/[trpc]/route.ts b/apps/dashboard/src/app/api/trpc/lambda/[trpc]/route.tsnew file mode 100644index 000000000..b36568088--- /dev/null+++ b/apps/dashboard/src/app/api/trpc/lambda/[trpc]/route.ts@@ -0,0 +1,22 @@+import { fetchRequestHandler } from "@trpc/server/adapters/fetch";+import type { NextRequest } from "next/server";++import { createTRPCContext } from "@openstatus/api";+import { lambdaRouter } from "@openstatus/api/src/lambda";++// Stripe is incompatible with Edge runtimes due to using Node.js events+// export const runtime = "edge";++const handler = (req: NextRequest) =>+ fetchRequestHandler({+ endpoint: "/api/trpc/lambda",+ router: lambdaRouter,+ req: req,+ createContext: () => createTRPCContext({ req }),+ onError: ({ error }) => {+ console.log("Error in tRPC handler (lambda)");+ console.error(error);+ },+ });++export { handler as GET, handler as POST };diff --git a/apps/dashboard/src/app/apple.ico b/apps/dashboard/src/app/apple.iconew file mode 100644index 000000000..511817033Binary files /dev/null and b/apps/dashboard/src/app/apple.ico differdiff --git a/apps/dashboard/src/app/favicon.ico b/apps/dashboard/src/app/favicon.iconew file mode 100644index 000000000..511817033Binary files /dev/null and b/apps/dashboard/src/app/favicon.ico differdiff --git a/apps/dashboard/src/app/global-error.tsx b/apps/dashboard/src/app/global-error.tsxnew file mode 100644index 000000000..f9babe1cf--- /dev/null+++ b/apps/dashboard/src/app/global-error.tsx@@ -0,0 +1,25 @@+"use client";++import * as Sentry from "@sentry/nextjs";+import NextError from "next/error";+import { useEffect } from "react";++export default function GlobalError({+ error,+}: {+ error: Error & { digest?: string };+}) {+ useEffect(() => {+ Sentry.captureException(error);+ }, [error]);++ return (+ <html lang="en">+ <body>+ {/* This is the default Next.js error component but it doesn't allow omitting the statusCode property yet. */}+ {/* biome-ignore lint/suspicious/noExplicitAny: <explanation> */}+ <NextError statusCode={undefined as any} />+ </body>+ </html>+ );+}diff --git a/apps/dashboard/src/app/globals.css b/apps/dashboard/src/app/globals.cssnew file mode 100644index 000000000..d9d01abe2--- /dev/null+++ b/apps/dashboard/src/app/globals.css@@ -0,0 +1,143 @@+@import "tailwindcss";+@import "tw-animate-css";++/* safelist */+@source inline("has-data-[slot=slider-range]:bg-red-500");++@custom-variant dark (&:is(.dark *));++@theme {+ --breakpoint-xs: 30rem;+}++@theme inline {+ --font-cal: var(--font-cal-sans);++ --color-background: var(--background);+ --color-foreground: var(--foreground);+ --font-sans: var(--font-geist-sans);+ --font-mono: var(--font-geist-mono);+ --color-sidebar-ring: var(--sidebar-ring);+ --color-sidebar-border: var(--sidebar-border);+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);+ --color-sidebar-accent: var(--sidebar-accent);+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);+ --color-sidebar-primary: var(--sidebar-primary);+ --color-sidebar-foreground: var(--sidebar-foreground);+ --color-sidebar: var(--sidebar);+ --color-chart-5: var(--chart-5);+ --color-chart-4: var(--chart-4);+ --color-chart-3: var(--chart-3);+ --color-chart-2: var(--chart-2);+ --color-chart-1: var(--chart-1);+ --color-ring: var(--ring);+ --color-input: var(--input);+ --color-border: var(--border);+ --color-destructive: var(--destructive);+ --color-accent-foreground: var(--accent-foreground);+ --color-accent: var(--accent);+ --color-muted-foreground: var(--muted-foreground);+ --color-muted: var(--muted);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-secondary: var(--secondary);+ --color-primary-foreground: var(--primary-foreground);+ --color-primary: var(--primary);+ --color-popover-foreground: var(--popover-foreground);+ --color-popover: var(--popover);+ --color-card-foreground: var(--card-foreground);+ --color-card: var(--card);+ --radius-sm: calc(var(--radius) - 4px);+ --radius-md: calc(var(--radius) - 2px);+ --radius-lg: var(--radius);+ --radius-xl: calc(var(--radius) + 4px);++ --color-success: var(--success);+ --color-warning: var(--warning);+ --color-info: var(--info);+}++:root {+ --radius: 0.625rem;+ --background: oklch(1 0 0);+ --foreground: oklch(0.145 0 0);+ --card: oklch(1 0 0);+ --card-foreground: oklch(0.145 0 0);+ --popover: oklch(1 0 0);+ --popover-foreground: oklch(0.145 0 0);+ --primary: oklch(0.205 0 0);+ --primary-foreground: oklch(0.985 0 0);+ --secondary: oklch(0.97 0 0);+ --secondary-foreground: oklch(0.205 0 0);+ --muted: oklch(0.97 0 0);+ --muted-foreground: oklch(0.556 0 0);+ --accent: oklch(0.97 0 0);+ --accent-foreground: oklch(0.205 0 0);+ --destructive: oklch(0.577 0.245 27.325);+ --border: oklch(0.922 0 0);+ --input: oklch(0.922 0 0);+ --ring: oklch(0.708 0 0);+ --chart-1: oklch(0.646 0.222 41.116);+ --chart-2: oklch(0.6 0.118 184.704);+ --chart-3: oklch(0.398 0.07 227.392);+ --chart-4: oklch(0.828 0.189 84.429);+ --chart-5: oklch(0.769 0.188 70.08);+ --sidebar: oklch(0.985 0 0);+ --sidebar-foreground: oklch(0.145 0 0);+ --sidebar-primary: oklch(0.205 0 0);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.97 0 0);+ --sidebar-accent-foreground: oklch(0.205 0 0);+ --sidebar-border: oklch(0.922 0 0);+ --sidebar-ring: oklch(0.708 0 0);++ --success: oklch(0.72 0.19 150);+ --warning: oklch(0.77 0.16 70);+ --info: oklch(0.62 0.19 260);+}++.dark {+ --background: oklch(0.145 0 0);+ --foreground: oklch(0.985 0 0);+ --card: oklch(0.205 0 0);+ --card-foreground: oklch(0.985 0 0);+ --popover: oklch(0.205 0 0);+ --popover-foreground: oklch(0.985 0 0);+ --primary: oklch(0.922 0 0);+ --primary-foreground: oklch(0.205 0 0);+ --secondary: oklch(0.269 0 0);+ --secondary-foreground: oklch(0.985 0 0);+ --muted: oklch(0.269 0 0);+ --muted-foreground: oklch(0.708 0 0);+ --accent: oklch(0.269 0 0);+ --accent-foreground: oklch(0.985 0 0);+ --destructive: oklch(0.704 0.191 22.216);+ --border: oklch(1 0 0 / 10%);+ --input: oklch(1 0 0 / 15%);+ --ring: oklch(0.556 0 0);+ --chart-1: oklch(0.488 0.243 264.376);+ --chart-2: oklch(0.696 0.17 162.48);+ --chart-3: oklch(0.769 0.188 70.08);+ --chart-4: oklch(0.627 0.265 303.9);+ --chart-5: oklch(0.645 0.246 16.439);+ --sidebar: oklch(0.205 0 0);+ --sidebar-foreground: oklch(0.985 0 0);+ --sidebar-primary: oklch(0.488 0.243 264.376);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.269 0 0);+ --sidebar-accent-foreground: oklch(0.985 0 0);+ --sidebar-border: oklch(1 0 0 / 10%);+ --sidebar-ring: oklch(0.556 0 0);++ --success: oklch(0.72 0.19 150);+ --warning: oklch(0.77 0.16 70);+ --info: oklch(0.62 0.19 260);+}++@layer base {+ * {+ @apply border-border outline-ring/50;+ }+ body {+ @apply bg-background text-foreground;+ }+}diff --git a/apps/dashboard/src/app/layout.tsx b/apps/dashboard/src/app/layout.tsxnew file mode 100644index 000000000..2f4010127--- /dev/null+++ b/apps/dashboard/src/app/layout.tsx@@ -0,0 +1,66 @@+import type { Metadata } from "next";+import { Geist, Geist_Mono } from "next/font/google";+import "./globals.css";+import { DevelopmentIndicator } from "@/components/development-indicator";+import { TailwindIndicator } from "@/components/tailwind-indicator";+import { ThemeProvider } from "@/components/theme-provider";+import { Toaster } from "@/components/ui/sonner";+import LocalFont from "next/font/local";+import { NuqsAdapter } from "nuqs/adapters/next/app";+import { ogMetadata, twitterMetadata } from "./metadata";+import { defaultMetadata } from "./metadata";++const cal = LocalFont({+ src: "../../public/fonts/CalSans-SemiBold.ttf",+ variable: "--font-cal-sans",+});++const geistSans = Geist({+ variable: "--font-geist-sans",+ subsets: ["latin"],+});++const geistMono = Geist_Mono({+ variable: "--font-geist-mono",+ subsets: ["latin"],+});++export const metadata: Metadata = {+ ...defaultMetadata,+ twitter: {+ ...twitterMetadata,+ },+ openGraph: {+ ...ogMetadata,+ },+};++// export const dynamic = "error";++export default function RootLayout({+ children,+}: Readonly<{+ children: React.ReactNode;+}>) {+ return (+ <html lang="en" suppressHydrationWarning>+ <body+ className={`${geistSans.variable}${geistMono.variable}${cal.variable} antialiased`}+ >+ <NuqsAdapter>+ <ThemeProvider+ attribute="class"+ defaultTheme="system"+ enableSystem+ disableTransitionOnChange+ >+ {children}+ <DevelopmentIndicator />+ <TailwindIndicator />+ <Toaster richColors expand />+ </ThemeProvider>+ </NuqsAdapter>+ </body>+ </html>+ );+}diff --git a/apps/dashboard/src/app/metadata.ts b/apps/dashboard/src/app/metadata.tsnew file mode 100644index 000000000..fd9971e17--- /dev/null+++ b/apps/dashboard/src/app/metadata.ts@@ -0,0 +1,37 @@+import type { Metadata } from "next";++export const TITLE = "OpenStatus";+export const DESCRIPTION =+ "OpenStatus is an open-source platform to monitor your services and keep your users informed.";++const OG_TITLE = "OpenStatus";+const OG_DESCRIPTION = "Monitor your services and keep your users informed.";+const FOOTER = "app.openstatus.dev";+const IMAGE = "assets/og/dashboard-v2.png";++export const defaultMetadata: Metadata = {+ title: {+ template: `%s | ${TITLE}`,+ default: TITLE,+ },+ description: DESCRIPTION,+ metadataBase: new URL("https://www.openstatus.dev"),+};++export const twitterMetadata: Metadata["twitter"] = {+ title: TITLE,+ description: DESCRIPTION,+ card: "summary_large_image",+ images: [+ `/api/og?title=${OG_TITLE}&description=${OG_DESCRIPTION}&footer=${FOOTER}&image=${IMAGE}`,+ ],+};++export const ogMetadata: Metadata["openGraph"] = {+ title: TITLE,+ description: DESCRIPTION,+ type: "website",+ images: [+ `/api/og?title=${OG_TITLE}&description=${OG_DESCRIPTION}&footer=${FOOTER}&image=${IMAGE}`,+ ],+};diff --git a/apps/dashboard/src/app/react-table.d.ts b/apps/dashboard/src/app/react-table.d.tsnew file mode 100644index 000000000..3e6ce4ab1--- /dev/null+++ b/apps/dashboard/src/app/react-table.d.ts@@ -0,0 +1,8 @@+import "@tanstack/react-table";++declare module "@tanstack/react-table" {+ interface ColumnMeta {+ headerClassName?: string;+ cellClassName?: string;+ }+}diff --git a/apps/dashboard/src/app/status-page/layout.tsx b/apps/dashboard/src/app/status-page/layout.tsxnew file mode 100644index 000000000..f3b5ff718--- /dev/null+++ b/apps/dashboard/src/app/status-page/layout.tsx@@ -0,0 +1,48 @@+/**+ * TODO:+ * - add different header+ * - add different chart/tracker+ * - add subscription popover (choose which one you'd like to allow)+ * - use the '@/components/status-page` for the components+ */++import { Link } from "@/components/common/link";+import { Button } from "@/components/ui/button";+import NextLink from "next/link";++const nav = [+ { label: "Status", href: "#" },+ { label: "Events", href: "#" },+ { label: "Monitors", href: "#" },+];++export default function Layout({ children }: { children: React.ReactNode }) {+ return (+ <div className="flex min-h-screen flex-col gap-4">+ <header className="w-full border border-b px-3 py-2">+ <nav className="mx-auto flex max-w-xl items-center justify-between">+ <ul className="flex flex-row gap-2">+ {nav.map((item) => (+ <li key={item.label}>+ <Button variant="ghost" asChild>+ <NextLink href={item.href}>{item.label}</NextLink>+ </Button>+ </li>+ ))}+ </ul>+ <div>{/* TODO: Popover */}</div>+ </nav>+ </header>+ <main className="mx-auto w-full max-w-xl flex-1 px-3 py-2">+ {children}+ </main>+ <footer className="w-full border border-t px-3 py-2">+ <div className="mx-auto max-w-xl">+ <p className="text-center text-muted-foreground">+ Powered by <Link href="#">OpenStatus</Link>+ </p>+ </div>+ </footer>+ </div>+ );+}diff --git a/apps/dashboard/src/app/status-page/page.tsx b/apps/dashboard/src/app/status-page/page.tsxnew file mode 100644index 000000000..c4d2facd5--- /dev/null+++ b/apps/dashboard/src/app/status-page/page.tsx@@ -0,0 +1,46 @@+"use client";++import {+ FloatingButton,+ StatusPageProvider,+ useStatusPage,+} from "@/components/status-page/floating-button";+import {+ Status,+ StatusBanner,+ StatusContent,+ StatusDescription,+ StatusHeader,+ StatusTitle,+} from "@/components/status-page/status";+import { StatusMonitor } from "@/components/status-page/status-monitor";++function StatusPageContent() {+ const { variant, cardType } = useStatusPage();++ return (+ <div className="grid gap-6">+ <Status variant={variant}>+ <StatusHeader>+ <StatusTitle>Craft</StatusTitle>+ <StatusDescription>+ Stay informed about the stability+ </StatusDescription>+ </StatusHeader>+ <StatusBanner />+ <StatusContent>+ <StatusMonitor variant={variant} type={cardType} />+ </StatusContent>+ </Status>+ <FloatingButton />+ </div>+ );+}++export default function Page() {+ return (+ <StatusPageProvider defaultVariant="success">+ <StatusPageContent />+ </StatusPageProvider>+ );+}diff --git a/apps/dashboard/src/components/chart/chart-area-latency.tsx b/apps/dashboard/src/components/chart/chart-area-latency.tsxnew file mode 100644index 000000000..ebe2a6b1a--- /dev/null+++ b/apps/dashboard/src/components/chart/chart-area-latency.tsx@@ -0,0 +1,123 @@+"use client";++import {+ Area,+ AreaChart,+ CartesianGrid,+ Label,+ ReferenceLine,+ XAxis,+ YAxis,+} from "recharts";++import {+ type ChartConfig,+ ChartContainer,+ ChartLegend,+ ChartLegendContent,+ ChartTooltip,+ ChartTooltipContent,+} from "@/components/ui/chart";+import { type PERCENTILES, mapLatency } from "@/data/metrics.client";+import { useTRPC } from "@/lib/trpc/client";+import type { flyRegions } from "@openstatus/db/src/schema/constants";+import { useQuery } from "@tanstack/react-query";+import { ChartTooltipNumber } from "./chart-tooltip-number";++const chartConfig = {+ latency: {+ label: "Latency",+ color: "var(--success)",+ },+} satisfies ChartConfig;++// TODO: create new pipes for timing phase metrics++export function ChartAreaLatency({+ monitorId,+ degradedAfter,+ period,+ type,+ percentile,+ regions,+}: {+ monitorId: string;+ degradedAfter: number | null;+ percentile: (typeof PERCENTILES)[number];+ period: "1d" | "7d" | "14d";+ type: "http" | "tcp";+ regions: (typeof flyRegions)[number][];+}) {+ const trpc = useTRPC();++ const { data: latency } = useQuery(+ trpc.tinybird.metricsLatency.queryOptions({+ monitorId,+ period,+ type,+ regions,+ }),+ );++ const refinedLatency = latency ? mapLatency(latency, percentile) : [];++ return (+ <ChartContainer config={chartConfig} className="h-[250px] w-full">+ <AreaChart accessibilityLayer data={refinedLatency}>+ <CartesianGrid vertical={false} />+ <XAxis+ dataKey="timestamp"+ tickLine={false}+ axisLine={false}+ tickMargin={8}+ // tickFormatter={(value) => value.slice(0, 3)}+ />+ <ChartTooltip+ cursor={false}+ content={+ <ChartTooltipContent+ indicator="dot"+ formatter={(value, name) => (+ <ChartTooltipNumber+ chartConfig={chartConfig}+ value={value}+ name={name}+ />+ )}+ />+ }+ />+ <Area+ dataKey="latency"+ type="monotone"+ fill="var(--color-latency)"+ fillOpacity={0.4}+ stroke="var(--color-latency)"+ stackId="a"+ />+ {degradedAfter ? (+ <ReferenceLine+ y={degradedAfter}+ stroke="var(--warning)"+ strokeDasharray="3 3"+ >+ <Label+ value="Degraded"+ position="insideBottomRight"+ fill="var(--warning)"+ />+ </ReferenceLine>+ ) : null}+ <YAxis+ domain={["dataMin", "dataMax"]}+ tickLine={false}+ axisLine={false}+ tickMargin={8}+ orientation="right"+ tickFormatter={(value) => `${value}ms`}+ />+ <ChartLegend content={<ChartLegendContent />} />+ </AreaChart>+ </ChartContainer>+ );+}diff --git a/apps/dashboard/src/components/chart/chart-area-timing-phases.tsx b/apps/dashboard/src/components/chart/chart-area-timing-phases.tsxnew file mode 100644index 000000000..5339f04c2--- /dev/null+++ b/apps/dashboard/src/components/chart/chart-area-timing-phases.tsx@@ -0,0 +1,211 @@+"use client";++import {+ Area,+ AreaChart,+ CartesianGrid,+ Label,+ ReferenceLine,+ XAxis,+ YAxis,+} from "recharts";++import {+ type ChartConfig,+ ChartContainer,+ ChartLegend,+ ChartLegendContent,+ ChartTooltip,+ ChartTooltipContent,+} from "@/components/ui/chart";+import {+ type INTERVALS,+ type PERCENTILES,+ mapTimingPhases,+} from "@/data/metrics.client";+import { useTRPC } from "@/lib/trpc/client";+import type { flyRegions } from "@openstatus/db/src/schema/constants";+import { useQuery } from "@tanstack/react-query";+import {+ ChartTooltipNumber,+ ChartTooltipNumberRaw,+} from "./chart-tooltip-number";++const chartConfig = {+ dns: {+ label: "DNS",+ color: "var(--chart-1)",+ },+ connect: {+ label: "Connect",+ color: "var(--chart-2)",+ },+ tls: {+ label: "TLS",+ color: "var(--chart-3)",+ },+ ttfb: {+ label: "TTFB",+ color: "var(--chart-4)",+ },+ transfer: {+ label: "Transfer",+ color: "var(--chart-5)",+ },+} satisfies ChartConfig;++// TODO: create new pipes for timing phase metrics++export function ChartAreaTimingPhases({+ monitorId,+ degradedAfter,+ period,+ percentile,+ interval,+ type,+ regions,+}: {+ monitorId: string;+ degradedAfter: number | null;+ period: "1d" | "7d" | "14d";+ percentile: (typeof PERCENTILES)[number];+ interval: (typeof INTERVALS)[number];+ regions: (typeof flyRegions)[number][];+ type: "http";+}) {+ const trpc = useTRPC();++ const { data: timingPhases } = useQuery(+ trpc.tinybird.metricsTimingPhases.queryOptions({+ monitorId,+ period,+ type,+ interval,+ regions,+ }),+ );++ const refinedTimingPhases = timingPhases+ ? mapTimingPhases(timingPhases, percentile)+ : [];++ console.log(refinedTimingPhases);+ return (+ <ChartContainer config={chartConfig} className="h-[250px] w-full">+ <AreaChart accessibilityLayer data={refinedTimingPhases}>+ <CartesianGrid vertical={false} />+ <XAxis+ dataKey="timestamp"+ tickLine={false}+ axisLine={false}+ tickMargin={8}+ // tickFormatter={(value) => value.slice(0, 3)}+ />+ <ChartTooltip+ cursor={false}+ defaultIndex={10}+ content={+ <ChartTooltipContent+ indicator="dot"+ formatter={(value, name, item, index) => {+ if (index !== 4) {+ return (+ <ChartTooltipNumber+ chartConfig={chartConfig}+ value={value}+ name={name}+ />+ );+ }++ const total =+ item.payload?.dns ++ item.payload?.connect ++ item.payload?.tls ++ item.payload?.ttfb ++ item.payload?.transfer;++ return (+ <>+ <ChartTooltipNumber+ chartConfig={chartConfig}+ value={value}+ name={name}+ />+ <ChartTooltipNumberRaw+ value={total}+ label="Total"+ className="flex h-0 basis-full items-center border-t font-medium text-foreground text-xs"+ />+ </>+ );+ }}+ />+ }+ />+ <Area+ dataKey="dns"+ type="monotone"+ fill="var(--color-dns)"+ fillOpacity={0.4}+ stroke="var(--color-dns)"+ stackId="a"+ />+ <Area+ dataKey="connect"+ type="monotone"+ fill="var(--color-connect)"+ fillOpacity={0.4}+ stroke="var(--color-connect)"+ stackId="a"+ />+ <Area+ dataKey="tls"+ type="monotone"+ fill="var(--color-tls)"+ fillOpacity={0.4}+ stroke="var(--color-tls)"+ stackId="a"+ />+ <Area+ dataKey="ttfb"+ type="monotone"+ fill="var(--color-ttfb)"+ fillOpacity={0.4}+ stroke="var(--color-ttfb)"+ stackId="a"+ />+ <Area+ dataKey="transfer"+ type="monotone"+ fill="var(--color-transfer)"+ fillOpacity={0.4}+ stroke="var(--color-transfer)"+ stackId="a"+ />+ {degradedAfter ? (+ <ReferenceLine+ y={degradedAfter}+ stroke="var(--warning)"+ strokeDasharray="3 3"+ >+ <Label+ value="Degraded"+ position="insideBottomRight"+ fill="var(--warning)"+ />+ </ReferenceLine>+ ) : null}+ <YAxis+ domain={["dataMin", "dataMax"]}+ tickLine={false}+ axisLine={false}+ tickMargin={8}+ orientation="right"+ tickFormatter={(value) => `${value}ms`}+ />+ <ChartLegend content={<ChartLegendContent />} />+ </AreaChart>+ </ChartContainer>+ );+}diff --git a/apps/dashboard/src/components/chart/chart-bar-uptime.tsx b/apps/dashboard/src/components/chart/chart-bar-uptime.tsxnew file mode 100644index 000000000..ca7431b1f--- /dev/null+++ b/apps/dashboard/src/components/chart/chart-bar-uptime.tsx@@ -0,0 +1,110 @@+"use client";++import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts";++import {+ type ChartConfig,+ ChartContainer,+ ChartLegend,+ ChartLegendContent,+ ChartTooltip,+ ChartTooltipContent,+} from "@/components/ui/chart";+import { type PERIODS, mapUptime } from "@/data/metrics.client";+import { useIsMobile } from "@/hooks/use-mobile";+import { useTRPC } from "@/lib/trpc/client";+import type { Region } from "@openstatus/db/src/schema/constants";+import { useQuery } from "@tanstack/react-query";+import { endOfDay, startOfDay, subDays } from "date-fns";++const chartConfig = {+ ok: {+ label: "Success",+ color: "var(--color-success)",+ },+ degraded: {+ label: "Degraded",+ color: "var(--color-warning)",+ },+ error: {+ label: "Error",+ color: "var(--color-destructive)",+ },+} satisfies ChartConfig;++const periodToInterval = {+ "1d": 60,+ "7d": 240,+ "14d": 480,+} satisfies Record<(typeof PERIODS)[number], number>;++const periodToFromDate = {+ "1d": startOfDay(subDays(new Date(), 1)),+ "7d": startOfDay(subDays(new Date(), 7)),+ "14d": startOfDay(subDays(new Date(), 14)),+} satisfies Record<(typeof PERIODS)[number], Date>;++export function ChartBarUptime({+ monitorId,+ period,+ type,+ regions,+}: {+ monitorId: string;+ period: (typeof PERIODS)[number];+ type: "http" | "tcp";+ regions: Region[];+}) {+ const isMobile = useIsMobile();+ const trpc = useTRPC();+ const fromDate = periodToFromDate[period];+ const toDate = endOfDay(new Date());+ const interval = periodToInterval[period];++ const { data: uptime } = useQuery(+ trpc.tinybird.uptime.queryOptions({+ monitorId,+ fromDate: fromDate.toISOString(),+ toDate: toDate.toISOString(),+ regions,+ interval,+ type,+ }),+ );++ const refinedUptime = uptime ? mapUptime(uptime) : [];++ return (+ <ChartContainer config={chartConfig} className="h-[130px] w-full">+ <BarChart+ accessibilityLayer+ data={refinedUptime}+ barCategoryGap={isMobile ? 0 : 2}+ >+ <CartesianGrid vertical={false} />+ <ChartTooltip+ cursor={false}+ content={<ChartTooltipContent indicator="dot" />}+ />+ <Bar dataKey="ok" stackId="a" fill="var(--color-ok)" />+ <Bar dataKey="error" stackId="a" fill="var(--color-error)" />+ <Bar dataKey="degraded" stackId="a" fill="var(--color-degraded)" />+ <YAxis+ domain={["dataMin", "dataMax"]}+ tickLine={false}+ axisLine={false}+ tickMargin={8}+ orientation="right"+ />+ <XAxis+ dataKey="interval"+ tickLine={false}+ tickMargin={8}+ minTickGap={10}+ axisLine={false}+ />+ <ChartLegend content={<ChartLegendContent />} />+ </BarChart>+ </ChartContainer>+ );+}diff --git a/apps/dashboard/src/components/chart/chart-line-region.tsx b/apps/dashboard/src/components/chart/chart-line-region.tsxnew file mode 100644index 000000000..8f279fdf4--- /dev/null+++ b/apps/dashboard/src/components/chart/chart-line-region.tsx@@ -0,0 +1,93 @@+"use client";++import { CartesianGrid, Line, LineChart, XAxis, YAxis } from "recharts";++import {+ type ChartConfig,+ ChartContainer,+ ChartTooltip,+ ChartTooltipContent,+} from "@/components/ui/chart";+import { cn } from "@/lib/utils";+import { ChartTooltipNumber } from "./chart-tooltip-number";++const chartConfig = {+ latency: {+ label: "Latency",+ color: "var(--success)",+ },+} satisfies ChartConfig;++export type TrendPoint = {+ timestamp: number; // unix millis+ latency: number; // milliseconds+};++export function ChartLineRegion({+ className,+ data,+}: {+ className?: string;+ data: TrendPoint[];+}) {+ const trendData = data ?? [];++ const chartData = trendData.map((d) => ({+ timestamp: new Date(d.timestamp).toLocaleString("default", {+ hour: "numeric",+ minute: "numeric",+ day: "numeric",+ month: "short",+ }),+ latency: d.latency,+ }));++ return (+ <ChartContainer+ config={chartConfig}+ className={cn("h-[100px] w-full", className)}+ >+ <LineChart+ accessibilityLayer+ data={chartData}+ margin={{+ left: 12,+ right: 12,+ }}+ >+ <CartesianGrid vertical={false} />+ <XAxis dataKey="timestamp" hide />+ <ChartTooltip+ cursor={false}+ content={+ <ChartTooltipContent+ className="w-[180px]"+ formatter={(value, name) => (+ <ChartTooltipNumber+ chartConfig={chartConfig}+ value={value}+ name={name}+ />+ )}+ />+ }+ />+ <Line+ dataKey="latency"+ type="monotone"+ stroke="var(--color-latency)"+ strokeWidth={2}+ dot={false}+ />+ <YAxis+ domain={["dataMin", "dataMax"]}+ tickLine={false}+ axisLine={false}+ tickMargin={8}+ orientation="right"+ tickFormatter={(value) => `${value}ms`}+ />+ </LineChart>+ </ChartContainer>+ );+}diff --git a/apps/dashboard/src/components/chart/chart-tooltip-number.tsx b/apps/dashboard/src/components/chart/chart-tooltip-number.tsxnew file mode 100644index 000000000..ce152b7d9--- /dev/null+++ b/apps/dashboard/src/components/chart/chart-tooltip-number.tsx@@ -0,0 +1,59 @@+import type { ChartConfig } from "@/components/ui/chart";+import { cn } from "@/lib/utils";+import type {+ NameType,+ ValueType,+} from "recharts/types/component/DefaultTooltipContent";++interface ChartTooltipNumberProps {+ chartConfig: ChartConfig;+ value: ValueType;+ name: NameType;+}++export function ChartTooltipNumber({+ value,+ name,+ chartConfig,+}: ChartTooltipNumberProps) {+ return (+ <ChartTooltipNumberRaw+ value={value}+ label={chartConfig[name as keyof typeof chartConfig]?.label || name}+ style={+ {+ "--color-bg": `var(--color-${name})`,+ } as React.CSSProperties+ }+ />+ );+}++export function ChartTooltipNumberRaw({+ value,+ label,+ style,+ className,+}: {+ value: ValueType;+ label: React.ReactNode;+ style?: React.CSSProperties;+ className?: string;+}) {+ return (+ <>+ <div+ className={cn(+ "h-2.5 w-2.5 shrink-0 rounded-[2px] bg-(--color-bg)",+ className,+ )}+ style={style}+ />+ <span>{label}</span>+ <div className="ml-auto flex items-baseline gap-0.5 font-medium font-mono text-foreground tabular-nums">+ {value}+ <span className="font-normal text-muted-foreground">ms</span>+ </div>+ </>+ );+}diff --git a/apps/dashboard/src/components/common/code.tsx b/apps/dashboard/src/components/common/code.tsxnew file mode 100644index 000000000..5ef399475--- /dev/null+++ b/apps/dashboard/src/components/common/code.tsx@@ -0,0 +1,41 @@+"use client";++import { Button } from "@/components/ui/button";+import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";+import { cn } from "@/lib/utils";+import { Check, Copy } from "lucide-react";++export function Code({+ children,+ className,+ ...props+}: React.ComponentProps<"pre">) {+ const { copy, isCopied } = useCopyToClipboard();++ return (+ <div className="relative">+ <pre+ className={cn(+ "overflow-x-auto rounded-md border bg-muted p-2 text-xs",+ className,+ )}+ {...props}+ >+ {children}+ </pre>+ <Button+ variant="outline"+ size="icon"+ className="absolute top-1 right-1 size-6 p-1 backdrop-blur-md"+ onClick={() =>+ copy(children?.toString() ?? "", {+ withToast: false,+ timeout: 1000,+ })+ }+ >+ {isCopied ? <Check className="size-3" /> : <Copy className="size-3" />}+ </Button>+ </div>+ );+}diff --git a/apps/dashboard/src/components/common/hover-card-timestamp.tsx b/apps/dashboard/src/components/common/hover-card-timestamp.tsxnew file mode 100644index 000000000..671d975d4--- /dev/null+++ b/apps/dashboard/src/components/common/hover-card-timestamp.tsx@@ -0,0 +1,89 @@+"use client";++import {+ HoverCard,+ HoverCardContent,+ HoverCardTrigger,+} from "@/components/ui/hover-card";+import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";+import { UTCDate } from "@date-fns/utc";+import { HoverCardPortal } from "@radix-ui/react-hover-card";+import { format, formatDistanceToNowStrict } from "date-fns";+import { Copy } from "lucide-react";+import { Check } from "lucide-react";+import type { ComponentPropsWithoutRef } from "react";++// TODO: move to TableCellDate?++type HoverCardContentProps = ComponentPropsWithoutRef<typeof HoverCardContent>;++interface HoverCardTimestampProps {+ date: Date;+ side?: HoverCardContentProps["side"];+ sideOffset?: HoverCardContentProps["sideOffset"];+ align?: HoverCardContentProps["align"];+ alignOffset?: HoverCardContentProps["alignOffset"];+ children?: React.ReactNode;+}++export function HoverCardTimestamp({+ date,+ side = "right",+ align = "start",+ alignOffset = -4,+ sideOffset,+ children,+}: HoverCardTimestampProps) {+ const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;++ return (+ <HoverCard openDelay={0} closeDelay={0}>+ <HoverCardTrigger asChild>{children}</HoverCardTrigger>+ <HoverCardPortal>+ <HoverCardContent+ className="z-10 w-auto p-2"+ {...{ side, align, alignOffset, sideOffset }}+ >+ <dl className="flex flex-col gap-1">+ <Row value={String(date.getTime())} label="Timestamp" />+ <Row+ value={format(new UTCDate(date), "LLL dd, y HH:mm:ss")}+ label="UTC"+ />+ <Row value={format(date, "LLL dd, y HH:mm:ss")} label={timezone} />+ <Row+ value={formatDistanceToNowStrict(date, { addSuffix: true })}+ label="Relative"+ />+ </dl>+ </HoverCardContent>+ </HoverCardPortal>+ </HoverCard>+ );+}++function Row({ value, label }: { value: string; label: string }) {+ const { copy, isCopied } = useCopyToClipboard();++ return (+ <div+ className="group flex items-center justify-between gap-4 text-sm"+ onClick={(e) => {+ e.stopPropagation();+ copy(value, {});+ }}+ >+ <dt className="text-muted-foreground">{label}</dt>+ <dd className="flex items-center gap-1 truncate font-mono">+ <span className="invisible group-hover:visible">+ {!isCopied ? (+ <Copy className="h-3 w-3" />+ ) : (+ <Check className="h-3 w-3" />+ )}+ </span>+ {value}+ </dd>+ </div>+ );+}diff --git a/apps/dashboard/src/components/common/input-with-addons.tsx b/apps/dashboard/src/components/common/input-with-addons.tsxnew file mode 100644index 000000000..3bf41c66f--- /dev/null+++ b/apps/dashboard/src/components/common/input-with-addons.tsx@@ -0,0 +1,48 @@+import * as React from "react";++import { cn } from "@/lib/utils";+import { Input } from "../ui/input";++export interface InputWithAddonsProps+ extends React.InputHTMLAttributes<HTMLInputElement> {+ leading?: React.ReactNode;+ trailing?: React.ReactNode;+}++// "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+// "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",+// "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",++const InputWithAddons = React.forwardRef<+ HTMLInputElement,+ InputWithAddonsProps+>(({ leading, trailing, className, ...props }, ref) => {+ return (+ <div className={cn("flex rounded-md shadow-xs", className)}>+ {leading ? (+ <span className="inline-flex items-center rounded-s-md border border-input bg-muted px-3 text-muted-foreground text-sm">+ {leading}+ </span>+ ) : null}+ <Input+ ref={ref}+ className={cn("z-1 shadow-none", {+ "-ms-px rounded-s-none": leading,+ "-me-px rounded-e-none": trailing,+ })}+ placeholder="google.com"+ type="text"+ {...props}+ />+ {trailing ? (+ <span className="inline-flex items-center rounded-e-md border border-input bg-muted px-3 text-muted-foreground text-sm">+ {trailing}+ </span>+ ) : null}+ </div>+ );+});++InputWithAddons.displayName = "InputWithAddons";++export { InputWithAddons };diff --git a/apps/dashboard/src/components/common/kbd.tsx b/apps/dashboard/src/components/common/kbd.tsxnew file mode 100644index 000000000..92724c885--- /dev/null+++ b/apps/dashboard/src/components/common/kbd.tsx@@ -0,0 +1,32 @@+import { cn } from "@/lib/utils";+import { type VariantProps, cva } from "class-variance-authority";+import type * as React from "react";++const kbdVariants = cva(+ "-me-1 ms-2 inline-flex h-5 max-h-full items-center rounded border px-1 font-[inherit] font-medium text-[0.625rem]",+ {+ variants: {+ variant: {+ default: "border-input bg-background text-muted-foreground/70",+ secondary: "bg-secondary text-secondary-foreground",+ ghost: "border-transparent",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ },+);++export function Kbd({+ children,+ className,+ variant,+ ...props+}: React.ComponentProps<"kbd"> & VariantProps<typeof kbdVariants>) {+ return (+ <kbd className={cn(kbdVariants({ variant, className }))} {...props}>+ {children}+ </kbd>+ );+}diff --git a/apps/dashboard/src/components/common/link.tsx b/apps/dashboard/src/components/common/link.tsxnew file mode 100644index 000000000..6749263d8--- /dev/null+++ b/apps/dashboard/src/components/common/link.tsx@@ -0,0 +1,19 @@+import { cn } from "@/lib/utils";+import NextLink from "next/link";++// TODO: we could add cva variants for the link++export function Link({+ children,+ className,+ ...props+}: React.ComponentProps<typeof NextLink>) {+ return (+ <NextLink+ className={cn("font-medium text-foreground", className)}+ {...props}+ >+ {children}+ </NextLink>+ );+}diff --git a/apps/dashboard/src/components/common/note.tsx b/apps/dashboard/src/components/common/note.tsxnew file mode 100644index 000000000..5d9d2c761--- /dev/null+++ b/apps/dashboard/src/components/common/note.tsx@@ -0,0 +1,60 @@+import { Button } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import { type VariantProps, cva } from "class-variance-authority";++const noteVariants = cva(+ "flex items-center gap-3 rounded-md border px-3 py-2 [&>svg]:size-4 [&>svg]:text-current [&>svg]:shrink-0",+ {+ variants: {+ variant: {+ default: "border-border",+ ghost: "border-none bg-transparent",+ },+ color: {+ default: "text-foreground bg-sidebar",+ warning: "text-warning border-warning/50 bg-warning/5",+ error: "text-destructive border-destructive/50 bg-destructive/5",+ success: "text-success border-success/50 bg-success/5",+ info: "text-info border-info/50 bg-info/5",+ },+ },+ defaultVariants: {+ variant: "default",+ color: "default",+ },+ },+);++export function Note({+ children,+ className,+ variant = "default",+ color = "default",+ ...props+}: React.ComponentProps<"div"> & VariantProps<typeof noteVariants>) {+ return (+ <div+ data-variant={variant}+ className={cn(noteVariants({ variant, color, className }))}+ {...props}+ >+ {children}+ </div>+ );+}++export function NoteButton({+ children,+ className,+ ...props+}: React.ComponentProps<typeof Button>) {+ return (+ <Button+ size="sm"+ className={cn("-mr-1 ml-auto shrink-0", className)}+ {...props}+ >+ {children}+ </Button>+ );+}diff --git a/apps/dashboard/src/components/common/wheel-picker.tsx b/apps/dashboard/src/components/common/wheel-picker.tsxnew file mode 100644index 000000000..a61eb0282--- /dev/null+++ b/apps/dashboard/src/components/common/wheel-picker.tsx@@ -0,0 +1,295 @@+"use client";++import { cn } from "@/lib/utils";+import * as React from "react";++// ---------------------------------------------------------------------------------------------------------------------+// Context -------------------------------------------------------------------------------------------------------------+// ---------------------------------------------------------------------------------------------------------------------++interface WheelPickerContextValue {+ items: string[];+ currentIndex: number;+ onIndexChange: (index: number) => void;+ theta: number; // angle between two items+ radius: number; // translateZ distance+ count: number; // items including placeholders+}++const WheelPickerContext = React.createContext<WheelPickerContextValue | null>(+ null,+);++const useWheelPickerContext = () => {+ const ctx = React.useContext(WheelPickerContext);+ if (!ctx) {+ throw new Error(+ "[WheelPicker] sub component must be rendered within <WheelPicker /> root",+ );+ }+ return ctx;+};++// ---------------------------------------------------------------------------------------------------------------------+// WheelPicker (Root / Provider) ---------------------------------------------------------------------------------------+// ---------------------------------------------------------------------------------------------------------------------++export interface WheelPickerProps extends React.HTMLAttributes<HTMLDivElement> {+ items: string[];+ /** 0-based index of the currently selected item. Defaults to 0. */+ currentIndex: number;+ /** Callback that is invoked with the currently selected item (string) whenever the selection changes */+ onIndexChange: (index: number) => void;+ /** Radius (in `px`) of the carousel – tweak to fit line height of text (Default: 28) */+ radius?: number;+}++const WheelPicker = React.forwardRef<HTMLDivElement, WheelPickerProps>(+ (+ {+ items,+ currentIndex,+ onIndexChange,+ radius: radiusProp = 28,+ className,+ children,+ ...props+ },+ ref,+ ) => {+ // internal render count includes two placeholders at start & end+ const count = items.length + 2;+ const theta = (2 * Math.PI) / count;++ const contextValue = React.useMemo<WheelPickerContextValue>(+ () => ({+ items,+ currentIndex,+ onIndexChange,+ theta,+ radius: radiusProp,+ count,+ }),+ [items, currentIndex, onIndexChange, theta, radiusProp, count],+ );++ return (+ <WheelPickerContext.Provider value={contextValue}>+ <div ref={ref} className={className} {...props}>+ {children}+ </div>+ </WheelPickerContext.Provider>+ );+ },+);+WheelPicker.displayName = "WheelPicker";++// ---------------------------------------------------------------------------------------------------------------------+// WheelPickerSelect ---------------------------------------------------------------------------------------------------+// ---------------------------------------------------------------------------------------------------------------------++export type WheelPickerSelectProps = React.HTMLAttributes<HTMLDivElement>;++const WheelPickerSelect = React.forwardRef<+ HTMLDivElement,+ WheelPickerSelectProps+>(({ className, children, ...props }, ref) => {+ const { items, currentIndex, onIndexChange } = useWheelPickerContext();++ const moveBy = React.useCallback(+ (delta: number) => {+ const itemsLength = items.length;+ let newIndex = currentIndex + delta;++ // Handle wrapping+ if (newIndex < 0) {+ newIndex = itemsLength - 1;+ } else if (newIndex >= itemsLength) {+ newIndex = 0;+ }++ onIndexChange(newIndex);+ },+ [currentIndex, items.length, onIndexChange],+ );++ const handleKeyDown = React.useCallback(+ (e: React.KeyboardEvent<HTMLDivElement>) => {+ switch (e.key) {+ case "ArrowUp":+ case "ArrowLeft":+ e.preventDefault();+ moveBy(1);+ break;+ case "ArrowDown":+ case "ArrowRight":+ e.preventDefault();+ moveBy(-1);+ break;+ case "Home":+ e.preventDefault();+ onIndexChange(0);+ break;+ case "End":+ e.preventDefault();+ onIndexChange(items.length - 1);+ break;+ }+ },+ [moveBy, onIndexChange, items.length],+ );++ return (+ <div+ ref={ref}+ data-slot="wheel-select"+ role="listbox"+ aria-label="Select option"+ aria-activedescendant={`wheel-option-${currentIndex}`}+ tabIndex={0}+ className={cn(+ "relative h-6 w-full rounded-md border border-transparent text-left focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring/50",+ className,+ )}+ onKeyDown={handleKeyDown}+ {...props}+ >+ {children}+ </div>+ );+});+WheelPickerSelect.displayName = "WheelPickerSelect";++// ---------------------------------------------------------------------------------------------------------------------+// WheelPickerOptions --------------------------------------------------------------------------------------------------+// ---------------------------------------------------------------------------------------------------------------------++export type WheelPickerOptionsProps = React.HTMLAttributes<HTMLDivElement>;++const WheelPickerOptions = React.forwardRef<+ HTMLDivElement,+ WheelPickerOptionsProps+>(({ className, ...props }, ref) => {+ const { items, currentIndex, onIndexChange, theta, radius } =+ useWheelPickerContext();++ return (+ <div+ ref={ref}+ data-slot="wheel-options"+ className={cn(+ "h-full w-full rounded-md [perspective:1000px] [transform-style:preserve-3d]",+ className,+ )}+ {...props}+ >+ <div+ className="relative h-full w-full transition-transform duration-500 ease-out [transform-style:preserve-3d]"+ style={{+ transform: `translateZ(-${radius}px) rotateX(${+ -(currentIndex + 1) * theta+ }rad)`,+ }}+ >+ {/* First placeholder */}+ <WheelPickerEmpty position="first" />++ {/* Real items */}+ {items.map((item, idx) => {+ // Render index = item index + 1 (accounting for first placeholder)+ const renderIdx = idx + 1;+ const angle = theta * renderIdx;+ const isSelected = idx === currentIndex;+ return (+ <div+ key={item}+ data-slot="wheel-option"+ id={`wheel-option-${idx}`}+ role="option"+ aria-selected={isSelected}+ className={cn(+ "absolute inset-0 flex cursor-pointer select-none items-center justify-start transition-transform duration-500 ease-out [backface-visibility:hidden]",+ )}+ style={{+ transform: `rotateX(${angle}rad) translateZ(${radius}px)`,+ transformStyle: "preserve-3d",+ }}+ onClick={(e) => {+ if (!isSelected) {+ e.preventDefault();+ e.stopPropagation();+ onIndexChange(idx);+ }+ }}+ >+ <span+ className={cn(+ "text-xs transition-colors",+ isSelected ? "text-foreground" : "text-muted-foreground/70",+ )}+ >+ {item}+ </span>+ </div>+ );+ })}++ {/* Last placeholder */}+ <WheelPickerEmpty position="last" />+ </div>+ </div>+ );+});+WheelPickerOptions.displayName = "WheelPickerOptions";++// ---------------------------------------------------------------------------------------------------------------------+// WheelPickerEmpty (placeholders) -------------------------------------------------------------------------------------+// ---------------------------------------------------------------------------------------------------------------------++type PlaceholderPosition = "first" | "last";++export interface WheelPickerEmptyProps+ extends React.HTMLAttributes<HTMLDivElement> {+ position: PlaceholderPosition;+}++const WheelPickerEmpty = React.forwardRef<+ HTMLDivElement,+ WheelPickerEmptyProps+>(({ position, className, ...props }, ref) => {+ const { theta, radius, count, currentIndex } = useWheelPickerContext();++ const renderIdx = position === "first" ? 0 : count - 1;+ const angle = theta * renderIdx;++ return (+ <div+ ref={ref}+ data-slot="wheel-empty"+ id={`wheel-option-${renderIdx}`}+ role="option"+ aria-selected={currentIndex === renderIdx}+ aria-disabled+ className={cn(+ "absolute inset-0 select-none [backface-visibility:hidden]",+ className,+ )}+ style={{+ transform: `rotateX(${angle}rad) translateZ(${radius}px)`,+ transformStyle: "preserve-3d",+ }}+ onClick={(e) => {+ e.preventDefault();+ e.stopPropagation();+ }}+ {...props}+ />+ );+});+WheelPickerEmpty.displayName = "WheelPickerEmpty";++// ---------------------------------------------------------------------------------------------------------------------+// Exports -------------------------------------------------------------------------------------------------------------+// ---------------------------------------------------------------------------------------------------------------------++export { WheelPicker, WheelPickerSelect, WheelPickerOptions, WheelPickerEmpty };diff --git a/apps/dashboard/src/components/content/action-card.tsx b/apps/dashboard/src/components/content/action-card.tsxnew file mode 100644index 000000000..bc70fe75d--- /dev/null+++ b/apps/dashboard/src/components/content/action-card.tsx@@ -0,0 +1,86 @@+import {+ Card,+ CardContent,+ CardDescription,+ CardFooter,+ CardHeader,+ CardTitle,+} from "@/components/ui/card";+import { cn } from "@/lib/utils";++export function ActionCard({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <Card+ className={cn("group/action-card gap-4 py-4 shadow-none", className)}+ {...props}+ >+ {children}+ </Card>+ );+}++export function ActionCardHeader({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <CardHeader className={cn("px-4 [.border-b]:pb-4", className)} {...props}>+ {children}+ </CardHeader>+ );+}++export function ActionCardGroup({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div className={cn("grid gap-4", className)} {...props}>+ {children}+ </div>+ );+}++export function ActionCardTitle({+ children,+ ...props+}: React.ComponentProps<"div">) {+ return <CardTitle {...props}>{children}</CardTitle>;+}++export function ActionCardDescription({+ children,+ ...props+}: React.ComponentProps<"div">) {+ return <CardDescription {...props}>{children}</CardDescription>;+}++export function ActionCardContent({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <CardContent className={cn("px-4", className)} {...props}>+ {children}+ </CardContent>+ );+}++export function ActionCardFooter({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <CardFooter className={cn("px-4 [.border-t]:pt-4", className)} {...props}>+ {children}+ </CardFooter>+ );+}diff --git a/apps/dashboard/src/components/content/billing-overlay.tsx b/apps/dashboard/src/components/content/billing-overlay.tsxnew file mode 100644index 000000000..efcada504--- /dev/null+++ b/apps/dashboard/src/components/content/billing-overlay.tsx@@ -0,0 +1,61 @@+import { Button } from "@/components/ui/button";+import { cn } from "@/lib/utils";++export function BillingOverlayContainer({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div className={cn("relative", className)} {...props}>+ {children}+ </div>+ );+}++export function BillingOverlay({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn(+ "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-gradient-to-b from-transparent to-50% to-background",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+}++export function BillingOverlayButton({+ children,+ ...props+}: React.ComponentProps<typeof Button>) {+ return (+ <Button size="sm" {...props}>+ {children}+ </Button>+ );+}++export function BillingOverlayDescription({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p+ className={cn(+ "max-w-xs text-center text-muted-foreground text-sm",+ className,+ )}+ {...props}+ >+ {children}+ </p>+ );+}diff --git a/apps/dashboard/src/components/content/billing-progress.tsx b/apps/dashboard/src/components/content/billing-progress.tsxnew file mode 100644index 000000000..c1729af29--- /dev/null+++ b/apps/dashboard/src/components/content/billing-progress.tsx@@ -0,0 +1,23 @@+import { Progress } from "@/components/ui/progress";++interface BillingProgressProps {+ label: string;+ value: number;+ max: number;+}++export function BillingProgress({ label, value, max }: BillingProgressProps) {+ return (+ <div className="flex flex-col gap-2">+ <div className="flex flex-col gap-0.5">+ <div className="flex justify-between text-muted-foreground text-sm">+ <div className="font-medium">{label}</div>+ <div className="font-mono">+ <span className="text-foreground">{value}</span>/{max}+ </div>+ </div>+ <Progress value={(value / max) * 100} />+ </div>+ </div>+ );+}diff --git a/apps/dashboard/src/components/content/block-wrapper.tsx b/apps/dashboard/src/components/content/block-wrapper.tsxnew file mode 100644index 000000000..c072a61b9--- /dev/null+++ b/apps/dashboard/src/components/content/block-wrapper.tsx@@ -0,0 +1,46 @@+"use client";++import * as React from "react";++import { Button } from "@/components/ui/button";+import {+ Collapsible,+ CollapsibleContent,+ CollapsibleTrigger,+} from "@/components/ui/collapsible";+import { cn } from "@/lib/utils";++export function BlockWrapper({+ className,+ children,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) {+ const [isOpened, setIsOpened] = React.useState(false);++ return (+ <Collapsible open={isOpened} onOpenChange={setIsOpened}>+ <div className={cn("relative overflow-hidden", className)} {...props}>+ <CollapsibleContent+ forceMount+ className={cn("overflow-hidden", !isOpened && "max-h-48")}+ >+ {children}+ </CollapsibleContent>+ {!isOpened ? (+ <div+ className={cn(+ "absolute flex items-center justify-center bg-gradient-to-b from-transparent to-90% to-background p-2",+ isOpened ? "inset-x-0 bottom-0 h-12" : "inset-0",+ )}+ >+ <CollapsibleTrigger asChild>+ <Button variant="outline" size="sm">+ Expand+ </Button>+ </CollapsibleTrigger>+ </div>+ ) : null}+ </div>+ </Collapsible>+ );+}diff --git a/apps/dashboard/src/components/content/empty-state.tsx b/apps/dashboard/src/components/content/empty-state.tsxnew file mode 100644index 000000000..38bb2a838--- /dev/null+++ b/apps/dashboard/src/components/content/empty-state.tsx@@ -0,0 +1,46 @@+import { cn } from "@/lib/utils";++export function EmptyStateContainer({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn(+ "flex h-full flex-col items-center justify-center gap-2 rounded-lg border border-border border-dashed p-4",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+}++export function EmptyStateTitle({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p className={cn("text-foreground", className)} {...props}>+ {children}+ </p>+ );+}++export function EmptyStateDescription({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p+ className={cn("text-center text-muted-foreground text-sm", className)}+ {...props}+ >+ {children}+ </p>+ );+}diff --git a/apps/dashboard/src/components/content/process-message.tsx b/apps/dashboard/src/components/content/process-message.tsxnew file mode 100644index 000000000..791a1f8e9--- /dev/null+++ b/apps/dashboard/src/components/content/process-message.tsx@@ -0,0 +1,34 @@+import type { AnchorHTMLAttributes } from "react";+import { Fragment, createElement } from "react";+import { jsx, jsxs } from "react/jsx-runtime";+import rehypeReact from "rehype-react";+import remarkParse from "remark-parse";+import remarkRehype from "remark-rehype";+import { unified } from "unified";++export function ProcessMessage({ value }: { value: string }) {+ const result = unified()+ .use(remarkParse)+ .use(remarkRehype)+ .use(rehypeReact, {+ createElement,+ Fragment,+ jsx,+ jsxs,+ components: {+ a: (props: AnchorHTMLAttributes<HTMLAnchorElement>) => {+ return (+ <a+ target="_blank"+ rel="noreferrer"+ className="underline"+ {...props}+ />+ );+ },+ } as { [key: string]: React.ComponentType<unknown> },+ })+ .processSync(value).result;++ return result;+}diff --git a/apps/dashboard/src/components/content/section.tsx b/apps/dashboard/src/components/content/section.tsxnew file mode 100644index 000000000..5beffaf26--- /dev/null+++ b/apps/dashboard/src/components/content/section.tsx@@ -0,0 +1,106 @@+import { cn } from "@/lib/utils";++export function Section({+ children,+ className,+ ...props+}: React.ComponentProps<"section">) {+ return (+ <section className={cn("space-y-4", className)} {...props}>+ {children}+ </section>+ );+}++export function SectionHeader({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div className={cn("flex flex-col gap-1.5", className)} {...props}>+ {children}+ </div>+ );+}++export function SectionHeaderRow({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn(+ "flex flex-col gap-1.5 sm:flex-row sm:items-end sm:justify-between",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+}++export function SectionDescription({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p className={cn("text-muted-foreground text-sm", className)} {...props}>+ {children}+ </p>+ );+}++export function SectionTitle({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p className={cn("font-medium text-lg", className)} {...props}>+ {children}+ </p>+ );+}++export function SectionGroup({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn("mx-auto w-full max-w-4xl space-y-8 px-4 py-8", className)}+ {...props}+ >+ {children}+ </div>+ );+}++export function SectionGroupHeader({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div className={cn("space-y-1.5", className)} {...props}>+ {children}+ </div>+ );+}++export function SectionGroupTitle({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p className={cn("font-bold text-4xl", className)} {...props}>+ {children}+ </p>+ );+}diff --git a/apps/dashboard/src/components/controls-filter/.gitkeep b/apps/dashboard/src/components/controls-filter/.gitkeepnew file mode 100644index 000000000..e69de29bbdiff --git a/apps/dashboard/src/components/controls-search/button-reset.tsx b/apps/dashboard/src/components/controls-search/button-reset.tsxnew file mode 100644index 000000000..ff782b117--- /dev/null+++ b/apps/dashboard/src/components/controls-search/button-reset.tsx@@ -0,0 +1,45 @@+"use client";++import { Button } from "@/components/ui/button";+import { X } from "lucide-react";+import { useRouter, useSearchParams } from "next/navigation";++export function ButtonReset({ only }: { only?: string[] }) {+ const searchParams = useSearchParams();+ const router = useRouter();++ // Determine if at least one parameter that should be reset is present (or any parameter if `only` is undefined)+ const hasParamsToReset = only+ ? only.some((key) => searchParams.has(key))+ : !!searchParams.toString();++ if (!hasParamsToReset) return null;++ const handleClick = () => {+ // Clone the current search params so we can mutate them+ const params = new URLSearchParams(searchParams.toString());++ if (only && only.length > 0) {+ // Remove only the specified keys+ only.forEach((key) => params.delete(key));+ const query = params.toString();+ router.push(+ query+ ? `${window.location.pathname}?${query}`+ : window.location.pathname,+ );+ } else {+ // No `only` prop provided – remove all query parameters+ router.push(window.location.pathname);+ }+ };++ if (!hasParamsToReset) return null;++ return (+ <Button variant="ghost" size="sm" onClick={handleClick}>+ <X />+ Reset+ </Button>+ );+}diff --git a/apps/dashboard/src/components/controls-search/command-region.tsx b/apps/dashboard/src/components/controls-search/command-region.tsxnew file mode 100644index 000000000..c034f675f--- /dev/null+++ b/apps/dashboard/src/components/controls-search/command-region.tsx@@ -0,0 +1,163 @@+"use client";++import { Link } from "@/components/common/link";+import {+ BillingOverlay,+ BillingOverlayButton,+ BillingOverlayDescription,+} from "@/components/content/billing-overlay";+import { Button } from "@/components/ui/button";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+ CommandSeparator,+} from "@/components/ui/command";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import { REGIONS } from "@/data/metrics.client";+import { useTRPC } from "@/lib/trpc/client";+import { cn } from "@/lib/utils";+import { groupByContinent } from "@openstatus/utils";+import { useQuery } from "@tanstack/react-query";+import { Check, Lock } from "lucide-react";+import { parseAsArrayOf, parseAsStringLiteral, useQueryState } from "nuqs";++export const parseRegions = (regions: (typeof REGIONS)[number][]) =>+ parseAsArrayOf(+ parseAsStringLiteral(REGIONS.filter((region) => regions.includes(region))),+ ).withDefault(regions as unknown as (typeof REGIONS)[number][]);++export function CommandRegion({+ regions,+}: {+ regions: (typeof REGIONS)[number][];+}) {+ const trpc = useTRPC();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const [selectedRegions, setSelectedRegions] = useQueryState(+ "regions",+ parseRegions(regions),+ );++ const limited = workspace?.plan === "free";++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button variant="outline" size="sm">+ {selectedRegions.length === regions.length+ ? "All Regions"+ : `${selectedRegions.length} Regions`}+ </Button>+ </PopoverTrigger>+ <PopoverContent+ align="start"+ className="relative w-[200px] overflow-hidden p-0"+ >+ <Command>+ <CommandInput placeholder="Search region..." disabled={limited} />+ <CommandList>+ <CommandGroup forceMount>+ <CommandItem+ onSelect={() => {+ const items = document.querySelectorAll(+ '[data-slot="command-item"][data-disabled="false"]',+ );+ const codes: (typeof REGIONS)[number][] = [];++ items.forEach((item) => {+ const code = item.getAttribute("data-value");+ if (code && code !== "select-all") {+ codes.push(code as (typeof REGIONS)[number]);+ }+ });++ if (codes.length === selectedRegions.length) {+ setSelectedRegions([]);+ } else {+ setSelectedRegions(codes);+ }+ }}+ value="select-all"+ disabled={limited}+ >+ Toggle selection+ </CommandItem>+ </CommandGroup>+ <CommandSeparator alwaysRender />+ {Object.entries(groupByContinent).map(+ ([continent, continentRegions]) => {+ const allowedRegions = continentRegions.filter((region) =>+ regions.includes(region.code),+ );++ if (allowedRegions.length === 0) {+ return null;+ }+ return (+ <CommandGroup key={continent} heading={continent}>+ {allowedRegions.map((region) => (+ <CommandItem+ disabled={limited}+ key={region.code}+ value={region.code}+ keywords={[+ region.code,+ region.location,+ region.continent,+ region.flag,+ ]}+ onSelect={() => {+ setSelectedRegions((prev) =>+ prev.includes(region.code)+ ? prev.filter((r) => r !== region.code)+ : [...prev, region.code],+ );+ }}+ >+ <span className="mr-1">{region.flag}</span>+ {region.code}+ <span className="ml-1 truncate text-muted-foreground text-xs">+ {region.location}+ </span>+ <Check+ className={cn(+ "ml-auto",+ selectedRegions.includes(region.code)+ ? "opacity-100"+ : "opacity-0",+ )}+ />+ </CommandItem>+ ))}+ </CommandGroup>+ );+ },+ )}+ <CommandEmpty>No region found.</CommandEmpty>+ </CommandList>+ </Command>+ {limited ? (+ <BillingOverlay className="to-70%">+ <BillingOverlayButton asChild>+ <Link href="/settings/billing">+ <Lock />+ Upgrade+ </Link>+ </BillingOverlayButton>+ <BillingOverlayDescription>+ Filter by region is only available on paid plans.+ </BillingOverlayDescription>+ </BillingOverlay>+ ) : null}+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/dashboard/src/components/controls-search/command-tags.tsx b/apps/dashboard/src/components/controls-search/command-tags.tsxnew file mode 100644index 000000000..576b83f06--- /dev/null+++ b/apps/dashboard/src/components/controls-search/command-tags.tsx@@ -0,0 +1,87 @@+"use client";++import { Button } from "@/components/ui/button";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+} from "@/components/ui/command";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import { useTRPC } from "@/lib/trpc/client";+import { cn } from "@/lib/utils";+import { useQuery } from "@tanstack/react-query";+import { Check } from "lucide-react";+import { parseAsArrayOf, parseAsString, useQueryState } from "nuqs";++export function CommandTags() {+ const trpc = useTRPC();+ const { data: tags } = useQuery(trpc.monitorTag.list.queryOptions());+ const [selectedTags, setSelectedTags] = useQueryState(+ "tags",+ parseAsArrayOf(parseAsString).withDefault([]).withOptions({+ shallow: false,+ }),+ );++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button variant="outline" size="sm">+ {selectedTags.length === (tags?.length ?? 0)+ ? "All Tags"+ : `${selectedTags.length} Tags`}+ </Button>+ </PopoverTrigger>+ <PopoverContent+ align="start"+ className="relative w-[200px] overflow-hidden p-0"+ >+ <Command>+ <CommandInput placeholder="Search tag..." />+ <CommandList>+ <CommandGroup>+ {tags?.map((tag) => (+ <CommandItem+ key={tag.id}+ value={tag.name}+ keywords={[tag.name]}+ onSelect={() => {+ setSelectedTags((prev) =>+ prev.includes(tag.name)+ ? prev.filter((r) => r !== tag.name)+ : [...prev, tag.name],+ );+ }}+ >+ <div className="flex items-center gap-2">+ <span+ className="size-2.5 rounded-full"+ style={{ backgroundColor: tag.color }}+ />+ {tag.name}+ </div>+ <Check+ className={cn(+ "ml-auto",+ selectedTags.includes(tag.name)+ ? "opacity-100"+ : "opacity-0",+ )}+ />+ </CommandItem>+ ))}+ </CommandGroup>+ <CommandEmpty>No tag found.</CommandEmpty>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/dashboard/src/components/controls-search/dropdown-interval.tsx b/apps/dashboard/src/components/controls-search/dropdown-interval.tsxnew file mode 100644index 000000000..03662ffbb--- /dev/null+++ b/apps/dashboard/src/components/controls-search/dropdown-interval.tsx@@ -0,0 +1,56 @@+"use client";++import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { INTERVALS } from "@/data/metrics.client";+import { Check } from "lucide-react";+import { parseAsNumberLiteral, useQueryState } from "nuqs";++const MAPPING = {+ 5: "5 minutes",+ 15: "15 minutes",+ 30: "30 minutes",+ 60: "1 hour",+ 120: "2 hours",+ 240: "4 hours",+ 480: "8 hours",+ 1440: "1 day",+} as const;++const parseInterval = parseAsNumberLiteral(INTERVALS).withDefault(30);++export function DropdownInterval() {+ const [interval, setInterval] = useQueryState("interval", parseInterval);++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm">+ {MAPPING[interval]}+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start">+ <DropdownMenuGroup>+ <DropdownMenuLabel className="font-medium text-muted-foreground text-xs">+ Resolution+ </DropdownMenuLabel>+ {INTERVALS.map((item) => (+ <DropdownMenuItem key={item} onSelect={() => setInterval(item)}>+ {MAPPING[item]}+ {interval === item ? (+ <Check className="ml-auto shrink-0" />+ ) : null}+ </DropdownMenuItem>+ ))}+ </DropdownMenuGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/apps/dashboard/src/components/controls-search/dropdown-percentile.tsx b/apps/dashboard/src/components/controls-search/dropdown-percentile.tsxnew file mode 100644index 000000000..120ecbb2e--- /dev/null+++ b/apps/dashboard/src/components/controls-search/dropdown-percentile.tsx@@ -0,0 +1,53 @@+"use client";++import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { PERCENTILES } from "@/data/metrics.client";+import { cn } from "@/lib/utils";+import { Check } from "lucide-react";+import { parseAsStringLiteral, useQueryState } from "nuqs";++const parsePercentile = parseAsStringLiteral(PERCENTILES).withDefault("p50");++export function DropdownPercentile() {+ const [percentile, setPercentile] = useQueryState(+ "percentile",+ parsePercentile,+ );++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm" className="capitalize">+ {percentile}+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start">+ <DropdownMenuGroup>+ <DropdownMenuLabel className="font-medium text-muted-foreground text-xs">+ Percentile+ </DropdownMenuLabel>+ {PERCENTILES.map((item) => (+ <DropdownMenuItem+ key={item}+ onSelect={() => setPercentile(item)}+ className={cn("capitalize")}+ >+ {item}+ {percentile === item ? (+ <Check className="ml-auto shrink-0" />+ ) : null}+ </DropdownMenuItem>+ ))}+ </DropdownMenuGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/apps/dashboard/src/components/controls-search/dropdown-period.tsx b/apps/dashboard/src/components/controls-search/dropdown-period.tsxnew file mode 100644index 000000000..3ccd85fe0--- /dev/null+++ b/apps/dashboard/src/components/controls-search/dropdown-period.tsx@@ -0,0 +1,59 @@+"use client";++import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { PERIODS } from "@/data/metrics.client";+import { Check } from "lucide-react";+import { parseAsStringLiteral, useQueryState } from "nuqs";++// TODO: where to move it?+export const PERIOD_VALUES = [+ {+ value: "1d",+ label: "Last day",+ },+ {+ value: "7d",+ label: "Last 7 days",+ },+ {+ value: "14d",+ label: "Last 14 days",+ },+] satisfies { value: (typeof PERIODS)[number]; label: string }[];++const parsePeriod = parseAsStringLiteral(PERIODS).withDefault("1d");++export function DropdownPeriod() {+ const [period, setPeriod] = useQueryState("period", parsePeriod);++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm">+ {PERIOD_VALUES.find(({ value }) => value === period)?.label}+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start">+ <DropdownMenuGroup>+ <DropdownMenuLabel className="font-medium text-muted-foreground text-xs">+ Period+ </DropdownMenuLabel>+ {PERIOD_VALUES.map(({ value, label }) => (+ <DropdownMenuItem key={value} onSelect={() => setPeriod(value)}>+ {label}+ {period === value ? <Check className="ml-auto shrink-0" /> : null}+ </DropdownMenuItem>+ ))}+ </DropdownMenuGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/apps/dashboard/src/components/controls-search/dropdown-status.tsx b/apps/dashboard/src/components/controls-search/dropdown-status.tsxnew file mode 100644index 000000000..565ee5ec6--- /dev/null+++ b/apps/dashboard/src/components/controls-search/dropdown-status.tsx@@ -0,0 +1,48 @@+"use client";++import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { STATUS } from "@/data/metrics.client";+import { cn } from "@/lib/utils";+import { Check } from "lucide-react";+import { parseAsStringLiteral, useQueryState } from "nuqs";++const parseStatus = parseAsStringLiteral(STATUS);++export function DropdownStatus() {+ const [status, setStatus] = useQueryState("status", parseStatus);++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm" className="capitalize">+ {status ?? "All Status"}+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start">+ <DropdownMenuGroup>+ <DropdownMenuLabel className="font-medium text-muted-foreground text-xs">+ Request Status+ </DropdownMenuLabel>+ {STATUS.map((item) => (+ <DropdownMenuItem+ key={item}+ onSelect={() => setStatus(item)}+ className={cn("capitalize")}+ >+ {item}+ {status === item ? <Check className="ml-auto shrink-0" /> : null}+ </DropdownMenuItem>+ ))}+ </DropdownMenuGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/apps/dashboard/src/components/controls-search/dropdown-trigger.tsx b/apps/dashboard/src/components/controls-search/dropdown-trigger.tsxnew file mode 100644index 000000000..552b5f48a--- /dev/null+++ b/apps/dashboard/src/components/controls-search/dropdown-trigger.tsx@@ -0,0 +1,48 @@+"use client";++import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { TRIGGER } from "@/data/metrics.client";+import { cn } from "@/lib/utils";+import { Check } from "lucide-react";+import { parseAsStringLiteral, useQueryState } from "nuqs";++const parseTrigger = parseAsStringLiteral(TRIGGER);++export function DropdownTrigger() {+ const [trigger, setTrigger] = useQueryState("trigger", parseTrigger);++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm" className="capitalize">+ {trigger ?? "All Trigger"}+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start">+ <DropdownMenuGroup>+ <DropdownMenuLabel className="font-medium text-muted-foreground text-xs">+ Trigger+ </DropdownMenuLabel>+ {TRIGGER.map((item) => (+ <DropdownMenuItem+ key={item}+ onSelect={() => setTrigger(item)}+ className={cn("capitalize")}+ >+ {item === "cron" ? "Scheduled" : "API"}+ {trigger === item ? <Check className="ml-auto shrink-0" /> : null}+ </DropdownMenuItem>+ ))}+ </DropdownMenuGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/apps/dashboard/src/components/controls-search/popover-date.tsx b/apps/dashboard/src/components/controls-search/popover-date.tsxnew file mode 100644index 000000000..f30722aa1--- /dev/null+++ b/apps/dashboard/src/components/controls-search/popover-date.tsx@@ -0,0 +1,141 @@+import { DatePicker } from "@/components/date-picker";+import { Button } from "@/components/ui/button";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import { formatDateRange } from "@/lib/formatter";+import { endOfDay, startOfDay, subDays, subHours } from "date-fns";+import { parseAsIsoDateTime, useQueryState } from "nuqs";+import { useEffect, useMemo, useRef, useState } from "react";+import type { DateRange } from "react-day-picker";++export function PopoverDate() {+ const [open, setOpen] = useState(false);+ const today = useRef(new Date());+ const [from, setFrom] = useQueryState(+ "from",+ parseAsIsoDateTime.withDefault(startOfDay(today.current)),+ );+ const [to, setTo] = useQueryState(+ "to",+ parseAsIsoDateTime.withDefault(endOfDay(today.current)),+ );+ const [range, setRange] = useState<DateRange>({ from, to });++ // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>+ const presets = useMemo(+ () => [+ {+ id: "today",+ label: "Today",+ values: {+ from: startOfDay(today.current),+ to: endOfDay(today.current),+ },+ shortcut: "t",+ },+ {+ id: "yesterday",+ label: "Yesterday",+ values: {+ from: startOfDay(subDays(today.current, 1)),+ to: endOfDay(subDays(today.current, 1)),+ },+ shortcut: "y",+ },+ {+ id: "lastHour",+ label: "Last hour",+ values: {+ from: subHours(today.current, 1),+ to: today.current,+ },+ shortcut: "h",+ },+ {+ id: "last6Hours",+ label: "Last 6 hours",+ values: {+ from: subHours(today.current, 5),+ to: today.current,+ },+ shortcut: "s",+ },+ {+ id: "last24Hours",+ label: "Last 24 hours",+ values: {+ from: subHours(today.current, 23),+ to: today.current,+ },+ shortcut: "d",+ },+ {+ id: "last7Days",+ label: "Last 7 days",+ values: {+ from: subDays(today.current, 6),+ to: today.current,+ },+ shortcut: "w",+ },+ {+ id: "last14Days",+ label: "Last 14 days",+ values: {+ from: subDays(today.current, 13),+ to: today.current,+ },+ shortcut: "b",+ },+ ],+ [today],+ );++ // instead use `range` state+ const selected = presets.find((period) => {+ return (+ from.getTime() === period.values.from.getTime() &&+ to.getTime() === period.values.to.getTime()+ );+ });++ // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>+ useEffect(() => {+ if (!open) {+ setFrom(range.from ?? null);+ setTo(range.to ?? null);+ }+ }, [open]);++ useEffect(() => {+ const down = (e: KeyboardEvent) => {+ if (!open) return;++ presets.map((preset) => {+ if (preset.shortcut === e.key) {+ setFrom(preset.values.from);+ setTo(preset.values.to);+ setRange({ from: preset.values.from, to: preset.values.to });+ }+ });+ };+ document.addEventListener("keydown", down);+ return () => document.removeEventListener("keydown", down);+ }, [presets, open, setFrom, setTo]);++ return (+ <Popover open={open} onOpenChange={setOpen}>+ <PopoverTrigger asChild>+ <Button variant="outline" size="sm">+ {selected?.label ?? formatDateRange(from, to)}+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-auto p-0" side="bottom" align="start">+ <DatePicker presets={presets} range={range} onSelect={setRange} />+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/dashboard/src/components/data-table/audit-logs/columns.tsx b/apps/dashboard/src/components/data-table/audit-logs/columns.tsxnew file mode 100644index 000000000..395548160--- /dev/null+++ b/apps/dashboard/src/components/data-table/audit-logs/columns.tsx@@ -0,0 +1,107 @@+"use client";++import { HoverCardTimestamp } from "@/components/common/hover-card-timestamp";+import { TableCellDate } from "@/components/data-table/table-cell-date";+import { config, metadata } from "@/data/audit-logs.client";+import { cn } from "@/lib/utils";+import type { RouterOutputs } from "@openstatus/api";+import type { ColumnDef } from "@tanstack/react-table";++type AuditLog = RouterOutputs["tinybird"]["auditLog"]["data"][number];++export const columns: ColumnDef<AuditLog>[] = [+ {+ id: "icon",+ accessorFn: (row) => row.action,+ header: () => null,+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const value = row.getValue("action");+ const { icon: Icon, color } = config[value as keyof typeof config];+ if (!Icon) return null;+ return <Icon className={cn("size-4", color)} />;+ },+ meta: {+ headerClassName: "w-7",+ },+ },+ {+ accessorKey: "action",+ header: "Action",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const value = row.getValue("action");+ const { title } = config[value as keyof typeof config];+ if (!title) return null;+ return <div>{title}</div>;+ },+ },+ {+ accessorKey: "metadata",+ header: "Information",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const value = row.getValue("metadata");+ if (!value) return null;+ return (+ <div className="flex flex-wrap gap-2">+ {Object.entries(value)+ .filter(([key, value]) =>+ metadata[key as keyof typeof metadata]?.visible(value),+ )+ .map(([key, value]) => (+ <Pill+ key={key}+ label={metadata[key as keyof typeof metadata].key}+ value={metadata[key as keyof typeof metadata]?.format(value)}+ />+ ))}+ </div>+ );+ },+ },+ {+ accessorKey: "timestamp",+ header: "Timestamp",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const value = row.getValue("timestamp");+ if (value instanceof Date) {+ return (+ <HoverCardTimestamp date={value}>+ <TableCellDate value={value} className="font-mono" />+ </HoverCardTimestamp>+ );+ }+ const date = new Date(Number(value));+ if (Number.isNaN(date.getTime())) {+ return <div className="font-mono">{String(value)}</div>;+ }++ return (+ <HoverCardTimestamp date={date}>+ <TableCellDate value={date} className="font-mono" />+ </HoverCardTimestamp>+ );+ },+ },+];++function Pill({ label, value }: { label: string; value?: string }) {+ if (!value) return null;+ return (+ <div className="inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3">+ <div className="border-r bg-muted py-0.5 pr-1 pl-2 text-foreground/70">+ {label}+ </div>+ <div className="py-0.5 pr-2 pl-1 font-mono">+ {/* NOTE: if we have more number values, we might wanna change it */}+ {value}+ </div>+ </div>+ );+}diff --git a/apps/dashboard/src/components/data-table/audit-logs/wrapper.tsx b/apps/dashboard/src/components/data-table/audit-logs/wrapper.tsxnew file mode 100644index 000000000..4395dfc72--- /dev/null+++ b/apps/dashboard/src/components/data-table/audit-logs/wrapper.tsx@@ -0,0 +1,60 @@+"use client";++import { BlockWrapper } from "@/components/content/block-wrapper";+import {+ EmptyStateContainer,+ EmptyStateDescription,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import { DataTable } from "@/components/ui/data-table/data-table";+import { DataTablePaginationSimple } from "@/components/ui/data-table/data-table-pagination";+import { Skeleton } from "@/components/ui/skeleton";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";++import { columns } from "./columns";++export function AuditLogsWrapper({+ monitorId,+ interval,+}: {+ monitorId: string;+ interval: number;+}) {+ const trpc = useTRPC();++ const { data: auditLogs, isLoading } = useQuery(+ trpc.tinybird.auditLog.queryOptions({ monitorId, interval }),+ );++ if (isLoading) {+ return (+ <div className="flex h-full max-h-48 min-h-48 flex-col">+ <Skeleton className="h-full w-full flex-1" />+ </div>+ );+ }++ if (!auditLogs?.data || auditLogs.data.length === 0) {+ return (+ <EmptyStateContainer>+ <EmptyStateTitle>No audit logs</EmptyStateTitle>+ <EmptyStateDescription>+ No audit logs found for this monitor.+ </EmptyStateDescription>+ </EmptyStateContainer>+ );+ }++ return (+ <BlockWrapper>+ <DataTable+ columns={columns}+ data={auditLogs.data}+ paginationComponent={DataTablePaginationSimple}+ />+ </BlockWrapper>+ );+}++export default AuditLogsWrapper;diff --git a/apps/dashboard/src/components/data-table/billing/data-table.tsx b/apps/dashboard/src/components/data-table/billing/data-table.tsxnew file mode 100644index 000000000..d548f298a--- /dev/null+++ b/apps/dashboard/src/components/data-table/billing/data-table.tsx@@ -0,0 +1,183 @@+"use client";++import { Check } from "lucide-react";+import { Fragment, useTransition } from "react";++import { Button } from "@/components/ui/button";+import {+ Table,+ TableBody,+ TableCaption,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";++import { config as featureGroups, plans } from "@/data/plans";+import { getStripe } from "@/lib/stripe";+import { useTRPC } from "@/lib/trpc/client";+import { cn } from "@/lib/utils";+import type { WorkspacePlan } from "@openstatus/db/src/schema";+import { useMutation, useQuery } from "@tanstack/react-query";++const BASE_URL =+ process.env.NODE_ENV === "production"+ ? "https://app.openstatus.dev"+ : "http://localhost:3000";++export function DataTable({ restrictTo }: { restrictTo?: WorkspacePlan[] }) {+ const trpc = useTRPC();+ const [isPending, startTransition] = useTransition();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());++ const checkoutSessionMutation = useMutation(+ trpc.stripeRouter.getCheckoutSession.mutationOptions({+ onSuccess: async (data) => {+ if (!data) return;++ const stripe = await getStripe();+ stripe?.redirectToCheckout({ sessionId: data.id });+ },+ }),+ );++ if (!workspace) return null;++ const filteredPlans = Object.values(plans).filter((plan) =>+ restrictTo ? restrictTo.includes(plan.id) : true,+ );++ return (+ <Table className="relative table-fixed">+ <TableCaption>+ A list to compare the different features by plan.+ </TableCaption>+ <TableHeader>+ <TableRow className="hover:bg-transparent">+ <TableHead className="p-2 align-bottom">+ Features comparison+ </TableHead>+ {filteredPlans.map(({ id, ...plan }) => {+ const isCurrentPlan = workspace.plan === id;+ return (+ <TableHead+ key={id}+ className={cn(+ "h-auto p-2 align-bottom text-foreground",+ id === "starter" ? "bg-muted/30" : "",+ )}+ >+ <div className="flex h-full flex-col justify-between gap-1">+ <div className="flex flex-1 flex-col gap-1">+ <p className="font-cal text-lg">{plan.title}</p>+ <p className="text-wrap font-normal text-muted-foreground text-xs">+ {plan.description}+ </p>+ </div>+ <p className="text-right">+ <span className="font-cal text-lg">{plan.price}€</span>{" "}+ <span className="font-light text-muted-foreground text-sm">+ /month+ </span>+ </p>+ <Button+ size="sm"+ variant={id === "starter" ? "default" : "outline"}+ onClick={() => {+ startTransition(async () => {+ await checkoutSessionMutation.mutateAsync({+ plan: id,+ // TODO: move to the server as we have the current workspace+ workspaceSlug: workspace.slug,+ successUrl: `${BASE_URL}/settings/billing?success=true`,+ cancelUrl: `${BASE_URL}/settings/billing`,+ });+ });+ }}+ disabled={isPending || isCurrentPlan}+ >+ {isCurrentPlan+ ? "Current Plan"+ : isPending+ ? "Choosing..."+ : "Choose"}+ </Button>+ </div>+ </TableHead>+ );+ })}+ </TableRow>+ </TableHeader>+ <TableBody>+ {Object.entries(featureGroups).map(+ ([groupKey, { label, features }]) => (+ <Fragment key={groupKey}>+ <TableRow className="bg-muted/50">+ <TableCell+ colSpan={filteredPlans.length + 1}+ className="font-medium"+ >+ {label}+ </TableCell>+ </TableRow>+ {features.map(({ value, label: featureLabel, monthly }) => (+ <TableRow key={groupKey + value}>+ <TableCell>+ <div className="flex items-center gap-2 text-wrap">+ {featureLabel}+ </div>+ </TableCell>+ {filteredPlans.map((plan) => {+ const limitValue =+ plan.limits[value as keyof typeof plan.limits];++ function renderContent() {+ if (typeof limitValue === "boolean") {+ return limitValue ? (+ <Check className="h-4 w-4 text-foreground" />+ ) : (+ <span className="text-muted-foreground/50">+ ‐+ </span>+ );+ }+ if (typeof limitValue === "number") {+ return new Intl.NumberFormat("us")+ .format(limitValue)+ .toString();+ }++ // TODO: create a format function for this in @data/plans+ if (value === "regions" && Array.isArray(limitValue)) {+ return limitValue?.length ?? 0;+ }++ if (Array.isArray(limitValue) && limitValue.length > 0) {+ return limitValue[0];+ }+ return limitValue;+ }++ return (+ <TableCell+ key={plan.id + value}+ className={cn(+ "font-mono",+ plan.id === "starter" && "bg-muted/30",+ )}+ >+ {renderContent()}+ {monthly ? "/mo" : ""}+ </TableCell>+ );+ })}+ </TableRow>+ ))}+ </Fragment>+ ),+ )}+ </TableBody>+ </Table>+ );+}diff --git a/apps/dashboard/src/components/data-table/dable-cell-skeleton.tsx b/apps/dashboard/src/components/data-table/dable-cell-skeleton.tsxnew file mode 100644index 000000000..b7238c5ca--- /dev/null+++ b/apps/dashboard/src/components/data-table/dable-cell-skeleton.tsx@@ -0,0 +1,9 @@+import { Skeleton } from "@/components/ui/skeleton";+import { cn } from "@/lib/utils";++export function TableCellSkeleton({+ className,+ ...props+}: React.ComponentProps<typeof Skeleton>) {+ return <Skeleton className={cn("h-5 w-12", className)} {...props} />;+}diff --git a/apps/dashboard/src/components/data-table/data-table-sheet.tsx b/apps/dashboard/src/components/data-table/data-table-sheet.tsxnew file mode 100644index 000000000..94b49323a--- /dev/null+++ b/apps/dashboard/src/components/data-table/data-table-sheet.tsx@@ -0,0 +1,75 @@+"use client";++import {+ Sheet,+ SheetContent,+ SheetDescription,+ SheetFooter,+ SheetHeader,+ SheetTitle,+ SheetTrigger,+} from "@/components/ui/sheet";+import { cn } from "@/lib/utils";++// TODO: rename to DataTableViewer?++export function DataTableSheetContent({+ children,+ className,+ ...props+}: React.ComponentProps<typeof SheetContent>) {+ return (+ <SheetContent className={cn("max-h-screen gap-0", className)} {...props}>+ {children}+ </SheetContent>+ );+}++export function DataTableSheetHeader({+ children,+ className,+ ...props+}: React.ComponentProps<typeof SheetHeader>) {+ return (+ <SheetHeader+ className={cn("sticky top-0 border-b bg-background", className)}+ {...props}+ >+ {children}+ </SheetHeader>+ );+}++export function DataTableSheetFooter({+ children,+ className,+ ...props+}: React.ComponentProps<typeof SheetFooter>) {+ return (+ <SheetFooter+ className={cn("sticky bottom-0 border-t bg-background", className)}+ {...props}+ >+ {children}+ </SheetFooter>+ );+}++export function DataTableSheetFooterInfo({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p className={cn("text-muted-foreground/70 text-xs", className)} {...props}>+ {children}+ </p>+ );+}++export {+ SheetTitle as DataTableSheetTitle,+ SheetDescription as DataTableSheetDescription,+ SheetTrigger as DataTableSheetTrigger,+ Sheet as DataTableSheet,+};diff --git a/apps/dashboard/src/components/data-table/incidents/columns.tsx b/apps/dashboard/src/components/data-table/incidents/columns.tsxnew file mode 100644index 000000000..e6f8a9a04--- /dev/null+++ b/apps/dashboard/src/components/data-table/incidents/columns.tsx@@ -0,0 +1,80 @@+"use client";++import { TableCellDate } from "@/components/data-table/table-cell-date";+import { TableCellLink } from "@/components/data-table/table-cell-link";+import { TableCellNumber } from "@/components/data-table/table-cell-number";+import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";+import type { RouterOutputs } from "@openstatus/api";+import type { ColumnDef } from "@tanstack/react-table";+import { formatDistanceStrict } from "date-fns";+import { DataTableRowActions } from "./data-table-row-actions";++type Incident = RouterOutputs["incident"]["list"][number];++export const columns: ColumnDef<Incident>[] = [+ {+ id: "monitor",+ accessorFn: (row) => row.monitor.name,+ header: "Monitor",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ return (+ <TableCellLink+ value={row.getValue("monitor")}+ href={`/monitors/${row.original.monitor.id}/overview`}+ />+ );+ },+ meta: {+ cellClassName: "max-w-[150px] min-w-max",+ },+ },+ {+ accessorKey: "startedAt",+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="Started At" />+ ),+ cell: ({ row }) => <TableCellDate value={row.getValue("startedAt")} />,+ enableHiding: false,+ },+ {+ accessorKey: "acknowledgedAt",+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="Acknowledged" />+ ),+ cell: ({ row }) => <TableCellDate value={row.getValue("acknowledgedAt")} />,+ enableHiding: false,+ },+ {+ accessorKey: "resolvedAt",+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="Resolved At" />+ ),+ cell: ({ row }) => <TableCellDate value={row.getValue("resolvedAt")} />,+ enableHiding: false,+ },+ {+ id: "duration",+ accessorFn: (row) =>+ row.resolvedAt+ ? formatDistanceStrict(row.startedAt, row.resolvedAt)+ : "ongoing",+ header: "Duration",+ cell: ({ row }) => {+ const value = row.getValue("duration");+ if (typeof value === "string") {+ const [amount, unit] = value.split(" ");+ return <TableCellNumber value={amount} unit={unit} />;+ }+ return <TableCellNumber value={value} />;+ },+ },+ {+ id: "actions",+ cell: ({ row }) => <DataTableRowActions row={row} />,+ meta: {+ cellClassName: "w-8",+ },+ },+];diff --git a/apps/dashboard/src/components/data-table/incidents/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/incidents/data-table-row-actions.tsxnew file mode 100644index 000000000..50b5cea26--- /dev/null+++ b/apps/dashboard/src/components/data-table/incidents/data-table-row-actions.tsx@@ -0,0 +1,152 @@+"use client";++import type { Row } from "@tanstack/react-table";++import { QuickActions } from "@/components/dropdowns/quick-actions";+import {+ AlertDialog,+ AlertDialogAction,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+} from "@/components/ui/alert-dialog";+import { getActions } from "@/data/incidents.client";+import { useTRPC } from "@/lib/trpc/client";+import type { RouterOutputs } from "@openstatus/api";+import { useMutation, useQueryClient } from "@tanstack/react-query";+import { isTRPCClientError } from "@trpc/client";+import { useMemo, useState, useTransition } from "react";+import { toast } from "sonner";++type Incident = RouterOutputs["incident"]["list"][number];++interface DataTableRowActionsProps {+ row: Row<Incident>;+}++export function DataTableRowActions({ row }: DataTableRowActionsProps) {+ const [isPending, startTransition] = useTransition();+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const acknowledgeIncidentMutation = useMutation(+ trpc.incident.acknowledge.mutationOptions({+ onSuccess: () => {+ queryClient.refetchQueries({+ queryKey: trpc.incident.list.queryKey({+ monitorId: row.original.monitorId,+ }),+ });+ },+ }),+ );+ const resolveIncidentMutation = useMutation(+ trpc.incident.resolve.mutationOptions({+ onSuccess: () => {+ queryClient.refetchQueries({+ queryKey: trpc.incident.list.queryKey({+ monitorId: row.original.monitorId,+ }),+ });+ },+ }),+ );+ const deleteIncidentMutation = useMutation(+ trpc.incident.delete.mutationOptions({+ onSuccess: () => {+ queryClient.refetchQueries({+ queryKey: trpc.incident.list.queryKey({+ monitorId: row.original.monitorId,+ }),+ });+ },+ }),+ );++ const [type, setType] = useState<"acknowledge" | "resolve" | null>(null);+ const open = useMemo(() => type !== null, [type]);++ const actions = getActions({+ acknowledge: row.original.acknowledgedAt+ ? undefined+ : () => setType("acknowledge"),+ resolve: row.original.resolvedAt ? undefined : () => setType("resolve"),+ });++ const handleConfirm = async () => {+ try {+ startTransition(async () => {+ const promise =+ type === "acknowledge"+ ? acknowledgeIncidentMutation.mutateAsync({+ id: row.original.id,+ })+ : resolveIncidentMutation.mutateAsync({+ id: row.original.id,+ });+ toast.promise(promise, {+ loading: "Confirming...",+ success: "Confirmed",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to confirm";+ },+ });+ await promise;+ setType(null);+ });+ } catch (error) {+ console.error("Failed to confirm:", error);+ }+ };++ return (+ <>+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Incident",+ confirmationValue: "delete incident",+ submitAction: async () => {+ await deleteIncidentMutation.mutateAsync({+ id: row.original.id,+ });+ },+ }}+ />+ <AlertDialog open={open} onOpenChange={() => setType(null)}>+ <AlertDialogContent+ onCloseAutoFocus={(event) => {+ // NOTE: bug where the body is not clickable after closing the alert dialog+ event.preventDefault();+ document.body.style.pointerEvents = "";+ }}+ >+ <AlertDialogHeader>+ <AlertDialogTitle>Confirm your action</AlertDialogTitle>+ <AlertDialogDescription>+ You are about to <span className="font-semibold">{type}</span>{" "}+ this incident.+ </AlertDialogDescription>+ </AlertDialogHeader>+ <AlertDialogFooter>+ <AlertDialogCancel>Cancel</AlertDialogCancel>+ <AlertDialogAction+ onClick={(e) => {+ e.preventDefault();+ handleConfirm();+ }}+ disabled={isPending}+ >+ {isPending ? "Confirming..." : "Confirm"}+ </AlertDialogAction>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>+ </>+ );+}diff --git a/apps/dashboard/src/components/data-table/maintenances/columns.tsx b/apps/dashboard/src/components/data-table/maintenances/columns.tsxnew file mode 100644index 000000000..ef21abd68--- /dev/null+++ b/apps/dashboard/src/components/data-table/maintenances/columns.tsx@@ -0,0 +1,72 @@+"use client";++import { TableCellNumber } from "@/components/data-table/table-cell-number";+import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";+import type { RouterOutputs } from "@openstatus/api";+import type { ColumnDef } from "@tanstack/react-table";+import { formatDistanceStrict } from "date-fns";+import { DataTableRowActions } from "./data-table-row-actions";++type Maintenance = RouterOutputs["maintenance"]["list"][number];++export const columns: ColumnDef<Maintenance>[] = [+ {+ accessorKey: "title",+ header: "Title",+ enableSorting: false,+ enableHiding: false,+ },+ {+ accessorKey: "message",+ header: "Message",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const value = String(row.getValue("message"));+ return (+ <div className="max-w-[200px] truncate text-muted-foreground">+ {value}+ </div>+ );+ },+ },+ {+ accessorKey: "from",+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="Start Date" />+ ),+ cell: ({ row }) => {+ const value = row.getValue("from");+ if (value instanceof Date) {+ return (+ <div className="text-muted-foreground">{value.toLocaleString()}</div>+ );+ }+ if (typeof value === "string") {+ return <div className="text-muted-foreground">{value}</div>;+ }+ return <div className="text-muted-foreground">-</div>;+ },+ enableHiding: false,+ },+ {+ id: "duration",+ accessorFn: (row) => formatDistanceStrict(row.from, row.to),+ header: "Duration",+ cell: ({ row }) => {+ const value = row.getValue("duration");+ if (typeof value === "string") {+ const [amount, unit] = value.split(" ");+ return <TableCellNumber value={amount} unit={unit} />;+ }+ return <TableCellNumber value={value} />;+ },+ },+ {+ id: "actions",+ cell: ({ row }) => <DataTableRowActions row={row} />,+ meta: {+ cellClassName: "w-8",+ },+ },+];diff --git a/apps/dashboard/src/components/data-table/maintenances/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/maintenances/data-table-row-actions.tsxnew file mode 100644index 000000000..302eb09c6--- /dev/null+++ b/apps/dashboard/src/components/data-table/maintenances/data-table-row-actions.tsx@@ -0,0 +1,93 @@+"use client";++import { QuickActions } from "@/components/dropdowns/quick-actions";+import { FormSheetMaintenance } from "@/components/forms/maintenance/sheet";+import { getActions } from "@/data/maintenances.client";+import { useTRPC } from "@/lib/trpc/client";+import type { RouterOutputs } from "@openstatus/api";+import { useMutation, useQueryClient } from "@tanstack/react-query";+import { useQuery } from "@tanstack/react-query";+import type { Row } from "@tanstack/react-table";+import { useRef } from "react";++type Maintenance = RouterOutputs["maintenance"]["list"][number];++interface DataTableRowActionsProps {+ row: Row<Maintenance>;+}++export function DataTableRowActions({ row }: DataTableRowActionsProps) {+ const trpc = useTRPC();+ const buttonRef = useRef<HTMLButtonElement>(null);+ const actions = getActions({+ edit: () => buttonRef.current?.click(),+ });+ const { data: statusPage } = useQuery(+ trpc.page.get.queryOptions({ id: row.original.pageId ?? 0 }),+ );+ const queryClient = useQueryClient();+ const updateMaintenanceMutation = useMutation(+ trpc.maintenance.update.mutationOptions({+ onSuccess: () => {+ queryClient.refetchQueries({+ queryKey: trpc.maintenance.list.queryKey({+ pageId: row.original.pageId ?? undefined,+ }),+ });+ },+ }),+ );++ const deleteMaintenanceMutation = useMutation(+ trpc.maintenance.delete.mutationOptions({+ onSuccess: () => {+ queryClient.refetchQueries({+ queryKey: trpc.maintenance.list.queryKey({+ pageId: row.original.pageId ?? undefined,+ }),+ });+ },+ }),+ );++ return (+ <>+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Delete",+ confirmationValue: "delete",+ submitAction: async () => {+ await deleteMaintenanceMutation.mutateAsync({+ id: row.original.id,+ });+ },+ }}+ />+ <FormSheetMaintenance+ monitors={statusPage?.monitors ?? []}+ defaultValues={{+ title: row.original.title,+ message: row.original.message,+ startDate: row.original.from,+ endDate: row.original.to,+ monitors: row.original.monitors ?? [],+ }}+ onSubmit={async (values) => {+ await updateMaintenanceMutation.mutateAsync({+ id: row.original.id,+ title: values.title,+ message: values.message,+ startDate: values.startDate,+ endDate: values.endDate,+ monitors: values.monitors,+ });+ }}+ >+ <button ref={buttonRef} type="button" className="sr-only">+ Open sheet+ </button>+ </FormSheetMaintenance>+ </>+ );+}diff --git a/apps/dashboard/src/components/data-table/monitors/columns.tsx b/apps/dashboard/src/components/data-table/monitors/columns.tsxnew file mode 100644index 000000000..c8489b993--- /dev/null+++ b/apps/dashboard/src/components/data-table/monitors/columns.tsx@@ -0,0 +1,262 @@+"use client";++import { TableCellLink } from "@/components/data-table/table-cell-link";+// import { TableCellNumber } from "@/components/data-table/table-cell-number";+import { Badge } from "@/components/ui/badge";+import { Checkbox } from "@/components/ui/checkbox";+// import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";+import type { ColumnDef } from "@tanstack/react-table";+import { DataTableRowActions } from "./data-table-row-actions";++import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";+import type { RouterOutputs } from "@openstatus/api";+import { formatDistanceToNow } from "date-fns";+import { TableCellSkeleton } from "../dable-cell-skeleton";+import { TableCellDate } from "../table-cell-date";+import { TableCellNumber } from "../table-cell-number";+import { TableCellUnavailable } from "../table-cell-unavailable";++type Monitor = RouterOutputs["monitor"]["list"][number] & {+ globalMetrics?:+ | RouterOutputs["tinybird"]["globalMetrics"]["data"][number]+ // NOTE: after loading the data, if the monitor has no metrics, the value will be `false`+ | false;+};++export const columns: ColumnDef<Monitor>[] = [+ {+ id: "select",+ header: ({ table }) => (+ <Checkbox+ checked={+ table.getIsAllPageRowsSelected() ||+ (table.getIsSomePageRowsSelected() && "indeterminate")+ }+ onCheckedChange={(value) => table.toggleAllPageRowsSelected(!!value)}+ aria-label="Select all"+ />+ ),+ cell: ({ row }) => (+ <Checkbox+ checked={row.getIsSelected()}+ onCheckedChange={(value) => row.toggleSelected(!!value)}+ aria-label="Select row"+ />+ ),+ enableSorting: false,+ enableHiding: false,+ },+ {+ accessorKey: "name",+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="Name" />+ ),+ cell: ({ row }) => {+ return (+ <TableCellLink+ value={row.getValue("name")}+ href={`/monitors/${row.original.id}/overview`}+ />+ );+ },+ enableHiding: false,+ meta: {+ cellClassName: "max-w-[150px] min-w-max",+ },+ },+ {+ accessorKey: "url",+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="Endpoint" />+ ),+ cell: ({ row }) => {+ return (+ <TableCellLink value={row.getValue("url")} href={row.original.url} />+ );+ },+ enableHiding: true,+ meta: {+ cellClassName: "max-w-[150px] min-w-max",+ },+ },+ {+ accessorKey: "jobType",+ header: "Type",+ enableHiding: true,+ },+ {+ id: "status",+ accessorFn: (row) => {+ console.log(row);+ return row.active ? row.status : "inactive";+ },+ header: "Status",+ cell: ({ row }) => {+ const value = String(row.getValue("status"));++ switch (value) {+ case "active":+ return <div className="font-mono text-success">{value}</div>;+ case "degraded":+ return <div className="font-mono text-warning">{value}</div>;+ case "error":+ return <div className="font-mono text-destructive">{value}</div>;+ default:+ return <div className="font-mono text-muted-foreground">{value}</div>;+ }+ },+ filterFn: (row, _, value) => {+ if (Array.isArray(value)) {+ if (value.includes("inactive")) {+ return !row.original.active;+ }+ if (value.includes("active")) {+ return !!row.original.active && row.original.status === "active";+ }+ return value.includes(row.original.status);+ }+ return row.original.status === value;+ },+ enableSorting: false,+ enableHiding: false,+ enableGlobalFilter: false,+ },+ {+ accessorKey: "active",+ enableHiding: true,+ enableGlobalFilter: false,+ },+ {+ accessorKey: "tags",+ header: "Tags",+ cell: ({ row }) => {+ const value = row.getValue("tags");+ if (!Array.isArray(value)) return null;+ if (value.length === 0) {+ return <div className="text-muted-foreground">-</div>;+ }+ return (+ <div className="group/badges -space-x-2 flex flex-wrap">+ {value.map((tag) => (+ <Badge+ key={tag.id}+ variant="outline"+ className="relative flex translate-x-0 items-center gap-1.5 rounded-full bg-background transition-transform hover:z-10 hover:translate-x-1"+ >+ <div+ className="size-2.5 rounded-full"+ style={{ backgroundColor: tag.color }}+ />+ <span>{tag.name}</span>+ </Badge>+ ))}+ </div>+ );+ },+ filterFn: (row, _, value) => {+ const tagIds = row.original.tags.map((tag) => tag.id);+ if (Array.isArray(value)) {+ return value.some((v) => tagIds.includes(v));+ }+ return tagIds.includes(value);+ },+ getUniqueValues: (row) => row.tags.map((tag) => tag.id),+ enableSorting: false,+ enableHiding: false,+ enableGlobalFilter: false,+ },+ {+ id: "lastIncident",+ header: "Last Incident",+ accessorFn: (row) => row.incidents?.[0]?.createdAt,+ cell: ({ row }) => {+ const value = row.getValue("lastIncident");+ return <TableCellDate value={value} formatStr="LLL dd, y" />;+ },+ enableHiding: false,+ enableGlobalFilter: false,+ },+ {+ id: "lastTimestamp",+ header: "Last Checked",+ accessorFn: (row) =>+ typeof row.globalMetrics === "object"+ ? row.globalMetrics.lastTimestamp+ : row.globalMetrics,+ cell: ({ row }) => {+ const value = row.getValue("lastTimestamp");+ if (value === undefined) return <TableCellSkeleton />;+ return (+ <TableCellDate+ value={+ typeof value === "number"+ ? formatDistanceToNow(new Date(value), { addSuffix: true })+ : value+ }+ />+ );+ },+ enableHiding: false,+ enableGlobalFilter: false,+ },+ {+ id: "p50",+ accessorFn: (row) =>+ typeof row.globalMetrics === "object"+ ? row.globalMetrics.p50Latency+ : row.globalMetrics,+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="P50" />+ ),+ cell: ({ row }) => {+ const value = row.getValue("p50");+ if (value === undefined) return <TableCellSkeleton />;+ if (!value) return <TableCellUnavailable />;+ return <TableCellNumber value={value} unit="ms" />;+ },+ enableHiding: false,+ },+ {+ id: "p90",+ accessorFn: (row) =>+ typeof row.globalMetrics === "object"+ ? row.globalMetrics.p90Latency+ : row.globalMetrics,+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="P90" />+ ),+ cell: ({ row }) => {+ const value = row.getValue("p90");+ if (value === undefined) return <TableCellSkeleton />;+ if (!value) return <TableCellUnavailable />;+ return <TableCellNumber value={value} unit="ms" />;+ },+ enableHiding: false,+ enableGlobalFilter: false,+ },+ {+ id: "p95",+ accessorFn: (row) =>+ typeof row.globalMetrics === "object"+ ? row.globalMetrics.p95Latency+ : row.globalMetrics,+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="P95" />+ ),+ cell: ({ row }) => {+ const value = row.getValue("p95");+ if (value === undefined) return <TableCellSkeleton />;+ if (!value) return <TableCellUnavailable />;+ return <TableCellNumber value={value} unit="ms" />;+ },+ enableHiding: false,+ enableGlobalFilter: false,+ },+ {+ id: "actions",+ cell: ({ row }) => <DataTableRowActions row={row} />,+ meta: {+ cellClassName: "w-8",+ },+ },+];diff --git a/apps/dashboard/src/components/data-table/monitors/data-table-action-bar.tsx b/apps/dashboard/src/components/data-table/monitors/data-table-action-bar.tsxnew file mode 100644index 000000000..3616183bc--- /dev/null+++ b/apps/dashboard/src/components/data-table/monitors/data-table-action-bar.tsx@@ -0,0 +1,216 @@+"use client";++import { SelectTrigger } from "@radix-ui/react-select";+import type { Table } from "@tanstack/react-table";+import { CheckCircle2, Trash2 } from "lucide-react";+import * as React from "react";++import {+ DataTableActionBar,+ DataTableActionBarAction,+ DataTableActionBarSelection,+} from "@/components/ui/data-table/data-table-action-bar";+import {+ Select,+ SelectContent,+ SelectGroup,+ SelectItem,+} from "@/components/ui/select";+import { Separator } from "@/components/ui/separator";+import { useTRPC } from "@/lib/trpc/client";+import type { RouterOutputs } from "@openstatus/api";+import { useMutation, useQueryClient } from "@tanstack/react-query";+import { isTRPCClientError } from "@trpc/client";+import { toast } from "sonner";++import {+ AlertDialog,+ AlertDialogAction,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+ AlertDialogTrigger,+} from "@/components/ui/alert-dialog";+import { Input } from "@/components/ui/input";++type Monitor = RouterOutputs["monitor"]["list"][number];++const ACTIVE = [+ { label: "active", value: true },+ { label: "inactive", value: false },+];++interface MonitorDataTableActionBarProps {+ table: Table<Monitor>;+}++export function MonitorDataTableActionBar({+ table,+}: MonitorDataTableActionBarProps) {+ const [open, setOpen] = React.useState(false);+ const [isPending, startTransition] = React.useTransition();+ const [value, setValue] = React.useState("");+ const rows = table.getFilteredSelectedRowModel().rows;+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const deleteMonitorsMutation = useMutation(+ trpc.monitor.deleteMonitors.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.monitor.list.queryKey(),+ });+ queryClient.invalidateQueries({+ queryKey: trpc.workspace.get.queryKey(),+ });+ // Clear selection once deletion succeeds+ table.toggleAllRowsSelected(false);+ },+ }),+ );++ const updateMonitorsMutation = useMutation(+ trpc.monitor.updateMonitors.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.monitor.list.queryKey(),+ });+ },+ }),+ );++ const confirmationValue = React.useMemo(+ () => `delete monitor${rows.length === 1 ? "" : "s"}`,+ [rows.length],+ );++ const handleDelete = async () => {+ try {+ startTransition(async () => {+ const promise = deleteMonitorsMutation.mutateAsync({+ ids: rows.map((row) => row.original.id),+ });+ toast.promise(promise, {+ loading: "Deleting...",+ success: "Deleted",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to delete";+ },+ });+ await promise;+ setOpen(false);+ });+ } catch (error) {+ console.error("Failed to delete:", error);+ }+ };++ return (+ <DataTableActionBar table={table} visible={rows.length > 0}>+ <DataTableActionBarSelection table={table} />+ <Separator+ orientation="vertical"+ className="hidden data-[orientation=vertical]:h-5 sm:block"+ />+ <div className="flex items-center gap-1.5">+ <Select+ onValueChange={(v) => {+ toast.promise(+ updateMonitorsMutation.mutateAsync({+ ids: rows.map((row) => row.original.id),+ active: v === "active",+ }),+ {+ loading: "Updating...",+ success: "Updated",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to update";+ },+ },+ );+ }}+ >+ <SelectTrigger asChild>+ <DataTableActionBarAction size="icon" tooltip="Update status">+ <CheckCircle2 />+ </DataTableActionBarAction>+ </SelectTrigger>+ <SelectContent align="center">+ <SelectGroup>+ {ACTIVE.map((status) => (+ <SelectItem+ key={status.label}+ value={status.label}+ className="capitalize"+ >+ {status.label}+ </SelectItem>+ ))}+ </SelectGroup>+ </SelectContent>+ </Select>+ <AlertDialog open={open} onOpenChange={setOpen}>+ <AlertDialogTrigger asChild>+ <DataTableActionBarAction+ size="icon"+ tooltip="Delete monitors"+ isPending={isPending || deleteMonitorsMutation.isPending}+ >+ <Trash2 />+ </DataTableActionBarAction>+ </AlertDialogTrigger>+ <AlertDialogContent+ onCloseAutoFocus={(event) => {+ // Work-around: body becomes unclickable after closing the dialog+ event.preventDefault();+ document.body.style.pointerEvents = "";+ }}+ >+ <AlertDialogHeader>+ <AlertDialogTitle>+ Delete {rows.length} monitor{rows.length > 1 ? "s" : ""}?+ </AlertDialogTitle>+ <AlertDialogDescription>+ This action cannot be undone. This will permanently remove the+ selected monitor(s) from the database.+ </AlertDialogDescription>+ </AlertDialogHeader>+ <form id="form-alert-dialog" className="space-y-0.5">+ <p className="text-muted-foreground text-xs">+ Please write '+ <span className="font-semibold">{confirmationValue}</span>+ ' to confirm+ </p>+ <Input value={value} onChange={(e) => setValue(e.target.value)} />+ </form>+ <AlertDialogFooter>+ <AlertDialogCancel onClick={(e) => e.stopPropagation()}>+ Cancel+ </AlertDialogCancel>+ <AlertDialogAction+ className="bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40"+ disabled={value !== confirmationValue || isPending}+ form="form-alert-dialog"+ type="submit"+ onClick={(e) => {+ e.preventDefault();+ handleDelete();+ }}+ >+ {isPending ? "Deleting..." : "Delete"}+ </AlertDialogAction>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>+ </div>+ </DataTableActionBar>+ );+}diff --git a/apps/dashboard/src/components/data-table/monitors/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/monitors/data-table-row-actions.tsxnew file mode 100644index 000000000..769cb444c--- /dev/null+++ b/apps/dashboard/src/components/data-table/monitors/data-table-row-actions.tsx@@ -0,0 +1,57 @@+"use client";++import { ExportCodeDialog } from "@/components/dialogs/export-code";+import { QuickActions } from "@/components/dropdowns/quick-actions";+import { getActions } from "@/data/monitors.client";+import { useTRPC } from "@/lib/trpc/client";+import type { RouterOutputs } from "@openstatus/api";+import { useMutation, useQueryClient } from "@tanstack/react-query";+import type { Row } from "@tanstack/react-table";+import { useRouter } from "next/navigation";+import { useState } from "react";+import { toast } from "sonner";++type Monitor = RouterOutputs["monitor"]["list"][number];+interface DataTableRowActionsProps {+ row: Row<Monitor>;+}++export function DataTableRowActions({ row }: DataTableRowActionsProps) {+ const [openDialog, setOpenDialog] = useState(false);+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const deleteMonitorMutation = useMutation(+ trpc.monitor.delete.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries(trpc.monitor.list.queryOptions());+ },+ }),+ );+ const router = useRouter();+ const actions = getActions({+ edit: () => router.push(`/monitors/${row.original.id}/edit`),+ "copy-id": () => {+ navigator.clipboard.writeText("ID");+ toast.success("Monitor ID copied to clipboard");+ },+ // export: () => setOpenDialog(true),+ });++ return (+ <>+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Monitor",+ confirmationValue: "delete monitor",+ submitAction: async () => {+ await deleteMonitorMutation.mutateAsync({+ id: row.original.id,+ });+ },+ }}+ />+ <ExportCodeDialog open={openDialog} onOpenChange={setOpenDialog} />+ </>+ );+}diff --git a/apps/dashboard/src/components/data-table/monitors/data-table-toolbar.tsx b/apps/dashboard/src/components/data-table/monitors/data-table-toolbar.tsxnew file mode 100644index 000000000..6b92ab600--- /dev/null+++ b/apps/dashboard/src/components/data-table/monitors/data-table-toolbar.tsx@@ -0,0 +1,58 @@+"use client";++import type { Table } from "@tanstack/react-table";+import { X } from "lucide-react";++import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";++import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";+import type { RouterOutputs } from "@openstatus/api";++type Monitor = RouterOutputs["monitor"]["list"][number];+type MonitorTag = RouterOutputs["monitorTag"]["list"][number];++export interface MonitorDataTableToolbarProps {+ table: Table<Monitor>;+ tags: MonitorTag[];+}++export function MonitorDataTableToolbar({+ table,+ tags,+}: MonitorDataTableToolbarProps) {+ const isFiltered = table.getState().columnFilters.length > 0;++ return (+ <div className="flex items-center justify-between">+ <div className="flex flex-1 flex-wrap items-center space-x-2">+ <Input+ placeholder="Filter by name, url, type..."+ value={(table.getState().globalFilter as string) ?? ""}+ onChange={(event) => table.setGlobalFilter(event.target.value)}+ className="h-8 w-[150px] lg:w-[250px]"+ />+ {table.getColumn("tags") && (+ <DataTableFacetedFilter+ column={table.getColumn("tags")}+ title="Tags"+ options={tags.map((tag) => ({+ label: tag.name,+ value: tag.id,+ }))}+ />+ )}+ {isFiltered && (+ <Button+ variant="ghost"+ onClick={() => table.resetColumnFilters()}+ className="h-8 px-2 lg:px-3"+ >+ Reset+ <X />+ </Button>+ )}+ </div>+ </div>+ );+}diff --git a/apps/dashboard/src/components/data-table/notifications/columns.tsx b/apps/dashboard/src/components/data-table/notifications/columns.tsxnew file mode 100644index 000000000..d5ed03736--- /dev/null+++ b/apps/dashboard/src/components/data-table/notifications/columns.tsx@@ -0,0 +1,66 @@+"use client";++import { Badge } from "@/components/ui/badge";+import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";+import { type NotifierProvider, config } from "@/data/notifications.client";+import type { RouterOutputs } from "@openstatus/api";+import type { ColumnDef } from "@tanstack/react-table";+import { TableCellBadge } from "../table-cell-badge";+import { DataTableRowActions } from "./data-table-row-actions";++type Notifier = RouterOutputs["notification"]["list"][number];++export const columns: ColumnDef<Notifier>[] = [+ {+ accessorKey: "name",+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="Name" />+ ),+ enableHiding: false,+ },+ {+ accessorKey: "provider",+ header: "Provider",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const provider = row.getValue("provider") as NotifierProvider;+ const Icon = config[provider].icon;+ return (+ <Badge variant="secondary" className="px-1.5 font-mono text-[10px]">+ <Icon className="size-2.5" />+ {config[provider].label}+ </Badge>+ );+ },+ },+ {+ accessorKey: "monitors",+ header: "Monitors",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const value = row.getValue("monitors");+ if (Array.isArray(value) && value.length > 0 && "name" in value[0]) {+ return (+ <div className="flex flex-wrap gap-1">+ {value.map((m) => (+ <TableCellBadge key={m.id} value={m.name} />+ ))}+ </div>+ );+ }+ return <span className="text-muted-foreground">-</span>;+ },+ meta: {+ cellClassName: "tabular-nums font-mono",+ },+ },+ {+ id: "actions",+ cell: ({ row }) => <DataTableRowActions row={row} />,+ meta: {+ cellClassName: "w-8",+ },+ },+];diff --git a/apps/dashboard/src/components/data-table/notifications/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/notifications/data-table-row-actions.tsxnew file mode 100644index 000000000..9f091cb17--- /dev/null+++ b/apps/dashboard/src/components/data-table/notifications/data-table-row-actions.tsx@@ -0,0 +1,87 @@+"use client";++import { QuickActions } from "@/components/dropdowns/quick-actions";+import { FormSheetNotifier } from "@/components/forms/notifications/sheet";+import { getActions } from "@/data/notifications.client";+import { useTRPC } from "@/lib/trpc/client";+import type { RouterOutputs } from "@openstatus/api";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import type { Row } from "@tanstack/react-table";+import { useRef } from "react";++type Notifier = RouterOutputs["notification"]["list"][number];++interface DataTableRowActionsProps {+ row: Row<Notifier>;+}++export function DataTableRowActions(props: DataTableRowActionsProps) {+ const buttonRef = useRef<HTMLButtonElement>(null);+ const actions = getActions({+ edit: () => buttonRef.current?.click(),+ });+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const { data: monitors } = useQuery(trpc.monitor.list.queryOptions());+ const updateNotifierMutation = useMutation(+ trpc.notification.updateNotifier.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.notification.list.queryKey(),+ });+ },+ }),+ );+ const deleteNotifierMutation = useMutation(+ trpc.notification.delete.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.notification.list.queryKey(),+ });+ },+ }),+ );++ return (+ <>+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Delete",+ confirmationValue: "delete notifier",+ submitAction: async () => {+ await deleteNotifierMutation.mutateAsync({+ id: props.row.original.id,+ });+ },+ }}+ />+ <FormSheetNotifier+ provider={props.row.original.provider}+ defaultValues={{+ name: props.row.original.name,+ provider: props.row.original.provider,+ // TBD: parse it?+ data: JSON.parse(props.row.original.data ?? "{}"),+ monitors: props.row.original.monitors.map((m) => m.id),+ }}+ monitors={monitors ?? []}+ onSubmit={async (values) => {+ await updateNotifierMutation.mutateAsync({+ id: props.row.original.id,+ name: values.name,+ data:+ typeof values.data === "string"+ ? { [values.provider]: values.data }+ : values.data,+ monitors: values.monitors,+ });+ }}+ >+ <button ref={buttonRef} type="button" className="sr-only">+ Open sheet+ </button>+ </FormSheetNotifier>+ </>+ );+}diff --git a/apps/dashboard/src/components/data-table/response-logs/columns.tsx b/apps/dashboard/src/components/data-table/response-logs/columns.tsxnew file mode 100644index 000000000..b62320355--- /dev/null+++ b/apps/dashboard/src/components/data-table/response-logs/columns.tsx@@ -0,0 +1,227 @@+"use client";++import { HoverCardTimestamp } from "@/components/common/hover-card-timestamp";+import { TableCellDate } from "@/components/data-table/table-cell-date";+import { TableCellNumber } from "@/components/data-table/table-cell-number";+import {+ HoverCard,+ HoverCardContent,+ HoverCardTrigger,+} from "@/components/ui/hover-card";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { getStatusCodeVariant, textColors } from "@/data/status-codes";+import { cn } from "@/lib/utils";+import type { RouterOutputs } from "@openstatus/api";+import { flyRegionsDict } from "@openstatus/utils";+import { HoverCardPortal } from "@radix-ui/react-hover-card";+import type { ColumnDef } from "@tanstack/react-table";+import { Clock, Workflow } from "lucide-react";++type ResponseLog = RouterOutputs["tinybird"]["list"]["data"][number];++export const columns: ColumnDef<ResponseLog>[] = [+ {+ accessorKey: "requestStatus",+ header: () => null,+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const value = row.getValue("requestStatus");+ if (value === "error") {+ return <div className="h-2.5 w-2.5 rounded-[2px] bg-destructive" />;+ }+ if (value === "degraded") {+ return <div className="h-2.5 w-2.5 rounded-[2px] bg-warning" />;+ }+ if (value === "success") {+ return <div className="h-2.5 w-2.5 rounded-[2px] bg-success" />;+ }+ return <div className="text-muted-foreground">-</div>;+ },+ },+ {+ accessorKey: "timestamp",+ header: "Timestamp",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const value = new Date(row.getValue("timestamp"));+ return (+ <HoverCardTimestamp date={value}>+ <TableCellDate value={value} className="font-mono text-foreground" />+ </HoverCardTimestamp>+ );+ },+ },+ {+ accessorKey: "statusCode",+ header: "Status",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const log = row.original;+ if (log.type === "http") {+ const value = log.statusCode;+ const variant = getStatusCodeVariant(value);+ return (+ <TableCellNumber value={value} className={textColors[variant]} />+ );+ }+ return <div className="text-muted-foreground">-</div>;+ },+ },+ {+ accessorKey: "latency",+ header: "Latency",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ return <TableCellNumber value={row.getValue("latency")} unit="ms" />;+ },+ },+ {+ accessorKey: "region",+ header: "Region",+ cell: ({ row }) => {+ const value = row.getValue("region");++ if (typeof value !== "string") {+ return <div className="text-muted-foreground">-</div>;+ }++ const regionConfig = flyRegionsDict[value as keyof typeof flyRegionsDict];+ return regionConfig.location;+ },+ enableSorting: false,+ enableHiding: false,+ filterFn: "arrIncludesSome",+ meta: {+ cellClassName: "text-muted-foreground font-mono",+ },+ },+ {+ accessorKey: "timing",+ header: "Timing",+ cell: ({ row }) => {+ const log = row.original;+ if (log.type === "http" && log.timing) {+ return <HoverCardTiming timing={log.timing} latency={log.latency} />;+ }+ return <div className="text-muted-foreground">-</div>;+ },+ enableSorting: false,+ enableHiding: false,+ },+ {+ accessorKey: "trigger",+ header: "Trigger",+ cell: ({ row }) => {+ const value = row.getValue("trigger");+ if (value === "cron" || value === "api") {+ const Icon = value === "cron" ? Clock : Workflow;+ const label = value === "cron" ? "Scheduled" : "API";+ return (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger>+ <Icon className="size-3 text-muted-foreground" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p>{label}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+ }+ return <div className="text-muted-foreground">-</div>;+ },+ enableSorting: false,+ enableHiding: false,+ meta: {+ cellClassName: "font-mono",+ headerClassName: "sr-only",+ },+ },+];++function HoverCardTiming({+ timing,+ latency,+}: {+ timing: NonNullable<Extract<ResponseLog, { type: "http" }>["timing"]>;+ latency: number;+}) {+ return (+ <HoverCard openDelay={50} closeDelay={50}>+ <HoverCardTrigger+ className="opacity-70 hover:opacity-100 data-[state=open]:opacity-100"+ asChild+ >+ <div className="flex">+ {Object.entries(timing).map(([key, value], index) => (+ <div+ key={key}+ className={cn("h-4")}+ style={{+ width: `${(value / latency) * 100}%`,+ backgroundColor: `var(--chart-${index + 1})`,+ }}+ />+ ))}+ </div>+ </HoverCardTrigger>+ {/* REMINDER: allows us to port the content to the document.body, which is helpful when using opacity-50 on the row element */}+ <HoverCardPortal>+ <HoverCardContent side="bottom" align="end" className="z-10 w-auto p-2">+ <HoverCardTimingContent {...{ latency, timing }} />+ </HoverCardContent>+ </HoverCardPortal>+ </HoverCard>+ );+}++function HoverCardTimingContent({+ timing,+ latency,+}: {+ timing: NonNullable<Extract<ResponseLog, { type: "http" }>["timing"]>;+ latency: number;+}) {+ return (+ <div className="flex flex-col gap-1">+ {Object.entries(timing).map(([key, value], index) => {+ return (+ <div key={key} className="grid grid-cols-2 gap-4 text-xs">+ <div className="flex items-center gap-2">+ <div+ className={cn("h-2 w-2 rounded-full")}+ style={{ backgroundColor: `var(--chart-${index + 1})` }}+ />+ <div className="font-mono text-accent-foreground uppercase">+ {key}+ </div>+ </div>+ <div className="flex items-center justify-between gap-4">+ <div className="font-mono text-muted-foreground">+ {`${new Intl.NumberFormat("en-US", {+ maximumFractionDigits: 2,+ }).format((value / latency) * 100)}%`}+ </div>+ <div className="font-mono">+ {new Intl.NumberFormat("en-US", {+ maximumFractionDigits: 3,+ }).format(value)}+ <span className="text-muted-foreground">ms</span>+ </div>+ </div>+ </div>+ );+ })}+ </div>+ );+}diff --git a/apps/dashboard/src/components/data-table/response-logs/data-table-basics.tsx b/apps/dashboard/src/components/data-table/response-logs/data-table-basics.tsxnew file mode 100644index 000000000..91806fd7e--- /dev/null+++ b/apps/dashboard/src/components/data-table/response-logs/data-table-basics.tsx@@ -0,0 +1,386 @@+"use client";++import { TableCellDate } from "@/components/data-table/table-cell-date";+import { TableCellNumber } from "@/components/data-table/table-cell-number";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableRow,+} from "@/components/ui/table";+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";+import { getStatusCodeVariant, textColors } from "@/data/status-codes";+import { formatMilliseconds, formatPercentage } from "@/lib/formatter";+import { cn } from "@/lib/utils";+import type { RouterOutputs } from "@openstatus/api";+import { flyRegionsDict } from "@openstatus/utils";+import { Braces, TableProperties } from "lucide-react";++type ResponseLog = RouterOutputs["tinybird"]["get"]["data"][number];++export function DataTableBasics({ data }: { data: ResponseLog }) {+ if (data.type === "http") {+ return <DataTableBasicsHTTP data={data} />;+ }+ if (data.type === "tcp") {+ return <DataTableBasicsTCP data={data} />;+ }+ return null;+}++export function DataTableBasicsHTTP({+ data,+}: {+ data: Extract<ResponseLog, { type: "http" }> & {+ trigger?: "cron" | "api" | "test" | null;+ };+}) {+ const regionConfig = flyRegionsDict[data.region];+ return (+ <Table className="table-fixed">+ <colgroup>+ <col className="w-1/3" />+ <col className="w-2/3" />+ </colgroup>+ <TableBody>+ <TableRow>+ <TableHead colSpan={2}>Request</TableHead>+ </TableRow>+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Result+ </TableHead>+ {/* TODO: add colored square like list (see columns) */}+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ <div className="flex items-center gap-2">+ <div+ className={cn("h-2.5 w-2.5 rounded-[2px] bg-muted", {+ "bg-destructive": data?.requestStatus === "error",+ "bg-warning": data?.requestStatus === "degraded",+ "bg-success": data?.requestStatus === "success",+ })}+ />+ <div className="capitalize">+ {data?.requestStatus ?? "unknown"}+ </div>+ </div>+ </TableCell>+ </TableRow>+ {data.id ? (+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ ID+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ {data.id}+ </TableCell>+ </TableRow>+ ) : null}+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Timestamp+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ <TableCellDate+ value={new Date(data.cronTimestamp)}+ className="text-foreground"+ />+ </TableCell>+ </TableRow>+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ URL+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ {data.url}+ </TableCell>+ </TableRow>+ {/* TODO: store method in TB 🤦 */}+ {/* <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Method+ </TableHead>+ <TableCell className="whitespace-normal font-mono">+ {data?.method}+ </TableCell>+ </TableRow> */}+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Status+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ <TableCellNumber+ value={data.statusCode}+ className={textColors[getStatusCodeVariant(data.statusCode)]}+ />+ </TableCell>+ </TableRow>+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Latency+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ <TableCellNumber value={data?.latency} unit="ms" />+ </TableCell>+ </TableRow>+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Region+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ {regionConfig?.flag} {regionConfig?.code}{" "}+ <span className="text-muted-foreground">+ {regionConfig?.location}+ </span>+ </TableCell>+ </TableRow>+ {data.trigger ? (+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Trigger+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ {data?.trigger}+ </TableCell>+ </TableRow>+ ) : null}+ {data.headers ? (+ <>+ <TableRow>+ <TableHead colSpan={2}>Headers</TableHead>+ </TableRow>+ <TableRow className="hover:bg-transparent">+ <TableCell colSpan={2} className="p-0">+ <Tabs defaultValue="table" className="w-full gap-0">+ <TabsList className="w-full justify-start rounded-none border-b px-2">+ <TabsTrigger value="table">+ <TableProperties className="size-3 rotate-180" />+ </TabsTrigger>+ <TabsTrigger value="raw">+ <Braces className="size-3" />+ </TabsTrigger>+ </TabsList>+ <TabsContent value="table">+ <Table className="table-fixed">+ <colgroup>+ <col className="w-1/3" />+ <col className="w-2/3" />+ </colgroup>+ <TableBody>+ {Object.entries(data?.headers ?? {}).map(+ ([key, value]) => (+ <TableRow+ key={key}+ className="[&>:not(:last-child)]:border-r"+ >+ <TableHead className="overflow-x-auto bg-muted/50 font-normal text-muted-foreground">+ {key}+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ {value}+ </TableCell>+ </TableRow>+ ),+ )}+ </TableBody>+ </Table>+ </TabsContent>+ <TabsContent value="raw">+ <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-4 font-mono text-sm">+ {JSON.stringify(data?.headers, null, 2)}+ </pre>+ </TabsContent>+ </Tabs>+ </TableCell>+ </TableRow>+ </>+ ) : null}+ {data.timing ? (+ <>+ <TableRow>+ <TableHead colSpan={2}>Timing</TableHead>+ </TableRow>+ {Object.entries(data?.timing ?? {}).map(([key, value], index) => (+ <TableRow key={key} className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ <span className="uppercase">{key}</span>+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ <div className="flex items-center justify-between gap-2">+ <div className="flex-1">+ <span className="text-muted-foreground">+ {formatPercentage(value / (data?.latency || 100))}+ </span>+ </div>+ <div className="flex w-full flex-1 items-center justify-end gap-2">+ <span className="text-nowrap text-muted-foreground">+ {formatMilliseconds(value)}+ </span>+ <div+ className="h-4"+ style={{+ width: `${(value / (data?.latency || 100)) * 100}%`,+ backgroundColor: `var(--chart-${index + 1})`,+ }}+ />+ </div>+ </div>+ </TableCell>+ </TableRow>+ ))}+ </>+ ) : null}+ {data?.message ? (+ <>+ <TableRow>+ <TableHead colSpan={2}>Message</TableHead>+ </TableRow>+ <TableRow>+ <TableCell colSpan={2} className="p-0">+ <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-2 font-mono text-sm">+ {data.message}+ </pre>+ </TableCell>+ </TableRow>+ </>+ ) : null}+ {data.assertions ? (+ <>+ <TableRow>+ <TableHead colSpan={2}>Assertions</TableHead>+ </TableRow>+ <TableRow>+ <TableCell colSpan={2} className="p-0">+ {!data.assertions || data.assertions === "[]" ? (+ <div className="p-2 font-mono text-muted-foreground text-sm">+ Default status code 2xx assertion+ </div>+ ) : (+ <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-2 font-mono text-sm">+ {JSON.stringify(data.assertions, null, 2)}+ </pre>+ )}+ </TableCell>+ </TableRow>+ </>+ ) : null}+ </TableBody>+ </Table>+ );+}++export function DataTableBasicsTCP({+ data,+}: {+ data: Extract<ResponseLog, { type: "tcp" }> & {+ trigger?: "cron" | "api" | "test" | null;+ };+}) {+ const regionConfig = flyRegionsDict[data.region];+ return (+ <Table className="table-fixed">+ <colgroup>+ <col className="w-1/3" />+ <col className="w-2/3" />+ </colgroup>+ <TableBody>+ <TableRow>+ <TableHead colSpan={2}>Request</TableHead>+ </TableRow>+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Result+ </TableHead>+ {/* TODO: add colored square like list (see columns) */}+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ <div className="flex items-center gap-2">+ <div+ className={cn("h-2.5 w-2.5 rounded-[2px] bg-muted", {+ "bg-destructive": data?.requestStatus === "error",+ "bg-warning": data?.requestStatus === "degraded",+ "bg-success": data?.requestStatus === "success",+ })}+ />+ <div className="capitalize">+ {data?.requestStatus ?? "unknown"}+ </div>+ </div>+ </TableCell>+ </TableRow>+ {data.id ? (+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ ID+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ {data.id}+ </TableCell>+ </TableRow>+ ) : null}+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Timestamp+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ <TableCellDate+ value={new Date(data.cronTimestamp)}+ className="text-foreground"+ />+ </TableCell>+ </TableRow>+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ URI+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ {data.uri}+ </TableCell>+ </TableRow>+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Latency+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ <TableCellNumber value={data?.latency} unit="ms" />+ </TableCell>+ </TableRow>+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Region+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ {regionConfig?.flag} {regionConfig?.code}{" "}+ <span className="text-muted-foreground">+ {regionConfig?.location}+ </span>+ </TableCell>+ </TableRow>+ {data.trigger ? (+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="bg-muted/50 font-normal text-muted-foreground">+ Trigger+ </TableHead>+ <TableCell className="max-w-full overflow-x-auto whitespace-normal font-mono">+ {data?.trigger}+ </TableCell>+ </TableRow>+ ) : null}+ {data?.errorMessage ? (+ <>+ <TableRow>+ <TableHead colSpan={2}>Error Message</TableHead>+ </TableRow>+ <TableRow>+ <TableCell colSpan={2} className="p-0">+ <pre className="max-w-full overflow-x-auto whitespace-pre-wrap rounded-none bg-muted/50 p-2 font-mono text-sm">+ {data.errorMessage}+ </pre>+ </TableCell>+ </TableRow>+ </>+ ) : null}+ </TableBody>+ </Table>+ );+}diff --git a/apps/dashboard/src/components/data-table/response-logs/data-table-sheet-test.tsx b/apps/dashboard/src/components/data-table/response-logs/data-table-sheet-test.tsxnew file mode 100644index 000000000..243f3445a--- /dev/null+++ b/apps/dashboard/src/components/data-table/response-logs/data-table-sheet-test.tsx@@ -0,0 +1,85 @@+"use client";++import {+ DataTableSheet,+ DataTableSheetContent,+ DataTableSheetHeader,+ DataTableSheetTitle,+} from "@/components/data-table/data-table-sheet";+import type { RouterOutputs } from "@openstatus/api";+import { DataTableBasics } from "./data-table-basics";++type TestTCP = RouterOutputs["checker"]["testTcp"];+type TestHTTP = RouterOutputs["checker"]["testHttp"];+type Monitor = NonNullable<RouterOutputs["monitor"]["get"]>;++export function DataTableSheetTest({+ data,+ monitor,+ onClose,+}: {+ data: TestTCP | TestHTTP | null;+ monitor: Monitor;+ onClose: () => void;+}) {+ if (!data) return null;++ return (+ <DataTableSheet defaultOpen>+ {/* NOTE: we are using onCloseAutoFocus to reset with a delay to avoid abrupt closing of the sheet */}+ <DataTableSheetContent className="sm:max-w-lg" onCloseAutoFocus={onClose}>+ <DataTableSheetHeader className="px-2">+ <DataTableSheetTitle>Test Result</DataTableSheetTitle>+ </DataTableSheetHeader>+ <DataTableBasics+ data={+ data.type === "http"+ ? {+ id: null,+ trigger: null,+ timestamp: data.timestamp,+ cronTimestamp: data.timestamp,+ type: data.type,+ requestStatus: "success",+ statusCode: data.status,+ headers: data.headers,+ region: data.region,+ latency: data.latency,+ timing: {+ dns: data.timing.dnsDone - data.timing.dnsStart,+ connect: data.timing.connectDone - data.timing.connectStart,+ tls:+ data.timing.tlsHandshakeDone -+ data.timing.tlsHandshakeStart,+ ttfb:+ data.timing.firstByteDone - data.timing.firstByteStart,+ transfer:+ data.timing.transferDone - data.timing.transferStart,+ },+ url: monitor.url,+ workspaceId: String(monitor.workspaceId),+ error: false,+ monitorId: String(monitor.id),+ assertions: monitor.assertions,+ message: null,+ }+ : {+ id: null,+ trigger: null,+ timestamp: data.timestamp,+ cronTimestamp: data.timestamp,+ region: data.region,+ type: data.type,+ requestStatus: "success",+ error: false,+ latency: data.latency ?? 0,+ uri: monitor.url,+ monitorId: String(monitor.id),+ errorMessage: null,+ }+ }+ />+ </DataTableSheetContent>+ </DataTableSheet>+ );+}diff --git a/apps/dashboard/src/components/data-table/response-logs/data-table-sheet.tsx b/apps/dashboard/src/components/data-table/response-logs/data-table-sheet.tsxnew file mode 100644index 000000000..0b51f4057--- /dev/null+++ b/apps/dashboard/src/components/data-table/response-logs/data-table-sheet.tsx@@ -0,0 +1,55 @@+"use client";++import {+ DataTableSheet,+ DataTableSheetContent,+ DataTableSheetFooter,+ DataTableSheetHeader,+ DataTableSheetTitle,+} from "@/components/data-table/data-table-sheet";+import { Button } from "@/components/ui/button";+import { Separator } from "@/components/ui/separator";+import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";+import type { RouterOutputs } from "@openstatus/api";+import { Check, Copy } from "lucide-react";+import { DataTableBasics } from "./data-table-basics";++type ResponseLog = RouterOutputs["tinybird"]["get"]["data"][number];++export function Sheet({+ data,+ onClose,+}: {+ data: ResponseLog | null;+ onClose: () => void;+}) {+ const { copy, isCopied } = useCopyToClipboard();+ if (!data) return null;++ return (+ <DataTableSheet defaultOpen onOpenChange={(open) => !open && onClose()}>+ <DataTableSheetContent className="sm:max-w-lg">+ <DataTableSheetHeader className="px-2">+ <DataTableSheetTitle>Response Logs</DataTableSheetTitle>+ </DataTableSheetHeader>+ <DataTableBasics data={data} />+ <Separator />+ <DataTableSheetFooter>+ <Button+ variant="outline"+ onClick={() => {+ if (typeof window !== "undefined") {+ copy(window.location.href, {+ withToast: false,+ });+ }+ }}+ >+ Copy Request Log URL+ {isCopied ? <Check /> : <Copy />}+ </Button>+ </DataTableSheetFooter>+ </DataTableSheetContent>+ </DataTableSheet>+ );+}diff --git a/apps/dashboard/src/components/data-table/response-logs/data-table-toolbar.tsx b/apps/dashboard/src/components/data-table/response-logs/data-table-toolbar.tsxnew file mode 100644index 000000000..7f4b81fb4--- /dev/null+++ b/apps/dashboard/src/components/data-table/response-logs/data-table-toolbar.tsx@@ -0,0 +1,71 @@+"use client";++import type { Table } from "@tanstack/react-table";+import { X } from "lucide-react";++import { Button } from "@/components/ui/button";++import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";+import { regions } from "@/data/regions";+import { statusCodes } from "@/data/status-codes";+import type { RouterOutputs } from "@openstatus/api";++type ResponseLog = RouterOutputs["tinybird"]["list"]["data"][number];++export interface ResponseLogsDataTableToolbarProps {+ table: Table<ResponseLog>;+}++export function ResponseLogsDataTableToolbar({+ table,+}: ResponseLogsDataTableToolbarProps) {+ const isFiltered = table.getState().columnFilters.length > 0;++ return (+ <div className="flex items-center justify-between">+ <div className="flex flex-1 flex-warp flex-wrap items-center gap-2">+ {table.getColumn("status") && (+ <DataTableFacetedFilter+ column={table.getColumn("status")}+ title="Status"+ options={statusCodes.map((code) => ({+ label: code.code.toString(),+ value: code.code.toString(),+ }))}+ />+ )}+ {table.getColumn("region") && (+ <DataTableFacetedFilter+ column={table.getColumn("region")}+ title="Region"+ options={regions.map((region) => ({+ label: region.location,+ value: region.code,+ }))}+ />+ )}+ {table.getColumn("error") && (+ <DataTableFacetedFilter+ column={table.getColumn("error")}+ title="Error"+ options={[+ { label: "Yes", value: "true" },+ { label: "No", value: "false" },+ ]}+ />+ )}+ {isFiltered && (+ <Button+ variant="ghost"+ onClick={() => table.resetColumnFilters()}+ className="h-8 px-2 lg:px-3"+ >+ Reset+ <X />+ </Button>+ )}+ </div>+ {/* <DataTableViewOptions table={table} /> */}+ </div>+ );+}diff --git a/apps/dashboard/src/components/data-table/response-logs/regions/columns.tsx b/apps/dashboard/src/components/data-table/response-logs/regions/columns.tsxnew file mode 100644index 000000000..7bf11d107--- /dev/null+++ b/apps/dashboard/src/components/data-table/response-logs/regions/columns.tsx@@ -0,0 +1,131 @@+"use client";++import { ChartLineRegion } from "@/components/chart/chart-line-region";+import { TableCellNumber } from "@/components/data-table/table-cell-number";+import { QuickActions } from "@/components/dropdowns/quick-actions";+import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import type { RegionMetric } from "@/data/region-metrics";+import { getActions } from "@/data/region-metrics.client";+import { flyRegionsDict } from "@openstatus/utils";+import type { ColumnDef } from "@tanstack/react-table";+// import { toast } from "sonner";+import { useRouter } from "next/navigation";++function TrendCell({ trend }: { trend: RegionMetric["trend"] }) {+ return <ChartLineRegion className="h-[50px]" data={trend} />;+}++export const columns: ColumnDef<RegionMetric>[] = [+ {+ accessorKey: "region",+ header: "Region",+ cell: ({ row }) => {+ const value = row.getValue("region");+ if (typeof value === "string") {+ const region = flyRegionsDict[value as keyof typeof flyRegionsDict];+ return (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger className="h-[50px]">+ {region.flag} {region.code}+ </TooltipTrigger>+ <TooltipContent side="left">{region.location}</TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+ }+ return null;+ },+ enableSorting: false,+ enableHiding: false,+ meta: {+ cellClassName: "w-24 font-mono",+ },+ },+ {+ accessorKey: "trend",+ header: "Trend",+ cell: ({ row }) => {+ return <TrendCell trend={row.original.trend} />;+ },+ enableSorting: false,+ enableHiding: false,+ meta: {+ cellClassName: "w-full min-w-[200px] max-w-full",+ },+ },+ {+ accessorKey: "p50",+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="P50" />+ ),+ cell: ({ row }) => {+ return <TableCellNumber value={row.getValue("p50")} unit="ms" />;+ },+ enableHiding: false,+ meta: {+ cellClassName: "w-12",+ },+ },+ {+ accessorKey: "p90",+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="P90" />+ ),+ cell: ({ row }) => {+ return <TableCellNumber value={row.getValue("p90")} unit="ms" />;+ },+ enableHiding: false,+ meta: {+ cellClassName: "w-12",+ },+ },+ {+ accessorKey: "p99",+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="P99" />+ ),+ cell: ({ row }) => {+ return <TableCellNumber value={row.getValue("p99")} unit="ms" />;+ },+ enableHiding: false,+ meta: {+ cellClassName: "w-12",+ },+ },+ {+ id: "actions",+ cell: ({ row }) => {+ // NOTE: works, but is not very react-esque+ // eslint-disable-next-line react-hooks/rules-of-hooks+ const router = useRouter();+ const actions = getActions({+ filter: async () => {+ router.push(`?regions=${row.original.region}`);+ },+ // TODO: add triggerById in TRPC client+ // trigger: async () => {+ // console.log(row.original);+ // const promise = new Promise((resolve) => setTimeout(resolve, 1000));+ // toast.promise(promise, {+ // loading: "Checking...",+ // success: "Success",+ // error: "Failed",+ // });+ // await promise;+ // },+ });+ return <QuickActions actions={actions} />;+ },+ meta: {+ headerClassName: "w-12",+ cellClassName: "text-right",+ },+ },+];diff --git a/apps/dashboard/src/components/data-table/settings/api-key/data-table.tsx b/apps/dashboard/src/components/data-table/settings/api-key/data-table.tsxnew file mode 100644index 000000000..46f4d3eb0--- /dev/null+++ b/apps/dashboard/src/components/data-table/settings/api-key/data-table.tsx@@ -0,0 +1,29 @@+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableRow,+} from "@/components/ui/table";+import type { RouterOutputs } from "@openstatus/api";++type ApiKey = RouterOutputs["apiKey"]["get"];++export function DataTable({ apiKey }: { apiKey: ApiKey }) {+ return (+ <Table>+ <TableBody>+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="h-auto bg-muted/50">Created At</TableHead>+ <TableCell>+ {new Date(apiKey.createdAt).toLocaleDateString()}+ </TableCell>+ </TableRow>+ <TableRow className="[&>:not(:last-child)]:border-r">+ <TableHead className="h-auto bg-muted/50">Token</TableHead>+ <TableCell>{apiKey.start}...</TableCell>+ </TableRow>+ </TableBody>+ </Table>+ );+}diff --git a/apps/dashboard/src/components/data-table/settings/invitations/data-table.tsx b/apps/dashboard/src/components/data-table/settings/invitations/data-table.tsxnew file mode 100644index 000000000..1ce60f83d--- /dev/null+++ b/apps/dashboard/src/components/data-table/settings/invitations/data-table.tsx@@ -0,0 +1,85 @@+import {+ EmptyStateContainer,+ EmptyStateDescription,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import { QuickActions } from "@/components/dropdowns/quick-actions";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";+import { formatDate } from "@/lib/formatter";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery } from "@tanstack/react-query";++export function DataTable() {+ const trpc = useTRPC();+ const { data: invitations, refetch } = useQuery(+ trpc.invitation.list.queryOptions(),+ );+ const deleteInvitationMutation = useMutation(+ trpc.invitation.delete.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ if (!invitations) return null;++ if (invitations.length === 0) {+ return (+ <EmptyStateContainer>+ <EmptyStateTitle>No pending invitations</EmptyStateTitle>+ <EmptyStateDescription>+ Only active invitations are shown here.+ </EmptyStateDescription>+ </EmptyStateContainer>+ );+ }++ return (+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead>Email</TableHead>+ <TableHead>Role</TableHead>+ <TableHead>Created At</TableHead>+ <TableHead>Expires At</TableHead>+ <TableHead>Accepted At</TableHead>+ <TableHead>+ <span className="sr-only">Actions</span>+ </TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {invitations.map((item) => (+ <TableRow key={item.id}>+ <TableCell>{item.email}</TableCell>+ <TableCell>{item.role}</TableCell>+ <TableCell>+ {item.createdAt ? formatDate(item.createdAt) : "-"}+ </TableCell>+ <TableCell>{formatDate(item.expiresAt)}</TableCell>+ <TableCell>+ {item.acceptedAt ? formatDate(item.acceptedAt) : "-"}+ </TableCell>+ <TableCell>+ <div className="flex justify-end">+ <QuickActions+ deleteAction={{+ title: "Invitation",+ submitAction: async () =>+ deleteInvitationMutation.mutateAsync({ id: item.id }),+ }}+ />+ </div>+ </TableCell>+ </TableRow>+ ))}+ </TableBody>+ </Table>+ );+}diff --git a/apps/dashboard/src/components/data-table/settings/members/data-table.tsx b/apps/dashboard/src/components/data-table/settings/members/data-table.tsxnew file mode 100644index 000000000..10d2f8c88--- /dev/null+++ b/apps/dashboard/src/components/data-table/settings/members/data-table.tsx@@ -0,0 +1,69 @@+import { QuickActions } from "@/components/dropdowns/quick-actions";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";+import { formatDate } from "@/lib/formatter";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery } from "@tanstack/react-query";++export function DataTable() {+ const trpc = useTRPC();+ const { data: members, refetch } = useQuery(trpc.member.list.queryOptions());+ const deleteMemberMutation = useMutation(+ trpc.member.delete.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ if (!members) return null;++ return (+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead>Name</TableHead>+ <TableHead>Email</TableHead>+ <TableHead>Role</TableHead>+ <TableHead>Created</TableHead>+ <TableHead>+ <span className="sr-only">Actions</span>+ </TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {members.map((item) => (+ <TableRow key={item.user.id}>+ <TableCell>+ {item.user.name ?? (+ <span className="text-muted-foreground">-</span>+ )}+ </TableCell>+ <TableCell>{item.user.email}</TableCell>+ <TableCell>{item.role}</TableCell>+ <TableCell>{formatDate(item.createdAt)}</TableCell>+ <TableCell>+ <div className="flex justify-end">+ <QuickActions+ deleteAction={{+ title: "Member",+ confirmationValue: "delete member",+ // FIXME: when deleting myself, throws an error, should have been caught by the toast.error+ submitAction: async () =>+ await deleteMemberMutation.mutateAsync({+ id: item.user.id,+ }),+ }}+ />+ </div>+ </TableCell>+ </TableRow>+ ))}+ </TableBody>+ </Table>+ );+}diff --git a/apps/dashboard/src/components/data-table/status-pages/columns.tsx b/apps/dashboard/src/components/data-table/status-pages/columns.tsxnew file mode 100644index 000000000..2fc4e605c--- /dev/null+++ b/apps/dashboard/src/components/data-table/status-pages/columns.tsx@@ -0,0 +1,89 @@+"use client";++import { Link } from "@/components/common/link";+import { TableCellLink } from "@/components/data-table/table-cell-link";+import type { RouterOutputs } from "@openstatus/api";+import type { ColumnDef } from "@tanstack/react-table";+import { DataTableRowActions } from "./data-table-row-actions";++type StatusPage = RouterOutputs["page"]["list"][number];++export const columns: ColumnDef<StatusPage>[] = [+ {+ accessorKey: "title",+ header: "Title",+ cell: ({ row }) => {+ return (+ <TableCellLink+ href={`/status-pages/${row.original.id}/status-reports`}+ value={row.getValue("title")}+ />+ );+ },+ enableSorting: false,+ enableHiding: false,+ meta: {+ cellClassName: "max-w-[150px] min-w-max",+ },+ },+ {+ accessorKey: "icon",+ header: "Favicon",+ cell: ({ row }) => {+ const value = row.getValue("icon");+ if (!value || typeof value !== "string")+ return <span className="text-muted-foreground">-</span>;+ return (+ <img+ src={`${value}`}+ alt={`Favicon for ${row.getValue("name")}`}+ className="h-4 w-4 rounded border bg-muted"+ />+ );+ },+ enableSorting: false,+ enableHiding: false,+ },+ {+ accessorKey: "slug",+ header: "Slug",+ cell: ({ row }) => {+ const domain = row.getValue("domain");+ const slug = row.getValue("slug");+ return (+ <TableCellLink+ href={domain ? `https://${domain}` : `https://${slug}.openstatus.dev`}+ value={slug}+ />+ );+ },+ enableSorting: false,+ enableHiding: false,+ meta: {+ cellClassName: "font-mono",+ },+ },+ {+ accessorKey: "domain",+ header: "Domain",+ cell: ({ row }) => {+ const value = row.getValue("domain");+ if (typeof value !== "string")+ return <span className="text-muted-foreground">-</span>;+ return (+ <Link href={"#"} className="font-mono">+ {value}+ </Link>+ );+ },+ enableSorting: false,+ enableHiding: false,+ },+ {+ id: "actions",+ cell: ({ row }) => <DataTableRowActions row={row} />,+ meta: {+ cellClassName: "w-8",+ },+ },+];diff --git a/apps/dashboard/src/components/data-table/status-pages/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/status-pages/data-table-row-actions.tsxnew file mode 100644index 000000000..71205a337--- /dev/null+++ b/apps/dashboard/src/components/data-table/status-pages/data-table-row-actions.tsx@@ -0,0 +1,53 @@+"use client";++import { QuickActions } from "@/components/dropdowns/quick-actions";+import { getActions } from "@/data/status-pages.client";+import { useTRPC } from "@/lib/trpc/client";+import type { RouterOutputs } from "@openstatus/api";+import { useMutation, useQueryClient } from "@tanstack/react-query";+import type { Row } from "@tanstack/react-table";+import { useRouter } from "next/navigation";+import { toast } from "sonner";++type StatusPage = RouterOutputs["page"]["list"][number];++interface DataTableRowActionsProps {+ row: Row<StatusPage>;+}++export function DataTableRowActions({ row }: DataTableRowActionsProps) {+ const router = useRouter();+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const deleteStatusPageMutation = useMutation(+ trpc.page.delete.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ },+ }),+ );+ const actions = getActions({+ edit: () => router.push(`/status-pages/${row.original.id}/edit`),+ "copy-id": () => {+ navigator.clipboard.writeText("ID");+ toast.success("Monitor ID copied to clipboard");+ },+ });++ return (+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Status Page",+ confirmationValue: "delete status page",+ submitAction: async () => {+ await deleteStatusPageMutation.mutateAsync({+ id: row.original.id,+ });+ },+ }}+ />+ );+}diff --git a/apps/dashboard/src/components/data-table/status-report-updates/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/status-report-updates/data-table-row-actions.tsxnew file mode 100644index 000000000..1ba029261--- /dev/null+++ b/apps/dashboard/src/components/data-table/status-report-updates/data-table-row-actions.tsx@@ -0,0 +1,88 @@+"use client";++import { QuickActions } from "@/components/dropdowns/quick-actions";+import { FormSheetStatusReportUpdate } from "@/components/forms/status-report-update/sheet";+import { getActions } from "@/data/status-report-updates.client";+import { useTRPC } from "@/lib/trpc/client";+import type { RouterOutputs } from "@openstatus/api";+import { useMutation, useQueryClient } from "@tanstack/react-query";+import { useParams } from "next/navigation";+import { useRef } from "react";++type StatusReportUpdate =+ RouterOutputs["statusReport"]["list"][number]["updates"][number];++interface DataTableRowActionsProps {+ row: StatusReportUpdate;+}++export function DataTableRowActions({ row }: DataTableRowActionsProps) {+ const buttonRef = useRef<HTMLButtonElement>(null);+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const updateStatusReportUpdateMutation = useMutation(+ trpc.statusReport.updateStatusReportUpdate.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.statusReport.list.queryKey({+ pageId: Number.parseInt(id),+ }),+ });+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ },+ }),+ );+ const deleteStatusReportUpdateMutation = useMutation(+ trpc.statusReport.deleteUpdate.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.statusReport.list.queryKey({+ pageId: Number.parseInt(id),+ }),+ });+ },+ }),+ );+ const actions = getActions({+ edit: () => buttonRef.current?.click(),+ });++ return (+ <>+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Delete",+ submitAction: async () => {+ await deleteStatusReportUpdateMutation.mutateAsync({+ id: row.id,+ });+ },+ }}+ />+ <FormSheetStatusReportUpdate+ defaultValues={{+ message: row.message,+ date: row.date,+ status: row.status,+ }}+ onSubmit={async (values) => {+ await updateStatusReportUpdateMutation.mutateAsync({+ id: row.id,+ statusReportId: row.statusReportId,+ message: values.message,+ status: values.status,+ date: values.date,+ });+ }}+ >+ <button ref={buttonRef} type="button" className="sr-only">+ Open sheet+ </button>+ </FormSheetStatusReportUpdate>+ </>+ );+}diff --git a/apps/dashboard/src/components/data-table/status-report-updates/data-table.tsx b/apps/dashboard/src/components/data-table/status-report-updates/data-table.tsxnew file mode 100644index 000000000..12a142581--- /dev/null+++ b/apps/dashboard/src/components/data-table/status-report-updates/data-table.tsx@@ -0,0 +1,130 @@+"use client";++import { ProcessMessage } from "@/components/content/process-message";+import { FormSheetStatusReportUpdate } from "@/components/forms/status-report-update/sheet";+import { Button } from "@/components/ui/button";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { icons } from "@/data/icons";+import { colors } from "@/data/status-report-updates.client";+import { useTRPC } from "@/lib/trpc/client";+import { cn } from "@/lib/utils";+import type { RouterOutputs } from "@openstatus/api";+import { useMutation, useQueryClient } from "@tanstack/react-query";+import { Plus } from "lucide-react";+import { useParams } from "next/navigation";+import { DataTableRowActions } from "./data-table-row-actions";++type StatusReportUpdates =+ RouterOutputs["statusReport"]["list"][number]["updates"];++export function DataTable({+ updates,+ reportId,+}: {+ updates: StatusReportUpdates;+ reportId: number;+}) {+ const trpc = useTRPC();+ const { id } = useParams<{ id: string }>();+ const queryClient = useQueryClient();+ const sendStatusReportUpdateMutation = useMutation(+ trpc.emailRouter.sendStatusReport.mutationOptions(),+ );+ const createStatusReportUpdateMutation = useMutation(+ trpc.statusReport.createStatusReportUpdate.mutationOptions({+ onSuccess: (update) => {+ // TODO: move to server+ if (update) {+ sendStatusReportUpdateMutation.mutateAsync({ id: update.id });+ }+ //+ queryClient.invalidateQueries({+ queryKey: trpc.statusReport.list.queryKey({+ pageId: Number.parseInt(id),+ }),+ });+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ },+ }),+ );++ return (+ <Table className="w-full">+ <TableHeader>+ <TableRow>+ <TableHead className="w-7">+ <span className="sr-only">Status</span>+ </TableHead>+ <TableHead>Message</TableHead>+ <TableHead>Date</TableHead>+ <TableHead className="w-[px]">+ <TooltipProvider>+ <Tooltip>+ <FormSheetStatusReportUpdate+ onSubmit={async (values) => {+ await createStatusReportUpdateMutation.mutateAsync({+ statusReportId: reportId,+ message: values.message,+ status: values.status,+ date: values.date,+ });+ }}+ >+ <TooltipTrigger asChild>+ <Button size="icon" className="ml-auto flex h-7 w-7 p-0">+ <Plus />+ <span className="sr-only">Create Report Update</span>+ </Button>+ </TooltipTrigger>+ </FormSheetStatusReportUpdate>+ <TooltipContent side="left" align="center">+ Create Report Update+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {updates.map((update) => {+ const Icon = icons.status[update.status];+ return (+ <TableRow key={update.id}>+ <TableCell>+ <div className="p-1">+ <Icon className={cn(colors[update.status])} size={20} />+ </div>+ </TableCell>+ <TableCell>+ <div className="text-wrap">+ <ProcessMessage value={update.message} />+ </div>+ </TableCell>+ <TableCell className="w-[170px] text-muted-foreground">+ {update.date.toLocaleString()}+ </TableCell>+ <TableCell className="w-8">+ <DataTableRowActions row={update} />+ </TableCell>+ </TableRow>+ );+ })}+ </TableBody>+ </Table>+ );+}diff --git a/apps/dashboard/src/components/data-table/status-reports/columns.tsx b/apps/dashboard/src/components/data-table/status-reports/columns.tsxnew file mode 100644index 000000000..bfa205db1--- /dev/null+++ b/apps/dashboard/src/components/data-table/status-reports/columns.tsx@@ -0,0 +1,123 @@+"use client";++import { TableCellBadge } from "@/components/data-table/table-cell-badge";+import { TableCellDate } from "@/components/data-table/table-cell-date";+import { TableCellNumber } from "@/components/data-table/table-cell-number";+import { Button } from "@/components/ui/button";+import { DataTableColumnHeader } from "@/components/ui/data-table/data-table-column-header";+import { colors } from "@/data/status-report-updates.client";+import { cn } from "@/lib/utils";+import type { ColumnDef } from "@tanstack/react-table";+import { ChevronDown, ChevronUp } from "lucide-react";+import { DataTableRowActions } from "./data-table-row-actions";++import type { RouterOutputs } from "@openstatus/api";++type StatusReport = RouterOutputs["statusReport"]["list"][number];++export const columns: ColumnDef<StatusReport>[] = [+ {+ id: "expander",+ header: () => null,+ cell: ({ row }) => {+ return row.getCanExpand() ? (+ <Button+ {...{+ className: "size-7 shadow-none text-muted-foreground",+ onClick: (e) => {+ e.stopPropagation();+ row.toggleExpanded();+ },+ "aria-expanded": row.getIsExpanded(),+ "aria-label": row.getIsExpanded()+ ? `Collapse details for ${row.original.title}`+ : `Expand details for ${row.original.title}`,+ size: "icon",+ variant: "ghost",+ }}+ >+ {row.getIsExpanded() ? (+ <ChevronUp className="opacity-60" size={16} aria-hidden="true" />+ ) : (+ <ChevronDown className="opacity-60" size={16} aria-hidden="true" />+ )}+ </Button>+ ) : undefined;+ },+ meta: {+ headerClassName: "w-7",+ },+ },+ {+ accessorKey: "title",+ header: "Title",+ enableSorting: false,+ enableHiding: false,+ },+ {+ accessorKey: "status",+ header: "Current Status",+ cell: ({ row }) => {+ const value = String(row.getValue("status"));+ return (+ <div+ className={cn(+ "font-mono capitalize",+ colors[value as keyof typeof colors],+ )}+ >+ {value}+ </div>+ );+ },+ enableSorting: false,+ enableHiding: false,+ },+ {+ id: "updates",+ accessorFn: (row) => row.updates.length,+ header: "Total Updates",+ cell: ({ row }) => {+ const value = row.getValue("updates");+ return <TableCellNumber value={value} />;+ },+ },+ {+ id: "monitors",+ accessorFn: (row) => row.monitors,+ header: "Affected",+ cell: ({ row }) => {+ const value = row.getValue("monitors");+ if (Array.isArray(value) && value.length > 0 && "name" in value[0]) {+ return (+ <div className="flex flex-wrap gap-1">+ {value.map((m) => (+ <TableCellBadge key={m.id} value={m.name} />+ ))}+ </div>+ );+ }+ return <div className="text-muted-foreground">-</div>;+ },+ },+ {+ id: "startedAt",+ accessorFn: (row) =>+ row.updates.sort((a, b) => a.date.getTime() - b.date.getTime())[0]?.date,+ header: ({ column }) => (+ <DataTableColumnHeader column={column} title="Started At" />+ ),+ cell: ({ row }) => <TableCellDate value={row.getValue("startedAt")} />,+ enableHiding: false,+ meta: {+ cellClassName: "w-[170px]",+ },+ },+ {+ id: "actions",+ cell: ({ row }) => <DataTableRowActions row={row} />,+ meta: {+ cellClassName: "w-8",+ },+ },+];diff --git a/apps/dashboard/src/components/data-table/status-reports/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/status-reports/data-table-row-actions.tsxnew file mode 100644index 000000000..3b7bad095--- /dev/null+++ b/apps/dashboard/src/components/data-table/status-reports/data-table-row-actions.tsx@@ -0,0 +1,141 @@+"use client";++import { QuickActions } from "@/components/dropdowns/quick-actions";+import { FormSheetStatusReportUpdate } from "@/components/forms/status-report-update/sheet";+import { FormSheetStatusReport } from "@/components/forms/status-report/sheet";+import { getActions } from "@/data/status-reports.client";+import { useTRPC } from "@/lib/trpc/client";+import type { RouterOutputs } from "@openstatus/api";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import type { Row } from "@tanstack/react-table";+import { useParams } from "next/navigation";+import { useRef } from "react";++type StatusReport = RouterOutputs["statusReport"]["list"][number];++interface DataTableRowActionsProps {+ row: Row<StatusReport>;+}++export function DataTableRowActions({ row }: DataTableRowActionsProps) {+ const buttonCreateRef = useRef<HTMLButtonElement>(null);+ const buttonUpdateRef = useRef<HTMLButtonElement>(null);+ const actions = getActions({+ "create-update": () => buttonCreateRef.current?.click(),+ edit: () => buttonUpdateRef.current?.click(),+ "view-report": () => {+ if (typeof window !== "undefined") {+ window.open(+ `https://${row.original.page.customDomain || `${row.original.page.slug}.openstatus.dev/events/report/${row.original.id}`}`,+ "_blank",+ );+ }+ },+ });+ const trpc = useTRPC();+ const queryClient = useQueryClient();+ const { id } = useParams<{ id: string }>();+ const { data: monitors } = useQuery(trpc.monitor.list.queryOptions());+ const sendStatusReportUpdateMutation = useMutation(+ trpc.emailRouter.sendStatusReport.mutationOptions(),+ );+ const updateStatusReportMutation = useMutation(+ trpc.statusReport.updateStatus.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.statusReport.list.queryKey({+ pageId: Number.parseInt(id),+ }),+ });+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ },+ }),+ );+ const createStatusReportUpdateMutation = useMutation(+ trpc.statusReport.createStatusReportUpdate.mutationOptions({+ onSuccess: (update) => {+ // TODO: move to server+ if (update) {+ sendStatusReportUpdateMutation.mutateAsync({ id: update.id });+ }+ //+ queryClient.invalidateQueries({+ queryKey: trpc.statusReport.list.queryKey({+ pageId: Number.parseInt(id),+ }),+ });+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ },+ }),+ );+ const deleteStatusReportMutation = useMutation(+ trpc.statusReport.delete.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.statusReport.list.queryKey({+ pageId: Number.parseInt(id),+ }),+ });+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ },+ }),+ );++ if (!monitors) return null;++ return (+ <>+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Delete",+ submitAction: async () => {+ await deleteStatusReportMutation.mutateAsync({+ id: row.original.id,+ });+ },+ }}+ />+ <FormSheetStatusReport+ monitors={monitors}+ defaultValues={{+ title: row.original.title,+ status: row.original.status,+ monitors: row.original.monitors.map((m) => m.id),+ }}+ onSubmit={async (values) => {+ await updateStatusReportMutation.mutateAsync({+ id: row.original.id,+ monitors: values.monitors,+ title: values.title,+ status: values.status,+ });+ }}+ >+ <button ref={buttonUpdateRef} type="button" className="sr-only">+ Open sheet+ </button>+ </FormSheetStatusReport>+ <FormSheetStatusReportUpdate+ onSubmit={async (values) => {+ await createStatusReportUpdateMutation.mutateAsync({+ statusReportId: row.original.id,+ message: values.message,+ status: values.status,+ date: values.date,+ });+ }}+ >+ <button ref={buttonCreateRef} type="button" className="sr-only">+ Open sheet+ </button>+ </FormSheetStatusReportUpdate>+ </>+ );+}diff --git a/apps/dashboard/src/components/data-table/subscribers/columns.tsx b/apps/dashboard/src/components/data-table/subscribers/columns.tsxnew file mode 100644index 000000000..c9d09fdcf--- /dev/null+++ b/apps/dashboard/src/components/data-table/subscribers/columns.tsx@@ -0,0 +1,54 @@+"use client";++import { formatDate } from "@/lib/formatter";+import type { RouterOutputs } from "@openstatus/api";+import type { ColumnDef } from "@tanstack/react-table";+import { DataTableRowActions } from "./data-table-row-actions";++type Subscriber = RouterOutputs["pageSubscriber"]["list"][number];++export const columns: ColumnDef<Subscriber>[] = [+ {+ accessorKey: "email",+ header: "Email",+ enableSorting: false,+ enableHiding: false,+ },+ {+ accessorKey: "createdAt",+ header: "Created At",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const value = row.getValue("createdAt");+ if (value instanceof Date) return formatDate(value);+ if (!value) return "-";+ return value;+ },+ meta: {+ cellClassName: "font-mono",+ },+ },+ {+ accessorKey: "acceptedAt",+ header: "Accepted At",+ enableSorting: false,+ enableHiding: false,+ cell: ({ row }) => {+ const value = row.getValue("acceptedAt");+ if (value instanceof Date) return formatDate(value);+ if (!value) return "-";+ return value;+ },+ meta: {+ cellClassName: "font-mono",+ },+ },+ {+ id: "actions",+ cell: ({ row }) => <DataTableRowActions row={row} />,+ meta: {+ cellClassName: "w-8",+ },+ },+];diff --git a/apps/dashboard/src/components/data-table/subscribers/data-table-row-actions.tsx b/apps/dashboard/src/components/data-table/subscribers/data-table-row-actions.tsxnew file mode 100644index 000000000..592ab34a8--- /dev/null+++ b/apps/dashboard/src/components/data-table/subscribers/data-table-row-actions.tsx@@ -0,0 +1,43 @@+"use client";++import { QuickActions } from "@/components/dropdowns/quick-actions";+import { useTRPC } from "@/lib/trpc/client";+import type { RouterOutputs } from "@openstatus/api";+import { useMutation, useQuery } from "@tanstack/react-query";+import type { Row } from "@tanstack/react-table";++type Subscriber = RouterOutputs["pageSubscriber"]["list"][number];++interface DataTableRowActionsProps {+ row: Row<Subscriber>;+}++export function DataTableRowActions({ row }: DataTableRowActionsProps) {+ const trpc = useTRPC();+ const { refetch } = useQuery(+ trpc.pageSubscriber.list.queryOptions({+ pageId: row.original.pageId,+ }),+ );++ const deleteAction = useMutation(+ trpc.pageSubscriber.delete.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ return (+ <QuickActions+ actions={[]}+ deleteAction={{+ title: "Subscribers",+ submitAction: async () => {+ await deleteAction.mutateAsync({+ id: row.original.id,+ pageId: row.original.pageId,+ });+ },+ }}+ />+ );+}diff --git a/apps/dashboard/src/components/data-table/table-cell-badge.tsx b/apps/dashboard/src/components/data-table/table-cell-badge.tsxnew file mode 100644index 000000000..f28d7fa93--- /dev/null+++ b/apps/dashboard/src/components/data-table/table-cell-badge.tsx@@ -0,0 +1,59 @@+import { cn } from "@/lib/utils";+import { useEffect, useRef, useState } from "react";+import { Badge } from "../ui/badge";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "../ui/tooltip";++export function TableCellBadge({+ value,+ className,+ ...props+}: React.ComponentProps<typeof Badge> & { value: unknown }) {+ const ref = useRef<HTMLSpanElement>(null);+ const [isTruncated, setIsTruncated] = useState(false);+ const [open, setOpen] = useState(false);++ // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>+ useEffect(() => {+ if (ref.current) {+ setIsTruncated(ref.current.scrollWidth > ref.current.clientWidth);+ }+ }, [ref]);++ return (+ <Badge+ variant="outline"+ className={cn(+ "max-w-16 truncate font-mono",+ value ? "text-foreground" : "text-foreground/70",+ className,+ )}+ {...props}+ >+ <TooltipProvider>+ {isTruncated ? (+ <Tooltip open={open} onOpenChange={setOpen}>+ <TooltipTrigger+ onClick={(event) => event.preventDefault()}+ onPointerDown={(event) => event.preventDefault()}+ asChild+ >+ <span ref={ref} className="block truncate">+ {String(value)}+ </span>+ </TooltipTrigger>+ <TooltipContent>{String(value)}</TooltipContent>+ </Tooltip>+ ) : (+ <span ref={ref} className="truncate">+ {String(value)}+ </span>+ )}+ </TooltipProvider>+ </Badge>+ );+}diff --git a/apps/dashboard/src/components/data-table/table-cell-boolean.tsx b/apps/dashboard/src/components/data-table/table-cell-boolean.tsxnew file mode 100644index 000000000..97b728665--- /dev/null+++ b/apps/dashboard/src/components/data-table/table-cell-boolean.tsx@@ -0,0 +1,22 @@+import { cn } from "@/lib/utils";++export function TableCellBoolean({+ value,+ className,+ ...props+}: React.ComponentProps<"div"> & { value: unknown }) {+ const _value = Boolean(value);++ return (+ <div+ className={cn(+ "font-mono",+ _value ? "text-foreground" : "text-foreground/70",+ className,+ )}+ {...props}+ >+ {String(_value)}+ </div>+ );+}diff --git a/apps/dashboard/src/components/data-table/table-cell-date.tsx b/apps/dashboard/src/components/data-table/table-cell-date.tsxnew file mode 100644index 000000000..e53914206--- /dev/null+++ b/apps/dashboard/src/components/data-table/table-cell-date.tsx@@ -0,0 +1,29 @@+import { cn } from "@/lib/utils";+import { format } from "date-fns";++export function TableCellDate({+ value,+ className,+ formatStr = "LLL dd, y HH:mm:ss",+ ...props+}: React.ComponentProps<"div"> & { value: unknown; formatStr?: string }) {+ if (value instanceof Date) {+ return (+ <div className={cn("text-muted-foreground", className)} {...props}>+ {format(value, formatStr)}+ </div>+ );+ }+ if (typeof value === "string") {+ return (+ <div className={cn("text-muted-foreground", className)} {...props}>+ {value}+ </div>+ );+ }+ return (+ <div className={cn("text-muted-foreground", className)} {...props}>+ -+ </div>+ );+}diff --git a/apps/dashboard/src/components/data-table/table-cell-link.tsx b/apps/dashboard/src/components/data-table/table-cell-link.tsxnew file mode 100644index 000000000..0f3bbc7de--- /dev/null+++ b/apps/dashboard/src/components/data-table/table-cell-link.tsx@@ -0,0 +1,33 @@+import { Link } from "@/components/common/link";+import { cn } from "@/lib/utils";+import { ArrowUpRight, ChevronRight } from "lucide-react";++export function TableCellLink({+ value,+ className,+ ...props+}: React.ComponentProps<typeof Link> & {+ value: unknown;+}) {+ if (typeof value === "string") {+ const isExternal = props.href?.toString().startsWith("http");+ const externalProps = isExternal+ ? { target: "_blank", rel: "noopener noreferrer" }+ : {};+ const Icon = isExternal ? ArrowUpRight : ChevronRight;+ return (+ <Link+ className={cn(+ "group/link flex w-full items-center justify-between gap-2 hover:underline",+ className,+ )}+ {...externalProps}+ {...props}+ >+ <span className="truncate">{value}</span>+ <Icon className="size-4 flex-shrink-0 text-muted-foreground group-hover/link:text-foreground" />+ </Link>+ );+ }+ return <div className="text-muted-foreground">-</div>;+}diff --git a/apps/dashboard/src/components/data-table/table-cell-number.tsx b/apps/dashboard/src/components/data-table/table-cell-number.tsxnew file mode 100644index 000000000..bf1b96138--- /dev/null+++ b/apps/dashboard/src/components/data-table/table-cell-number.tsx@@ -0,0 +1,20 @@+import { cn } from "@/lib/utils";++export function TableCellNumber({+ value,+ className,+ unit,+ ...props+}: React.ComponentProps<"div"> & { value: unknown; unit?: string }) {+ const _value = Number(value);+ if (Number.isNaN(_value)) {+ return <div className="font-mono text-muted-foreground">N/A</div>;+ }++ return (+ <div className={cn("font-mono text-foreground", className)} {...props}>+ {_value}+ {unit && <span className="p-0.5 text-muted-foreground">{unit}</span>}+ </div>+ );+}diff --git a/apps/dashboard/src/components/data-table/table-cell-unavailable.tsx b/apps/dashboard/src/components/data-table/table-cell-unavailable.tsxnew file mode 100644index 000000000..7c3cd7c87--- /dev/null+++ b/apps/dashboard/src/components/data-table/table-cell-unavailable.tsx@@ -0,0 +1,12 @@+import { cn } from "@/lib/utils";++export function TableCellUnavailable({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div className={cn("text-muted-foreground", className)} {...props}>+ N/A+ </div>+ );+}diff --git a/apps/dashboard/src/components/date-picker.tsx b/apps/dashboard/src/components/date-picker.tsxnew file mode 100644index 000000000..ecbe3fd16--- /dev/null+++ b/apps/dashboard/src/components/date-picker.tsx@@ -0,0 +1,128 @@+"use client";++import { useState } from "react";+import type { DateRange } from "react-day-picker";++import { Kbd } from "@/components/common/kbd";+import { Button } from "@/components/ui/button";+import { Calendar } from "@/components/ui/calendar";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { Separator } from "@/components/ui/separator";+import { formatDateForInput } from "@/lib/formatter";+import { endOfDay } from "date-fns";++type DatePickerProps = {+ range: DateRange;+ onSelect: (range: DateRange) => void;+ presets: { id: string; label: string; values: DateRange; shortcut: string }[];+};++export function DatePicker({ range, onSelect, presets }: DatePickerProps) {+ const [today] = useState(new Date());+ const disableBefore = presets[presets.length - 1]?.values?.from;++ return (+ <div>+ <div className="flex flex-row">+ <div className="relative py-4">+ <div className="h-full">+ <div className="flex flex-col px-1">+ <div className="px-3 py-1 font-medium text-muted-foreground text-xs">+ Presets+ </div>+ {presets.map((preset) => {+ const isSelected =+ range.from?.getTime() === preset.values.from?.getTime() &&+ range.to?.getTime() === preset.values.to?.getTime();++ return (+ <Button+ key={preset.id}+ variant={isSelected ? "outline" : "ghost"}+ size="sm"+ className="w-full justify-between border border-transparent"+ onClick={() => {+ onSelect(preset.values);+ }}+ >+ <span>{preset.label}</span>+ <Kbd className="font-mono uppercase">{preset.shortcut}</Kbd>+ </Button>+ );+ })}+ </div>+ </div>+ </div>+ <Separator orientation="vertical" className="h-auto! w-px" />+ <div className="flex flex-1 items-center justify-center">+ <Calendar+ mode="range"+ selected={range}+ onSelect={(newDate) => {+ if (newDate) {+ onSelect({+ ...newDate,+ to: newDate.to ? endOfDay(newDate.to) : undefined,+ });+ }+ }}+ className="p-2"+ disabled={[+ { after: today }, // Dates before today+ { before: disableBefore ?? today }, // Dates before last action+ ]}+ />+ </div>+ </div>+ <Separator />+ <div className="flex flex-col gap-2 px-3 py-4">+ <p className="px-1 font-medium text-muted-foreground text-xs">+ Custom Range+ </p>+ <div className="grid gap-2 sm:grid-cols-2">+ <div className="grid w-full gap-1.5">+ <Label htmlFor="from" className="px-1">+ Start+ </Label>+ <Input+ type="datetime-local"+ id="from"+ name="from"+ min={formatDateForInput(disableBefore ?? today)}+ max={formatDateForInput(today)}+ value={range.from ? formatDateForInput(range.from) : ""}+ onChange={(e) => {+ const newDate = new Date(e.target.value);+ if (!Number.isNaN(newDate.getTime())) {+ onSelect({ ...range, from: newDate });+ }+ }}+ disabled={!range.from}+ />+ </div>+ <div className="grid w-full gap-1.5">+ <Label htmlFor="to" className="px-1">+ End+ </Label>+ <Input+ type="datetime-local"+ id="to"+ name="to"+ min={formatDateForInput(range.from ?? today)}+ max={formatDateForInput(today)}+ value={range.to ? formatDateForInput(range.to) : ""}+ onChange={(e) => {+ const newDate = new Date(e.target.value);+ if (!Number.isNaN(newDate.getTime())) {+ onSelect({ ...range, to: newDate });+ }+ }}+ disabled={!range.to}+ />+ </div>+ </div>+ </div>+ </div>+ );+}diff --git a/apps/dashboard/src/components/development-indicator.tsx b/apps/dashboard/src/components/development-indicator.tsxnew file mode 100644index 000000000..c18acce86--- /dev/null+++ b/apps/dashboard/src/components/development-indicator.tsx@@ -0,0 +1,49 @@+"use client";++import { useIsMobile } from "@/hooks/use-mobile";+import * as Portal from "@radix-ui/react-portal";+import { Kbd } from "./common/kbd";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "./ui/tooltip";++export function DevelopmentIndicator() {+ const isMobile = useIsMobile();++ if (process.env.NODE_ENV !== "production") return null;++ return (+ <Portal.Root>+ <div className="pointer-events-none fixed inset-0 z-[9999] border-2 border-destructive" />+ <div className="fixed inset-x-0 bottom-0 z-[9999] select-none">+ <div className="flex items-center justify-center">+ <TooltipProvider delayDuration={0}>+ <Tooltip>+ <TooltipTrigger>+ <div className="w-fit rounded-t bg-destructive px-2 py-1 font-mono text-background text-xs">+ In Beta+ </div>+ </TooltipTrigger>+ <TooltipContent side="top">+ {!isMobile ? (+ <p>+ Press{" "}+ <Kbd variant="secondary" className="-me-0 ms-0">+ F+ </Kbd>{" "}+ key to provide feedback.+ </p>+ ) : (+ <p>Use a larger screen to provide feedback.</p>+ )}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ </div>+ </Portal.Root>+ );+}diff --git a/apps/dashboard/src/components/dialogs/export-code.tsx b/apps/dashboard/src/components/dialogs/export-code.tsxnew file mode 100644index 000000000..8287d4095--- /dev/null+++ b/apps/dashboard/src/components/dialogs/export-code.tsx@@ -0,0 +1,83 @@+import { Link } from "@/components/common/link";+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";+import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";+import type { DialogProps } from "@radix-ui/react-dialog";+import { Check, Copy } from "lucide-react";++// TODL: make it dynamic+const YML = `openstatus-marketing:+ name: OpenStatus Marketing+ description: Marketing website for OpenStatus+ active: true+ public: false+ frequency: "10m"+ regions: ["ams", "fra", "gru", "hkg", "iad"]+ kind: "http"+ request:+ url: https://api.openstatus.dev+ method: GET`;++export function ExportCodeDialog(props: DialogProps) {+ const { copy, isCopied } = useCopyToClipboard();++ return (+ <Dialog {...props}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>Export Configuration</DialogTitle>+ <DialogDescription>+ Export and manage your monitor configuration using Infra as Code.+ </DialogDescription>+ </DialogHeader>+ <Tabs defaultValue="yml">+ <TabsList>+ <TabsTrigger value="yml">YAML</TabsTrigger>+ <TabsTrigger value="terraform">Terraform</TabsTrigger>+ </TabsList>+ <TabsContent value="yml" className="space-y-2">+ <pre className="relative rounded border bg-muted p-2 text-xs">+ {YML}+ <Button+ variant="outline"+ size="icon"+ className="absolute top-2 right-2 size-7 p-1"+ onClick={() => copy(YML, { withToast: false, timeout: 1000 })}+ >+ {isCopied ? (+ <Check className="size-3" />+ ) : (+ <Copy className="size-3" />+ )}+ </Button>+ </pre>+ <p className="text-muted-foreground text-xs">+ Use a <code>monitor.openstatus.yml</code> file to configure your+ monitors. <Link href="#">Read more.</Link>+ </p>+ </TabsContent>+ <TabsContent value="terraform" className="space-y-2">+ <pre className="relative rounded border bg-muted p-2 text-xs">+ TODO:+ </pre>+ {/* TODO: only showcase if there are any assertions */}+ <p className="text-destructive text-xs">+ The Terraform provider does not support assertions yet.+ </p>+ <p className="text-muted-foreground text-xs">+ Use a Terraform provider to manage your monitors.{" "}+ <Link href="#">Read more.</Link>+ </p>+ </TabsContent>+ </Tabs>+ </DialogContent>+ </Dialog>+ );+}diff --git a/apps/dashboard/src/components/dialogs/upgrade.tsx b/apps/dashboard/src/components/dialogs/upgrade.tsxnew file mode 100644index 000000000..49ca77acb--- /dev/null+++ b/apps/dashboard/src/components/dialogs/upgrade.tsx@@ -0,0 +1,62 @@+import { Note, NoteButton } from "@/components/common/note";+import { DataTable } from "@/components/data-table/billing/data-table";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { useTRPC } from "@/lib/trpc/client";+import type { WorkspacePlan } from "@openstatus/db/src/schema";+import type { DialogProps } from "@radix-ui/react-dialog";+import { useQuery } from "@tanstack/react-query";+import { CalendarClock } from "lucide-react";++const PLANS = {+ free: ["starter", "team"],+ starter: ["team"],+ team: [],+} satisfies Record<WorkspacePlan, WorkspacePlan[]>;++export function UpgradeDialog(props: DialogProps) {+ const trpc = useTRPC();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());++ if (!workspace) return null;++ const restrictTo = PLANS[workspace.plan];++ return (+ <Dialog {...props}>+ <DialogContent className="max-h-[80vh] overflow-y-auto">+ <DialogHeader>+ <DialogTitle>Upgrade Workspace</DialogTitle>+ <DialogDescription>+ Upgrade your workspace to support more monitors, status pages,+ regions, and much more.+ </DialogDescription>+ </DialogHeader>+ {restrictTo.length === 0 ? (+ <Note>+ <CalendarClock />+ You're already on our highest plan. Let's chat about your+ needs.+ <NoteButton variant="outline" asChild>+ <a+ href="https://openstatus.dev/cal"+ target="_blank"+ rel="noreferrer"+ className="text-nowrap"+ >+ Book a call+ </a>+ </NoteButton>+ </Note>+ ) : (+ <DataTable restrictTo={restrictTo} />+ )}+ </DialogContent>+ </Dialog>+ );+}diff --git a/apps/dashboard/src/components/domains/domain-configuration.tsx b/apps/dashboard/src/components/domains/domain-configuration.tsxnew file mode 100644index 000000000..385b5d314--- /dev/null+++ b/apps/dashboard/src/components/domains/domain-configuration.tsx@@ -0,0 +1,174 @@+"use client";++import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";+import { cn } from "@/lib/utils";++import { Note } from "@/components/common/note";+import { getSubdomain } from "@/lib/domains";+import { CircleCheck } from "lucide-react";+import DomainStatusIcon from "./domain-status-icon";+import { useDomainStatus } from "./use-domain-status";++export const InlineSnippet = ({+ className,+ children,+}: {+ className?: string;+ children?: string;+}) => {+ return (+ <span+ className={cn(+ "inline-block rounded-md bg-muted px-1 py-0.5 font-mono",+ className,+ )}+ >+ {children}+ </span>+ );+};++// FIXME: add loading state!+export default function DomainConfiguration({ domain }: { domain: string }) {+ const { status, domainJson } = useDomainStatus(domain);++ if (!status || !domainJson) return null;++ if (status === "Valid Configuration")+ return (+ <Note color="success">+ <CircleCheck />+ Your domain is configured and you can use it to access your status page.+ </Note>+ );++ const subdomain =+ domainJson?.name && domainJson?.apexName+ ? getSubdomain(domainJson.name, domainJson.apexName)+ : null;++ const txtVerification =+ (status === "Pending Verification" &&+ domainJson?.verification?.find((x) => x.type === "TXT")) ||+ null;++ return (+ <div>+ <div className="mb-4 flex items-center space-x-2">+ <DomainStatusIcon status={status} />+ <p className="font-semibold">{status}</p>+ </div>+ {txtVerification ? (+ <>+ <p className="text-sm">+ Please set the following TXT record on{" "}+ <InlineSnippet>{domainJson.apexName}</InlineSnippet> to prove+ ownership of <InlineSnippet>{domainJson.name}</InlineSnippet>:+ </p>+ <div className="my-5 flex items-start justify-start space-x-10 rounded-md bg-muted p-2">+ <div>+ <p className="font-bold text-sm">Type</p>+ <p className="mt-2 font-mono text-sm">{txtVerification.type}</p>+ </div>+ <div>+ <p className="font-bold text-sm">Name</p>+ <p className="mt-2 font-mono text-sm">+ {txtVerification.domain.slice(+ 0,+ txtVerification.domain.length -+ (domainJson?.apexName?.length || 0) -+ 1,+ )}+ </p>+ </div>+ <div>+ <p className="font-bold text-sm">Value</p>+ <p className="mt-2 font-mono text-sm">+ <span className="text-ellipsis">{txtVerification.value}</span>+ </p>+ </div>+ </div>+ <p className="text-muted-foreground text-sm">+ Warning: if you are using this domain for another site, setting this+ TXT record will transfer domain ownership away from that site and+ break it. Please exercise caution when setting this record.+ </p>+ </>+ ) : status === "Unknown Error" ? (+ <p className="mb-5 text-sm">{domainJson?.error?.message}</p>+ ) : (+ <>+ <Tabs defaultValue={subdomain ? "CNAME" : "A"}>+ <TabsList>+ <TabsTrigger value="A">+ A Record{!subdomain && " (recommended)"}+ </TabsTrigger>+ <TabsTrigger value="CNAME">+ CNAME Record{subdomain && " (recommended)"}+ </TabsTrigger>+ </TabsList>+ <TabsContent value="A">+ <div className="my-3 text-left">+ <p className="my-5 text-sm">+ To configure your apex domain (+ <InlineSnippet>{domainJson.apexName}</InlineSnippet>+ ), set the following A record on your DNS provider to+ continue:+ </p>+ <div className="flex items-center justify-start space-x-10 rounded-md bg-muted p-2">+ <div>+ <p className="font-bold text-sm">Type</p>+ <p className="mt-2 font-mono text-sm">A</p>+ </div>+ <div>+ <p className="font-bold text-sm">Name</p>+ <p className="mt-2 font-mono text-sm">@</p>+ </div>+ <div>+ <p className="font-bold text-sm">Value</p>+ <p className="mt-2 font-mono text-sm">76.76.21.21</p>+ </div>+ <div>+ <p className="font-bold text-sm">TTL</p>+ <p className="mt-2 font-mono text-sm">86400</p>+ </div>+ </div>+ </div>+ <div>+ <p className="font-bold text-sm">Value</p>+ <p className="mt-2 font-mono text-sm">cname.vercel-dns.com</p>+ <div className="flex items-center justify-start space-x-10 rounded-md bg-muted p-2">+ <div>+ <p className="font-bold text-sm">Type</p>+ <p className="mt-2 font-mono text-sm">CNAME</p>+ </div>+ <div>+ <p className="font-bold text-sm">Name</p>+ <p className="mt-2 font-mono text-sm">+ {subdomain ?? "www"}+ </p>+ </div>+ <div>+ <p className="font-bold text-sm">Value</p>+ <p className="mt-2 font-mono text-sm">+ {"cname.vercel-dns.com"}+ </p>+ </div>+ <div>+ <p className="font-bold text-sm">TTL</p>+ <p className="mt-2 font-mono text-sm">86400</p>+ </div>+ </div>+ </div>+ </TabsContent>+ </Tabs>+ <p className="muted-foreground mt-5 text-sm">+ Note: for TTL, if <InlineSnippet>86400</InlineSnippet> is not+ available, set the highest value possible. Also, domain propagation+ can take up to an hour.+ </p>+ </>+ )}+ </div>+ );+}diff --git a/apps/dashboard/src/components/domains/domain-status-icon.tsx b/apps/dashboard/src/components/domains/domain-status-icon.tsxnew file mode 100644index 000000000..3de439ca5--- /dev/null+++ b/apps/dashboard/src/components/domains/domain-status-icon.tsx@@ -0,0 +1,31 @@+"use client";++import { AlertCircle, CheckCircle2, LoaderCircle, XCircle } from "lucide-react";++import type { DomainVerificationStatusProps } from "@openstatus/api/src/router/domain";++export default function DomainStatusIcon({+ status,+ loading,+}: {+ status: DomainVerificationStatusProps;+ loading?: boolean;+}) {+ return loading ? (+ <LoaderCircle className="text-background" stroke="currentColor" />+ ) : status === "Valid Configuration" ? (+ <CheckCircle2+ fill="#22c55e"+ stroke="currentColor"+ className="text-background"+ />+ ) : status === "Pending Verification" ? (+ <AlertCircle+ fill="#eab308"+ stroke="currentColor"+ className="text-background"+ />+ ) : (+ <XCircle fill="#ef4444" stroke="currentColor" className="text-background" />+ );+}diff --git a/apps/dashboard/src/components/domains/use-domain-status.ts b/apps/dashboard/src/components/domains/use-domain-status.tsnew file mode 100644index 000000000..a5dc9a741--- /dev/null+++ b/apps/dashboard/src/components/domains/use-domain-status.ts@@ -0,0 +1,59 @@+import type { DomainVerificationStatusProps } from "@openstatus/api/src/router/domain";++import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { useEffect } from "react";++export function useDomainStatus(domain: string) {+ const trpc = useTRPC();+ const { data: domainJson, refetch: refetchDomain } = useQuery(+ trpc.domain.getDomainResponse.queryOptions({ domain }),+ );+ const { data: configJson, refetch: refetchConfig } = useQuery(+ trpc.domain.getConfigResponse.queryOptions({ domain }),+ );+ const { data: verificationJson, refetch: refetchVerification } = useQuery(+ trpc.domain.verifyDomain.queryOptions(+ { domain },+ { enabled: !domainJson?.verified },+ ),+ );++ // NOTE: refetch every 5 seconds to check for the status+ useEffect(() => {+ const interval = setInterval(() => {+ refetchDomain();+ refetchConfig();+ refetchVerification();+ }, 5000);+ return () => clearInterval(interval);+ }, [refetchDomain, refetchConfig, refetchVerification]);++ let status: DomainVerificationStatusProps = "Valid Configuration";++ if (domainJson?.error?.code === "not_found") {+ // domain not found on Vercel project+ status = "Domain Not Found";++ // unknown error+ } else if (domainJson?.error) {+ status = "Unknown Error";++ // if domain is not verified, we try to verify now+ } else if (!domainJson?.verified) {+ status = "Pending Verification";++ // domain was just verified+ if (verificationJson?.verified) {+ status = "Valid Configuration";+ }+ } else if (configJson?.misconfigured) {+ status = "Invalid Configuration";+ } else {+ status = "Valid Configuration";+ }+ return {+ status,+ domainJson,+ };+}diff --git a/apps/dashboard/src/components/dropdowns/quick-actions.tsx b/apps/dashboard/src/components/dropdowns/quick-actions.tsxnew file mode 100644index 000000000..691e94334--- /dev/null+++ b/apps/dashboard/src/components/dropdowns/quick-actions.tsx@@ -0,0 +1,193 @@+"use client";++import type * as React from "react";+import { useState, useTransition } from "react";++import { type LucideIcon, MoreHorizontal, Trash2 } from "lucide-react";++import {+ AlertDialog,+ AlertDialogAction,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+ AlertDialogTrigger,+} from "@/components/ui/alert-dialog";+import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { Input } from "@/components/ui/input";+import type { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";+import { isTRPCClientError } from "@trpc/client";+import { toast } from "sonner";++interface QuickActionsProps extends React.ComponentProps<typeof Button> {+ align?: DropdownMenuContentProps["align"];+ side?: DropdownMenuContentProps["side"];+ actions?: {+ id: string;+ label: string;+ icon: LucideIcon;+ variant: "default" | "destructive";+ onClick?: () => Promise<void> | void;+ }[];+ deleteAction?: {+ title: string;+ /**+ * If set, an input field will require the user input to validate deletion+ */+ confirmationValue?: string;+ submitAction?: () => Promise<void>;+ };+}++export function QuickActions({+ align = "end",+ side,+ className,+ actions,+ deleteAction,+ children,+ ...props+}: QuickActionsProps) {+ const [value, setValue] = useState("");+ const [isPending, startTransition] = useTransition();+ const [open, setOpen] = useState(false);++ const handleDelete = async () => {+ startTransition(async () => {+ if (!deleteAction?.submitAction) return;+ const promise = deleteAction.submitAction();+ toast.promise(promise, {+ loading: "Deleting...",+ success: "Deleted",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to delete";+ },+ });+ try {+ await promise;+ } catch (error) {+ console.error("Failed to delete:", error);+ } finally {+ setOpen(false);+ }+ });+ };++ return (+ <AlertDialog open={open} onOpenChange={setOpen}>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ {children ?? (+ <Button+ variant="ghost"+ size="icon"+ className={className ?? "h-7 w-7 data-[state=open]:bg-accent"}+ {...props}+ >+ <MoreHorizontal />+ </Button>+ )}+ </DropdownMenuTrigger>+ <DropdownMenuContent align={align} side={side} className="w-36">+ <DropdownMenuLabel className="sr-only">+ Quick Actions+ </DropdownMenuLabel>+ {actions+ ?.filter((item) => item.id !== "delete")+ .map((item) => (+ <DropdownMenuGroup key={item.id}>+ <DropdownMenuItem+ variant={item.variant}+ disabled={!item.onClick}+ onClick={(e) => {+ e.stopPropagation();+ item.onClick?.();+ }}+ >+ <item.icon className="text-muted-foreground" />+ <span className="truncate">{item.label}</span>+ </DropdownMenuItem>+ </DropdownMenuGroup>+ ))}+ {deleteAction && (+ <>+ {/* NOTE: add a separator only if actions exist */}+ {actions?.length ? <DropdownMenuSeparator /> : null}+ <AlertDialogTrigger asChild>+ <DropdownMenuItem variant="destructive">+ <Trash2 className="text-muted-foreground" />+ Delete+ </DropdownMenuItem>+ </AlertDialogTrigger>+ </>+ )}+ </DropdownMenuContent>+ </DropdownMenu>+ <AlertDialogContent+ onCloseAutoFocus={(event) => {+ // NOTE: bug where the body is not clickable after closing the alert dialog+ event.preventDefault();+ document.body.style.pointerEvents = "";+ }}+ >+ <AlertDialogHeader>+ <AlertDialogTitle>+ Are you sure about deleting `{deleteAction?.title}`?+ </AlertDialogTitle>+ <AlertDialogDescription>+ This action cannot be undone. This will permanently remove the entry+ from the database.+ </AlertDialogDescription>+ </AlertDialogHeader>+ {deleteAction?.confirmationValue ? (+ <form id="form-alert-dialog" className="space-y-0.5">+ <p className="text-muted-foreground text-xs">+ Please write '+ <span className="font-semibold">+ {deleteAction?.confirmationValue}+ </span>+ ' to confirm+ </p>+ <Input value={value} onChange={(e) => setValue(e.target.value)} />+ </form>+ ) : null}+ <AlertDialogFooter>+ <AlertDialogCancel onClick={(e) => e.stopPropagation()}>+ Cancel+ </AlertDialogCancel>+ <AlertDialogAction+ className="bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40"+ disabled={+ (deleteAction?.confirmationValue &&+ value !== deleteAction?.confirmationValue) ||+ isPending+ }+ form="form-alert-dialog"+ type="submit"+ onClick={(e) => {+ e.preventDefault();+ handleDelete();+ }}+ >+ {isPending ? "Deleting..." : "Delete"}+ </AlertDialogAction>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>+ );+}diff --git a/apps/dashboard/src/components/forms/form-alert-dialog.tsx b/apps/dashboard/src/components/forms/form-alert-dialog.tsxnew file mode 100644index 000000000..d8cc5e3ca--- /dev/null+++ b/apps/dashboard/src/components/forms/form-alert-dialog.tsx@@ -0,0 +1,104 @@+"use client";++import {+ AlertDialog,+ AlertDialogAction,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+ AlertDialogTrigger,+} from "@/components/ui/alert-dialog";+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import { isTRPCClientError } from "@trpc/client";+import { useState, useTransition } from "react";+import { toast } from "sonner";++interface FormAlertDialogProps {+ title: string;+ confirmationValue: string;+ submitAction: () => Promise<void>;+ children?: React.ReactNode;+}++export function FormAlertDialog({+ title,+ confirmationValue,+ submitAction,+ children,+}: FormAlertDialogProps) {+ const [value, setValue] = useState("");+ const [isPending, startTransition] = useTransition();+ const [open, setOpen] = useState(false);++ const handleDelete = async () => {+ try {+ startTransition(async () => {+ const promise = submitAction();+ toast.promise(promise, {+ loading: "Deleting...",+ success: "Deleted",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to delete";+ },+ });+ await promise;+ setOpen(false);+ });+ } catch (error) {+ console.error("Failed to revoke:", error);+ }+ };++ return (+ <AlertDialog open={open} onOpenChange={setOpen}>+ <AlertDialogTrigger asChild>+ {children ?? (+ <Button variant="destructive" size="sm">+ Revoke+ </Button>+ )}+ </AlertDialogTrigger>+ <AlertDialogContent>+ <AlertDialogHeader>+ <AlertDialogTitle>+ Are you sure about revoking `{title}`?+ </AlertDialogTitle>+ <AlertDialogDescription>+ This action cannot be undone. This will permanently revoke the API+ key.+ </AlertDialogDescription>+ </AlertDialogHeader>+ <form id="form-alert-dialog" className="space-y-0.5">+ <p className="text-muted-foreground text-xs">+ Please write '+ <span className="font-semibold">{confirmationValue}</span>+ ' to confirm+ </p>+ <Input value={value} onChange={(e) => setValue(e.target.value)} />+ </form>+ <AlertDialogFooter>+ <AlertDialogCancel>Cancel</AlertDialogCancel>+ <AlertDialogAction+ className="bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40"+ disabled={value !== confirmationValue || isPending}+ form="form-alert-dialog"+ type="submit"+ onClick={(e) => {+ e.preventDefault();+ handleDelete();+ }}+ >+ {isPending ? "Deleting..." : "Delete"}+ </AlertDialogAction>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>+ );+}diff --git a/apps/dashboard/src/components/forms/form-card.tsx b/apps/dashboard/src/components/forms/form-card.tsxnew file mode 100644index 000000000..1baf5130e--- /dev/null+++ b/apps/dashboard/src/components/forms/form-card.tsx@@ -0,0 +1,195 @@+import {+ Card,+ CardContent,+ CardDescription,+ CardFooter,+ CardHeader,+ CardTitle,+} from "@/components/ui/card";+import { Separator } from "@/components/ui/separator";+import { cn } from "@/lib/utils";++import { type VariantProps, cva } from "class-variance-authority";++// py-0+const formCardVariants = cva(+ "group relative w-full overflow-hidden py-0 shadow-none gap-4",+ {+ variants: {+ variant: {+ default: "",+ destructive: "border-destructive",+ },+ defaultVariants: {+ variant: "default",+ },+ },+ },+);++// NOTE: Add a formcardprovider to share the variant prop++export function FormCard({+ children,+ className,+ variant,+ ...props+}: React.ComponentProps<"div"> & VariantProps<typeof formCardVariants>) {+ return (+ <Card className={cn(formCardVariants({ variant }), className)} {...props}>+ {children}+ </Card>+ );+}++export function FormCardHeader({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <CardHeader+ className={cn(+ "px-4 pt-4 group-has-data-[slot=card-upgrade]:pointer-events-none group-has-data-[slot=card-upgrade]:opacity-50 [.border-b]:pb-4",+ className,+ )}+ {...props}+ >+ {children}+ </CardHeader>+ );+}++export function FormCardTitle({ children }: { children: React.ReactNode }) {+ return <CardTitle>{children}</CardTitle>;+}++export function FormCardDescription({+ children,+}: {+ children: React.ReactNode;+}) {+ return <CardDescription>{children}</CardDescription>;+}++export function FormCardContent({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <CardContent+ className={cn(+ "px-4 group-has-data-[slot=card-upgrade]:pointer-events-none group-has-data-[slot=card-upgrade]:opacity-50",+ className,+ )}+ {...props}+ >+ {children}+ </CardContent>+ );+}++export function FormCardSeparator({+ ...props+}: React.ComponentProps<typeof Separator>) {+ return <Separator {...props} />;+}++const formCardFooterVariants = cva(+ "border-t flex items-center gap-2 pb-4 px-4 [&>:last-child]:ml-auto [.border-t]:pt-4",+ {+ variants: {+ variant: {+ default: "",+ destructive: "border-destructive bg-destructive/5",+ },+ defaultVariants: {+ variant: "default",+ },+ },+ },+);++export function FormCardFooter({+ children,+ className,+ variant,+ ...props+}: React.ComponentProps<"div"> & VariantProps<typeof formCardFooterVariants>) {+ return (+ <CardFooter+ className={cn(formCardFooterVariants({ variant }), className)}+ {...props}+ >+ {children}+ </CardFooter>+ );+}++export function FormCardFooterInfo({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-footer-info"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ >+ {children}+ </div>+ );+}++export function FormCardGroup({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-group"+ className={cn("flex flex-col gap-4", className)}+ {...props}+ >+ {children}+ </div>+ );+}++export function FormCardUpgrade({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-upgrade"+ className={cn("hidden", className)}+ {...props}+ >+ {children}+ </div>+ );+}++export function FormCardEmpty({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-empty"+ className={cn(+ "pointer-events-none absolute inset-0 z-10 bg-background opacity-70 blur",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+}diff --git a/apps/dashboard/src/components/forms/form-sheet.tsx b/apps/dashboard/src/components/forms/form-sheet.tsxnew file mode 100644index 000000000..7514f5ea9--- /dev/null+++ b/apps/dashboard/src/components/forms/form-sheet.tsx@@ -0,0 +1,93 @@+"use client";++import {+ Sheet,+ SheetContent,+ SheetDescription,+ SheetFooter,+ SheetHeader,+ SheetTitle,+ SheetTrigger,+} from "@/components/ui/sheet";+import { cn } from "@/lib/utils";++export function FormSheetContent({+ children,+ className,+ ...props+}: React.ComponentProps<typeof SheetContent>) {+ return (+ <SheetContent className={cn("max-h-screen gap-0", className)} {...props}>+ {children}+ </SheetContent>+ );+}++export function FormSheetHeader({+ children,+ className,+ ...props+}: React.ComponentProps<typeof SheetHeader>) {+ return (+ <SheetHeader+ className={cn("sticky top-0 border-b bg-background", className)}+ {...props}+ >+ {children}+ </SheetHeader>+ );+}++export function FormSheetFooter({+ children,+ className,+ ...props+}: React.ComponentProps<typeof SheetFooter>) {+ return (+ <SheetFooter+ className={cn("sticky bottom-0 border-t bg-background", className)}+ {...props}+ >+ {children}+ </SheetFooter>+ );+}++export function FormSheetFooterInfo({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p className={cn("text-muted-foreground/70 text-xs", className)} {...props}>+ {children}+ </p>+ );+}++export function FormSheetTrigger({+ children,+ className,+ disabled,+ ...props+}: React.ComponentProps<typeof SheetTrigger>) {+ return (+ <SheetTrigger+ className={cn(+ "cursor-pointer data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",+ className,+ )}+ data-disabled={disabled}+ disabled={disabled}+ {...props}+ >+ {children}+ </SheetTrigger>+ );+}++export {+ SheetTitle as FormSheetTitle,+ SheetDescription as FormSheetDescription,+ Sheet as FormSheet,+};diff --git a/apps/dashboard/src/components/forms/maintenance/form.tsx b/apps/dashboard/src/components/forms/maintenance/form.tsxnew file mode 100644index 000000000..4e1677811--- /dev/null+++ b/apps/dashboard/src/components/forms/maintenance/form.tsx@@ -0,0 +1,377 @@+"use client";++import {+ EmptyStateContainer,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Calendar } from "@/components/ui/calendar";+import { Checkbox } from "@/components/ui/checkbox";+import {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import { TabsContent } from "@/components/ui/tabs";+import { TabsList, TabsTrigger } from "@/components/ui/tabs";+import { Tabs } from "@/components/ui/tabs";+import { Textarea } from "@/components/ui/textarea";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { isTRPCClientError } from "@trpc/client";+import { format } from "date-fns";+import { CalendarIcon, ClockIcon } from "lucide-react";+import type React from "react";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ title: z.string(),+ message: z.string(),+ startDate: z.date(),+ endDate: z.date(),+ monitors: z.array(z.number()),+});++export type FormValues = z.infer<typeof schema>;++export function FormMaintenance({+ defaultValues,+ onSubmit,+ className,+ monitors,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ monitors: { id: number; name: string; url: string }[];+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ title: "",+ message: "",+ startDate: new Date(),+ endDate: new Date(),+ monitors: [],+ },+ });+ const watchMessage = form.watch("message");+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent>+ <FormField+ control={form.control}+ name="title"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Title</FormLabel>+ <FormControl>+ <Input placeholder="DB migration..." {...field} />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ {/* TODO: */}+ <FormField+ control={form.control}+ name="startDate"+ render={({ field }) => (+ <FormItem className="flex flex-col">+ <FormLabel>Start Date</FormLabel>+ <Popover modal>+ <FormControl>+ <PopoverTrigger asChild>+ <Button+ type="button"+ variant="outline"+ size="sm"+ className={cn(+ "w-[240px] pl-3 text-left font-normal",+ !field.value && "text-muted-foreground",+ )}+ >+ {field.value ? (+ format(field.value, "PPP 'at' h:mm a")+ ) : (+ <span>Pick a date</span>+ )}+ <CalendarIcon className="ml-auto h-4 w-4 opacity-50" />+ </Button>+ </PopoverTrigger>+ </FormControl>+ <PopoverContent+ className="pointer-events-auto w-auto p-0"+ align="start"+ side="left"+ >+ <Calendar+ mode="single"+ selected={field.value}+ onSelect={field.onChange}+ initialFocus+ />+ <div className="border-t p-3">+ <div className="flex items-center gap-3">+ <Label htmlFor="time" className="text-xs">+ Enter time+ </Label>+ <div className="relative grow">+ <Input+ id="time"+ type="time"+ step="1"+ defaultValue={format(field.value, "HH:mm")}+ className="peer appearance-none ps-9 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"+ onChange={(e) => {+ try {+ const date = field.value+ ?.toISOString()+ .split("T")[0];++ field.onChange(+ new Date(`${date}T${e.target.value}`),+ );+ } catch (error) {+ console.error(error);+ }+ }}+ />+ <div className="pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 peer-disabled:opacity-50">+ <ClockIcon size={16} aria-hidden="true" />+ </div>+ </div>+ </div>+ </div>+ </PopoverContent>+ </Popover>+ <FormDescription>When the maintenance starts.</FormDescription>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="endDate"+ render={({ field }) => (+ <FormItem className="flex flex-col">+ <FormLabel>End Date</FormLabel>+ <Popover modal>+ <FormControl>+ <PopoverTrigger asChild>+ <Button+ type="button"+ variant="outline"+ size="sm"+ className={cn(+ "w-[240px] pl-3 text-left font-normal",+ !field.value && "text-muted-foreground",+ )}+ >+ {field.value ? (+ format(field.value, "PPP 'at' h:mm a")+ ) : (+ <span>Pick a date</span>+ )}+ <CalendarIcon className="ml-auto h-4 w-4 opacity-50" />+ </Button>+ </PopoverTrigger>+ </FormControl>+ <PopoverContent+ className="pointer-events-auto w-auto p-0"+ align="start"+ side="left"+ >+ <Calendar+ mode="single"+ selected={field.value}+ onSelect={field.onChange}+ initialFocus+ />+ <div className="border-t p-3">+ <div className="flex items-center gap-3">+ <Label htmlFor="time" className="text-xs">+ Enter time+ </Label>+ <div className="relative grow">+ <Input+ id="time"+ type="time"+ step="1"+ defaultValue={format(field.value, "HH:mm")}+ className="peer appearance-none ps-9 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"+ onChange={(e) => {+ try {+ const date = field.value+ ?.toISOString()+ .split("T")[0];++ field.onChange(+ new Date(`${date}T${e.target.value}`),+ );+ } catch (error) {+ console.error(error);+ }+ }}+ />+ <div className="pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 peer-disabled:opacity-50">+ <ClockIcon size={16} aria-hidden="true" />+ </div>+ </div>+ </div>+ </div>+ </PopoverContent>+ </Popover>+ <FormDescription>When the maintenance ends</FormDescription>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <Tabs defaultValue="tab-1">+ <TabsList>+ <TabsTrigger value="tab-1">Writing</TabsTrigger>+ <TabsTrigger value="tab-2">Preview</TabsTrigger>+ </TabsList>+ <TabsContent value="tab-1">+ <FormField+ control={form.control}+ name="message"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Message</FormLabel>+ <FormControl>+ <Textarea rows={6} {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>Markdown support</FormDescription>+ </FormItem>+ )}+ />+ </TabsContent>+ <TabsContent value="tab-2">+ <div className="grid gap-2">+ <Label>Preview</Label>+ <p className="rounded-md border px-3 py-2 text-foreground text-sm">+ {watchMessage}+ </p>+ </div>+ </TabsContent>+ </Tabs>+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Connected monitors will be automatically deactivated for the+ period of time.+ </FormDescription>+ {monitors.length ? (+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ ) : (+ <EmptyStateContainer>+ <EmptyStateTitle>No monitors found</EmptyStateTitle>+ </EmptyStateContainer>+ )}+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/maintenance/sheet.tsx b/apps/dashboard/src/components/forms/maintenance/sheet.tsxnew file mode 100644index 000000000..bdb38902b--- /dev/null+++ b/apps/dashboard/src/components/forms/maintenance/sheet.tsx@@ -0,0 +1,74 @@+"use client";++import { FormCard, FormCardGroup } from "@/components/forms/form-card";+import {+ FormSheet,+ FormSheetContent,+ FormSheetDescription,+ FormSheetFooter,+ FormSheetFooterInfo,+ FormSheetHeader,+ FormSheetTitle,+ FormSheetTrigger,+} from "@/components/forms/form-sheet";+import {+ FormMaintenance,+ type FormValues,+} from "@/components/forms/maintenance/form";+import { Button } from "@/components/ui/button";+import { useState } from "react";++export function FormSheetMaintenance({+ children,+ defaultValues,+ onSubmit,+ monitors,+ ...props+}: Omit<React.ComponentProps<typeof FormSheetTrigger>, "onSubmit"> & {+ defaultValues?: FormValues;+ monitors: { id: number; name: string; url: string }[];+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const [open, setOpen] = useState(false);++ return (+ <FormSheet open={open} onOpenChange={setOpen}>+ <FormSheetTrigger {...props} asChild>+ {children}+ </FormSheetTrigger>+ <FormSheetContent>+ <FormSheetHeader>+ <FormSheetTitle>Maintenance</FormSheetTitle>+ <FormSheetDescription>+ Configure and update the maintenance.+ </FormSheetDescription>+ </FormSheetHeader>+ <FormCardGroup className="overflow-y-auto">+ <FormCard className="overflow-auto rounded-none border-none">+ <FormMaintenance+ monitors={monitors}+ onSubmit={async (values) => {+ await onSubmit(values);+ setOpen(false);+ }}+ defaultValues={defaultValues}+ id="maintenance-form"+ className="my-4"+ />+ </FormCard>+ </FormCardGroup>+ <FormSheetFooter>+ {defaultValues ? (+ <FormSheetFooterInfo>+ Last Updated {/* TODO: use updatedAt */}+ <time>{defaultValues.startDate.toLocaleString()}</time>+ </FormSheetFooterInfo>+ ) : null}+ <Button type="submit" form="maintenance-form">+ Submit+ </Button>+ </FormSheetFooter>+ </FormSheetContent>+ </FormSheet>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor-tag/form-monitor-tag.tsx b/apps/dashboard/src/components/forms/monitor-tag/form-monitor-tag.tsxnew file mode 100644index 000000000..3b86c4ab4--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor-tag/form-monitor-tag.tsx@@ -0,0 +1,154 @@+"use client";++import { Button } from "@/components/ui/button";+import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { useTRPC } from "@/lib/trpc/client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { useQuery } from "@tanstack/react-query";+import { Plus, Trash2 } from "lucide-react";+import { useTransition } from "react";+import { useFieldArray, useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const tagSchema = z.object({+ id: z.number().optional(),+ name: z.string().min(1, "Name is required"),+ color: z.string().regex(/^#[0-9A-Fa-f]{6}$/, "Invalid color format"),+});++const schema = z.object({+ tags: z.array(tagSchema),+});++export type FormValues = z.infer<typeof schema>;++// FIXME: rename, its not monitor specfic, its all the tags+export function FormMonitorTag({+ defaultValues,+ className,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const trpc = useTRPC();+ const { data: tags } = useQuery(trpc.monitorTag.list.queryOptions());++ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ tags: [],+ },+ });++ const { fields, append, remove } = useFieldArray({+ control: form.control,+ name: "tags",+ });++ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving tags...",+ success: "Tags saved successfully",+ error: "Failed to save tags",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ if (!tags) return null;++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={(e) => {+ // NOTE: we use the form nested within another form, so we need to prevent the default behavior+ // and stop the propagation to avoid double submission+ e.preventDefault();+ e.stopPropagation();+ form.handleSubmit(submitAction)(e);+ }}+ {...props}+ >+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <FormLabel>Tags</FormLabel>+ <Button+ type="button"+ variant="ghost"+ size="sm"+ onClick={() => append({ name: "", color: "#00008B" })}+ >+ <Plus className="mr-2 h-4 w-4" />+ Add Tag+ </Button>+ </div>++ {fields.map((field, index) => (+ <div key={field.id} className="flex items-start gap-4">+ <FormField+ control={form.control}+ name={`tags.${index}.color`}+ render={({ field }) => (+ <FormItem className="p-1">+ <FormControl>+ <Input+ type="color"+ className="size-7 overflow-hidden rounded-full p-0"+ style={{ backgroundColor: field.value }}+ {...field}+ />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name={`tags.${index}.name`}+ render={({ field }) => (+ <FormItem className="flex-1">+ <FormControl>+ <Input placeholder="Tag name" {...field} />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ <Button+ type="button"+ variant="ghost"+ size="icon"+ onClick={() => remove(index)}+ >+ <Trash2 className="h-4 w-4" />+ </Button>+ </div>+ ))}+ </div>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor-tag/sheet.tsx b/apps/dashboard/src/components/forms/monitor-tag/sheet.tsxnew file mode 100644index 000000000..36f5dd59c--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor-tag/sheet.tsx@@ -0,0 +1,67 @@+"use client";++import {+ FormCard,+ FormCardContent,+ FormCardGroup,+} from "@/components/forms/form-card";+import {+ FormSheet,+ FormSheetContent,+ FormSheetDescription,+ FormSheetFooter,+ FormSheetHeader,+ FormSheetTitle,+ FormSheetTrigger,+} from "@/components/forms/form-sheet";+import {+ FormMonitorTag,+ type FormValues,+} from "@/components/forms/monitor-tag/form-monitor-tag";+import { Button } from "@/components/ui/button";+import { useState } from "react";++export function FormSheetMonitorTag({+ children,+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<typeof FormSheetTrigger>, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const [open, setOpen] = useState(false);++ return (+ <FormSheet open={open} onOpenChange={setOpen}>+ <FormSheetTrigger {...props} asChild>+ {children}+ </FormSheetTrigger>+ <FormSheetContent>+ <FormSheetHeader>+ <FormSheetTitle>Monitor Tag</FormSheetTitle>+ <FormSheetDescription>+ Configure and update the monitor tag.+ </FormSheetDescription>+ </FormSheetHeader>+ <FormCardGroup className="flex-1 overflow-y-auto">+ <FormCard className="flex-1 overflow-auto rounded-none border-none">+ <FormCardContent>+ <FormMonitorTag+ onSubmit={onSubmit}+ defaultValues={defaultValues}+ id="tags-form"+ className="my-4"+ />+ </FormCardContent>+ </FormCard>+ </FormCardGroup>+ <FormSheetFooter>+ <Button type="submit" form="tags-form">+ Submit+ </Button>+ </FormSheetFooter>+ </FormSheetContent>+ </FormSheet>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/form-danger-zone.tsx b/apps/dashboard/src/components/forms/monitor/form-danger-zone.tsxnew file mode 100644index 000000000..a990b0653--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/form-danger-zone.tsx@@ -0,0 +1,32 @@+"use client";++import { FormAlertDialog } from "@/components/forms/form-alert-dialog";+import {+ FormCard,+ FormCardDescription,+ FormCardFooter,+ FormCardHeader,+ FormCardTitle,+} from "@/components/forms/form-card";++export function FormDangerZone({+ onSubmit,+}: {+ onSubmit: () => Promise<void>;+}) {+ return (+ <FormCard variant="destructive">+ <FormCardHeader>+ <FormCardTitle>Danger Zone</FormCardTitle>+ <FormCardDescription>This action cannot be undone.</FormCardDescription>+ </FormCardHeader>+ <FormCardFooter variant="destructive" className="justify-end">+ <FormAlertDialog+ title="OpenStatus API"+ confirmationValue="delete monitor"+ submitAction={onSubmit}+ />+ </FormCardFooter>+ </FormCard>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/form-general.tsx b/apps/dashboard/src/components/forms/monitor/form-general.tsxnew file mode 100644index 000000000..fbac7845c--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/form-general.tsx@@ -0,0 +1,763 @@+"use client";++import { Link } from "@/components/common/link";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardSeparator,+ FormCardTitle,+} from "@/components/forms/form-card";+import {+ AlertDialog,+ AlertDialogAction,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+} from "@/components/ui/alert-dialog";+import { Button } from "@/components/ui/button";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { Switch } from "@/components/ui/switch";+import { Textarea } from "@/components/ui/textarea";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import {+ headerAssertion,+ jsonBodyAssertion,+ numberCompareDictionary,+ statusAssertion,+ stringCompareDictionary,+ textBodyAssertion,+} from "@openstatus/assertions";+import { monitorMethods } from "@openstatus/db/src/schema";+import { isTRPCClientError } from "@trpc/client";+import { Globe, Network, Plus, X } from "lucide-react";+import { useEffect, useState, useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const TYPES = ["http", "tcp"] as const;+const ASSERTION_TYPES = ["status", "header", "textBody"] as const;++const schema = z.object({+ name: z.string().min(1, "Name is required"),+ type: z.enum(TYPES),+ method: z.enum(monitorMethods),+ url: z.string().min(1, "URL is required"),+ headers: z.array(+ z.object({+ key: z.string(),+ value: z.string(),+ }),+ ),+ active: z.boolean().optional().default(true),+ assertions: z.array(+ z.discriminatedUnion("type", [+ statusAssertion,+ headerAssertion,+ textBodyAssertion,+ jsonBodyAssertion,+ ]),+ ),+ body: z.string().optional(),+ skipCheck: z.boolean().optional().default(false),+ saveCheck: z.boolean().optional().default(false),+});++type FormValues = z.infer<typeof schema>;++export function FormGeneral({+ defaultValues,+ disabled,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ disabled?: boolean;+}) {+ const [error, setError] = useState<string | null>(null);+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ active: true,+ name: "",+ type: undefined,+ method: "GET",+ url: "",+ headers: [],+ body: "",+ assertions: [],+ skipCheck: false,+ saveCheck: false,+ },+ });+ const [isPending, startTransition] = useTransition();+ const watchType = form.watch("type");+ const watchMethod = form.watch("method");++ useEffect(() => {+ // NOTE: reset form when type changes+ if (watchType && !defaultValues) {+ form.setValue("assertions", []);+ form.setValue("body", "");+ form.setValue("headers", []);+ form.setValue("method", "GET");+ form.setValue("url", "");+ }+ }, [watchType, defaultValues, form]);++ function submitAction(values: FormValues) {+ console.log("submitAction", values);+ if (isPending || disabled) return;++ // Validate assertions based on type+ for (let i = 0; i < values.assertions.length; i++) {+ const assertion = values.assertions[i];++ if (assertion.type === "status") {+ if (typeof assertion.target !== "number" || assertion.target <= 0) {+ form.setError(`assertions.${i}.target`, {+ message: "Status target must be a positive number",+ });+ return;+ }+ } else if (assertion.type === "header") {+ if (!assertion.key || assertion.key.trim() === "") {+ form.setError(`assertions.${i}.key`, {+ message: "Header key is required",+ });+ return;+ }+ if (!assertion.target || assertion.target.trim() === "") {+ form.setError(`assertions.${i}.target`, {+ message: "Header target is required",+ });+ return;+ }+ } else if (assertion.type === "textBody") {+ if (!assertion.target || assertion.target.trim() === "") {+ form.setError(`assertions.${i}.target`, {+ message: "Body target is required",+ });+ return;+ }+ }+ }++ // TODO: validate url if HTTP+ // if (values.type === "http" && !values.url.startsWith("http")) {+ // form.setError("url", { message: "Please enter a valid URL" });+ // return;+ // }++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ setError(error.message);+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ console.log(form.getValues("skipCheck"));++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Monitor Configuration</FormCardTitle>+ <FormCardDescription>+ Configure your monitor settings and endpoints.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent className="grid gap-4 sm:grid-cols-3">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem className="sm:col-span-2">+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="OpenStatus API" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Displayed on the status page.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="active"+ render={({ field }) => (+ <FormItem className="flex flex-row items-center">+ <FormLabel>Active</FormLabel>+ <FormControl>+ <Switch+ checked={field.value}+ onCheckedChange={field.onChange}+ />+ </FormControl>+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="type"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitoring Type</FormLabel>+ <FormControl>+ <RadioGroup+ onValueChange={field.onChange}+ defaultValue={field.value}+ className="grid grid-cols-2 gap-4 sm:grid-cols-4"+ disabled={!!defaultValues?.type}+ >+ <FormItem+ className={cn(+ "relative flex cursor-pointer flex-row items-center gap-3 rounded-md border border-input px-2 py-3 text-center shadow-xs outline-none transition-[color,box-shadow] has-aria-[invalid=true]:border-destructive has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50",+ // FIXME: ugly af+ defaultValues &&+ defaultValues.type !== "http" &&+ "pointer-events-none opacity-50",+ )}+ >+ <FormControl>+ <RadioGroupItem+ value="http"+ className="sr-only"+ disabled={!!defaultValues?.type}+ />+ </FormControl>+ <Globe+ className="shrink-0 text-muted-foreground"+ size={16}+ aria-hidden="true"+ />+ <FormLabel className="cursor-pointer font-medium text-foreground text-xs leading-none after:absolute after:inset-0">+ HTTP+ </FormLabel>+ </FormItem>+ <FormItem+ className={cn(+ "relative flex cursor-pointer flex-row items-center gap-3 rounded-md border border-input px-2 py-3 text-center shadow-xs outline-none transition-[color,box-shadow] has-aria-[invalid=true]:border-destructive has-data-[state=checked]:border-primary/50 has-focus-visible:border-ring has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50",+ defaultValues &&+ defaultValues.type !== "tcp" &&+ "pointer-events-none opacity-50",+ )}+ >+ <FormControl>+ <RadioGroupItem+ value="tcp"+ className="sr-only"+ disabled={!!defaultValues?.type}+ />+ </FormControl>+ <Network+ className="shrink-0 text-muted-foreground"+ size={16}+ aria-hidden="true"+ />+ <FormLabel className="cursor-pointer font-medium text-foreground text-xs leading-none after:absolute after:inset-0">+ TCP+ </FormLabel>+ </FormItem>+ <div className="col-span-2 self-end text-muted-foreground text-xs sm:place-self-end">+ Missing a type? <Link href="/contact">Contact us</Link>+ </div>+ </RadioGroup>+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ {watchType ? <FormCardSeparator /> : null}+ {watchType === "http" && (+ <>+ <FormCardContent className="grid grid-cols-4 gap-4">+ <div className="col-span-1">+ <FormField+ control={form.control}+ name="method"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Method</FormLabel>+ <Select+ onValueChange={field.onChange}+ defaultValue={field.value}+ >+ <FormControl>+ <SelectTrigger className="w-full">+ <SelectValue placeholder="Select a method" />+ </SelectTrigger>+ </FormControl>+ <SelectContent>+ {monitorMethods.map((method) => (+ <SelectItem key={method} value={method}>+ {method}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ <FormMessage />+ </FormItem>+ )}+ />+ </div>+ <div className="col-span-3">+ <FormField+ control={form.control}+ name="url"+ render={({ field }) => (+ <FormItem>+ <FormLabel>URL</FormLabel>+ <FormControl>+ <Input+ placeholder="https://openstatus.dev"+ type="url"+ {...field}+ />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ </div>+ <FormField+ control={form.control}+ name="headers"+ render={({ field }) => (+ <FormItem className="col-span-full">+ <FormLabel>Request Headers</FormLabel>+ {field.value.map((header, index) => (+ <div key={index} className="grid gap-2 sm:grid-cols-5">+ <Input+ placeholder="Key"+ className="col-span-2"+ value={header.key}+ onChange={(e) => {+ const newHeaders = [...field.value];+ newHeaders[index] = {+ ...newHeaders[index],+ key: e.target.value,+ };+ field.onChange(newHeaders);+ }}+ />+ <Input+ placeholder="Value"+ className="col-span-2"+ value={header.value}+ onChange={(e) => {+ const newHeaders = [...field.value];+ newHeaders[index] = {+ ...newHeaders[index],+ value: e.target.value,+ };+ field.onChange(newHeaders);+ }}+ />+ <Button+ size="icon"+ variant="ghost"+ onClick={() => {+ const newHeaders = field.value.filter(+ (_, i) => i !== index,+ );+ field.onChange(newHeaders);+ }}+ >+ <X />+ </Button>+ </div>+ ))}+ <div>+ <Button+ size="sm"+ variant="outline"+ type="button"+ onClick={() => {+ field.onChange([+ ...field.value,+ { key: "", value: "" },+ ]);+ }}+ >+ <Plus />+ Add Header+ </Button>+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ {["POST", "PUT", "PATCH", "DELETE"].includes(watchMethod) && (+ <FormField+ control={form.control}+ name="body"+ render={({ field }) => (+ <FormItem className="col-span-full">+ <FormLabel>Body</FormLabel>+ <FormControl>+ <Textarea {...field} />+ </FormControl>+ <FormDescription>Write your payload</FormDescription>+ <FormMessage />+ </FormItem>+ )}+ />+ )}+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="assertions"+ render={({ field }) => (+ <FormItem className="col-span-full">+ <FormLabel>Assertions</FormLabel>+ <FormDescription>+ Validate the response to ensure your service is working+ as expected. <br />+ Add body, header, or status assertions.+ </FormDescription>+ {field.value.map((assertion, index) => (+ <div key={index} className="grid gap-2 sm:grid-cols-6">+ <FormField+ control={form.control}+ name={`assertions.${index}.type`}+ render={({ field }) => (+ <FormItem>+ <Select+ value={field.value}+ onValueChange={field.onChange}+ disabled={true}+ >+ <SelectTrigger+ aria-invalid={+ !!form.formState.errors.assertions?.[+ index+ ]?.type+ }+ className="w-full"+ >+ <SelectValue placeholder="Select type" />+ </SelectTrigger>+ <SelectContent>+ {ASSERTION_TYPES.map((type) => (+ <SelectItem key={type} value={type}>+ {type}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name={`assertions.${index}.compare`}+ render={({ field }) => (+ <FormItem>+ <Select+ value={field.value}+ onValueChange={field.onChange}+ >+ <SelectTrigger className="w-full">+ <SelectValue placeholder="Select compare" />+ </SelectTrigger>+ <SelectContent>+ {assertion.type === "status"+ ? Object.entries(+ numberCompareDictionary,+ ).map(([key, value]) => (+ <SelectItem key={key} value={key}>+ {value}+ </SelectItem>+ ))+ : Object.entries(+ stringCompareDictionary,+ ).map(([key, value]) => (+ <SelectItem key={key} value={key}>+ {value}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ <FormMessage />+ </FormItem>+ )}+ />+ {assertion.type === "header" && (+ <FormField+ control={form.control}+ name={`assertions.${index}.key`}+ render={({ field }) => (+ <FormItem>+ <Input+ placeholder="Header key"+ className="w-full"+ {...field}+ />+ <FormMessage />+ </FormItem>+ )}+ />+ )}+ <FormField+ control={form.control}+ name={`assertions.${index}.target`}+ render={({ field }) => (+ <FormItem>+ <Input+ placeholder="Target value"+ className="w-full"+ type={+ assertion.type === "status"+ ? "number"+ : "text"+ }+ {...field}+ value={field.value?.toString() || ""}+ onChange={(e) => {+ const value =+ assertion.type === "status"+ ? Number.parseInt(e.target.value) || 0+ : e.target.value;+ field.onChange(value);+ }}+ />+ <FormMessage />+ </FormItem>+ )}+ />+ <Button+ size="icon"+ variant="ghost"+ type="button"+ onClick={() => {+ const newAssertions = field.value.filter(+ (_, i) => i !== index,+ );+ field.onChange(newAssertions);+ }}+ >+ <X />+ </Button>+ </div>+ ))}+ <div className="flex flex-wrap gap-2">+ <Button+ size="sm"+ variant="outline"+ type="button"+ onClick={() => {+ field.onChange([+ ...field.value,+ {+ type: "status",+ version: "v1",+ compare: "eq",+ target: 200,+ },+ ]);+ }}+ >+ <Plus />+ Add Status Assertion+ </Button>+ <Button+ size="sm"+ variant="outline"+ type="button"+ onClick={() => {+ field.onChange([+ ...field.value,+ {+ type: "header",+ version: "v1",+ compare: "eq",+ key: "",+ target: "",+ },+ ]);+ }}+ >+ <Plus />+ Add Header Assertion+ </Button>+ <Button+ size="sm"+ variant="outline"+ type="button"+ onClick={() => {+ field.onChange([+ ...field.value,+ {+ type: "textBody",+ version: "v1",+ compare: "eq",+ target: "",+ },+ ]);+ }}+ >+ <Plus />+ Add Body Assertion+ </Button>+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </>+ )}+ {watchType === "tcp" && (+ <FormCardContent className="grid gap-4 sm:grid-cols-3">+ <FormField+ control={form.control}+ name="url"+ render={({ field }) => (+ <FormItem className="sm:col-span-2">+ <FormLabel>Host:Port</FormLabel>+ <FormControl>+ <Input placeholder="127.0.0.0.1:8080" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ The input supports both IPv4 addresses and IPv6 addresses.+ </FormDescription>+ </FormItem>+ )}+ />+ <div className="col-span-full text-muted-foreground text-sm">+ Examples:+ <ul className="list-inside list-disc">+ <li>+ Domain:{" "}+ <span className="font-mono text-foreground">+ openstatus.dev:443+ </span>+ </li>+ <li>+ IPv4:{" "}+ <span className="font-mono text-foreground">+ 192.168.1.1:443+ </span>+ </li>+ <li>+ IPv6:{" "}+ <span className="font-mono text-foreground">+ [2001:db8:85a3:8d3:1319:8a2e:370:7348]:443+ </span>+ </li>+ </ul>+ </div>+ </FormCardContent>+ )}+ <FormCardFooter>+ <FormCardFooterInfo>+ Learn more about{" "}+ <Link+ href="https://docs.openstatus.dev/monitoring/create-monitor/"+ rel="noreferrer"+ target="_blank"+ >+ Monitor Type+ </Link>{" "}+ and{" "}+ <Link+ href="https://docs.openstatus.dev/monitoring/create-monitor/"+ rel="noreferrer"+ target="_blank"+ >+ Assertions+ </Link>+ .+ </FormCardFooterInfo>+ <Button type="submit" disabled={isPending || disabled}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </FormCardFooter>+ </FormCard>+ <AlertDialog open={!!error} onOpenChange={() => setError(null)}>+ <AlertDialogContent>+ <AlertDialogHeader>+ <AlertDialogTitle>Still save?</AlertDialogTitle>+ <AlertDialogDescription>+ It seems like the endpoint is not reachable or the assertions+ failed. Do you want to save the monitor anyway?+ </AlertDialogDescription>+ </AlertDialogHeader>+ <div className="rounded-md border border-destructive/20 bg-destructive/10 p-2">+ <p className="whitespace-pre-wrap font-mono text-destructive text-sm">+ {error}+ </p>+ </div>+ <AlertDialogFooter>+ <AlertDialogCancel type="button">Cancel</AlertDialogCancel>+ <AlertDialogAction+ type="button"+ onClick={async (e) => {+ e.preventDefault();+ form.setValue("skipCheck", true);+ form.handleSubmit(submitAction)();+ form.setValue("skipCheck", false);+ setError(null);+ }}+ disabled={isPending}+ >+ Save+ </AlertDialogAction>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/form-notifiers.tsx b/apps/dashboard/src/components/forms/monitor/form-notifiers.tsxnew file mode 100644index 000000000..fb78f7129--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/form-notifiers.tsx@@ -0,0 +1,197 @@+"use client";++import {+ EmptyStateContainer,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardHeader,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Badge } from "@/components/ui/badge";+import { Button } from "@/components/ui/button";+import { Checkbox } from "@/components/ui/checkbox";+import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { config } from "@/data/notifications.client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import type { NotificationProvider } from "@openstatus/db/src/schema";+import { isTRPCClientError } from "@trpc/client";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ notifiers: z.array(z.number()),+});++type FormValues = z.infer<typeof schema>;++export function FormNotifiers({+ defaultValues,+ onSubmit,+ notifiers,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ notifiers: { id: number; name: string; provider: NotificationProvider }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ notifiers: [],+ },+ });+ const watchNotifiers = form.watch("notifiers");+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Notifications</FormCardTitle>+ <FormCardDescription>+ Get notified when your monitor is degraded or down.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ {notifiers.length > 0 ? (+ <FormField+ control={form.control}+ name="notifiers"+ render={() => (+ <FormItem>+ <div className="flex items-center justify-between">+ <FormLabel className="text-base">+ List of Notifications+ </FormLabel>+ <Button+ variant="ghost"+ size="sm"+ type="button"+ className={cn(+ watchNotifiers.length === notifiers.length &&+ "text-muted-foreground",+ )}+ onClick={() => {+ const allSelected = notifiers.every((item) =>+ watchNotifiers.includes(item.id),+ );++ if (!allSelected) {+ form.setValue(+ "notifiers",+ notifiers.map((item) => item.id),+ );+ } else {+ form.setValue("notifiers", []);+ }+ }}+ >+ Select all+ </Button>+ </div>+ {notifiers.map((item) => (+ <FormField+ key={item.id}+ control={form.control}+ name="notifiers"+ render={({ field }) => {+ const Icon = config[item.provider].icon;+ const label = config[item.provider].label;+ return (+ <FormItem+ key={item.id}+ className="flex items-center"+ >+ <FormControl>+ <Checkbox+ checked={+ field.value?.includes(item.id) || false+ }+ onCheckedChange={(checked) => {+ return checked+ ? field.onChange([+ ...field.value,+ item.id,+ ])+ : field.onChange(+ field.value?.filter(+ (value) => value !== item.id,+ ),+ );+ }}+ />+ </FormControl>+ <FormLabel className="font-normal text-sm">+ {item.name}{" "}+ <Badge+ variant="secondary"+ className="px-1.5 py-px font-mono text-[10px]"+ >+ <Icon className="size-2.5" />+ {label}+ </Badge>+ </FormLabel>+ </FormItem>+ );+ }}+ />+ ))}+ <FormMessage />+ </FormItem>+ )}+ />+ ) : (+ <EmptyStateContainer>+ <EmptyStateTitle>No notifications</EmptyStateTitle>+ </EmptyStateContainer>+ )}+ </FormCardContent>+ <FormCardFooter>+ <Button type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/form-otel.tsx b/apps/dashboard/src/components/forms/monitor/form-otel.tsxnew file mode 100644index 000000000..c441e99e4--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/form-otel.tsx@@ -0,0 +1,208 @@+"use client";++import { Link } from "@/components/common/link";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardTitle,+ FormCardUpgrade,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { zodResolver } from "@hookform/resolvers/zod";+import { Lock, Plus, X } from "lucide-react";+import NextLink from "next/link";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++// TODO: add headers++const schema = z.object({+ endpoint: z.string().url("Please enter a valid URL"),+ headers: z+ .array(z.object({ key: z.string(), value: z.string() }))+ .default([]),+});++type FormValues = z.infer<typeof schema>;++export function FormOtel({+ locked,+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ locked?: boolean;+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? { endpoint: "", headers: [] },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: "Failed to save",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ {locked ? <FormCardUpgrade /> : null}+ <FormCardHeader>+ <FormCardTitle>OpenTelemetry</FormCardTitle>+ <FormCardDescription>+ Configure your OpenTelemetry Exporter.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent className="grid grid-cols-4 gap-4">+ <FormField+ control={form.control}+ name="endpoint"+ render={({ field }) => (+ <FormItem className="col-span-full">+ <FormLabel>Endpoint</FormLabel>+ <FormControl>+ <Input+ placeholder="https://otel.openstatus.dev/api/v1/metrics"+ disabled={locked}+ {...field}+ />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="headers"+ disabled={locked}+ render={({ field }) => (+ <FormItem className="col-span-full">+ <FormLabel>Request Headers</FormLabel>+ {field.value.map((header, index) => (+ <div key={index} className="grid gap-2 sm:grid-cols-5">+ <Input+ placeholder="Key"+ className="col-span-2"+ value={header.key}+ disabled={locked}+ onChange={(e) => {+ const newHeaders = [...field.value];+ newHeaders[index] = {+ ...newHeaders[index],+ key: e.target.value,+ };+ field.onChange(newHeaders);+ }}+ />+ <Input+ placeholder="Value"+ className="col-span-2"+ value={header.value}+ disabled={locked}+ onChange={(e) => {+ const newHeaders = [...field.value];+ newHeaders[index] = {+ ...newHeaders[index],+ value: e.target.value,+ };+ field.onChange(newHeaders);+ }}+ />+ <Button+ size="icon"+ variant="ghost"+ onClick={() => {+ const newHeaders = field.value.filter(+ (_, i) => i !== index,+ );+ field.onChange(newHeaders);+ }}+ >+ <X />+ </Button>+ </div>+ ))}+ <div>+ <Button+ size="sm"+ variant="outline"+ type="button"+ disabled={locked}+ onClick={() => {+ field.onChange([+ ...field.value,+ { key: "", value: "" },+ ]);+ }}+ >+ <Plus />+ Add Header+ </Button>+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardFooter>+ <FormCardFooterInfo>+ Learn more about{" "}+ <Link+ href="https://docs.openstatus.dev/monitoring/opentelemetry/"+ rel="noreferrer"+ target="_blank"+ >+ OTel+ </Link>+ .+ </FormCardFooterInfo>+ {locked ? (+ <Button asChild>+ <NextLink href="/settings/billing">+ <Lock className="size-4" />+ Upgrade+ </NextLink>+ </Button>+ ) : (+ <Button type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ )}+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/form-response-time.tsx b/apps/dashboard/src/components/forms/monitor/form-response-time.tsxnew file mode 100644index 000000000..80841529b--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/form-response-time.tsx@@ -0,0 +1,127 @@+"use client";++import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardHeader,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { zodResolver } from "@hookform/resolvers/zod";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const DEGRADED = 30_000;+const TIMEOUT = 45_000;++const schema = z.object({+ degradedAfter: z.coerce.number().optional(),+ timeout: z.coerce.number(),+});++type FormValues = z.infer<typeof schema>;++export function FormResponseTime({+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ degradedAfter: DEGRADED,+ timeout: TIMEOUT,+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: "Failed to save",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Response Time Thresholds</FormCardTitle>+ <FormCardDescription>+ Configure your degraded and timeout thresholds.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent className="grid gap-4 sm:grid-cols-2">+ <FormField+ control={form.control}+ name="degradedAfter"+ render={({ field }) => (+ <FormItem className="self-start">+ <FormLabel>Degraded (in ms.)</FormLabel>+ <FormControl>+ <Input placeholder="30000" type="number" {...field} />+ </FormControl>+ <FormDescription>+ Time after which the endpoint is considered degraded.+ </FormDescription>+ <FormMessage />+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="timeout"+ render={({ field }) => (+ <FormItem className="self-start">+ <FormLabel>Timeout (in ms.)</FormLabel>+ <FormControl>+ <Input placeholder="45000" type="number" {...field} />+ </FormControl>+ <FormDescription>+ Max. time allowed for request to complete.+ </FormDescription>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardFooter>+ <Button type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/form-retry.tsx b/apps/dashboard/src/components/forms/monitor/form-retry.tsxnew file mode 100644index 000000000..06a880383--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/form-retry.tsx@@ -0,0 +1,128 @@+"use client";++import { Link } from "@/components/common/link";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { zodResolver } from "@hookform/resolvers/zod";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const RETRY_MIN = 1;+const RETRY_MAX = 10;+export const RETRY_DEFAULT = 3;++const schema = z.object({+ retry: z.coerce.number().min(RETRY_MIN).max(RETRY_MAX).default(RETRY_DEFAULT),+});++type FormValues = z.infer<typeof schema>;++export function FormRetry({+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ retry: RETRY_DEFAULT,+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: "Failed to save",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Retry Policy</FormCardTitle>+ <FormCardDescription>+ Configure the retry policy for your monitor.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent className="grid gap-4 sm:grid-cols-2">+ <FormField+ control={form.control}+ name="retry"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Retry</FormLabel>+ <FormControl>+ <Input+ min={RETRY_MIN}+ max={RETRY_MAX}+ step={1}+ type="number"+ {...field}+ />+ </FormControl>+ <FormMessage />+ <FormDescription>+ The retry policy is exponential backoff.+ </FormDescription>+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardFooter>+ <FormCardFooterInfo>+ Learn more about{" "}+ <Link+ href="https://docs.openstatus.dev/monitoring/customization/retry/"+ rel="noreferrer"+ target="_blank"+ >+ retries+ </Link>+ .+ </FormCardFooterInfo>+ <Button type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/form-scheduling-regions.tsx b/apps/dashboard/src/components/forms/monitor/form-scheduling-regions.tsxnew file mode 100644index 000000000..46f697a39--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/form-scheduling-regions.tsx@@ -0,0 +1,348 @@+"use client";++import { Link } from "@/components/common/link";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardSeparator,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Checkbox } from "@/components/ui/checkbox";+import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Slider } from "@/components/ui/slider";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import {+ type MonitorFlyRegion,+ monitorPeriodicity,+} from "@openstatus/db/src/schema/constants";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++import { Note } from "@/components/common/note";+import { useTRPC } from "@/lib/trpc/client";+import { groupByContinent } from "@openstatus/utils";+import { useQuery } from "@tanstack/react-query";+import { isTRPCClientError } from "@trpc/client";+import { Info } from "lucide-react";++const DEFAULT_PERIODICITY = "10m";+const DEFAULT_REGIONS = ["ams", "fra", "iad", "syd", "jnb", "gru"];+const PERIODICITY = monitorPeriodicity.filter((p) => p !== "other");++const schema = z.object({+ regions: z.array(z.string()),+ periodicity: z.enum(monitorPeriodicity),+});++type FormValues = z.infer<typeof schema>;++export function FormSchedulingRegions({+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const trpc = useTRPC();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ regions: DEFAULT_REGIONS,+ periodicity: DEFAULT_PERIODICITY,+ },+ });+ const [isPending, startTransition] = useTransition();+ const watchPeriodicity = form.watch("periodicity");+ const watchRegions = form.watch("regions");++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ console.error(error);+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ if (!workspace) return null;++ const allowedRegions = workspace.limits.regions;+ const maxRegions = workspace.limits["max-regions"];+ const periodicity = workspace.limits.periodicity;++ const isMaxed = watchRegions.length >= maxRegions;++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Scheduling & Regions</FormCardTitle>+ <FormCardDescription>+ Configure the scheduling and regions for your monitor.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ name="periodicity"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Periodicity</FormLabel>+ <FormControl>+ <div>+ <Slider+ value={[monitorPeriodicity.indexOf(field.value)]}+ max={PERIODICITY.length - 1}+ aria-label="Slider with ticks"+ onValueChange={(value) => {+ field.onChange(PERIODICITY[value[0]]);+ }}+ className={cn(+ !periodicity.includes(watchPeriodicity) &&+ "[&_[data-slot=slider-range]]:bg-destructive",+ )}+ />+ <span+ className="mt-3 flex w-full items-center justify-between gap-1 px-2.5 font-medium text-muted-foreground text-xs"+ aria-hidden="true"+ >+ {PERIODICITY.map((period) => (+ <span+ key={period}+ className="flex w-0 flex-col items-center justify-center gap-2"+ >+ <span+ className={cn("h-1 w-px bg-muted-foreground/70")}+ />+ {period}+ </span>+ ))}+ </span>+ </div>+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent className="grid gap-4">+ <Note color="warning">+ <Info />+ To minimize false positives, we recommend monitoring your endpoint+ in at least 3 regions.+ </Note>+ <FormField+ control={form.control}+ name="regions"+ render={() => (+ <FormItem>+ <FormControl>+ <div className="grid gap-4">+ {Object.entries(groupByContinent).map(+ ([continent, r]) => {+ const selected = r+ .filter((r) => allowedRegions.includes(r.code))+ .reduce((prev, curr) => {+ return (+ prev ++ (watchRegions.includes(curr.code) ? 1 : 0)+ );+ }, 0);+ const isAllSelected =+ selected ===+ r.filter((r) => allowedRegions.includes(r.code))+ .length;++ const disabled =+ r.length + watchRegions.length - selected >+ maxRegions;++ return (+ <div key={continent} className="space-y-2">+ <div className="flex items-center justify-between">+ <FormLabel>+ {continent}{" "}+ <span className="align-baseline font-mono font-normal text-muted-foreground/70 text-xs tabular-nums">+ ({selected}/{r.length})+ </span>+ </FormLabel>+ <Button+ variant="ghost"+ size="sm"+ type="button"+ className={cn(+ isAllSelected && "text-muted-foreground",+ )}+ disabled={disabled}+ onClick={() => {+ if (!isAllSelected) {+ // Add all regions from this continent+ const newRegions = [...watchRegions];+ r.filter((r) =>+ allowedRegions.includes(r.code),+ ).forEach((region) => {+ if (!newRegions.includes(region.code)) {+ newRegions.push(region.code);+ }+ });+ form.setValue("regions", newRegions);+ } else {+ // Remove all regions from this continent+ form.setValue(+ "regions",+ watchRegions?.filter(+ (region) =>+ !r+ .map(({ code }) => code)+ .includes(+ region as MonitorFlyRegion,+ ),+ ),+ );+ }+ }}+ >+ Select all+ </Button>+ </div>+ <div className="grid grid-cols-2 gap-2">+ {r.map((region) => {+ return (+ <FormField+ key={region.code}+ control={form.control}+ name="regions"+ render={({ field }) => {+ const checked = field.value?.includes(+ region.code,+ );+ const disabled = checked+ ? false+ : !allowedRegions.includes(+ region.code,+ ) || isMaxed;+ return (+ <FormItem+ key={region.code}+ className="flex items-center"+ >+ <Checkbox+ id={region.code}+ checked={checked || false}+ disabled={disabled}+ onCheckedChange={(checked) => {+ console.log(+ checked,+ field.value,+ );+ if (checked) {+ field.onChange([+ ...field.value,+ region.code,+ ]);+ } else {+ field.onChange(+ field.value?.filter(+ (r) => r !== region.code,+ ),+ );+ }+ }}+ />+ <FormLabel+ htmlFor={region.code}+ className="w-full truncate font-mono font-normal text-sm"+ >+ <span className="text-nowrap">+ {region.code} {region.flag}+ </span>+ <span className="truncate font-normal text-muted-foreground text-xs leading-[inherit]">+ {region.location}+ </span>+ </FormLabel>+ </FormItem>+ );+ }}+ />+ );+ })}+ </div>+ </div>+ );+ },+ )}+ </div>+ </FormControl>+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardFooter>+ <FormCardFooterInfo>+ Your plan allows you to run{" "}+ <span className="font-medium text-foreground">{maxRegions}</span>{" "}+ out of{" "}+ <span className="font-medium text-foreground">+ {allowedRegions.length}+ </span>{" "}+ regions. Learn more about{" "}+ <Link+ href="https://docs.openstatus.dev/monitoring/customization/locations/"+ rel="noreferrer"+ target="_blank"+ >+ Regions+ </Link>{" "}+ and{" "}+ <Link+ href="https://docs.openstatus.dev/monitoring/customization/frequency/"+ rel="noreferrer"+ target="_blank"+ >+ Periodicity+ </Link>+ .+ </FormCardFooterInfo>+ <Button type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/form-status-pages.tsx b/apps/dashboard/src/components/forms/monitor/form-status-pages.tsxnew file mode 100644index 000000000..716f0cc50--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/form-status-pages.tsx@@ -0,0 +1,238 @@+"use client";++import {+ EmptyStateContainer,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardHeader,+ FormCardSeparator,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Badge } from "@/components/ui/badge";+import { Button } from "@/components/ui/button";+import { Checkbox } from "@/components/ui/checkbox";+import {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { isTRPCClientError } from "@trpc/client";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++// TODO: add custom name for monitor, shown on status page, requires db migration++const schema = z.object({+ // name: z.string().optional(),+ description: z.string().optional(),+ statusPages: z.array(z.number()),+});++type FormValues = z.infer<typeof schema>;++export function FormStatusPages({+ defaultValues,+ onSubmit,+ statusPages,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ statusPages: { id: number; title: string; slug: string }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ // name: "",+ description: "",+ statusPages: [],+ },+ });+ const [isPending, startTransition] = useTransition();+ const watchStatusPages = form.watch("statusPages");++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Status Pages</FormCardTitle>+ <FormCardDescription>+ Add status pages to your monitor.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent className="grid gap-4 sm:grid-cols-3">+ {/* <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem className="sm:col-span-2">+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="OpenStatus API" {...field} />+ </FormControl>+ <FormDescription>+ Name on the status page. If not provided, monitor's+ name will be used.+ </FormDescription>+ <FormMessage />+ </FormItem>+ )}+ /> */}+ <FormField+ control={form.control}+ name="description"+ render={({ field }) => (+ <FormItem className="sm:col-span-full">+ <FormLabel>Description</FormLabel>+ <FormControl>+ <Input placeholder="My Status Page" {...field} />+ </FormControl>+ <FormDescription>+ A tooltip with extra information about the monitor will be+ displayed.+ </FormDescription>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ {statusPages.length > 0 ? (+ <FormField+ control={form.control}+ name="statusPages"+ render={() => (+ <FormItem>+ <div className="flex items-center justify-between">+ <FormLabel className="text-base">+ List of Status Pages+ </FormLabel>+ <Button+ variant="ghost"+ size="sm"+ type="button"+ className={cn(+ watchStatusPages.length === statusPages.length &&+ "text-muted-foreground",+ )}+ onClick={() => {+ const allSelected = statusPages.every((item) =>+ watchStatusPages.includes(item.id),+ );++ if (!allSelected) {+ form.setValue(+ "statusPages",+ statusPages.map((item) => item.id),+ );+ } else {+ form.setValue("statusPages", []);+ }+ }}+ >+ Select all+ </Button>+ </div>+ {statusPages.map((item) => (+ <FormField+ key={item.id}+ control={form.control}+ name="statusPages"+ render={({ field }) => {+ return (+ <FormItem+ key={item.id}+ className="flex items-center"+ >+ <FormControl>+ <Checkbox+ checked={+ field.value?.includes(item.id) || false+ }+ onCheckedChange={(checked) => {+ return checked+ ? field.onChange([+ ...field.value,+ item.id,+ ])+ : field.onChange(+ field.value?.filter(+ (value) => value !== item.id,+ ),+ );+ }}+ />+ </FormControl>+ <FormLabel className="font-normal text-sm">+ {item.title}{" "}+ <Badge+ variant="secondary"+ className="px-1.5 py-px font-mono text-[10px]"+ >+ {item.slug}+ </Badge>+ </FormLabel>+ </FormItem>+ );+ }}+ />+ ))}+ <FormMessage />+ </FormItem>+ )}+ />+ ) : (+ <EmptyStateContainer>+ <EmptyStateTitle>No status pages</EmptyStateTitle>+ </EmptyStateContainer>+ )}+ </FormCardContent>+ <FormCardFooter>+ <Button type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/form-tags.tsx b/apps/dashboard/src/components/forms/monitor/form-tags.tsxnew file mode 100644index 000000000..2f6f58c44--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/form-tags.tsx@@ -0,0 +1,278 @@+"use client";++import { Link } from "@/components/common/link";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Badge } from "@/components/ui/badge";+import { Button } from "@/components/ui/button";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+} from "@/components/ui/command";+import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import { useTRPC } from "@/lib/trpc/client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { useMutation, useQuery } from "@tanstack/react-query";+import { Check, ChevronsUpDown } from "lucide-react";+import { useEffect, useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";+import { FormSheetMonitorTag } from "../monitor-tag/sheet";++const schema = z.object({+ tags: z.array(+ z.object({+ id: z.number(),+ name: z.string(),+ color: z.string(),+ }),+ ),+});++type FormValues = z.infer<typeof schema>;++export function FormTags({+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const trpc = useTRPC();+ const { data: tags, refetch } = useQuery(trpc.monitorTag.list.queryOptions());+ const syncTagsMutation = useMutation(+ trpc.monitorTag.syncTags.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ tags: [],+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: "Failed to save",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ useEffect(() => {+ // if tags name/color changed, update the form+ if (!tags) {+ form.setValue("tags", []);+ } else {+ const formTags = form.getValues("tags");+ form.setValue(+ "tags",+ tags+ ?.filter((tag) => formTags.map((t) => t.id).includes(tag.id))+ .map((tag) => ({+ id: tag.id,+ name: tag.name,+ color: tag.color,+ })) ?? [],+ );+ }+ }, [tags, form]);++ if (!tags) return null;++ return (+ <Form {...form}>+ <form+ onSubmit={form.handleSubmit(submitAction)}+ id="monitor-tags-form"+ {...props}+ >+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Tags</FormCardTitle>+ <FormCardDescription>+ Add tags to categorize and organize your monitor.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent className="grid gap-4 md:grid-cols-2">+ <FormField+ control={form.control}+ name="tags"+ render={({ field }) => (+ <FormItem className="flex flex-col md:col-span-1">+ <FormLabel>Tags</FormLabel>+ <Popover>+ <PopoverTrigger asChild>+ <FormControl>+ <Button+ variant="outline"+ role="combobox"+ className={cn(+ "h-auto min-h-9 w-full justify-between",+ !field.value?.length && "text-muted-foreground",+ )}+ >+ <div className="group/badges -space-x-2 flex flex-wrap">+ {field.value.length ? (+ field.value.map((tag) => (+ <Badge+ key={tag.id}+ variant="outline"+ className="relative flex translate-x-0 items-center gap-1.5 rounded-full bg-background transition-transform hover:z-10 hover:translate-x-1"+ >+ <div+ className={cn("size-2.5 rounded-full")}+ style={{ backgroundColor: tag.color }}+ />+ {tag.name}+ </Badge>+ ))+ ) : (+ <span className="text-muted-foreground">+ No tags selected+ </span>+ )}+ </div>+ <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />+ </Button>+ </FormControl>+ </PopoverTrigger>+ <PopoverContent className="w-[var(--radix-popover-trigger-width)] p-0">+ <Command>+ <CommandInput placeholder="Search tags..." />+ <CommandList className="w-full">+ <CommandEmpty>No tag found.</CommandEmpty>+ <CommandGroup>+ {tags?.map((tag) => (+ <CommandItem+ value={tag.name}+ key={tag.id}+ onSelect={() => {+ if (+ field.value+ .map((tag) => tag.id)+ ?.includes(tag.id)+ ) {+ form.setValue(+ "tags",+ field.value.filter(+ (value) => value.id !== tag.id,+ ),+ );+ } else {+ form.setValue("tags", [+ ...(field.value ?? []),+ {+ id: tag.id,+ name: tag.name,+ color: tag.color,+ },+ ]);+ }+ }}+ >+ <div+ className={cn("mr-2 h-4 w-4 rounded-full")}+ style={{ backgroundColor: tag.color }}+ />+ {tag.name}+ <Check+ className={cn(+ "ml-auto h-4 w-4",+ field.value+ ?.map((tag) => tag.id)+ ?.includes(tag.id)+ ? "opacity-100"+ : "opacity-0",+ )}+ />+ </CommandItem>+ ))}+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ <FormMessage />+ </FormItem>+ )}+ />+ <div className="flex items-end">+ <FormSheetMonitorTag+ onSubmit={async (values) => {+ await syncTagsMutation.mutateAsync(values.tags);+ }}+ defaultValues={{+ tags: tags.map((tag) => ({+ id: tag.id,+ name: tag.name,+ color: tag.color,+ })),+ }}+ >+ <Button variant="outline" size="sm">+ Edit Tags+ </Button>+ </FormSheetMonitorTag>+ </div>+ </FormCardContent>+ <FormCardFooter>+ <FormCardFooterInfo>+ Learn more about{" "}+ <Link+ href="https://www.openstatus.dev/changelog/monitor-tags"+ rel="noreferrer"+ target="_blank"+ >+ tags+ </Link>{" "}+ and how to use them.+ </FormCardFooterInfo>+ <Button type="submit" form="monitor-tags-form" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/form-visibility.tsx b/apps/dashboard/src/components/forms/monitor/form-visibility.tsxnew file mode 100644index 000000000..b571a04c6--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/form-visibility.tsx@@ -0,0 +1,150 @@+"use client";++import { Link } from "@/components/common/link";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardTitle,+ FormCardUpgrade,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+} from "@/components/ui/form";+import { Switch } from "@/components/ui/switch";+import { zodResolver } from "@hookform/resolvers/zod";+import { Lock } from "lucide-react";+import NextLink from "next/link";+import { useParams } from "next/navigation";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ visibility: z.boolean(),+});++type FormValues = z.infer<typeof schema>;++export function FormVisibility({+ locked,+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ locked?: boolean;+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ visibility: false,+ },+ });+ const [isPending, startTransition] = useTransition();+ const { id } = useParams<{ id: string }>();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: "Failed to save",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ {locked ? <FormCardUpgrade /> : null}+ <FormCardHeader>+ <FormCardTitle>Visibility</FormCardTitle>+ <FormCardDescription>+ Share your monitor stats with the public.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ <FormField+ control={form.control}+ name="visibility"+ disabled={locked}+ render={({ field }) => (+ <FormItem className="flex flex-row items-center justify-between">+ <div className="space-y-0.5">+ <FormLabel>Allow public access</FormLabel>+ <FormDescription>+ Change monitor visibility. When checked, the monitor stats+ from the overview page will be public. You will be able to+ share it via a connected status page or{" "}+ <Link+ href={`https://openstatus.dev/public/monitors/${id}`}+ target="_blank"+ rel="noopener noreferrer"+ >+ https://openstatus.dev/public/monitors/{id}+ </Link>+ .+ </FormDescription>+ </div>+ <FormControl>+ <Switch+ checked={field.value}+ onCheckedChange={field.onChange}+ disabled={locked}+ />+ </FormControl>+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardFooter>+ <FormCardFooterInfo>+ Learn more about{" "}+ <Link+ href="https://docs.openstatus.dev/status-page/advanced/monitors/"+ rel="noreferrer"+ target="_blank"+ >+ monitor visibility+ </Link>+ .+ </FormCardFooterInfo>+ {locked ? (+ <Button asChild>+ <NextLink href="/settings/billing">+ <Lock className="size-4" />+ Upgrade+ </NextLink>+ </Button>+ ) : (+ <Button type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ )}+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/monitor/update.tsx b/apps/dashboard/src/components/forms/monitor/update.tsxnew file mode 100644index 000000000..cb30b0a44--- /dev/null+++ b/apps/dashboard/src/components/forms/monitor/update.tsx@@ -0,0 +1,244 @@+"use client";++import { FormCardGroup } from "@/components/forms/form-card";+import { useTRPC } from "@/lib/trpc/client";+import { deserialize } from "@openstatus/assertions";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { useParams, useRouter } from "next/navigation";+import { FormDangerZone } from "./form-danger-zone";+import { FormGeneral } from "./form-general";+import { FormNotifiers } from "./form-notifiers";+import { FormOtel } from "./form-otel";+import { FormResponseTime } from "./form-response-time";+import { FormRetry, RETRY_DEFAULT } from "./form-retry";+import { FormSchedulingRegions } from "./form-scheduling-regions";+import { FormStatusPages } from "./form-status-pages";+import { FormTags } from "./form-tags";+import { FormVisibility } from "./form-visibility";++export function FormMonitorUpdate() {+ const { id } = useParams<{ id: string }>();+ const trpc = useTRPC();+ const router = useRouter();+ const queryClient = useQueryClient();+ const { data: monitor, refetch } = useQuery(+ trpc.monitor.get.queryOptions({ id: Number.parseInt(id) }),+ );+ const { data: statusPages } = useQuery(trpc.page.list.queryOptions());+ const { data: notifications } = useQuery(+ trpc.notification.list.queryOptions(),+ );+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const updateRetryMutation = useMutation(+ trpc.monitor.updateRetry.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );+ const updateOtelMutation = useMutation(+ trpc.monitor.updateOtel.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );+ const updatePublicMutation = useMutation(+ trpc.monitor.updatePublic.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );+ const updateSchedulingRegionsMutation = useMutation(+ trpc.monitor.updateSchedulingRegions.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );+ const updateResponseTimeMutation = useMutation(+ trpc.monitor.updateResponseTime.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );+ const updateTagsMutation = useMutation(+ trpc.monitor.updateTags.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ const updateGeneralMutation = useMutation(+ trpc.monitor.updateGeneral.mutationOptions({+ onSuccess: () => {+ // NOTE: invalidate the list query to update the monitor in the list (especially the name)+ queryClient.invalidateQueries({+ queryKey: trpc.monitor.list.queryKey(),+ });+ refetch();+ },+ onError: (err) => {+ // TODO: open dialog+ console.error(err);+ },+ }),+ );++ const updateStatusPagesMutation = useMutation(+ trpc.monitor.updateStatusPages.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ const updateNotifiersMutation = useMutation(+ trpc.monitor.updateNotifiers.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ const deleteMonitorMutation = useMutation(+ trpc.monitor.delete.mutationOptions({+ onSuccess: () => {+ queryClient.invalidateQueries({+ queryKey: trpc.monitor.list.queryKey(),+ });+ router.push("/monitors");+ },+ }),+ );++ if (!monitor || !statusPages || !notifications || !workspace) return null;++ return (+ <FormCardGroup>+ <FormGeneral+ defaultValues={{+ type: monitor.jobType as "http" | "tcp",+ url: monitor.url,+ name: monitor.name,+ method: monitor.method as "GET" | "POST" | "PUT" | "PATCH" | "DELETE",+ headers: monitor.headers ?? [],+ body: monitor.body,+ active: monitor.active ?? true,+ // TODO: move to server after migration+ assertions: monitor?.assertions+ ? deserialize(monitor?.assertions).map((a) => a.schema)+ : [],+ skipCheck: false,+ saveCheck: false,+ }}+ onSubmit={async (values) => {+ await updateGeneralMutation.mutateAsync({+ id: Number.parseInt(id),+ name: values.name,+ jobType: values.type,+ url: values.url,+ method: values.method,+ headers: values.headers,+ body: values.body,+ assertions: values.assertions,+ skipCheck: values.skipCheck,+ saveCheck: values.saveCheck,+ active: values.active,+ });+ }}+ />+ <FormResponseTime+ defaultValues={{+ timeout: monitor.timeout,+ degradedAfter: monitor.degradedAfter ?? undefined,+ }}+ onSubmit={async (values) => {+ await updateResponseTimeMutation.mutateAsync({+ id: Number.parseInt(id),+ timeout: values.timeout,+ degradedAfter: values.degradedAfter ?? undefined,+ });+ }}+ />+ <FormTags+ defaultValues={{+ tags: monitor.tags,+ }}+ onSubmit={async (values) => {+ await updateTagsMutation.mutateAsync({+ id: Number.parseInt(id),+ tags: values.tags.map((tag) => tag.id),+ });+ }}+ />+ <FormSchedulingRegions+ defaultValues={{+ regions: monitor.regions,+ periodicity: monitor.periodicity,+ }}+ onSubmit={async (values) => {+ await updateSchedulingRegionsMutation.mutateAsync({+ id: Number.parseInt(id),+ regions: values.regions,+ periodicity: values.periodicity,+ });+ }}+ />+ <FormStatusPages+ statusPages={statusPages}+ defaultValues={{+ statusPages: monitor.pages.map(({ id }) => id),+ description: monitor.description,+ }}+ onSubmit={async (values) => {+ await updateStatusPagesMutation.mutateAsync({+ id: Number.parseInt(id),+ statusPages: values.statusPages,+ description: values.description,+ });+ }}+ />+ <FormNotifiers+ notifiers={notifications}+ defaultValues={{+ notifiers: monitor.notifications.map(({ id }) => id),+ }}+ onSubmit={async (values) => {+ await updateNotifiersMutation.mutateAsync({+ id: Number.parseInt(id),+ notifiers: values.notifiers,+ });+ }}+ />+ <FormRetry+ defaultValues={{+ retry: monitor.retry ?? RETRY_DEFAULT,+ }}+ onSubmit={async (values) =>+ await updateRetryMutation.mutateAsync({+ id: Number.parseInt(id),+ retry: values.retry,+ })+ }+ />+ <FormOtel+ locked={workspace.limits.otel === false}+ defaultValues={{+ endpoint: monitor.otelEndpoint ?? "",+ headers: monitor.otelHeaders ?? [],+ }}+ onSubmit={async (values) => {+ await updateOtelMutation.mutateAsync({+ id: Number.parseInt(id),+ otelEndpoint: values.endpoint,+ otelHeaders: values.headers,+ });+ }}+ />+ <FormVisibility+ defaultValues={{+ visibility: monitor.public ?? false,+ }}+ onSubmit={async (values) => {+ await updatePublicMutation.mutateAsync({+ id: Number.parseInt(id),+ public: values.visibility,+ });+ }}+ />+ <FormDangerZone+ onSubmit={async () => {+ await deleteMonitorMutation.mutateAsync({ id: Number.parseInt(id) });+ }}+ />+ </FormCardGroup>+ );+}diff --git a/apps/dashboard/src/components/forms/notifications/form-discord.tsx b/apps/dashboard/src/components/forms/notifications/form-discord.tsxnew file mode 100644index 000000000..4ad1ea867--- /dev/null+++ b/apps/dashboard/src/components/forms/notifications/form-discord.tsx@@ -0,0 +1,216 @@+"use client";++import { Checkbox } from "@/components/ui/checkbox";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import { Link } from "@/components/common/link";+import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { config } from "@/data/notifications.client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { isTRPCClientError } from "@trpc/client";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ name: z.string(),+ provider: z.literal("discord"),+ data: z.string(),+ monitors: z.array(z.number()),+});++type FormValues = z.infer<typeof schema>;++export function FormDiscord({+ defaultValues,+ onSubmit,+ className,+ monitors,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ name: "",+ provider: "discord",+ data: "",+ monitors: [],+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ function testAction() {+ if (isPending) return;++ startTransition(async () => {+ try {+ const provider = form.getValues("provider");+ const data = form.getValues("data");+ const promise = config[provider].sendTest(data);+ toast.promise(promise, {+ loading: "Sending test...",+ success: "Test sent",+ error: (error) => {+ if (error instanceof Error) {+ return error.message;+ }+ return "Failed to send test";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="My Notifier" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter a descriptive name for your notifier.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Webhook URL</FormLabel>+ <FormControl>+ <Input placeholder="https://example.com/webhook" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter the webhook URL to your Discord channel.{" "}+ <Link+ href="https://docs.openstatus.dev/alerting/providers/discord/"+ rel="noreferrer"+ target="_blank"+ >+ Read more+ </Link>+ .+ </FormDescription>+ </FormItem>+ )}+ />+ <div>+ <Button variant="outline" size="sm" onClick={testAction}>+ Send Test+ </Button>+ </div>+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Select the monitors you want to notify.+ </FormDescription>+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/notifications/form-email.tsx b/apps/dashboard/src/components/forms/notifications/form-email.tsxnew file mode 100644index 000000000..8887c5685--- /dev/null+++ b/apps/dashboard/src/components/forms/notifications/form-email.tsx@@ -0,0 +1,179 @@+"use client";++import { Checkbox } from "@/components/ui/checkbox";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { isTRPCClientError } from "@trpc/client";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ name: z.string(),+ provider: z.literal("email"),+ data: z.string().email(),+ monitors: z.array(z.number()),+});++type FormValues = z.infer<typeof schema>;++export function FormEmail({+ monitors,+ defaultValues,+ onSubmit,+ className,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ name: "",+ provider: "email",+ data: "",+ monitors: [],+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="My Notifier" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter a descriptive name for your notifier.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Email</FormLabel>+ <FormControl>+ <Input+ placeholder="[email protected]"+ type="email"+ {...field}+ />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter the email address to send notifications to.+ </FormDescription>+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Select the monitors you want to notify.+ </FormDescription>+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/notifications/form-ntfy.tsx b/apps/dashboard/src/components/forms/notifications/form-ntfy.tsxnew file mode 100644index 000000000..5a553c186--- /dev/null+++ b/apps/dashboard/src/components/forms/notifications/form-ntfy.tsx@@ -0,0 +1,254 @@+"use client";++import { Checkbox } from "@/components/ui/checkbox";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { config } from "@/data/notifications.client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { isTRPCClientError } from "@trpc/client";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ name: z.string(),+ provider: z.literal("ntfy"),+ data: z.record(z.string(), z.string()),+ monitors: z.array(z.number()),+});++type FormValues = z.infer<typeof schema>;++export function FormNtfy({+ defaultValues,+ onSubmit,+ className,+ monitors,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ name: "",+ provider: "ntfy",+ data: {+ topic: "",+ serverUrl: "",+ token: "",+ },+ monitors: [],+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ function testAction() {+ if (isPending) return;++ startTransition(async () => {+ try {+ const provider = form.getValues("provider");+ const data = form.getValues("data");+ const promise = config[provider].sendTest(+ data as unknown as {+ topic: string;+ serverUrl?: string;+ token?: string;+ },+ );+ toast.promise(promise, {+ loading: "Sending test...",+ success: "Test sent",+ error: (error) => {+ if (error instanceof Error) {+ return error.message;+ }+ return "Failed to send test";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="My Notifier" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter a descriptive name for your notifier.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data.topic"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Topic</FormLabel>+ <FormControl>+ <Input placeholder="your-topic" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter the topic for your ntfy notifications.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data.serverUrl"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Server URL</FormLabel>+ <FormControl>+ <Input placeholder="https://ntfy.sh" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter the ntfy server URL. Leave empty for default.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data.token"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Bearer Token</FormLabel>+ <FormControl>+ <Input placeholder="tk_iloveopenstatus" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter the bearer token for authentication.+ </FormDescription>+ </FormItem>+ )}+ />+ <div>+ <Button+ variant="outline"+ size="sm"+ type="button"+ onClick={testAction}+ >+ Send Test+ </Button>+ </div>+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Select the monitors you want to notify.+ </FormDescription>+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/notifications/form-opsgenie.tsx b/apps/dashboard/src/components/forms/notifications/form-opsgenie.tsxnew file mode 100644index 000000000..78ea54651--- /dev/null+++ b/apps/dashboard/src/components/forms/notifications/form-opsgenie.tsx@@ -0,0 +1,250 @@+"use client";++import { Checkbox } from "@/components/ui/checkbox";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { config } from "@/data/notifications.client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { isTRPCClientError } from "@trpc/client";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ name: z.string(),+ provider: z.literal("opsgenie"),+ data: z.record(z.string(), z.string()),+ monitors: z.array(z.number()),+});++type FormValues = z.infer<typeof schema>;++export function FormOpsGenie({+ defaultValues,+ onSubmit,+ className,+ monitors,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ name: "",+ provider: "opsgenie",+ data: {+ apiKey: "",+ region: undefined,+ },+ monitors: [],+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ function testAction() {+ if (isPending) return;++ startTransition(async () => {+ try {+ const provider = form.getValues("provider");+ const data = form.getValues("data");+ const promise = config[provider].sendTest(+ data as unknown as {+ apiKey: string;+ region: "eu" | "us";+ },+ );+ toast.promise(promise, {+ loading: "Sending test...",+ success: "Test sent",+ error: (error) => {+ if (error instanceof Error) {+ return error.message;+ }+ return "Failed to send test";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="My Notifier" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter a descriptive name for your notifier.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data.apiKey"+ render={({ field }) => (+ <FormItem>+ <FormLabel>API Key</FormLabel>+ <FormControl>+ <Input placeholder="your-api-key" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>Enter your OpsGenie API key.</FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data.region"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Region</FormLabel>+ <Select+ onValueChange={field.onChange}+ defaultValue={field.value}+ >+ <FormControl>+ <SelectTrigger>+ <SelectValue placeholder="Select a region" />+ </SelectTrigger>+ </FormControl>+ <SelectContent>+ <SelectItem value="us">US</SelectItem>+ <SelectItem value="eu">EU</SelectItem>+ </SelectContent>+ </Select>+ <FormMessage />+ <FormDescription>Select your OpsGenie region.</FormDescription>+ </FormItem>+ )}+ />+ <div>+ <Button+ variant="outline"+ size="sm"+ type="button"+ onClick={testAction}+ >+ Send Test+ </Button>+ </div>+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Select the monitors you want to notify.+ </FormDescription>+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/notifications/form-pagerduty.tsx b/apps/dashboard/src/components/forms/notifications/form-pagerduty.tsxnew file mode 100644index 000000000..3f55d82ac--- /dev/null+++ b/apps/dashboard/src/components/forms/notifications/form-pagerduty.tsx@@ -0,0 +1,232 @@+"use client";++import { Checkbox } from "@/components/ui/checkbox";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { config } from "@/data/notifications.client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { PagerDutySchema } from "@openstatus/notification-pagerduty";+import { isTRPCClientError } from "@trpc/client";+import { parseAsString, useQueryState } from "nuqs";+import { useEffect, useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ name: z.string(),+ provider: z.literal("pagerduty"),+ data: z.string(),+ monitors: z.array(z.number()),+});++type FormValues = z.infer<typeof schema>;++export function FormPagerDuty({+ monitors,+ defaultValues,+ onSubmit,+ className,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+}) {+ const [searchConfig] = useQueryState("config", parseAsString);+ console.log(searchConfig);+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ name: "",+ provider: "pagerduty",+ data: "",+ monitors: [],+ },+ });+ const [isPending, startTransition] = useTransition();++ useEffect(() => {+ if (searchConfig) {+ const data = PagerDutySchema.safeParse(searchConfig);+ if (data.success) {+ form.setValue("data", JSON.stringify(data.data));+ } else {+ toast.error("Invalid PagerDuty configuration");+ }+ }+ }, [searchConfig, form]);++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ function testAction() {+ if (isPending) return;++ startTransition(async () => {+ try {+ const provider = form.getValues("provider");+ const data = form.getValues("data");+ const promise = config[provider].sendTest(+ data as unknown as {+ url: string;+ integrationKey: string;+ },+ );+ toast.promise(promise, {+ loading: "Sending test...",+ success: "Test sent",+ error: (error) => {+ if (error instanceof Error) {+ return error.message;+ }+ return "Failed to send test";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="My Notifier" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter a descriptive name for your notifier.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Config</FormLabel>+ <FormControl>+ <Input placeholder="..." disabled {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ The PagerDuty configuration that is being used.+ </FormDescription>+ </FormItem>+ )}+ />+ <div>+ <Button+ variant="outline"+ size="sm"+ type="button"+ onClick={testAction}+ >+ Send Test+ </Button>+ </div>+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Select the monitors you want to notify.+ </FormDescription>+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/notifications/form-slack.tsx b/apps/dashboard/src/components/forms/notifications/form-slack.tsxnew file mode 100644index 000000000..ca42c610d--- /dev/null+++ b/apps/dashboard/src/components/forms/notifications/form-slack.tsx@@ -0,0 +1,221 @@+"use client";++import { Checkbox } from "@/components/ui/checkbox";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import { Link } from "@/components/common/link";+import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { config } from "@/data/notifications.client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { isTRPCClientError } from "@trpc/client";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ name: z.string(),+ provider: z.literal("slack"),+ data: z.string().url(),+ monitors: z.array(z.number()),+});++type FormValues = z.infer<typeof schema>;++export function FormSlack({+ defaultValues,+ onSubmit,+ className,+ monitors,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ name: "",+ provider: "slack",+ data: "",+ monitors: [],+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ function testAction() {+ if (isPending) return;++ startTransition(async () => {+ try {+ const provider = form.getValues("provider");+ const data = form.getValues("data");+ const promise = config[provider].sendTest(data);+ toast.promise(promise, {+ loading: "Sending test...",+ success: "Test sent",+ error: (error) => {+ if (error instanceof Error) {+ return error.message;+ }+ return "Failed to send test";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="My Notifier" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter a descriptive name for your notifier.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Webhook URL</FormLabel>+ <FormControl>+ <Input placeholder="https://example.com/webhook" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter the webhook URL to your Slack channel.{" "}+ <Link+ href="https://docs.openstatus.dev/alerting/providers/slack/"+ rel="noreferrer"+ target="_blank"+ >+ Read more+ </Link>+ .+ </FormDescription>+ </FormItem>+ )}+ />+ <div>+ <Button+ variant="outline"+ size="sm"+ type="button"+ onClick={testAction}+ >+ Send Test+ </Button>+ </div>+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Select the monitors you want to notify.+ </FormDescription>+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/notifications/form-sms.tsx b/apps/dashboard/src/components/forms/notifications/form-sms.tsxnew file mode 100644index 000000000..15a437494--- /dev/null+++ b/apps/dashboard/src/components/forms/notifications/form-sms.tsx@@ -0,0 +1,169 @@+"use client";++import { Checkbox } from "@/components/ui/checkbox";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ name: z.string(),+ provider: z.literal("sms"),+ data: z.string(),+ monitors: z.array(z.number()),+});++type FormValues = z.infer<typeof schema>;++export function FormSms({+ defaultValues,+ onSubmit,+ className,+ monitors,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ name: "",+ provider: "sms",+ data: "",+ monitors: [],+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => JSON.stringify(values),+ error: "Failed to save",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="My Notifier" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter a descriptive name for your notifier.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data"+ render={({ field }) => (+ <FormItem>+ <FormLabel>SMS</FormLabel>+ <FormControl>+ <Input placeholder="+1234567890" type="tel" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter the phone number to send notifications to.+ </FormDescription>+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Select the monitors you want to notify.+ </FormDescription>+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/notifications/form-webhook.tsx b/apps/dashboard/src/components/forms/notifications/form-webhook.tsxnew file mode 100644index 000000000..9434f6eda--- /dev/null+++ b/apps/dashboard/src/components/forms/notifications/form-webhook.tsx@@ -0,0 +1,229 @@+"use client";++import { Checkbox } from "@/components/ui/checkbox";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import { Link } from "@/components/common/link";+import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { config } from "@/data/notifications.client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { isTRPCClientError } from "@trpc/client";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ name: z.string(),+ provider: z.literal("webhook"),+ data: z.record(z.string(), z.string()),+ monitors: z.array(z.number()),+});++type FormValues = z.infer<typeof schema>;++export function FormWebhook({+ defaultValues,+ onSubmit,+ className,+ monitors,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ name: "",+ provider: "webhook",+ data: {+ endpoint: "",+ // headers: []+ },+ monitors: [],+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ function testAction() {+ if (isPending) return;++ startTransition(async () => {+ try {+ const provider = form.getValues("provider");+ const data = form.getValues("data");+ const promise = config[provider].sendTest(+ data as unknown as {+ url: string;+ headers?: { key: string; value: string }[];+ },+ );+ toast.promise(promise, {+ loading: "Sending test...",+ success: "Test sent",+ error: (error) => {+ if (error instanceof Error) {+ return error.message;+ }+ return "Failed to send test";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="My Notifier" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter a descriptive name for your notifier.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data.endpoint"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Webhook URL</FormLabel>+ <FormControl>+ <Input placeholder="https://example.com/webhook" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Send notifications to a custom webhook URL.{" "}+ <Link+ href="https://docs.openstatus.dev/alerting/providers/webhook/"+ rel="noreferrer"+ target="_blank"+ >+ Read more+ </Link>+ .+ </FormDescription>+ </FormItem>+ )}+ />+ <div>+ <Button+ variant="outline"+ size="sm"+ type="button"+ onClick={testAction}+ >+ Send Test+ </Button>+ </div>+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Select the monitors you want to notify.+ </FormDescription>+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/notifications/form.tsx b/apps/dashboard/src/components/forms/notifications/form.tsxnew file mode 100644index 000000000..38436e5cd--- /dev/null+++ b/apps/dashboard/src/components/forms/notifications/form.tsx@@ -0,0 +1,169 @@+"use client";++import { Checkbox } from "@/components/ui/checkbox";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ name: z.string(),+ provider: z.enum([+ "slack",+ "discord",+ "email",+ "sms",+ "webhook",+ "opsgenie",+ "pagerduty",+ "ntfy",+ ]),+ data: z.record(z.string(), z.string()).or(z.string()),+ monitors: z.array(z.number()),+});++export type FormValues = z.infer<typeof schema>;++export function NotifierForm({+ defaultValues,+ className,+ onSubmit,+ monitors,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit?: (values: FormValues) => Promise<void> | void;+ monitors: { id: number; name: string }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ name: "",+ data: {+ webhook: "",+ },+ monitors: [],+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = new Promise((resolve) => setTimeout(resolve, 1000));+ toast.promise(promise, {+ loading: "Saving...",+ success: () => JSON.stringify(values),+ error: "Failed to save",+ });+ await promise;+ onSubmit?.(values);+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ id="notifier-form"+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="My Notifier" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter a descriptive name for your notifier.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="data.webhook"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Webhook URL</FormLabel>+ <FormControl>+ <Input placeholder="https://example.com/webhook" {...field} />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Select the monitors you want to notify.+ </FormDescription>+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/notifications/sheet.tsx b/apps/dashboard/src/components/forms/notifications/sheet.tsxnew file mode 100644index 000000000..84c4cbb71--- /dev/null+++ b/apps/dashboard/src/components/forms/notifications/sheet.tsx@@ -0,0 +1,83 @@+"use client";++import { FormCard, FormCardGroup } from "@/components/forms/form-card";+import {+ FormSheet,+ FormSheetContent,+ FormSheetDescription,+ FormSheetFooter,+ FormSheetHeader,+ FormSheetTitle,+ FormSheetTrigger,+} from "@/components/forms/form-sheet";+import { Button } from "@/components/ui/button";+import { config } from "@/data/notifications.client";+import { useState } from "react";+import type { FormValues } from "./form";++export function FormSheetNotifier({+ children,+ defaultValues,+ provider,+ onSubmit,+ monitors,+ defaultOpen,+ ...props+}: Omit<React.ComponentProps<typeof FormSheetTrigger>, "onSubmit"> & {+ defaultValues?: FormValues;+ provider: FormValues["provider"];+ onSubmit?: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+ defaultOpen?: boolean;+}) {+ const [open, setOpen] = useState(defaultOpen ?? false);+ const Form = provider ? config[provider].form : undefined;++ return (+ <FormSheet open={open} onOpenChange={setOpen}>+ <FormSheetTrigger {...props} asChild>+ {children}+ </FormSheetTrigger>+ <FormSheetContent>+ <FormSheetHeader>+ <FormSheetTitle>Notifier</FormSheetTitle>+ <FormSheetDescription>+ Configure and update the notifier.+ </FormSheetDescription>+ </FormSheetHeader>+ <FormCardGroup className="overflow-y-auto">+ <FormCard className="overflow-auto rounded-none border-none">+ {Form && (+ <Form+ id={`notifier-form-${provider}`}+ className="my-4"+ onSubmit={async (values) => {+ await onSubmit?.(values);+ setOpen(false);+ }}+ // @ts-expect-error - defaultValues is not defined in the form component+ defaultValues={+ defaultValues+ ? {+ ...defaultValues,+ data:+ typeof defaultValues?.data === "string"+ ? defaultValues?.data+ : defaultValues?.data?.[provider],+ }+ : undefined+ }+ monitors={monitors}+ />+ )}+ </FormCard>+ </FormCardGroup>+ <FormSheetFooter>+ <Button type="submit" form={`notifier-form-${provider}`}>+ Submit+ </Button>+ </FormSheetFooter>+ </FormSheetContent>+ </FormSheet>+ );+}diff --git a/apps/dashboard/src/components/forms/onboarding/create-monitor.tsx b/apps/dashboard/src/components/forms/onboarding/create-monitor.tsxnew file mode 100644index 000000000..dbaa157a3--- /dev/null+++ b/apps/dashboard/src/components/forms/onboarding/create-monitor.tsx@@ -0,0 +1,81 @@+"use client";++import {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { zodResolver } from "@hookform/resolvers/zod";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ url: z.string().url(),+});++export type FormValues = z.infer<typeof schema>;++export function CreateMonitorForm({+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ url: "",+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: "Failed to save",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormField+ control={form.control}+ name="url"+ render={({ field }) => (+ <FormItem>+ <FormLabel>URL</FormLabel>+ <FormControl>+ <Input placeholder="https://api.openstatus.dev" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter the URL of your API or website.+ </FormDescription>+ </FormItem>+ )}+ />+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/onboarding/create-page.tsx b/apps/dashboard/src/components/forms/onboarding/create-page.tsxnew file mode 100644index 000000000..f29c9afbc--- /dev/null+++ b/apps/dashboard/src/components/forms/onboarding/create-page.tsx@@ -0,0 +1,84 @@+"use client";++import { InputWithAddons } from "@/components/common/input-with-addons";+import {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { zodResolver } from "@hookform/resolvers/zod";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ slug: z.string().min(3),+});++export type FormValues = z.infer<typeof schema>;++export function CreatePageForm({+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? { slug: "" },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: "Failed to save",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormField+ control={form.control}+ name="slug"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Slug</FormLabel>+ <FormControl>+ <InputWithAddons+ placeholder="status"+ trailing=".openstatus.dev"+ {...field}+ />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Choose a unique subdomain for your status page (minimum 3+ characters).+ </FormDescription>+ </FormItem>+ )}+ />+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/onboarding/learn-from.tsx b/apps/dashboard/src/components/forms/onboarding/learn-from.tsxnew file mode 100644index 000000000..f7275f06f--- /dev/null+++ b/apps/dashboard/src/components/forms/onboarding/learn-from.tsx@@ -0,0 +1,175 @@+"use client";++import { Note } from "@/components/common/note";+import { Button } from "@/components/ui/button";+import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { Check } from "lucide-react";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const learnedFrom = [+ {+ id: "twitter",+ title: "Twitter / X",+ },+ {+ id: "bsky",+ title: "Bluesky",+ },+ {+ id: "linkedin",+ title: "LinkedIn",+ },+ {+ id: "reddit",+ title: "Reddit",+ },+ {+ id: "github",+ title: "GitHub",+ },+ {+ id: "friends",+ title: "Friends or Colleagues",+ },+ {+ id: "seo",+ title: "Search Engine (Google, Bing, etc.)",+ },+ {+ id: "newsletter",+ title: "Blog post or Newsletter",+ },+ {+ id: "other",+ title: "Other",+ },+] as const;++const schema = z.object({+ from: z.string(),+ other: z.string().optional(),+});++export type FormValues = z.infer<typeof schema>;++export function LearnFromForm({+ onSubmit,+ defaultValues,+ className,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const [isPending, startTransition] = useTransition();+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ from: "",+ other: "",+ },+ });+ const watchFrom = form.watch("from");++ function handleSubmit(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Submitting...",+ success: () => "Submitted",+ error: "Failed to submit",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ if (!isPending && form.formState.isSubmitSuccessful) {+ return (+ <Note color="success">+ <Check />+ Thank you for your feedback!+ </Note>+ );+ }++ return (+ <Form {...form}>+ <form+ onSubmit={form.handleSubmit(handleSubmit)}+ className={cn("space-y-3", className)}+ {...props}+ >+ <FormField+ control={form.control}+ name="from"+ render={({ field }) => (+ <FormItem>+ <FormControl>+ <RadioGroup+ onValueChange={field.onChange}+ defaultValue={field.value}+ className="grid grid-cols-1 gap-4 sm:grid-cols-2"+ >+ {learnedFrom.map((item) => (+ <FormItem key={item.id} className="flex items-center gap-3">+ <FormControl>+ <RadioGroupItem value={item.id} id={item.id} />+ </FormControl>+ <FormLabel+ htmlFor={item.id}+ className="w-full font-normal"+ >+ {item.title}+ </FormLabel>+ </FormItem>+ ))}+ </RadioGroup>+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ {watchFrom === "other" && (+ <FormField+ control={form.control}+ name="other"+ render={({ field }) => (+ <FormItem>+ <FormControl>+ <Input+ placeholder="Please specify"+ className="sm:w-1/2"+ {...field}+ />+ </FormControl>+ </FormItem>+ )}+ />+ )}+ <Button size="sm" type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/settings/form-api-key.tsx b/apps/dashboard/src/components/forms/settings/form-api-key.tsxnew file mode 100644index 000000000..80c3d88cc--- /dev/null+++ b/apps/dashboard/src/components/forms/settings/form-api-key.tsx@@ -0,0 +1,177 @@+"use client";++import { Link } from "@/components/common/link";+import {+ EmptyStateDescription,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import { EmptyStateContainer } from "@/components/content/empty-state";+import { DataTable } from "@/components/data-table/settings/api-key/data-table";+import { FormAlertDialog } from "@/components/forms/form-alert-dialog";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardTitle,+} from "@/components/forms/form-card";+import {+ AlertDialog,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+} from "@/components/ui/alert-dialog";+import { Button } from "@/components/ui/button";+import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery } from "@tanstack/react-query";+import { isTRPCClientError } from "@trpc/client";+import { Copy } from "lucide-react";+import { useState, useTransition } from "react";+import { toast } from "sonner";++// we should prefetch the api key on the server (layout)++export function FormApiKey() {+ const trpc = useTRPC();+ const [isPending, startTransition] = useTransition();+ const { copy } = useCopyToClipboard();+ const [result, setResult] = useState<{+ keyId: string;+ key: string;+ } | null>(null);+ const { data: workspace } = useQuery(+ trpc.workspace.getWorkspace.queryOptions(),+ );+ const { data: apiKey, refetch } = useQuery(trpc.apiKey.get.queryOptions());+ const createApiKeyMutation = useMutation(+ trpc.apiKey.create.mutationOptions({+ onSuccess: (data) => {+ if (data.result) {+ setResult(data.result);+ } else {+ throw new Error("Failed to create API key");+ }+ },+ }),+ );+ const revokeApiKeyMutation = useMutation(+ trpc.apiKey.revoke.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ async function createAction() {+ if (isPending || !workspace) return;++ startTransition(async () => {+ try {+ const promise = createApiKeyMutation.mutateAsync({+ ownerId: workspace.id,+ });+ toast.promise(promise, {+ loading: "Creating...",+ success: () => "Created",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to create API key";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>API Key</FormCardTitle>+ <FormCardDescription>+ Create and revoke your API key.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ {!apiKey ? (+ <EmptyStateContainer>+ <EmptyStateTitle>No API key</EmptyStateTitle>+ <EmptyStateDescription>+ Access your data via API.+ </EmptyStateDescription>+ </EmptyStateContainer>+ ) : (+ <DataTable apiKey={apiKey} />+ )}+ </FormCardContent>+ <FormCardFooter>+ <FormCardFooterInfo>+ Trigger monitors via CLI, CI/CD or create your own status page.{" "}+ <Link+ href="https://api.openstatus.dev/v1"+ rel="noreferrer"+ target="_blank"+ >+ Learn more+ </Link>+ .+ </FormCardFooterInfo>+ {!apiKey ? (+ <Button size="sm" onClick={createAction}>+ Create+ </Button>+ ) : (+ <FormAlertDialog+ title="API Key"+ confirmationValue="delete api key"+ submitAction={async () => {+ await revokeApiKeyMutation.mutateAsync({+ keyId: apiKey.id,+ });+ }}+ />+ )}+ </FormCardFooter>+ <AlertDialog open={!!result} onOpenChange={() => setResult(null)}>+ <AlertDialogContent>+ <AlertDialogHeader>+ <AlertDialogTitle>API Key</AlertDialogTitle>+ <AlertDialogDescription>+ Ensure you copy your API key before closing this dialog. You will+ not see it again.+ </AlertDialogDescription>+ </AlertDialogHeader>+ <div className="flex items-center gap-2 rounded-md border bg-muted/50 px-3 py-2">+ <code className="flex-1 font-mono text-sm">{result?.key}</code>+ <Button+ variant="ghost"+ size="icon"+ className="h-8 w-8"+ onClick={() => {+ copy(result?.key || "", { withToast: true });+ }}+ >+ <Copy className="h-4 w-4" />+ </Button>+ </div>+ <AlertDialogFooter>+ <Button+ onClick={() => {+ refetch();+ setResult(null);+ }}+ >+ Done+ </Button>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>+ </FormCard>+ );+}diff --git a/apps/dashboard/src/components/forms/settings/form-members.tsx b/apps/dashboard/src/components/forms/settings/form-members.tsxnew file mode 100644index 000000000..2a256ff21--- /dev/null+++ b/apps/dashboard/src/components/forms/settings/form-members.tsx@@ -0,0 +1,160 @@+"use client";++import { TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";++import {+ FormCardContent,+ FormCardDescription,+ FormCardHeader,+ FormCardSeparator,+ FormCardTitle,+ FormCardUpgrade,+} from "@/components/forms/form-card";++import { Button } from "@/components/ui/button";+import { FormCardFooter, FormCardFooterInfo } from "../form-card";++import { Link } from "@/components/common/link";+import { FormCard } from "@/components/forms/form-card";+import { Tabs } from "@/components/ui/tabs";+import { Lock } from "lucide-react";++import { DataTable as InvitationsDataTable } from "@/components/data-table/settings/invitations/data-table";+import { DataTable as MembersDataTable } from "@/components/data-table/settings/members/data-table";+import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { zodResolver } from "@hookform/resolvers/zod";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ email: z.string().email(),+ role: z.enum(["member"]),+});++type FormValues = z.infer<typeof schema>;++export function FormMembers({+ locked,+ onCreate,+}: {+ locked?: boolean;+ onCreate: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: {+ email: "",+ role: "member",+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onCreate(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: "Failed to save",+ });+ await promise;+ form.reset();+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)}>+ <FormCard>+ {locked ? <FormCardUpgrade /> : null}+ <FormCardHeader>+ <FormCardTitle>Team</FormCardTitle>+ <FormCardDescription>Manage your team members.</FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ <Tabs defaultValue="members">+ <TabsList>+ <TabsTrigger value="members">Members</TabsTrigger>+ <TabsTrigger value="pending">Pending</TabsTrigger>+ </TabsList>+ <TabsContent value="members">+ <MembersDataTable />+ </TabsContent>+ <TabsContent value="pending">+ <InvitationsDataTable />+ </TabsContent>+ </Tabs>+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ disabled={locked}+ name="email"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Add member</FormLabel>+ <FormControl>+ <Input+ type="email"+ placeholder="Email"+ disabled={locked}+ {...field}+ />+ </FormControl>+ <FormMessage />+ <FormCardDescription>+ Send an invitation to join the team.+ </FormCardDescription>+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardFooter>+ {locked ? (+ <>+ <FormCardFooterInfo>+ This feature is available on the{" "}+ <Link+ href="https://www.openstatus.dev/changelog/team-invites"+ rel="noreferrer"+ target="_blank"+ >+ Pro plan+ </Link>+ .+ </FormCardFooterInfo>+ <Button type="button" size="sm" asChild>+ <Link href="/settings/billing">+ <Lock />+ Upgrade+ </Link>+ </Button>+ </>+ ) : (+ <Button type="submit" size="sm" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ )}+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/settings/form-slug.tsx b/apps/dashboard/src/components/forms/settings/form-slug.tsxnew file mode 100644index 000000000..7d667d352--- /dev/null+++ b/apps/dashboard/src/components/forms/settings/form-slug.tsx@@ -0,0 +1,72 @@+"use client";++import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";++import { FormDialogSupportContact } from "@/components/forms/support-contact/dialog";+import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";+import { Check, Copy } from "lucide-react";+import { z } from "zod";++const schema = z.object({+ slug: z.string().min(1),+});++type FormValues = z.infer<typeof schema>;++export function FormSlug({ defaultValues }: { defaultValues?: FormValues }) {+ const { copy, isCopied } = useCopyToClipboard();+ console.log({ defaultValues, schema });++ return (+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Slug</FormCardTitle>+ <FormCardDescription>+ The unique slug for your workspace.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ <Button+ variant="outline"+ size="sm"+ onClick={() =>+ copy(defaultValues?.slug ?? "unknown slug", {+ successMessage: "Copied slug to clipboard",+ })+ }+ >+ {defaultValues?.slug ?? "unknown slug"}+ {isCopied ? (+ <Check size={16} className="text-muted-foreground" />+ ) : (+ <Copy size={16} className="text-muted-foreground" />+ )}+ </Button>+ </FormCardContent>+ <FormCardFooter className="[&>:last-child]:ml-0">+ <FormCardFooterInfo>+ Used when interacting with the API or for help on Discord.{" "}+ <FormDialogSupportContact>+ <Button+ variant="ghost"+ size="sm"+ className="px-0 py-0 text-accent-foreground hover:bg-transparent dark:hover:bg-transparent"+ >+ Let us know+ </Button>+ </FormDialogSupportContact>{" "}+ if you'd like to change it.+ </FormCardFooterInfo>+ </FormCardFooter>+ </FormCard>+ );+}diff --git a/apps/dashboard/src/components/forms/settings/form-workspace.tsx b/apps/dashboard/src/components/forms/settings/form-workspace.tsxnew file mode 100644index 000000000..f74996a94--- /dev/null+++ b/apps/dashboard/src/components/forms/settings/form-workspace.tsx@@ -0,0 +1,101 @@+"use client";++import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardHeader,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { zodResolver } from "@hookform/resolvers/zod";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ name: z.string(),+});++type FormValues = z.infer<typeof schema>;++export function FormWorkspace({+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ name: "",+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: "Failed to save",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Workspace</FormCardTitle>+ <FormCardDescription>+ Manay your workspace name.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input {...field} />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardFooter>+ <Button type="submit" disabled={isPending} size="sm">+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/status-page/form-custom-domain.tsx b/apps/dashboard/src/components/forms/status-page/form-custom-domain.tsxnew file mode 100644index 000000000..ad5f85a42--- /dev/null+++ b/apps/dashboard/src/components/forms/status-page/form-custom-domain.tsx@@ -0,0 +1,145 @@+"use client";++import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardSeparator,+ FormCardTitle,+ FormCardUpgrade,+} from "@/components/forms/form-card";++import { Label } from "@/components/ui/label";++import { InputWithAddons } from "@/components/common/input-with-addons";+import { Button } from "@/components/ui/button";+import { zodResolver } from "@hookform/resolvers/zod";+import { Lock } from "lucide-react";+import { useForm } from "react-hook-form";+import { z } from "zod";++import { Link } from "@/components/common/link";+import DomainConfiguration from "@/components/domains/domain-configuration";+import { Form, FormField, FormItem, FormMessage } from "@/components/ui/form";+import { isTRPCClientError } from "@trpc/client";+import type React from "react";+import { useTransition } from "react";+import { toast } from "sonner";++const schema = z.object({+ domain: z.string(),+});++type FormValues = z.infer<typeof schema>;++export function FormCustomDomain({+ locked,+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ locked?: boolean;+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ domain: undefined,+ },+ });+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ {locked ? <FormCardUpgrade /> : null}+ <FormCardHeader>+ <FormCardTitle>Custom Domain</FormCardTitle>+ <FormCardDescription>+ Use your own domain for your status page.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ <FormField+ control={form.control}+ name="domain"+ render={({ field }) => (+ <FormItem>+ <Label>Domain</Label>+ <InputWithAddons+ placeholder="status.openstatus.dev"+ leading="https://"+ disabled={locked}+ {...field}+ />+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ {defaultValues?.domain ? (+ <>+ <FormCardSeparator />+ <FormCardContent>+ <DomainConfiguration domain={defaultValues?.domain} />+ </FormCardContent>+ </>+ ) : null}+ <FormCardFooter>+ <FormCardFooterInfo>+ Learn more about{" "}+ <Link+ href="https://docs.openstatus.dev/status-page/advanced/custom-domain/"+ rel="noreferrer"+ target="_blank"+ >+ Custom Domain+ </Link>+ .+ </FormCardFooterInfo>+ {locked ? (+ <Button type="button" asChild>+ <Link href="/settings/billing">+ <Lock />+ Upgrade+ </Link>+ </Button>+ ) : (+ <Button type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ )}+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/status-page/form-danger-zone.tsx b/apps/dashboard/src/components/forms/status-page/form-danger-zone.tsxnew file mode 100644index 000000000..b08ff6032--- /dev/null+++ b/apps/dashboard/src/components/forms/status-page/form-danger-zone.tsx@@ -0,0 +1,32 @@+"use client";++import { FormAlertDialog } from "@/components/forms/form-alert-dialog";+import {+ FormCard,+ FormCardDescription,+ FormCardFooter,+ FormCardHeader,+ FormCardTitle,+} from "@/components/forms/form-card";++export function FormDangerZone({+ onSubmit,+}: {+ onSubmit: () => Promise<void>;+}) {+ return (+ <FormCard variant="destructive">+ <FormCardHeader>+ <FormCardTitle>Danger Zone</FormCardTitle>+ <FormCardDescription>This action cannot be undone.</FormCardDescription>+ </FormCardHeader>+ <FormCardFooter variant="destructive" className="justify-end">+ <FormAlertDialog+ title="OpenStatus API"+ confirmationValue="delete status page"+ submitAction={onSubmit}+ />+ </FormCardFooter>+ </FormCard>+ );+}diff --git a/apps/dashboard/src/components/forms/status-page/form-general.tsx b/apps/dashboard/src/components/forms/status-page/form-general.tsxnew file mode 100644index 000000000..b5f939793--- /dev/null+++ b/apps/dashboard/src/components/forms/status-page/form-general.tsx@@ -0,0 +1,283 @@+"use client";++import { InputWithAddons } from "@/components/common/input-with-addons";+import {+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardHeader,+ FormCardSeparator,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Form } from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Textarea } from "@/components/ui/textarea";+import { useDebounce } from "@/hooks/use-debounce";+import { useTRPC } from "@/lib/trpc/client";+import { zodResolver } from "@hookform/resolvers/zod";+import { useMutation, useQuery } from "@tanstack/react-query";+import { isTRPCClientError } from "@trpc/client";+import Image from "next/image";+import { useEffect, useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const SLUG_UNIQUE_ERROR_MESSAGE =+ "This slug is already taken. Please choose another one.";++function formatSlug(title: string) {+ return title+ .toLowerCase()+ .replace(/[^a-z0-9]+/g, "-")+ .replace(/^-+|-+$/g, "");+}++const schema = z.object({+ title: z.string().min(1, "Title is required"),+ slug: z.string().min(3, "Slug is required"),+ icon: z.string().optional(),+ description: z.string().optional(),+});++type FormValues = z.infer<typeof schema>;++/** Convert a File to a base64 string without the data: prefix */+async function fileToBase64(file: File): Promise<string> {+ return new Promise((resolve, reject) => {+ const reader = new FileReader();+ reader.onload = () => {+ const result = reader.result as string;+ // result is like "data:image/png;base64,XXXX" – we only need the part after the comma+ resolve(result.split(",")[1] || "");+ };+ reader.onerror = reject;+ reader.readAsDataURL(file);+ });+}++export function FormGeneral({+ disabled,+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ disabled?: boolean;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ title: "",+ slug: "",+ icon: undefined,+ description: "",+ },+ });+ const [isPending, startTransition] = useTransition();+ const trpc = useTRPC();+ const uploadMutation = useMutation(trpc.blob.upload.mutationOptions());+ const watchSlug = form.watch("slug");+ const watchTitle = form.watch("title");+ const debouncedSlug = useDebounce(watchSlug, 500);+ const { data: isUnique } = useQuery(+ trpc.page.getSlugUniqueness.queryOptions(+ { slug: debouncedSlug },+ { enabled: debouncedSlug.length > 0 },+ ),+ );++ useEffect(() => {+ if (!defaultValues?.title) {+ const formattedSlug = formatSlug(watchTitle);+ form.setValue("slug", formattedSlug);+ }+ }, [form, defaultValues?.title, watchTitle]);++ useEffect(() => {+ if (isUnique === undefined) return;+ if (defaultValues?.slug === debouncedSlug) return;++ if (!isUnique) {+ form.setError("slug", { message: SLUG_UNIQUE_ERROR_MESSAGE });+ } else {+ form.clearErrors("slug");+ }+ }, [isUnique, form, debouncedSlug, defaultValues?.slug]);++ function submitAction(values: FormValues) {+ if (isPending || disabled) return;++ startTransition(async () => {+ try {+ if (isUnique === false && defaultValues?.slug !== values.slug) {+ toast.error(SLUG_UNIQUE_ERROR_MESSAGE);+ form.setError("slug", { message: SLUG_UNIQUE_ERROR_MESSAGE });+ return;+ }++ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }+ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>General</FormCardTitle>+ <FormCardDescription>+ Configure the essential details for your status page.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardSeparator />+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ name="title"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Title</FormLabel>+ <FormControl>+ <Input placeholder="My Status Page" {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Enter a descriptive name for your status page.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="slug"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Slug</FormLabel>+ <FormControl>+ <InputWithAddons+ placeholder="status"+ trailing=".openstatus.dev"+ {...field}+ />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Choose a unique subdomain for your status page (minimum 3+ characters).+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="icon"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Icon</FormLabel>+ <FormControl>+ <div className="flex items-center space-x-2">+ {field.value ? (+ <>+ <div className="size-[36px] overflow-hidden rounded-md border bg-muted">+ <Image+ src={field.value}+ width={36}+ height={36}+ alt="Icon preview"+ />+ </div>+ <Button+ variant="ghost"+ size="sm"+ type="button"+ onClick={() => form.setValue("icon", undefined)}+ >+ Remove+ </Button>+ </>+ ) : (+ <Input+ type="file"+ accept="image/png,image/x-icon"+ onChange={async (e) => {+ const file = e.target.files?.[0];+ if (!file) return;+ const base64String = await fileToBase64(file);+ try {+ const blob = await uploadMutation.mutateAsync({+ filename: file.name,+ file: base64String,+ });+ if (blob?.url) {+ form.setValue("icon", blob.url as string);+ }+ } catch (err) {+ console.error(err);+ toast.error("Upload failed");+ }+ }}+ />+ )}+ </div>+ </FormControl>+ <FormMessage />+ <FormDescription>+ Select an icon for your status page. Ideally sized+ 512x512px.+ </FormDescription>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="description"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Description</FormLabel>+ <FormControl>+ <Textarea {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>+ Provide a brief overview of your status page purpose.+ </FormDescription>+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardFooter>+ <Button type="submit" disabled={isPending || disabled}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/status-page/form-monitors.tsx b/apps/dashboard/src/components/forms/status-page/form-monitors.tsxnew file mode 100644index 000000000..00698feed--- /dev/null+++ b/apps/dashboard/src/components/forms/status-page/form-monitors.tsx@@ -0,0 +1,371 @@+"use client";++import { Link } from "@/components/common/link";+import {+ EmptyStateContainer,+ EmptyStateTitle,+} from "@/components/content/empty-state";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardSeparator,+ FormCardTitle,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+} from "@/components/ui/command";+import {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { PopoverContent } from "@/components/ui/popover";+import { Popover, PopoverTrigger } from "@/components/ui/popover";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import {+ Sortable,+ SortableContent,+ SortableItem,+ SortableItemHandle,+ SortableOverlay,+} from "@/components/ui/sortable";+import { cn } from "@/lib/utils";+import type { UniqueIdentifier } from "@dnd-kit/core";+import { zodResolver } from "@hookform/resolvers/zod";+import { isTRPCClientError } from "@trpc/client";+import { Check, ChevronsUpDown, GripVertical } from "lucide-react";+import { useCallback, useEffect, useState, useTransition } from "react";+import { type UseFormReturn, useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++type Monitor = {+ id: number;+ name: string;+ url: string;+};++const DISABLED_TYPES = ["none"];++const schema = z.object({+ monitors: z.array(+ z.object({+ id: z.number(),+ order: z.number(),+ type: z.enum(["all", "hide", "none"]),+ }),+ ),+});++const getSortedMonitors = (+ monitors: Monitor[],+ monitorData: { id: number; order: number }[],+) => {+ const orderMap = new Map(monitorData?.map((m) => [m.id, m.order]) ?? []);++ return monitors+ .filter((monitor) => orderMap.has(monitor.id))+ .sort((a, b) => {+ const aOrder = orderMap.get(a.id) ?? 0;+ const bOrder = orderMap.get(b.id) ?? 0;+ return aOrder - bOrder;+ });+};++type FormValues = z.infer<typeof schema>;++export function FormMonitors({+ defaultValues,+ onSubmit,+ monitors,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ monitors: Monitor[];+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {},+ });+ const [isPending, startTransition] = useTransition();+ const watchMonitors = form.watch("monitors");+ const [data, setData] = useState<Monitor[]>(+ getSortedMonitors(monitors, defaultValues?.monitors ?? []),+ );++ // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>+ useEffect(() => {+ if (watchMonitors.length !== data.length) {+ setData(getSortedMonitors(monitors, watchMonitors));+ }+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [watchMonitors]);++ const onValueChange = useCallback(+ (newMonitors: Monitor[]) => {+ setData(newMonitors);+ form.setValue(+ "monitors",+ newMonitors.map((m, index) => ({+ id: m.id,+ order: index,+ type: "none" as const,+ })),+ );+ },+ [form],+ );++ const getItemValue = useCallback((item: Monitor) => item.id, []);++ // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>+ const renderOverlay = useCallback(+ ({ value }: { value: UniqueIdentifier }) => {+ const monitor = data.find((monitor) => monitor.id === value);+ if (!monitor) return null;++ return <MonitorRow monitor={monitor} form={form} />;+ },+ // eslint-disable-next-line react-hooks/exhaustive-deps+ [data],+ );++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ <FormCardHeader>+ <FormCardTitle>Monitors</FormCardTitle>+ <FormCardDescription>+ Connect your monitors to your status page.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem className="flex flex-col">+ <FormLabel className="sr-only">Monitors</FormLabel>+ <Popover>+ <PopoverTrigger asChild>+ <FormControl>+ <Button+ variant="outline"+ role="combobox"+ className={cn(+ "w-[200px] justify-between",+ !field.value && "text-muted-foreground",+ )}+ size="sm"+ >+ {field.value.length > 0+ ? `${field.value.length} monitors selected`+ : "Select monitors"}+ <ChevronsUpDown className="opacity-50" />+ </Button>+ </FormControl>+ </PopoverTrigger>+ <PopoverContent className="w-[200px] p-0">+ <Command>+ <CommandInput+ placeholder="Search monitors..."+ className="h-9"+ />+ <CommandList>+ <CommandEmpty>No monitors found.</CommandEmpty>+ <CommandGroup>+ {monitors.map((monitor) => (+ <CommandItem+ value={monitor.name}+ key={monitor.id}+ onSelect={() => {+ if (+ field.value.some((m) => m.id === monitor.id)+ ) {+ form.setValue(+ "monitors",+ field.value.filter(+ (m) => m.id !== monitor.id,+ ),+ );+ } else {+ form.setValue("monitors", [+ ...field.value,+ {+ id: monitor.id,+ order: watchMonitors.length,+ type: "none",+ },+ ]);+ }+ }}+ >+ {monitor.name}+ <Check+ className={cn(+ "ml-auto",+ field.value.some((m) => m.id === monitor.id)+ ? "opacity-100"+ : "opacity-0",+ )}+ />+ </CommandItem>+ ))}+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ <FormDescription>+ Select the monitors you want to display on your status page.+ </FormDescription>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ {data.length ? (+ <Sortable+ value={data}+ onValueChange={onValueChange}+ getItemValue={getItemValue}+ orientation="vertical"+ >+ <SortableContent className="grid gap-2">+ {data.map((monitor) => (+ <MonitorRow+ key={monitor.id}+ monitor={monitor}+ form={form}+ />+ ))}+ <SortableOverlay>{renderOverlay}</SortableOverlay>+ </SortableContent>+ </Sortable>+ ) : (+ <EmptyStateContainer>+ <EmptyStateTitle>No monitors selected</EmptyStateTitle>+ </EmptyStateContainer>+ )}+ </FormCardContent>+ <FormCardFooter>+ <FormCardFooterInfo>+ Learn more about monitor <Link href="#">display options</Link>.+ </FormCardFooterInfo>+ <Button type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}++const types = {+ all: {+ label: "Show all uptime",+ },+ hide: {+ label: "Hide values",+ },+ none: {+ label: "Only status reports",+ },+};++interface MonitorRowProps+ extends Omit<React.ComponentPropsWithoutRef<typeof SortableItem>, "value"> {+ monitor: Monitor;+ form: UseFormReturn<FormValues>;+}++function MonitorRow({ monitor, ...props }: MonitorRowProps) {+ return (+ <SortableItem value={monitor.id} asChild {...props}>+ <div className="grid grid-cols-3 gap-2">+ <div className="flex flex-row items-center gap-4 self-center">+ <SortableItemHandle>+ <GripVertical+ size={16}+ aria-hidden="true"+ className="text-muted-foreground"+ />+ </SortableItemHandle>+ <span className="truncate text-sm">{monitor.name}</span>+ </div>+ <div className="self-center truncate text-muted-foreground text-sm">+ {monitor.url}+ </div>+ <div>+ <Select>+ <SelectTrigger className="h-7 w-full shadow-none" disabled>+ <SelectValue placeholder="Select type (coming soon)" />+ </SelectTrigger>+ <SelectContent>+ {Object.entries(types).map(([key, value]) => (+ <SelectItem+ key={key}+ value={key}+ disabled={DISABLED_TYPES.includes(key)}+ >+ {value.label}{" "}+ {DISABLED_TYPES.includes(key) && (+ <span className="text-foreground text-xs">(Upgrade)</span>+ )}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>+ </div>+ </SortableItem>+ );+}diff --git a/apps/dashboard/src/components/forms/status-page/form-password-protection.tsx b/apps/dashboard/src/components/forms/status-page/form-password-protection.tsxnew file mode 100644index 000000000..e37d1eb9d--- /dev/null+++ b/apps/dashboard/src/components/forms/status-page/form-password-protection.tsx@@ -0,0 +1,160 @@+"use client";++import { Link } from "@/components/common/link";+import {+ FormCard,+ FormCardContent,+ FormCardDescription,+ FormCardFooter,+ FormCardFooterInfo,+ FormCardHeader,+ FormCardTitle,+ FormCardUpgrade,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Checkbox } from "@/components/ui/checkbox";+import {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { zodResolver } from "@hookform/resolvers/zod";+import { isTRPCClientError } from "@trpc/client";+import { Lock } from "lucide-react";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ passwordProtected: z.boolean().optional(),+ password: z.string().optional(),+});++type FormValues = z.infer<typeof schema>;++export function FormPasswordProtection({+ locked,+ defaultValues,+ onSubmit,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ locked?: boolean;+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const [isPending, startTransition] = useTransition();+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ passwordProtected: false,+ password: "",+ },+ });++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(submitAction)} {...props}>+ <FormCard>+ {locked ? <FormCardUpgrade /> : null}+ <FormCardHeader>+ <FormCardTitle>Password Protection</FormCardTitle>+ <FormCardDescription>+ Protect your status page with a password.+ </FormCardDescription>+ </FormCardHeader>+ <FormCardContent className="grid gap-4">+ <FormField+ control={form.control}+ disabled={locked}+ name="passwordProtected"+ render={({ field }) => (+ <FormItem className="flex flex-row items-start">+ <FormControl>+ <Checkbox+ checked={field.value}+ onCheckedChange={field.onChange}+ />+ </FormControl>+ <div className="space-y-1">+ <FormLabel>Enable Password Protection</FormLabel>+ <FormDescription>+ Hide the page from the public+ </FormDescription>+ </div>+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="password"+ disabled={locked}+ render={({ field }) => (+ <FormItem>+ <FormLabel>Password</FormLabel>+ <FormControl>+ <Input {...field} />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardFooter>+ <FormCardFooterInfo>+ Learn more about{" "}+ <Link+ href="https://docs.openstatus.dev/status-page/advanced/password/"+ rel="noreferrer"+ target="_blank"+ >+ Password Protection+ </Link>+ .+ </FormCardFooterInfo>+ {locked ? (+ <Button type="button" asChild>+ <Link href="/settings/billing">+ <Lock />+ Upgrade+ </Link>+ </Button>+ ) : (+ <Button type="submit" disabled={isPending}>+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ )}+ </FormCardFooter>+ </FormCard>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/status-page/update.tsx b/apps/dashboard/src/components/forms/status-page/update.tsxnew file mode 100644index 000000000..d2f56db8c--- /dev/null+++ b/apps/dashboard/src/components/forms/status-page/update.tsx@@ -0,0 +1,140 @@+import { FormCardGroup } from "@/components/forms/form-card";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { useParams, useRouter } from "next/navigation";+import { FormCustomDomain } from "./form-custom-domain";+import { FormDangerZone } from "./form-danger-zone";+import { FormGeneral } from "./form-general";+import { FormMonitors } from "./form-monitors";+import { FormPasswordProtection } from "./form-password-protection";++export function FormStatusPageUpdate() {+ const { id } = useParams<{ id: string }>();+ const router = useRouter();+ const trpc = useTRPC();+ const { data: statusPage, refetch } = useQuery(+ trpc.page.get.queryOptions({ id: Number.parseInt(id) }),+ );+ const queryClient = useQueryClient();+ const { data: monitors } = useQuery(trpc.monitor.list.queryOptions());+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const updateStatusPageMutation = useMutation(+ trpc.page.updateGeneral.mutationOptions({+ onSuccess: () => {+ refetch();+ // NOTE: invalidate status page list to update name+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ },+ }),+ );++ const updatePasswordProtectionMutation = useMutation(+ trpc.page.updatePasswordProtection.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ const updateMonitorsMutation = useMutation(+ trpc.page.updateMonitors.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ const updateCustomDomainMutation = useMutation(+ trpc.page.updateCustomDomain.mutationOptions({+ onSuccess: () => refetch(),+ }),+ );++ const deleteStatusPageMutation = useMutation(+ trpc.page.delete.mutationOptions({+ onSuccess: () => {+ router.push("/status-pages");+ // NOTE: invalidate workspace to update the usage+ queryClient.invalidateQueries({+ queryKey: trpc.workspace.get.queryKey(),+ });+ // NOTE: invalidate status page list to update the usage+ queryClient.invalidateQueries({+ queryKey: trpc.page.list.queryKey(),+ });+ },+ }),+ );++ if (!statusPage || !monitors || !workspace) return null;++ return (+ <FormCardGroup>+ <FormGeneral+ defaultValues={{+ title: statusPage.title,+ slug: statusPage.slug,+ description: statusPage.description,+ icon: statusPage.icon ?? undefined,+ }}+ onSubmit={async (values) => {+ await updateStatusPageMutation.mutateAsync({+ id: Number.parseInt(id),+ title: values.title,+ slug: values.slug,+ description: values.description ?? "",+ icon: values.icon ?? "",+ });+ }}+ />+ <FormMonitors+ monitors={monitors ?? []}+ defaultValues={{+ monitors: statusPage.monitors.map((monitor) => ({+ id: monitor.id,+ order: monitor.order,+ // type: monitor.type,+ type: "none" as const,+ })),+ }}+ onSubmit={async (values) => {+ await updateMonitorsMutation.mutateAsync({+ id: Number.parseInt(id),+ monitors: values.monitors,+ });+ }}+ />+ <FormCustomDomain+ locked={workspace.limits["custom-domain"] === false}+ defaultValues={{+ domain: statusPage.customDomain ?? undefined,+ }}+ onSubmit={async (values) => {+ await updateCustomDomainMutation.mutateAsync({+ id: Number.parseInt(id),+ customDomain: values.domain,+ });+ }}+ />+ <FormPasswordProtection+ locked={workspace.limits["password-protection"] === false}+ defaultValues={{+ passwordProtected: statusPage.passwordProtected ?? false,+ password: statusPage.password ?? undefined,+ }}+ onSubmit={async (values) => {+ await updatePasswordProtectionMutation.mutateAsync({+ id: Number.parseInt(id),+ passwordProtected: values.passwordProtected ?? false,+ password: values.password,+ });+ }}+ />+ <FormDangerZone+ onSubmit={async () => {+ await deleteStatusPageMutation.mutateAsync({+ id: Number.parseInt(id),+ });+ }}+ />+ </FormCardGroup>+ );+}diff --git a/apps/dashboard/src/components/forms/status-report-update/form.tsx b/apps/dashboard/src/components/forms/status-report-update/form.tsxnew file mode 100644index 000000000..f30aad20b--- /dev/null+++ b/apps/dashboard/src/components/forms/status-report-update/form.tsx@@ -0,0 +1,263 @@+"use client";++import { ProcessMessage } from "@/components/content/process-message";+import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Calendar } from "@/components/ui/calendar";+import {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { PopoverContent, PopoverTrigger } from "@/components/ui/popover";+import { Popover } from "@/components/ui/popover";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { TabsContent } from "@/components/ui/tabs";+import { TabsList, TabsTrigger } from "@/components/ui/tabs";+import { Tabs } from "@/components/ui/tabs";+import { Textarea } from "@/components/ui/textarea";+import { colors } from "@/data/status-report-updates.client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { statusReportStatus } from "@openstatus/db/src/schema";+import { isTRPCClientError } from "@trpc/client";+import { format } from "date-fns";+import { CalendarIcon, ClockIcon } from "lucide-react";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ status: z.enum(statusReportStatus),+ message: z.string(),+ date: z.date(),+});++export type FormValues = z.infer<typeof schema>;++export function FormStatusReportUpdate({+ defaultValues,+ onSubmit,+ className,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: defaultValues ?? {+ status: "identified",+ message: "",+ date: new Date(),+ },+ });+ const watchMessage = form.watch("message");+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent>+ <FormField+ control={form.control}+ name="status"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Status</FormLabel>+ <FormControl>+ <Select+ defaultValue={field.value}+ onValueChange={field.onChange}+ >+ <SelectTrigger+ className={cn(+ colors[field.value],+ "font-mono capitalize",+ )}+ >+ <SelectValue placeholder="Select a status" />+ </SelectTrigger>+ <SelectContent>+ {statusReportStatus.map((status) => (+ <SelectItem+ key={status}+ value={status}+ className={cn(colors[status], "font-mono capitalize")}+ >+ {status}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="date"+ render={({ field }) => (+ <FormItem className="flex flex-col">+ <FormLabel>Date</FormLabel>+ <Popover modal>+ <FormControl>+ <PopoverTrigger asChild>+ <Button+ type="button"+ variant="outline"+ size="sm"+ className={cn(+ "w-[240px] pl-3 text-left font-normal",+ !field.value && "text-muted-foreground",+ )}+ >+ {field.value ? (+ format(field.value, "PPP 'at' h:mm a")+ ) : (+ <span>Pick a date</span>+ )}+ <CalendarIcon className="ml-auto h-4 w-4 opacity-50" />+ </Button>+ </PopoverTrigger>+ </FormControl>+ <PopoverContent+ className="pointer-events-auto w-auto p-0"+ align="start"+ side="left"+ >+ <Calendar+ mode="single"+ selected={field.value}+ onSelect={field.onChange}+ disabled={(date) =>+ date > new Date() || date < new Date("1900-01-01")+ }+ initialFocus+ />+ <div className="border-t p-3">+ <div className="flex items-center gap-3">+ <Label htmlFor="time" className="text-xs">+ Enter time+ </Label>+ <div className="relative grow">+ <Input+ id="time"+ type="time"+ step="1"+ defaultValue={format(field.value, "HH:mm")}+ className="peer appearance-none ps-9 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"+ onChange={(e) => {+ try {+ const date = field.value+ ?.toISOString()+ .split("T")[0];++ field.onChange(+ new Date(`${date}T${e.target.value}`),+ );+ } catch (error) {+ console.error(error);+ }+ }}+ />+ <div className="pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 peer-disabled:opacity-50">+ <ClockIcon size={16} aria-hidden="true" />+ </div>+ </div>+ </div>+ </div>+ </PopoverContent>+ </Popover>+ <FormDescription>+ When the status report was created.+ </FormDescription>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <Tabs defaultValue="tab-1">+ <TabsList>+ <TabsTrigger value="tab-1">Writing</TabsTrigger>+ <TabsTrigger value="tab-2">Preview</TabsTrigger>+ </TabsList>+ <TabsContent value="tab-1">+ <FormField+ control={form.control}+ name="message"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Message</FormLabel>+ <FormControl>+ <Textarea rows={6} {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>Markdown support</FormDescription>+ </FormItem>+ )}+ />+ </TabsContent>+ <TabsContent value="tab-2">+ <div className="grid gap-2">+ <Label>Preview</Label>+ <div className="rounded-md border px-3 py-2 text-foreground text-sm">+ <ProcessMessage value={watchMessage} />+ </div>+ </div>+ </TabsContent>+ </Tabs>+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/status-report-update/sheet.tsx b/apps/dashboard/src/components/forms/status-report-update/sheet.tsxnew file mode 100644index 000000000..3006fdc88--- /dev/null+++ b/apps/dashboard/src/components/forms/status-report-update/sheet.tsx@@ -0,0 +1,60 @@+"use client";++import { FormCard, FormCardGroup } from "@/components/forms/form-card";+import {+ FormSheet,+ FormSheetContent,+ FormSheetDescription,+ FormSheetFooter,+ FormSheetHeader,+ FormSheetTitle,+ FormSheetTrigger,+} from "@/components/forms/form-sheet";+import {+ FormStatusReportUpdate,+ type FormValues,+} from "@/components/forms/status-report-update/form";+import { Button } from "@/components/ui/button";+import { useState } from "react";++export function FormSheetStatusReportUpdate({+ children,+ defaultValues,+ onSubmit,+}: Omit<React.ComponentProps<typeof FormSheetTrigger>, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+}) {+ const [open, setOpen] = useState(false);+ return (+ <FormSheet open={open} onOpenChange={setOpen}>+ <FormSheetTrigger asChild>{children}</FormSheetTrigger>+ <FormSheetContent>+ <FormSheetHeader>+ <FormSheetTitle>Status Report Update</FormSheetTitle>+ <FormSheetDescription>+ Configure and update the status of your report.+ </FormSheetDescription>+ </FormSheetHeader>+ <FormCardGroup className="overflow-y-scroll">+ <FormCard className="overflow-auto rounded-none border-none">+ <FormStatusReportUpdate+ id="status-report-update-form"+ className="my-4"+ onSubmit={async (values) => {+ await onSubmit(values);+ setOpen(false);+ }}+ defaultValues={defaultValues}+ />+ </FormCard>+ </FormCardGroup>+ <FormSheetFooter>+ <Button type="submit" form="status-report-update-form">+ Submit+ </Button>+ </FormSheetFooter>+ </FormSheetContent>+ </FormSheet>+ );+}diff --git a/apps/dashboard/src/components/forms/status-report/form.tsx b/apps/dashboard/src/components/forms/status-report/form.tsxnew file mode 100644index 000000000..63a6ddc4d--- /dev/null+++ b/apps/dashboard/src/components/forms/status-report/form.tsx@@ -0,0 +1,347 @@+"use client";++import { ProcessMessage } from "@/components/content/process-message";+import {+ FormCardContent,+ FormCardSeparator,+} from "@/components/forms/form-card";+import { Button } from "@/components/ui/button";+import { Calendar } from "@/components/ui/calendar";+import { Checkbox } from "@/components/ui/checkbox";+import {+ Form,+ FormControl,+ FormDescription,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { TabsContent } from "@/components/ui/tabs";+import { TabsList, TabsTrigger } from "@/components/ui/tabs";+import { Tabs } from "@/components/ui/tabs";+import { Textarea } from "@/components/ui/textarea";+import { colors } from "@/data/status-report-updates.client";+import { cn } from "@/lib/utils";+import { zodResolver } from "@hookform/resolvers/zod";+import { statusReportStatus } from "@openstatus/db/src/schema";+import { isTRPCClientError } from "@trpc/client";+import { format } from "date-fns";+import { CalendarIcon, ClockIcon } from "lucide-react";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ status: z.enum(statusReportStatus),+ title: z.string(),+ message: z.string(),+ date: z.date(),+ monitors: z.array(z.number()),+});++const updateSchema = schema.omit({+ message: true,+ date: true,+});++export type FormValues = z.infer<typeof schema> | z.infer<typeof updateSchema>;++export function FormStatusReport({+ defaultValues,+ onSubmit,+ className,+ monitors,+ ...props+}: Omit<React.ComponentProps<"form">, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+}) {+ const form = useForm<FormValues>({+ resolver: zodResolver(defaultValues ? updateSchema : schema),+ defaultValues: defaultValues ?? {+ status: "investigating",+ title: "",+ message: "",+ date: new Date(),+ monitors: [],+ },+ });+ const watchMessage = form.watch("message");+ const [isPending, startTransition] = useTransition();++ function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Saving...",+ success: () => "Saved",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to save";+ },+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ className={cn("grid gap-4", className)}+ onSubmit={form.handleSubmit(submitAction)}+ {...props}+ >+ <FormCardContent>+ <FormField+ control={form.control}+ name="title"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Title</FormLabel>+ <FormControl>+ <Input {...field} />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="status"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Status</FormLabel>+ <FormControl>+ <Select+ defaultValue={field.value}+ onValueChange={field.onChange}+ >+ <SelectTrigger+ className={cn(+ colors[field.value],+ "font-mono capitalize",+ )}+ >+ <SelectValue placeholder="Select a status" />+ </SelectTrigger>+ <SelectContent>+ {statusReportStatus.map((status) => (+ <SelectItem+ key={status}+ value={status}+ className={cn("font-mono capitalize", colors[status])}+ >+ {status}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ {!defaultValues ? (+ <>+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="date"+ render={({ field }) => (+ <FormItem className="flex flex-col">+ <FormLabel>Date</FormLabel>+ <Popover modal>+ <FormControl>+ <PopoverTrigger asChild>+ <Button+ type="button"+ variant="outline"+ size="sm"+ className={cn(+ "w-[240px] pl-3 text-left font-normal",+ !field.value && "text-muted-foreground",+ )}+ >+ {field.value ? (+ format(field.value, "PPP 'at' h:mm a")+ ) : (+ <span>Pick a date</span>+ )}+ <CalendarIcon className="ml-auto h-4 w-4 opacity-50" />+ </Button>+ </PopoverTrigger>+ </FormControl>+ <PopoverContent+ className="pointer-events-auto w-auto p-0"+ align="start"+ side="left"+ >+ <Calendar+ mode="single"+ selected={field.value}+ onSelect={field.onChange}+ disabled={(date) =>+ date > new Date() || date < new Date("1900-01-01")+ }+ initialFocus+ />+ <div className="border-t p-3">+ <div className="flex items-center gap-3">+ <Label htmlFor="time" className="text-xs">+ Enter time+ </Label>+ <div className="relative grow">+ <Input+ id="time"+ type="time"+ step="1"+ defaultValue="12:00:00"+ className="peer appearance-none ps-9 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"+ onChange={(e) => {+ try {+ const date = field.value+ ?.toISOString()+ .split("T")[0];++ field.onChange(+ new Date(`${date}T${e.target.value}`),+ );+ } catch (error) {+ console.error(error);+ }+ }}+ />+ <div className="pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-muted-foreground/80 peer-disabled:opacity-50">+ <ClockIcon size={16} aria-hidden="true" />+ </div>+ </div>+ </div>+ </div>+ </PopoverContent>+ </Popover>+ <FormDescription>+ When the status report was created.+ </FormDescription>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ <FormCardSeparator />+ <FormCardContent>+ <Tabs defaultValue="tab-1">+ <TabsList>+ <TabsTrigger value="tab-1">Writing</TabsTrigger>+ <TabsTrigger value="tab-2">Preview</TabsTrigger>+ </TabsList>+ <TabsContent value="tab-1">+ <FormField+ control={form.control}+ name="message"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Message</FormLabel>+ <FormControl>+ <Textarea rows={6} {...field} />+ </FormControl>+ <FormMessage />+ <FormDescription>Markdown support</FormDescription>+ </FormItem>+ )}+ />+ </TabsContent>+ <TabsContent value="tab-2">+ <div className="grid gap-2">+ <Label>Preview</Label>+ <div className="rounded-md border px-3 py-2 text-foreground text-sm">+ <ProcessMessage value={watchMessage} />+ </div>+ </div>+ </TabsContent>+ </Tabs>+ </FormCardContent>+ </>+ ) : null}+ <FormCardSeparator />+ <FormCardContent>+ <FormField+ control={form.control}+ name="monitors"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Monitors</FormLabel>+ <FormDescription>+ Select the monitors you want to notify.+ </FormDescription>+ <div className="grid gap-3">+ <div className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id="all"+ checked={field.value?.length === monitors.length}+ onCheckedChange={(checked) => {+ field.onChange(+ checked ? monitors.map((m) => m.id) : [],+ );+ }}+ />+ </FormControl>+ <Label htmlFor="all">Select all</Label>+ </div>+ {monitors.map((item) => (+ <div key={item.id} className="flex items-center gap-2">+ <FormControl>+ <Checkbox+ id={String(item.id)}+ checked={field.value?.includes(item.id)}+ onCheckedChange={(checked) => {+ const newValue = checked+ ? [...(field.value || []), item.id]+ : field.value?.filter((id) => id !== item.id);+ field.onChange(newValue);+ }}+ />+ </FormControl>+ <Label htmlFor={String(item.id)}>{item.name}</Label>+ </div>+ ))}+ </div>+ <FormMessage />+ </FormItem>+ )}+ />+ </FormCardContent>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/forms/status-report/sheet.tsx b/apps/dashboard/src/components/forms/status-report/sheet.tsxnew file mode 100644index 000000000..a5477a58e--- /dev/null+++ b/apps/dashboard/src/components/forms/status-report/sheet.tsx@@ -0,0 +1,73 @@+"use client";++import { FormCard, FormCardGroup } from "@/components/forms/form-card";+import {+ FormSheet,+ FormSheetContent,+ FormSheetDescription,+ FormSheetFooter,+ FormSheetHeader,+ FormSheetTitle,+ FormSheetTrigger,+} from "@/components/forms/form-sheet";+import {+ FormStatusReport,+ type FormValues,+} from "@/components/forms/status-report/form";+import { Button } from "@/components/ui/button";+import { Separator } from "@/components/ui/separator";+import { useState } from "react";++export function FormSheetStatusReport({+ children,+ defaultValues,+ onSubmit,+ monitors,+ warning,+}: Omit<React.ComponentProps<typeof FormSheetTrigger>, "onSubmit"> & {+ defaultValues?: FormValues;+ onSubmit: (values: FormValues) => Promise<void>;+ monitors: { id: number; name: string }[];+ warning?: React.ReactNode;+}) {+ const [open, setOpen] = useState(false);++ return (+ <FormSheet open={open} onOpenChange={setOpen}>+ <FormSheetTrigger asChild>{children}</FormSheetTrigger>+ <FormSheetContent>+ <FormSheetHeader>+ <FormSheetTitle>Status Report</FormSheetTitle>+ <FormSheetDescription>+ Configure and update the status of your report.+ </FormSheetDescription>+ </FormSheetHeader>+ {warning ? (+ <>+ <p className="px-4 py-4 text-sm text-warning">{warning}</p>+ <Separator />+ </>+ ) : null}+ <FormCardGroup className="overflow-y-scroll">+ <FormCard className="overflow-auto rounded-none border-none">+ <FormStatusReport+ id="status-report-form"+ className="my-4"+ onSubmit={async (values) => {+ await onSubmit(values);+ setOpen(false);+ }}+ defaultValues={defaultValues}+ monitors={monitors}+ />+ </FormCard>+ </FormCardGroup>+ <FormSheetFooter>+ <Button type="submit" form="status-report-form">+ Submit+ </Button>+ </FormSheetFooter>+ </FormSheetContent>+ </FormSheet>+ );+}diff --git a/apps/dashboard/src/components/forms/support-contact/dialog.tsx b/apps/dashboard/src/components/forms/support-contact/dialog.tsxnew file mode 100644index 000000000..e6fd0a2e1--- /dev/null+++ b/apps/dashboard/src/components/forms/support-contact/dialog.tsx@@ -0,0 +1,67 @@+import { Link } from "@/components/common/link";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+} from "@/components/ui/dialog";+import { useIsMobile } from "@/hooks/use-mobile";+import { useTRPC } from "@/lib/trpc/client";+import { useMutation, useQuery } from "@tanstack/react-query";+import { useState } from "react";+import { ContactForm, type FormValues } from "./form";++export function FormDialogSupportContact({+ children,+ defaultValues,+ ...props+}: React.ComponentProps<typeof DialogTrigger> & {+ defaultValues?: FormValues;+}) {+ const [open, setOpen] = useState(false);+ const isMobile = useIsMobile();+ const trpc = useTRPC();+ const { data: user } = useQuery(trpc.user.get.queryOptions());+ const feedbackMutation = useMutation(trpc.feedback.submit.mutationOptions());++ return (+ <Dialog open={open} onOpenChange={setOpen}>+ <DialogTrigger {...props} asChild>+ {children}+ </DialogTrigger>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>Support</DialogTitle>+ <DialogDescription>+ Please fill out the form below to get in touch with us. Or send us+ an email to{" "}+ <Link href="mailto:[email protected]">[email protected]</Link>.+ </DialogDescription>+ </DialogHeader>+ <ContactForm+ defaultValues={{+ name: defaultValues?.name ?? user?.name ?? undefined,+ email: defaultValues?.email ?? user?.email ?? undefined,+ type: defaultValues?.type,+ message: defaultValues?.message,+ blocker: defaultValues?.blocker,+ }}+ onSubmit={async (data) => {+ await feedbackMutation.mutateAsync({+ name: data.name,+ email: data.email,+ type: data.type,+ message: data.message,+ blocker: data.blocker,+ path: window.location.pathname,+ isMobile,+ });+ setOpen(false);+ }}+ />+ </DialogContent>+ </Dialog>+ );+}diff --git a/apps/dashboard/src/components/forms/support-contact/form.tsx b/apps/dashboard/src/components/forms/support-contact/form.tsxnew file mode 100644index 000000000..a8ae3762a--- /dev/null+++ b/apps/dashboard/src/components/forms/support-contact/form.tsx@@ -0,0 +1,203 @@+"use client";++import { zodResolver } from "@hookform/resolvers/zod";+import { useTransition } from "react";+import { useForm } from "react-hook-form";+import { z } from "zod";++import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+ FormMessage,+} from "@/components/ui/form";++import { Button } from "@/components/ui/button";+import { Checkbox } from "@/components/ui/checkbox";+import { Input } from "@/components/ui/input";+import { SelectItem } from "@/components/ui/select";+import { SelectContent, SelectValue } from "@/components/ui/select";+import { SelectTrigger } from "@/components/ui/select";+import { Select } from "@/components/ui/select";+import { Textarea } from "@/components/ui/textarea";+import { cn } from "@/lib/utils";+import { toast } from "sonner";++export const types = [+ {+ label: "Report a bug",+ value: "bug" as const,+ },+ {+ label: "Book a demo",+ value: "demo" as const,+ },+ {+ label: "Suggest a feature",+ value: "feature" as const,+ },+ {+ label: "Report a security issue",+ value: "security" as const,+ },+ {+ label: "Something else",+ value: "question" as const,+ },+];++export const schema = z.object({+ name: z.string().min(1, { message: "Name is required" }),+ type: z.enum(["bug", "demo", "feature", "security", "question"]),+ email: z.string().email({ message: "Invalid email address" }),+ message: z.string().min(1, { message: "Message is required" }),+ blocker: z.boolean(),+});++export type FormValues = z.infer<typeof schema>;++interface ContactFormProps {+ defaultValues?: Partial<FormValues>;+ onSubmit: (data: FormValues) => Promise<void>;+ className?: string;+}++export function ContactForm({+ defaultValues,+ onSubmit,+ className,+}: ContactFormProps) {+ const form = useForm<FormValues>({+ resolver: zodResolver(schema),+ defaultValues: {+ name: defaultValues?.name ?? "",+ email: defaultValues?.email ?? "",+ type: defaultValues?.type ?? undefined,+ message: defaultValues?.message ?? "",+ blocker: defaultValues?.blocker ?? false,+ },+ });+ const [isPending, startTransition] = useTransition();+ const watchType = form.watch("type");++ async function submitAction(values: FormValues) {+ if (isPending) return;++ startTransition(async () => {+ try {+ const promise = onSubmit(values);+ toast.promise(promise, {+ loading: "Sending message...",+ success: "Message sent. We'll get back to you soon.",+ error: "Failed to send message. Please try again.",+ });+ await promise;+ } catch (error) {+ console.error(error);+ }+ });+ }++ return (+ <Form {...form}>+ <form+ onSubmit={form.handleSubmit(submitAction)}+ className={cn("grid gap-4 sm:grid-cols-2", className)}+ >+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Name</FormLabel>+ <FormControl>+ <Input placeholder="Max" {...field} />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="email"+ render={({ field }) => (+ <FormItem>+ <FormLabel>Email</FormLabel>+ <FormControl>+ <Input placeholder="[email protected]" {...field} />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ <FormField+ control={form.control}+ name="type"+ render={({ field }) => (+ <FormItem className="sm:col-span-full">+ <FormLabel>Type</FormLabel>+ <Select onValueChange={field.onChange} defaultValue={field.value}>+ <FormControl>+ <SelectTrigger className="w-full">+ <SelectValue placeholder="What you need help with" />+ </SelectTrigger>+ </FormControl>+ <SelectContent>+ {types.map((type) => (+ <SelectItem key={type.value} value={type.value}>+ {type.label}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ <FormMessage />+ </FormItem>+ )}+ />+ {watchType ? (+ <FormField+ control={form.control}+ name="message"+ render={({ field }) => (+ <FormItem className="sm:col-span-full">+ <FormLabel>Message</FormLabel>+ <FormControl>+ <Textarea placeholder="Tell us about it..." {...field} />+ </FormControl>+ <FormMessage />+ </FormItem>+ )}+ />+ ) : null}+ {watchType === "bug" ? (+ <FormField+ control={form.control}+ name="blocker"+ render={({ field }) => (+ <FormItem className="flex flex-row items-start sm:col-span-full">+ <FormControl>+ <Checkbox+ checked={field.value}+ onCheckedChange={field.onChange}+ />+ </FormControl>+ <FormLabel className="font-normal leading-none">+ This bug prevents me from using the product.+ </FormLabel>+ </FormItem>+ )}+ />+ ) : null}+ <Button+ type="submit"+ className="w-full sm:col-span-full"+ disabled={isPending}+ >+ {isPending ? "Submitting..." : "Submit"}+ </Button>+ </form>+ </Form>+ );+}diff --git a/apps/dashboard/src/components/icons/discord.tsx b/apps/dashboard/src/components/icons/discord.tsxnew file mode 100644index 000000000..440d493fe--- /dev/null+++ b/apps/dashboard/src/components/icons/discord.tsx@@ -0,0 +1,15 @@+export function DiscordIcon(props: React.ComponentProps<"svg">) {+ return (+ <svg+ role="img"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ stroke="currentColor"+ fill="currentColor"+ {...props}+ >+ <title>Discord</title>+ <path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" />+ </svg>+ );+}diff --git a/apps/dashboard/src/components/icons/github.tsx b/apps/dashboard/src/components/icons/github.tsxnew file mode 100644index 000000000..93fb97670--- /dev/null+++ b/apps/dashboard/src/components/icons/github.tsx@@ -0,0 +1,15 @@+export function GitHubIcon(props: React.ComponentProps<"svg">) {+ return (+ <svg+ role="img"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ stroke="currentColor"+ fill="currentColor"+ {...props}+ >+ <title>GitHub</title>+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />+ </svg>+ );+}diff --git a/apps/dashboard/src/components/icons/google.tsx b/apps/dashboard/src/components/icons/google.tsxnew file mode 100644index 000000000..93a9b9b3c--- /dev/null+++ b/apps/dashboard/src/components/icons/google.tsx@@ -0,0 +1,15 @@+export function GoogleIcon(props: React.ComponentProps<"svg">) {+ return (+ <svg+ role="img"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ stroke="currentColor"+ fill="currentColor"+ {...props}+ >+ <title>Google</title>+ <path d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z" />+ </svg>+ );+}diff --git a/apps/dashboard/src/components/icons/opsgenie.tsx b/apps/dashboard/src/components/icons/opsgenie.tsxnew file mode 100644index 000000000..6bc29e1dc--- /dev/null+++ b/apps/dashboard/src/components/icons/opsgenie.tsx@@ -0,0 +1,15 @@+export function OpsGenieIcon(props: React.ComponentProps<"svg">) {+ return (+ <svg+ role="img"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ stroke="currentColor"+ fill="currentColor"+ {...props}+ >+ <title>Opsgenie</title>+ <path d="M12.002 0a5.988 5.988 0 1 1 0 11.975 5.988 5.988 0 0 1 0-11.975zm9.723 13.026h-.03l-4.527-2.242a.671.671 0 0 0-.876.268 22.408 22.408 0 0 1-4.306 5.217 22.407 22.407 0 0 1-4.286-5.2.671.671 0 0 0-.876-.269l-4.535 2.226h-.03a.671.671 0 0 0-.248.902 28.85 28.85 0 0 0 4.55 5.933l-.002.001c.024.025.05.048.075.072.335.335.676.664 1.027.981.081.074.165.144.247.217.315.278.632.555.96.82.144.117.295.227.441.341.277.216.552.434.837.639.44.318.888.625 1.346.917a.963.963 0 0 0 1.007.017c.487-.312.962-.64 1.428-.98.068-.05.132-.103.2-.153.358-.266.713-.537 1.06-.82.234-.19.46-.39.688-.588.17-.147.34-.291.506-.442.295-.268.58-.545.864-.825.061-.06.127-.118.188-.179l-.004-.002a28.852 28.852 0 0 0 4.565-5.949.671.671 0 0 0-.269-.902z" />+ </svg>+ );+}diff --git a/apps/dashboard/src/components/icons/pagerduty.tsx b/apps/dashboard/src/components/icons/pagerduty.tsxnew file mode 100644index 000000000..4681b18ae--- /dev/null+++ b/apps/dashboard/src/components/icons/pagerduty.tsx@@ -0,0 +1,15 @@+export function PagerDutyIcon(props: React.ComponentProps<"svg">) {+ return (+ <svg+ role="img"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ stroke="currentColor"+ fill="currentColor"+ {...props}+ >+ <title>PagerDuty</title>+ <path d="M16.965 1.18C15.085.164 13.769 0 10.683 0H3.73v14.55h6.926c2.743 0 4.8-.164 6.61-1.37 1.975-1.303 3.004-3.484 3.004-6.007 0-2.716-1.262-4.896-3.305-5.994zm-5.5 10.326h-4.21V3.113l3.977-.027c3.62-.028 5.43 1.234 5.43 4.128 0 3.113-2.248 4.292-5.197 4.292zM3.73 17.61h3.525V24H3.73Z" />+ </svg>+ );+}diff --git a/apps/dashboard/src/components/icons/slack.tsx b/apps/dashboard/src/components/icons/slack.tsxnew file mode 100644index 000000000..c5f2683c6--- /dev/null+++ b/apps/dashboard/src/components/icons/slack.tsx@@ -0,0 +1,15 @@+export function SlackIcon(props: React.ComponentProps<"svg">) {+ return (+ <svg+ role="img"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ stroke="currentColor"+ fill="currentColor"+ {...props}+ >+ <title>Slack</title>+ <path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z" />+ </svg>+ );+}diff --git a/apps/dashboard/src/components/metric/global-uptime/section.tsx b/apps/dashboard/src/components/metric/global-uptime/section.tsxnew file mode 100644index 000000000..a8b6ac494--- /dev/null+++ b/apps/dashboard/src/components/metric/global-uptime/section.tsx@@ -0,0 +1,188 @@+"use client";++import {+ MetricCard,+ MetricCardBadge,+ MetricCardGroup,+ MetricCardHeader,+ MetricCardSkeleton,+ MetricCardTitle,+ MetricCardValue,+} from "@/components/metric/metric-card";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";++import { mapMetrics, metricsCards } from "@/data/metrics.client";+import {+ formatMilliseconds,+ formatNumber,+ formatPercentage,+} from "@/lib/formatter";+import type { flyRegions } from "@openstatus/db/src/schema/constants";+import { formatDistanceToNow } from "date-fns";++type Metric = {+ label: string;+ value: string;+ trend?: number | null;+ variant: React.ComponentProps<typeof MetricCard>["variant"];+};++// TODO: move the fetch to the parent component+// TODO: missing dynamic degraded++export function GlobalUptimeSection({+ monitorId,+ jobType,+ period = "7d",+ regions,+}: {+ monitorId: string;+ jobType: "http" | "tcp";+ period: "1d" | "7d" | "14d";+ regions: (typeof flyRegions)[number][];+}) {+ const trpc = useTRPC();++ const { data: metrics, isLoading } = useQuery(+ trpc.tinybird.metrics.queryOptions({+ monitorId,+ period,+ type: jobType,+ regions,+ }),+ );++ // Helper to transform the data the same way it used to be in the page+ function defineMetrics() {+ if (!metrics) return null;+ const _metrics = mapMetrics(metrics);++ if (_metrics.length !== 2) return null;++ return _metrics.reverse().reduce(+ (acc, metric) => {+ Object.entries(metric).forEach(([key, value]) => {+ const k = key as keyof typeof acc;+ const v = (() => {+ if (k === "lastTimestamp") {+ if (!value) return "N/A";+ return formatDistanceToNow(new Date(value ?? 0), {+ addSuffix: true,+ });+ }+ if (k === "uptime") {+ return formatPercentage(value ?? 0);+ }+ if (k.startsWith("p")) {+ return formatMilliseconds(value ?? 0);+ }+ return formatNumber(value ?? 0);+ })();++ if (k in acc) {+ const trend = acc[k]?.raw+ ? k === "uptime"+ ? acc[k]?.raw / (value ?? 0)+ : (value ?? 0) / acc[k]?.raw+ : 1;+ const hasTrend =+ !Number.isNaN(trend) &&+ trend !== Number.POSITIVE_INFINITY &&+ k !== "total" &&+ k !== "lastTimestamp";+ acc[k] = {+ label: metricsCards[k].label,+ variant: metricsCards[k].variant,+ value: v ?? "0",+ trend: hasTrend ? trend : null,+ raw: value ?? 0,+ } as (typeof acc)[typeof k & keyof typeof acc];+ } else {+ acc[k] = {+ label: metricsCards[k].label,+ variant: metricsCards[k].variant,+ value: v ?? "0",+ trend: 1,+ raw: value ?? 0,+ } as (typeof acc)[typeof k & keyof typeof acc];+ }+ });+ return acc;+ },+ {} as Record<+ keyof ReturnType<typeof mapMetrics>[number],+ Metric & { raw: number }+ >,+ );+ }++ const refinedMetrics: (Metric | null)[] = (+ [+ "uptime",+ "degraded",+ "error",+ "total",+ "lastTimestamp",+ "p50",+ "p75",+ "p90",+ "p95",+ "p99",+ ] as const+ ).map((key) => {+ if (!key) return null;+ const metric =+ defineMetrics()?.[key as keyof ReturnType<typeof mapMetrics>[number]];+ return {+ label: metricsCards[key].label,+ value: metric?.value ?? "0",+ trend: metric?.trend ?? null,+ variant: metricsCards[key].variant,+ } as Metric;+ });++ // TODO: rework, might be removed and simply add a condition on the other return+ if (isLoading) {+ return (+ <MetricCardGroup>+ {refinedMetrics.map((metric) => {+ if (metric === null)+ return <div key={metric} className="hidden lg:block" />;+ return (+ <MetricCard key={metric.label} variant={metric.variant}>+ <MetricCardHeader>+ <MetricCardTitle className="truncate">+ {metric.label}+ </MetricCardTitle>+ </MetricCardHeader>+ <MetricCardSkeleton className="h-6 w-12" />+ </MetricCard>+ );+ })}+ </MetricCardGroup>+ );+ }++ return (+ <MetricCardGroup>+ {refinedMetrics.map((metric) => {+ if (metric === null)+ return <div key={metric} className="hidden lg:block" />;+ return (+ <MetricCard key={metric.label} variant={metric.variant}>+ <MetricCardHeader>+ <MetricCardTitle className="truncate">+ {metric.label}+ </MetricCardTitle>+ </MetricCardHeader>+ <div className="flex flex-row flex-wrap items-center gap-1.5">+ <MetricCardValue>{metric.value}</MetricCardValue>+ {metric.trend ? <MetricCardBadge value={metric.trend} /> : null}+ </div>+ </MetricCard>+ );+ })}+ </MetricCardGroup>+ );+}diff --git a/apps/dashboard/src/components/metric/metric-card.tsx b/apps/dashboard/src/components/metric/metric-card.tsxnew file mode 100644index 000000000..2803cbbbe--- /dev/null+++ b/apps/dashboard/src/components/metric/metric-card.tsx@@ -0,0 +1,197 @@+import type { VariantProps } from "class-variance-authority";+import { cva } from "class-variance-authority";+import { ChevronDown, ChevronUp } from "lucide-react";++import { Badge } from "@/components/ui/badge";+import { Skeleton } from "@/components/ui/skeleton";++import { cn } from "@/lib/utils";+import type React from "react";++const metricCardVariants = cva(+ "flex flex-col gap-1 border rounded-lg px-3 py-2 text-card-foreground",+ {+ variants: {+ variant: {+ default: "border-input bg-card",+ ghost: "border-transparent",+ destructive: "border-destructive/80 bg-destructive/10",+ success: "border-success/80 bg-success/10",+ warning: "border-warning/80 bg-warning/10",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ },+);++export function MetricCard({+ children,+ className,+ variant,+ ...props+}: React.ComponentProps<"div"> & VariantProps<typeof metricCardVariants>) {+ return (+ <div+ data-variant={variant}+ className={cn(metricCardVariants({ variant, className }), "group")}+ {...props}+ >+ {children}+ </div>+ );+}++export function MetricCardTitle({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p className={cn("font-medium text-sm", className)} {...props}>+ {children}+ </p>+ );+}++export function MetricCardHeader({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn(+ "text-muted-foreground",+ "group-data-[variant=destructive]:text-destructive",+ "group-data-[variant=success]:text-success",+ "group-data-[variant=warning]:text-warning",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+}++export function MetricCardValue({+ children,+ className,+ ...props+}: React.ComponentProps<"p">) {+ return (+ <p className={cn("font-semibold text-foreground", className)} {...props}>+ {children}+ </p>+ );+}++export function MetricCardGroup({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn(+ "grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+}++const badgeVariants = cva("px-1.5 font-mono text-[10px]", {+ variants: {+ variant: {+ default: "border-border",+ increase:+ "border-destructive/20 bg-destructive/10 hover:bg-destructive/10 text-destructive",+ decrease:+ "border-success/20 bg-success/10 hover:bg-success/10 text-success",+ },+ },+ defaultVariants: {+ variant: "default",+ },+});++export function MetricCardBadge({+ value,+ decimal = 1,+ className,+ ...props+}: React.ComponentProps<typeof Badge> & {+ value: number;+ decimal?: number;+}) {+ const round = 10 ** decimal; // 10^1 = 10 (1 decimal), 10^2 = 100 (2 decimals), etc.+ const percentage = Math.round((value - 1) * 100 * round) / round;++ const variant: VariantProps<typeof badgeVariants>["variant"] =+ percentage > 0 ? "increase" : percentage < 0 ? "decrease" : "default";++ return (+ <Badge+ variant="secondary"+ className={badgeVariants({ variant, className })}+ {...props}+ >+ {percentage !== 0 ? (+ <span>+ {percentage > 0 ? <ChevronUp className="mr-px size-2.5" /> : null}+ {percentage < 0 ? <ChevronDown className="mr-px size-2.5" /> : null}+ </span>+ ) : null}+ {Math.abs(percentage)}%+ </Badge>+ );+}++const metricCardButtonVariants = cva(+ "group w-full text-left transition-all rounded-md outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 cursor-pointer",+ // TODO: discuss if we want rings+);++export function MetricCardButton({+ children,+ className,+ variant,+ ...props+}: React.ComponentProps<"button"> & VariantProps<typeof metricCardVariants>) {+ return (+ <button+ type="button"+ data-variant={variant}+ className={cn(+ metricCardVariants({ variant, className }),+ metricCardButtonVariants(),+ )}+ {...props}+ >+ {children}+ </button>+ );+}++export function MetricCardSkeleton({+ className,+ ...props+}: React.ComponentProps<typeof Skeleton>) {+ return (+ <Skeleton+ className={cn(+ "group-data-[variant=destructive]:bg-destructive/50",+ "group-data-[variant=success]:bg-success/50",+ "group-data-[variant=warning]:bg-warning/50",+ className,+ )}+ {...props}+ />+ );+}diff --git a/apps/dashboard/src/components/nav/app-header.tsx b/apps/dashboard/src/components/nav/app-header.tsxnew file mode 100644index 000000000..6bbbf0e12--- /dev/null+++ b/apps/dashboard/src/components/nav/app-header.tsx@@ -0,0 +1,46 @@+import { cn } from "@/lib/utils";++export function AppHeader({+ children,+ className,+ ...props+}: React.ComponentProps<"header">) {+ return (+ <header+ className={cn(+ "sticky top-0 z-10 flex h-14 shrink-0 items-center gap-2 border-b bg-background px-2",+ className,+ )}+ {...props}+ >+ {children}+ </header>+ );+}++export function AppHeaderContent({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn("flex flex-1 items-center gap-2 px-3", className)}+ {...props}+ >+ {children}+ </div>+ );+}++export function AppHeaderActions({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div className={cn("ml-auto px-3", className)} {...props}>+ {children}+ </div>+ );+}diff --git a/apps/dashboard/src/components/nav/app-sidebar.tsx b/apps/dashboard/src/components/nav/app-sidebar.tsxnew file mode 100644index 000000000..ec801f2b3--- /dev/null+++ b/apps/dashboard/src/components/nav/app-sidebar.tsx@@ -0,0 +1,142 @@+"use client";++import {+ Activity,+ Bell,+ Cog,+ LayoutGrid,+ PanelTop,+ Terminal,+} from "lucide-react";+import * as React from "react";++import { Kbd } from "@/components/common/kbd";+import { NavMonitors } from "@/components/nav/nav-monitors";+import { NavOverview } from "@/components/nav/nav-overview";+import { NavStatusPages } from "@/components/nav/nav-status-pages";+import { NavUser } from "@/components/nav/nav-user";+import { WorkspaceSwitcher } from "@/components/nav/workspace-switcher";+import {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarHeader,+ SidebarRail,+ SidebarTrigger,+ useSidebar,+} from "@/components/ui/sidebar";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { NavBanner } from "./nav-banner";+import { NavHelp } from "./nav-help";++const SIDEBAR_KEYBOARD_SHORTCUT = "[";++// This is sample data.+const data = {+ user: {+ name: "mxkaske",+ email: "[email protected]",+ avatar: "/avatars/shadcn.jpg",+ },+ overview: [+ {+ name: "Overview",+ url: "/overview",+ icon: LayoutGrid,+ },+ {+ name: "Monitors",+ url: "/monitors",+ icon: Activity,+ },+ {+ name: "Status Pages",+ url: "/status-pages",+ icon: PanelTop,+ },+ {+ name: "Notifications",+ url: "/notifications",+ icon: Bell,+ },+ {+ name: "Settings",+ url: "/settings/general",+ icon: Cog,+ },+ {+ name: "CLI",+ url: "/cli",+ icon: Terminal,+ },+ ],+};++export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {+ return (+ <Sidebar collapsible="icon" {...props}>+ <SidebarHeader className="flex h-14 justify-center gap-0 border-b p-0">+ <WorkspaceSwitcher />+ </SidebarHeader>+ <SidebarContent>+ <NavOverview items={data.overview} />+ <NavStatusPages />+ <NavMonitors />+ <div className="mt-auto px-2">+ <NavBanner />+ </div>+ <NavHelp />+ </SidebarContent>+ <SidebarFooter className="flex h-14 flex-col justify-center gap-0 border-t p-0">+ <NavUser />+ </SidebarFooter>+ <SidebarRail />+ </Sidebar>+ );+}++export function AppSidebarTrigger() {+ const { toggleSidebar } = useSidebar();++ // Adds a keyboard shortcut to toggle the sidebar.+ React.useEffect(() => {+ const handleKeyDown = (event: KeyboardEvent) => {+ if (+ event.key === SIDEBAR_KEYBOARD_SHORTCUT &&+ (event.metaKey || event.ctrlKey)+ ) {+ event.preventDefault();+ toggleSidebar();+ }+ };++ window.addEventListener("keydown", handleKeyDown);+ return () => window.removeEventListener("keydown", handleKeyDown);+ }, [toggleSidebar]);++ return (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <SidebarTrigger />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p className="mr-px inline-flex items-center">+ Toggle Sidebar{" "}+ <Kbd className="border-muted-foreground bg-primary font-mono text-background">+ ⌘+ </Kbd>+ <Kbd className="border-muted-foreground bg-primary font-mono text-background">+ {SIDEBAR_KEYBOARD_SHORTCUT}+ </Kbd>+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+}diff --git a/apps/dashboard/src/components/nav/nav-banner-checklist.tsx b/apps/dashboard/src/components/nav/nav-banner-checklist.tsxnew file mode 100644index 000000000..ffe144381--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-banner-checklist.tsx@@ -0,0 +1,85 @@+"use client";++import { Link } from "@/components/common/link";+import {+ SidebarGroup,+ SidebarGroupLabel,+ SidebarMenu,+ SidebarMenuAction,+ SidebarMenuItem,+} from "@/components/ui/sidebar";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { CircleCheck, CircleDashed, X } from "lucide-react";++export function NavBannerChecklist({+ handleClose,+}: {+ handleClose: () => void;+}) {+ const trpc = useTRPC();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());++ if (!workspace) return null;++ const hasMonitors = (workspace.usage?.monitors ?? 0) > 0;+ const hasStatusPages = (workspace.usage?.pages ?? 0) > 0;+ const hastNotifications = (workspace.usage?.notifications ?? 0) > 0;++ if (hasMonitors && hasStatusPages && hastNotifications) return null;++ const items = [+ {+ title: "Create Monitor",+ checked: hasMonitors,+ href: "/monitors/create",+ },+ {+ title: "Create Status Page",+ checked: hasStatusPages,+ href: "/status-pages/create",+ },+ {+ title: "Create Notification",+ checked: hastNotifications,+ href: "/notifications",+ },+ ];++ return (+ <SidebarGroup className="rounded-lg border bg-background group-data-[collapsible=icon]:hidden">+ <SidebarGroupLabel className="flex items-center justify-between pr-1">+ <span>Getting Started</span>+ <SidebarMenuAction+ className="relative top-0 right-0"+ onClick={handleClose}+ >+ <X className="text-muted-foreground" size={16} />+ </SidebarMenuAction>+ </SidebarGroupLabel>+ <SidebarMenu>+ {items.map((item) => (+ <SidebarMenuItem+ key={item.title}+ className="flex items-center gap-2 text-sm"+ >+ {item.checked ? (+ <>+ <CircleCheck className="shrink-0 text-success" size={12} />+ <span>{item.title}</span>+ </>+ ) : (+ <>+ <CircleDashed+ className="shrink-0 text-muted-foreground/50"+ size={12}+ />+ <Link href={item.href}>{item.title}</Link>+ </>+ )}+ </SidebarMenuItem>+ ))}+ </SidebarMenu>+ </SidebarGroup>+ );+}diff --git a/apps/dashboard/src/components/nav/nav-banner-upgrade.tsx b/apps/dashboard/src/components/nav/nav-banner-upgrade.tsxnew file mode 100644index 000000000..b3d4a74e1--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-banner-upgrade.tsx@@ -0,0 +1,55 @@+"use client";++import {+ SidebarGroup,+ SidebarGroupLabel,+ SidebarMenu,+ SidebarMenuAction,+ SidebarMenuButton,+ SidebarMenuItem,+} from "@/components/ui/sidebar";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { Rocket, X } from "lucide-react";+import { useState } from "react";+import { UpgradeDialog } from "../dialogs/upgrade";++export function NavBannerUpgrade({ handleClose }: { handleClose: () => void }) {+ const trpc = useTRPC();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const [open, setOpen] = useState(false);++ if (!workspace) return null;++ return (+ <SidebarGroup className="rounded-lg border bg-background group-data-[collapsible=icon]:hidden">+ <SidebarGroupLabel className="flex items-center justify-between pr-1">+ <span>OpenStatus Pro</span>+ <SidebarMenuAction+ onClick={handleClose}+ className="relative top-0 right-0"+ >+ <X className="text-muted-foreground" size={16} />+ </SidebarMenuAction>+ </SidebarGroupLabel>+ <SidebarMenu>+ <SidebarMenuItem className="flex items-center gap-2 text-sm">+ <Rocket className="shrink-0 text-info" size={12} />+ <span>+ Unlock custom domains, teams, 1 min. checks, subscriptions and more.+ </span>+ </SidebarMenuItem>+ <SidebarMenuItem>+ <SidebarMenuButton+ className="justify-center border"+ data-active="true"+ onClick={() => setOpen(true)}+ >+ Upgrade+ </SidebarMenuButton>+ </SidebarMenuItem>+ </SidebarMenu>+ <UpgradeDialog open={open} onOpenChange={setOpen} />+ </SidebarGroup>+ );+}diff --git a/apps/dashboard/src/components/nav/nav-banner.tsx b/apps/dashboard/src/components/nav/nav-banner.tsxnew file mode 100644index 000000000..a8ad41cad--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-banner.tsx@@ -0,0 +1,36 @@+"use client";++import { useCookieState } from "@/hooks/use-cookie-state";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { NavBannerChecklist } from "./nav-banner-checklist";+import { NavBannerUpgrade } from "./nav-banner-upgrade";++const EXPIRES_IN = 7 * 24 * 60 * 60 * 1000; // in 7 days++export function NavBanner() {+ const trpc = useTRPC();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const [openChecklist, setOpenChecklist] = useCookieState<"true" | "false">(+ "sidebar_banner_checklist",+ "true",+ { expires: EXPIRES_IN },+ );+ const [openUpgrade, setOpenUpgrade] = useCookieState<"true" | "false">(+ "sidebar_banner_upgrade",+ "true",+ { expires: EXPIRES_IN },+ );++ if (!workspace) return null;++ if (openChecklist === "true") {+ return <NavBannerChecklist handleClose={() => setOpenChecklist("false")} />;+ }++ if (openUpgrade === "true" && workspace.plan === "free") {+ return <NavBannerUpgrade handleClose={() => setOpenUpgrade("false")} />;+ }++ return null;+}diff --git a/apps/dashboard/src/components/nav/nav-breadcrumb.tsx b/apps/dashboard/src/components/nav/nav-breadcrumb.tsxnew file mode 100644index 000000000..6a13d0491--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-breadcrumb.tsx@@ -0,0 +1,95 @@+"use client";++import {+ Breadcrumb,+ BreadcrumbItem,+ BreadcrumbLink,+ BreadcrumbList,+ BreadcrumbPage,+ BreadcrumbSeparator,+} from "@/components/ui/breadcrumb";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import type { LucideIcon } from "lucide-react";+import Link from "next/link";+import { usePathname, useRouter } from "next/navigation";+import { Fragment } from "react";++interface NavBreadcrumbProps {+ items: (+ | {+ type: "link";+ label: string;+ href: string;+ }+ | {+ type: "page";+ label: string;+ }+ | {+ type: "select";+ items: { value: string; label: string; icon: LucideIcon }[];+ }+ )[];+}++export function NavBreadcrumb({ items }: NavBreadcrumbProps) {+ const router = useRouter();+ const pathname = usePathname();+ const value = pathname.split("/").pop();++ return (+ <Breadcrumb>+ <BreadcrumbList>+ {items.map((item, i) => (+ <Fragment key={`${item.type}-${i}`}>+ <BreadcrumbItem>+ {item.type === "link" ? (+ <BreadcrumbLink className="hidden md:block" asChild>+ <Link href={item.href}>{item.label}</Link>+ </BreadcrumbLink>+ ) : null}+ {item.type === "page" ? (+ <BreadcrumbPage className="hidden max-w-[120px] truncate md:block lg:max-w-[200px]">+ {item.label}+ </BreadcrumbPage>+ ) : null}+ {item.type === "select" ? (+ <Select+ value={value}+ onValueChange={(value) => {+ router.push(value);+ }}+ >+ <SelectTrigger+ id="select-option"+ className="text-foreground [&>span]:flex [&>span]:items-center [&>span]:gap-2 [&>span_svg]:shrink-0 [&>span_svg]:text-muted-foreground/80"+ aria-label="Select option"+ >+ <SelectValue placeholder="Select option" />+ </SelectTrigger>+ <SelectContent>+ {item.items.map((item, i) => (+ <SelectItem key={i} value={item.value}>+ <item.icon size={16} aria-hidden="true" />+ {item.label}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ ) : null}+ </BreadcrumbItem>+ {i < items.length - 1 && (+ <BreadcrumbSeparator className="hidden md:block" />+ )}+ </Fragment>+ ))}+ </BreadcrumbList>+ </Breadcrumb>+ );+}diff --git a/apps/dashboard/src/components/nav/nav-feedback.tsx b/apps/dashboard/src/components/nav/nav-feedback.tsxnew file mode 100644index 000000000..6c97bbf4f--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-feedback.tsx@@ -0,0 +1,246 @@+"use client";++import { Kbd } from "@/components/common/kbd";+import { Button } from "@/components/ui/button";+import {+ Form,+ FormControl,+ FormField,+ FormItem,+ FormLabel,+} from "@/components/ui/form";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import { Textarea } from "@/components/ui/textarea";+import { useIsMobile } from "@/hooks/use-mobile";+import { useTRPC } from "@/lib/trpc/client";+import { zodResolver } from "@hookform/resolvers/zod";+import { useMutation } from "@tanstack/react-query";+import { AudioLines, Inbox, LoaderCircle, Mic } from "lucide-react";+import { useCallback, useEffect, useRef, useState } from "react";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { z } from "zod";++const schema = z.object({+ message: z.string().min(1),+});++export function NavFeedback() {+ const [open, setOpen] = useState(false);+ const isMobile = useIsMobile();+ const form = useForm<z.infer<typeof schema>>({+ resolver: zodResolver(schema),+ defaultValues: {+ message: "",+ },+ });+ const trpc = useTRPC();+ const feedbackMutation = useMutation(trpc.feedback.submit.mutationOptions());+ const [isListening, setIsListening] = useState(false);+ const recognitionRef = useRef<SpeechRecognition | null>(null);++ useEffect(() => {+ if (typeof window === "undefined") return;++ if ("SpeechRecognition" in window || "webkitSpeechRecognition" in window) {+ console.log("speech recognition API supported");+ } else {+ console.log("speech recognition API not supported");+ }++ const SpeechRecognitionCtor =+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>+ (window as any).webkitSpeechRecognition ||+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>+ (window as any).SpeechRecognition;++ // Browser not supported+ if (!SpeechRecognitionCtor) return;++ const recognition: SpeechRecognition = new SpeechRecognitionCtor();+ recognition.lang = "en-US";+ recognition.continuous = false;+ recognition.interimResults = false;++ recognition.onresult = (event: SpeechRecognitionEvent) => {+ const transcript = Array.from(event.results)+ .map((r) => r[0].transcript)+ .join(" ");+ form.setValue(+ "message",+ `${form.getValues("message") ?? ""}${transcript} `,+ );+ };++ recognition.onend = () => {+ setIsListening(false);+ };++ recognitionRef.current = recognition;+ }, [form]);++ const toggleListening = () => {+ const recognition = recognitionRef.current;+ if (!recognition) return;+ if (isListening) {+ recognition.stop();+ } else {+ try {+ recognition.start();+ setIsListening(true);+ } catch {+ // recognition already started, ignore+ }+ }+ };++ const onSubmit = useCallback(+ async (values: z.infer<typeof schema>) => {+ const promise = feedbackMutation.mutateAsync({+ ...values,+ path: window.location.pathname,+ isMobile,+ });+ toast.promise(promise, {+ loading: "Sending feedback...",+ success: "Feedback sent",+ error: "Failed to send feedback",+ });+ await promise;+ },+ [feedbackMutation, isMobile],+ );++ useEffect(() => {+ if (!open && feedbackMutation.isSuccess) {+ // NOTE: the popover takes 300ms to close, so we need to wait for that+ setTimeout(() => feedbackMutation.reset(), 300);+ }+ }, [open, feedbackMutation]);++ useEffect(() => {+ const down = (e: KeyboardEvent) => {+ if (open && (e.metaKey || e.ctrlKey) && e.key === "Enter") {+ form.handleSubmit(onSubmit)();+ }++ const target = e.target as HTMLElement;+ const isTyping =+ target.tagName === "INPUT" ||+ target.tagName === "TEXTAREA" ||+ target.isContentEditable;++ if (isTyping) return;++ if (!open) {+ if (e.key === "f") {+ e.preventDefault();+ setOpen(true);+ }+ return;+ }+ };+ document.addEventListener("keydown", down);+ return () => document.removeEventListener("keydown", down);+ }, [open, form, onSubmit]);++ useEffect(() => {+ if (!open) {+ form.reset();+ }+ }, [open, form]);++ if (isMobile) {+ return null;+ }++ return (+ <Popover open={open} onOpenChange={setOpen}>+ <PopoverTrigger asChild>+ <Button+ variant="ghost"+ size="sm"+ className="group gap-0 px-2 text-muted-foreground text-sm hover:bg-transparent hover:text-foreground data-[state=open]:text-foreground"+ >+ Feedback{" "}+ <Kbd className="font-mono group-hover:text-foreground group-data-[state=open]:text-foreground">+ F+ </Kbd>+ </Button>+ </PopoverTrigger>+ <PopoverContent align="end" className="relative border-none p-0">+ {feedbackMutation.isSuccess ? (+ <div className="flex h-[110px] flex-col items-center justify-center gap-1 rounded-md border border-input p-3 text-base shadow-xs">+ <Inbox className="size-4 shrink-0" />+ <p className="text-center font-medium">Thanks for sharing!</p>+ <p className="text-center text-muted-foreground text-sm">+ We'll get in touch if there's a follow-up.+ </p>+ </div>+ ) : (+ <Form {...form}>+ <form onSubmit={form.handleSubmit(onSubmit)}>+ <FormField+ control={form.control}+ name="message"+ render={({ field }) => (+ <FormItem>+ <FormLabel className="sr-only">Feedback</FormLabel>+ <FormControl>+ <Textarea+ placeholder="Ideas, bugs, or anything else..."+ className="field-sizing-fixed h-[110px] resize-none p-3"+ rows={4}+ {...field}+ />+ </FormControl>+ </FormItem>+ )}+ />+ {recognitionRef.current && (+ <Button+ type="button"+ size="sm"+ variant="ghost"+ className="group absolute bottom-1.5 left-1.5 gap-0"+ onClick={toggleListening}+ >+ {isListening ? (+ <AudioLines className="size-4 animate-pulse" />+ ) : (+ <Mic className="size-4" />+ )}+ </Button>+ )}+ <Button+ size="sm"+ variant="ghost"+ className="group absolute right-1.5 bottom-1.5 gap-0"+ type="submit"+ disabled={feedbackMutation.isPending}+ >+ {feedbackMutation.isPending ? (+ <LoaderCircle className="size-4 animate-spin" />+ ) : (+ <>+ Send+ <Kbd className="font-mono group-hover:text-foreground">+ ⌘+ </Kbd>+ <Kbd className="font-mono group-hover:text-foreground">+ ↵+ </Kbd>+ </>+ )}+ </Button>+ </form>+ </Form>+ )}+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/dashboard/src/components/nav/nav-help.tsx b/apps/dashboard/src/components/nav/nav-help.tsxnew file mode 100644index 000000000..f438aff51--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-help.tsx@@ -0,0 +1,113 @@+"use client";++import { FormDialogSupportContact } from "@/components/forms/support-contact/dialog";+import { DiscordIcon } from "@/components/icons/discord";+import { GitHubIcon } from "@/components/icons/github";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import {+ SidebarGroup,+ SidebarGroupContent,+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+} from "@/components/ui/sidebar";+import { useSidebar } from "@/components/ui/sidebar";+import {+ Book,+ Braces,+ CalendarClock,+ HelpCircle,+ LifeBuoy,+} from "lucide-react";+import Link from "next/link";++export function NavHelp() {+ const { isMobile } = useSidebar();+ return (+ <SidebarGroup>+ <SidebarGroupContent>+ <SidebarMenu>+ <SidebarMenuItem>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <SidebarMenuButton tooltip="Get Help">+ <HelpCircle />+ <span>Get Help</span>+ </SidebarMenuButton>+ </DropdownMenuTrigger>+ <DropdownMenuContent+ className="w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg"+ side={isMobile ? "bottom" : "right"}+ align="end"+ sideOffset={4}+ >+ <DropdownMenuLabel className="text-muted-foreground text-xs">+ Get Help+ </DropdownMenuLabel>+ <FormDialogSupportContact>+ <DropdownMenuItem onSelect={(e) => e.preventDefault()}>+ <LifeBuoy />+ Support+ </DropdownMenuItem>+ </FormDialogSupportContact>+ <DropdownMenuItem asChild>+ <Link+ href="https://docs.openstatus.dev"+ target="_blank"+ rel="noreferrer"+ >+ <Book /> Docs+ </Link>+ </DropdownMenuItem>+ <DropdownMenuItem asChild>+ <Link+ href="https://api.openstatus.dev/v1"+ target="_blank"+ rel="noreferrer"+ >+ <Braces /> API Reference+ </Link>+ </DropdownMenuItem>+ <DropdownMenuItem asChild>+ <Link+ href="https://openstatus.dev/cal"+ target="_blank"+ rel="noreferrer"+ >+ <CalendarClock /> Book a Call+ </Link>+ </DropdownMenuItem>+ <DropdownMenuItem asChild>+ <Link+ href="https://openstatus.dev/discord"+ target="_blank"+ rel="noreferrer"+ >+ <DiscordIcon />+ Community+ </Link>+ </DropdownMenuItem>+ <DropdownMenuItem asChild>+ <Link+ href="https://openstatus.dev/github"+ target="_blank"+ rel="noreferrer"+ >+ <GitHubIcon />+ GitHub+ </Link>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </SidebarMenuItem>+ </SidebarMenu>+ </SidebarGroupContent>+ </SidebarGroup>+ );+}diff --git a/apps/dashboard/src/components/nav/nav-main.tsx b/apps/dashboard/src/components/nav/nav-main.tsxnew file mode 100644index 000000000..9477ed528--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-main.tsx@@ -0,0 +1,78 @@+"use client";++import { ChevronRight, type LucideIcon } from "lucide-react";++import {+ Collapsible,+ CollapsibleContent,+ CollapsibleTrigger,+} from "@/components/ui/collapsible";+import {+ SidebarGroup,+ SidebarGroupLabel,+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarMenuSub,+ SidebarMenuSubButton,+ SidebarMenuSubItem,+} from "@/components/ui/sidebar";+import { useSidebar } from "@/components/ui/sidebar";+import Link from "next/link";+export function NavMain({+ items,+}: {+ items: {+ title: string;+ url: string;+ icon?: LucideIcon;+ isActive?: boolean;+ items?: {+ title: string;+ url: string;+ }[];+ }[];+}) {+ const { setOpenMobile } = useSidebar();+ return (+ <SidebarGroup>+ <SidebarGroupLabel>Workspace Data</SidebarGroupLabel>+ <SidebarMenu>+ {items.map((item) => (+ <Collapsible+ key={item.title}+ asChild+ defaultOpen={item.isActive}+ className="group/collapsible"+ >+ <SidebarMenuItem>+ <CollapsibleTrigger asChild>+ <SidebarMenuButton tooltip={item.title}>+ {item.icon && <item.icon />}+ <span>{item.title}</span>+ <ChevronRight className="ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" />+ </SidebarMenuButton>+ </CollapsibleTrigger>+ <CollapsibleContent>+ <SidebarMenuSub>+ {item.items?.map((subItem) => (+ <SidebarMenuSubItem key={subItem.title}>+ <SidebarMenuSubButton asChild>+ <Link+ href={subItem.url}+ onClick={() => setOpenMobile(false)}+ >+ <span>{subItem.title}</span>+ </Link>+ </SidebarMenuSubButton>+ </SidebarMenuSubItem>+ ))}+ </SidebarMenuSub>+ </CollapsibleContent>+ </SidebarMenuItem>+ </Collapsible>+ ))}+ </SidebarMenu>+ </SidebarGroup>+ );+}diff --git a/apps/dashboard/src/components/nav/nav-monitors.tsx b/apps/dashboard/src/components/nav/nav-monitors.tsxnew file mode 100644index 000000000..8531dc747--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-monitors.tsx@@ -0,0 +1,227 @@+"use client";++import { useState } from "react";++import { MoreHorizontal, Plus } from "lucide-react";++import { ExportCodeDialog } from "@/components/dialogs/export-code";+import { UpgradeDialog } from "@/components/dialogs/upgrade";+import { QuickActions } from "@/components/dropdowns/quick-actions";+import {+ SidebarGroup,+ SidebarGroupLabel,+ SidebarMenu,+ SidebarMenuAction,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarMenuSkeleton,+ useSidebar,+} from "@/components/ui/sidebar";+import { Skeleton } from "@/components/ui/skeleton";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { getActions } from "@/data/monitors.client";+import { useTRPC } from "@/lib/trpc/client";+import { cn } from "@/lib/utils";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { isTRPCClientError } from "@trpc/client";+import Link from "next/link";+import { usePathname, useRouter } from "next/navigation";+import { toast } from "sonner";++const STATUS = {+ degraded: "bg-warning border border-warning",+ error: "bg-destructive border border-destructive",+ inactive: "bg-muted-foreground/70 border border-muted-foreground/70",+ active: "bg-success border border-success",+};++export function NavMonitors() {+ const [openDialog, setOpenDialog] = useState(false);+ const [openUpgradeDialog, setOpenUpgradeDialog] = useState(false);+ const { isMobile, setOpenMobile } = useSidebar();+ const trpc = useTRPC();+ const router = useRouter();+ const pathname = usePathname();+ const {+ data: monitors,+ isLoading,+ refetch,+ } = useQuery(trpc.monitor.list.queryOptions());+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const queryClient = useQueryClient();+ const deleteMonitorMutation = useMutation(+ trpc.monitor.delete.mutationOptions({+ onSuccess: () => {+ refetch();+ queryClient.invalidateQueries({+ queryKey: trpc.workspace.get.queryKey(),+ });+ },+ }),+ );+ const cloneMonitorMutation = useMutation(+ trpc.monitor.clone.mutationOptions({+ onSuccess: (newMonitor) => {+ refetch();+ queryClient.invalidateQueries({+ queryKey: trpc.workspace.get.queryKey(),+ });+ router.push(`/monitors/${newMonitor.id}`);+ },+ }),+ );++ if (!workspace || !monitors) return null;++ const limitReached = monitors.length >= workspace.limits.monitors;++ return (+ <SidebarGroup className="group-data-[collapsible=icon]:hidden">+ <SidebarGroupLabel+ className="flex items-center justify-between pr-1"+ style={{ paddingRight: 4 }}+ >+ <div className="flex items-center gap-1">+ <span>Monitors</span>+ {isLoading ? (+ <Skeleton className="h-4 w-5 shrink-0" />+ ) : (+ <code className="text-muted-foreground">({monitors.length})</code>+ )}+ </div>+ <div className="flex items-center gap-2">+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <SidebarMenuAction+ data-disabled={limitReached}+ className="relative top-0 right-0 border data-[disabled=true]:opacity-50"+ onClick={() => {+ if (limitReached) {+ setOpenUpgradeDialog(true);+ return;+ }+ router.push("/monitors/create");+ setOpenMobile(false);+ }}+ >+ <Plus className="text-muted-foreground" />+ <span className="sr-only">Create Monitor</span>+ </SidebarMenuAction>+ </TooltipTrigger>+ <TooltipContent side="right" align="center">+ {limitReached ? "Upgrade" : "Create Monitor"}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ </SidebarGroupLabel>+ <SidebarMenu>+ {isLoading ? (+ <SidebarMenuItem>+ <SidebarMenuSkeleton />+ </SidebarMenuItem>+ ) : monitors && monitors.length > 0 ? (+ monitors.map((item) => {+ const isActive = pathname.startsWith(`/monitors/${item.id}/`);+ const actions = getActions({+ edit: () => router.push(`/monitors/${item.id}/edit`),+ "copy-id": () => {+ navigator.clipboard.writeText("ID");+ toast.success("Monitor ID copied to clipboard");+ },+ clone: () => {+ const promise = cloneMonitorMutation.mutateAsync({+ id: item.id,+ });+ toast.promise(promise, {+ loading: "Cloning monitor...",+ success: "Monitor cloned",+ error: (error) => {+ if (isTRPCClientError(error)) {+ return error.message;+ }+ return "Failed to clone monitor";+ },+ });+ },+ // export: () => setOpenDialog(true),+ });+ return (+ <SidebarMenuItem key={item.id}>+ <SidebarMenuButton+ className="group-has-data-[sidebar=menu-dot]/menu-item:pr-11"+ isActive={isActive}+ asChild+ >+ <Link+ href={`/monitors/${item.id}/overview`}+ onClick={() => setOpenMobile(false)}+ >+ <span>{item.name}</span>+ </Link>+ </SidebarMenuButton>+ <div+ data-sidebar="menu-dot"+ className={cn(+ "absolute top-1.5 right-1 flex h-2.5 items-center justify-center p-2.5 transition-all duration-200 group-focus-within/menu-item:right-6 group-hover/menu-action:right-6 group-hover/menu-item:right-6 group-data-[state=open]/menu-action:right-6 [&:has(+[data-sidebar=menu-action][data-state=open])]:right-6",+ isMobile && "right-6",+ )}+ >+ <div className="relative flex items-center justify-center">+ <div+ className={cn(+ "-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 h-2 w-2 rounded-full",+ STATUS[item.active ? item.status : "inactive"],+ )}+ >+ <span className="sr-only">{item.status}</span>+ </div>+ </div>+ </div>+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Monitor",+ confirmationValue: "delete monitor",+ submitAction: async () => {+ await deleteMonitorMutation.mutateAsync({+ id: item.id,+ });+ if (pathname.startsWith(`/monitors/${item.id}`)) {+ router.push("/monitors");+ }+ },+ }}+ side={isMobile ? "bottom" : "right"}+ align={isMobile ? "end" : "start"}+ >+ <SidebarMenuAction showOnHover>+ <MoreHorizontal />+ <span className="sr-only">More</span>+ </SidebarMenuAction>+ </QuickActions>+ </SidebarMenuItem>+ );+ })+ ) : (+ <SidebarMenuItem>+ <SidebarMenuButton disabled>+ <span>No monitors found</span>+ </SidebarMenuButton>+ </SidebarMenuItem>+ )}+ </SidebarMenu>+ <ExportCodeDialog open={openDialog} onOpenChange={setOpenDialog} />+ <UpgradeDialog+ open={openUpgradeDialog}+ onOpenChange={setOpenUpgradeDialog}+ />+ </SidebarGroup>+ );+}diff --git a/apps/dashboard/src/components/nav/nav-overview.tsx b/apps/dashboard/src/components/nav/nav-overview.tsxnew file mode 100644index 000000000..b04b1ab5c--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-overview.tsx@@ -0,0 +1,49 @@+"use client";++import type { LucideIcon } from "lucide-react";++import {+ SidebarGroup,+ SidebarGroupLabel,+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+ useSidebar,+} from "@/components/ui/sidebar";+import Link from "next/link";+import { usePathname } from "next/navigation";++export function NavOverview({+ items,+}: {+ items: {+ name: string;+ url: string;+ icon: LucideIcon;+ }[];+}) {+ const pathname = usePathname();+ const { setOpenMobile } = useSidebar();+ return (+ <SidebarGroup>+ <SidebarGroupLabel>Workspace</SidebarGroupLabel>+ <SidebarMenu>+ {items.map((item) => (+ <SidebarMenuItem key={item.name}>+ <SidebarMenuButton+ // FIXME: check with settings as exception (as it includes subpages)+ isActive={pathname === item.url}+ asChild+ tooltip={item.name}+ >+ <Link href={item.url} onClick={() => setOpenMobile(false)}>+ <item.icon />+ <span>{item.name}</span>+ </Link>+ </SidebarMenuButton>+ </SidebarMenuItem>+ ))}+ </SidebarMenu>+ </SidebarGroup>+ );+}diff --git a/apps/dashboard/src/components/nav/nav-status-pages.tsx b/apps/dashboard/src/components/nav/nav-status-pages.tsxnew file mode 100644index 000000000..5fdd7f32e--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-status-pages.tsx@@ -0,0 +1,196 @@+"use client";++import { MoreHorizontal, Plus } from "lucide-react";++import { QuickActions } from "@/components/dropdowns/quick-actions";+import {+ SidebarGroup,+ SidebarGroupLabel,+ SidebarMenu,+ SidebarMenuAction,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarMenuSkeleton,+ useSidebar,+} from "@/components/ui/sidebar";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { getActions } from "@/data/status-pages.client";+import Link from "next/link";+import { usePathname, useRouter } from "next/navigation";+import { toast } from "sonner";++import { UpgradeDialog } from "@/components/dialogs/upgrade";+import { Skeleton } from "@/components/ui/skeleton";+import { useTRPC } from "@/lib/trpc/client";+import { cn } from "@/lib/utils";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { useState } from "react";++const STATUS = {+ operational: "bg-success border border-success",+ degraded: "bg-warning border border-warning",+ outage: "bg-destructive border border-destructive",+};++export function NavStatusPages() {+ const { isMobile, setOpenMobile } = useSidebar();+ const [openUpgradeDialog, setOpenUpgradeDialog] = useState(false);+ const pathname = usePathname();+ const trpc = useTRPC();+ const router = useRouter();+ const {+ data: statusPages,+ refetch,+ isLoading,+ } = useQuery(trpc.page.list.queryOptions());+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const queryClient = useQueryClient();+ const deleteStatusPage = useMutation(+ trpc.page.delete.mutationOptions({+ onSuccess: () => {+ refetch();+ queryClient.invalidateQueries({+ queryKey: trpc.workspace.get.queryKey(),+ });+ },+ }),+ );++ if (!workspace || !statusPages) return null;++ const limitReached = statusPages.length >= workspace.limits["status-pages"];++ return (+ <SidebarGroup className="group-data-[collapsible=icon]:hidden">+ <SidebarGroupLabel className="flex items-center justify-between pr-1">+ <div className="flex items-center gap-1">+ <span>Status Pages</span>+ {isLoading ? (+ <Skeleton className="h-4 w-5 shrink-0" />+ ) : (+ <code className="text-muted-foreground">+ ({statusPages?.length})+ </code>+ )}+ </div>+ <div className="flex items-center gap-2">+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <SidebarMenuAction+ data-disabled={limitReached}+ className="relative top-0 right-0 border data-[disabled=true]:opacity-50"+ onClick={() => {+ if (limitReached) {+ setOpenUpgradeDialog(true);+ return;+ }+ router.push("/status-pages/create");+ setOpenMobile(false);+ }}+ >+ <Plus className="text-muted-foreground" />+ <span className="sr-only">Create Status Page</span>+ </SidebarMenuAction>+ </TooltipTrigger>+ <TooltipContent side="right" align="center">+ {limitReached ? "Upgrade" : "Create Status Page"}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ </SidebarGroupLabel>+ <SidebarMenu>+ {isLoading ? (+ <SidebarMenuItem>+ <SidebarMenuSkeleton />+ </SidebarMenuItem>+ ) : statusPages && statusPages.length > 0 ? (+ statusPages.map((item) => {+ const isActive = pathname.startsWith(`/status-pages/${item.id}/`);+ const actions = getActions({+ edit: () => router.push(`/status-pages/${item.id}/edit`),+ "copy-id": () => {+ navigator.clipboard.writeText("ID");+ toast.success("Status Page ID copied to clipboard");+ },+ });+ const hasActiveStatusReport = item.statusReports.some(+ (report) => report.status !== "resolved",+ );++ return (+ <SidebarMenuItem key={item.id}>+ <SidebarMenuButton+ className="group-has-data-[sidebar=menu-dot]/menu-item:pr-11"+ isActive={isActive}+ asChild+ >+ <Link+ href={`/status-pages/${item.id}/status-reports`}+ onClick={() => setOpenMobile(false)}+ >+ <span>{item.title}</span>+ </Link>+ </SidebarMenuButton>+ <div+ data-sidebar="menu-dot"+ className={cn(+ "absolute top-1.5 right-1 flex h-2.5 items-center justify-center p-2.5 transition-all duration-200 group-focus-within/menu-item:right-6 group-hover/menu-action:right-6 group-hover/menu-item:right-6 group-data-[state=open]/menu-action:right-6 [&:has(+[data-sidebar=menu-action][data-state=open])]:right-6",+ isMobile && "right-6",+ )}+ >+ <div className="relative flex items-center justify-center">+ <div+ className={cn(+ "-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 h-2 w-2 rounded-full",+ STATUS[+ hasActiveStatusReport ? "degraded" : "operational"+ ],+ )}+ />+ </div>+ </div>+ <QuickActions+ actions={actions}+ deleteAction={{+ title: "Status Page",+ confirmationValue: "delete status page",+ submitAction: async () => {+ await deleteStatusPage.mutateAsync({ id: item.id });+ if (pathname.includes(`/status-pages/${item.id}`)) {+ router.push("/status-pages");+ }+ },+ }}+ side={isMobile ? "bottom" : "right"}+ align={isMobile ? "end" : "start"}+ >+ <SidebarMenuAction showOnHover>+ <MoreHorizontal />+ <span className="sr-only">More</span>+ </SidebarMenuAction>+ </QuickActions>+ </SidebarMenuItem>+ );+ })+ ) : (+ <SidebarMenuItem>+ <SidebarMenuButton disabled>+ <span>No status pages found</span>+ </SidebarMenuButton>+ </SidebarMenuItem>+ )}+ </SidebarMenu>+ <UpgradeDialog+ open={openUpgradeDialog}+ onOpenChange={setOpenUpgradeDialog}+ />+ </SidebarGroup>+ );+}diff --git a/apps/dashboard/src/components/nav/nav-user.tsx b/apps/dashboard/src/components/nav/nav-user.tsxnew file mode 100644index 000000000..fd6cc7b2c--- /dev/null+++ b/apps/dashboard/src/components/nav/nav-user.tsx@@ -0,0 +1,171 @@+"use client";++import {+ ChevronsUpDown,+ CreditCard,+ Laptop,+ LogOut,+ Moon,+ Sparkles,+ Sun,+ User,+} from "lucide-react";++import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuPortal,+ DropdownMenuSeparator,+ DropdownMenuSub,+ DropdownMenuSubContent,+ DropdownMenuSubTrigger,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import {+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+ useSidebar,+} from "@/components/ui/sidebar";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { signOut } from "next-auth/react";+import { useTheme } from "next-themes";+import Link from "next/link";++export function NavUser() {+ const { isMobile, setOpenMobile } = useSidebar();+ const { theme, setTheme } = useTheme();+ const trpc = useTRPC();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const { data: user } = useQuery(trpc.user.get.queryOptions());++ if (!user || !workspace) return null;++ const userName = user?.name ?? `${user?.firstName} ${user?.lastName}`.trim();++ return (+ <SidebarMenu>+ <SidebarMenuItem>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <SidebarMenuButton+ size="lg"+ className="h-14 rounded-none px-4 ring-inset data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground group-data-[collapsible=icon]:mx-2!"+ >+ <Avatar className="h-8 w-8 rounded-lg">+ <AvatarImage src={user?.photoUrl ?? undefined} alt={userName} />+ <AvatarFallback className="rounded-lg uppercase">+ {userName.slice(0, 2)}+ </AvatarFallback>+ {/* <img+ src={`https://api.dicebear.com/9.x/glass/svg?seed=${workspace.slug}`}+ alt="avatar"+ />+ */}+ </Avatar>+ <div className="grid flex-1 text-left text-sm leading-tight">+ <span className="truncate font-medium">{userName}</span>+ <span className="truncate text-xs">{user?.email}</span>+ </div>+ <ChevronsUpDown className="ml-auto size-4" />+ </SidebarMenuButton>+ </DropdownMenuTrigger>+ <DropdownMenuContent+ className="w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg"+ side={isMobile ? "bottom" : "right"}+ align="end"+ sideOffset={4}+ >+ <DropdownMenuLabel className="p-0 font-normal">+ <div className="flex items-center gap-2 px-1 py-1.5 text-left text-sm">+ <Avatar className="h-8 w-8 rounded-lg">+ <AvatarImage+ src={user?.photoUrl ?? undefined}+ alt={userName}+ />+ <AvatarFallback className="rounded-lg">+ {userName.slice(0, 2)}+ </AvatarFallback>+ </Avatar>+ <div className="grid flex-1 text-left text-sm leading-tight">+ <span className="truncate font-medium">{userName}</span>+ <span className="truncate text-xs">{user?.email}</span>+ </div>+ </div>+ </DropdownMenuLabel>+ <DropdownMenuSeparator />+ {workspace.plan === "free" ? (+ <>+ <DropdownMenuItem asChild>+ <Link+ href="/settings/billing"+ onClick={() => setOpenMobile(false)}+ >+ <Sparkles />+ Upgrade Workspace+ </Link>+ </DropdownMenuItem>+ <DropdownMenuSeparator />+ </>+ ) : null}+ <DropdownMenuGroup>+ <DropdownMenuItem asChild>+ <Link+ href="/settings/account"+ onClick={() => setOpenMobile(false)}+ >+ <User />+ Account+ </Link>+ </DropdownMenuItem>+ <DropdownMenuSub>+ <DropdownMenuSubTrigger className="gap-2 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0">+ {theme === "dark" ? (+ <Moon />+ ) : theme === "light" ? (+ <Sun />+ ) : (+ <Laptop />+ )}+ Theme+ </DropdownMenuSubTrigger>+ <DropdownMenuPortal>+ <DropdownMenuSubContent>+ <DropdownMenuItem onClick={() => setTheme("light")}>+ <Sun /> Light+ </DropdownMenuItem>+ <DropdownMenuItem onClick={() => setTheme("dark")}>+ <Moon /> Dark+ </DropdownMenuItem>+ <DropdownMenuItem onClick={() => setTheme("system")}>+ <Laptop /> System+ </DropdownMenuItem>+ </DropdownMenuSubContent>+ </DropdownMenuPortal>+ </DropdownMenuSub>+ <DropdownMenuItem asChild>+ <Link+ href="/settings/billing"+ onClick={() => setOpenMobile(false)}+ >+ <CreditCard />+ Billing+ </Link>+ </DropdownMenuItem>+ </DropdownMenuGroup>+ <DropdownMenuSeparator />+ <DropdownMenuItem onClick={() => signOut()}>+ <LogOut />+ Log out+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </SidebarMenuItem>+ </SidebarMenu>+ );+}diff --git a/apps/dashboard/src/components/nav/sidebar-metadata.tsx b/apps/dashboard/src/components/nav/sidebar-metadata.tsxnew file mode 100644index 000000000..af53d717f--- /dev/null+++ b/apps/dashboard/src/components/nav/sidebar-metadata.tsx@@ -0,0 +1,166 @@+import { ChevronRight } from "lucide-react";+import * as React from "react";++import {+ EmptyStateContainer,+ EmptyStateDescription,+} from "@/components/content/empty-state";+import {+ Collapsible,+ CollapsibleContent,+ CollapsibleTrigger,+} from "@/components/ui/collapsible";+import {+ SidebarGroup,+ SidebarGroupContent,+ SidebarGroupLabel,+} from "@/components/ui/sidebar";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";+import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard";+import { cn } from "@/lib/utils";+import { TooltipProvider } from "@radix-ui/react-tooltip";+import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip";++export type SidebarMetadataProps = {+ label: string;+ items?: {+ label: string;+ value: React.ReactNode;+ isNested?: boolean;+ }[];+};++export function SidebarMetadata({ label, items }: SidebarMetadataProps) {+ return (+ <SidebarGroup className="p-0">+ <Collapsible defaultOpen className="group/collapsible border-b">+ <SidebarGroupLabel+ asChild+ className="group/label h-9 w-full rounded-none text-sidebar-foreground text-sm hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"+ >+ <CollapsibleTrigger>+ {label}{" "}+ <ChevronRight className="ml-auto transition-transform group-data-[state=open]/collapsible:rotate-90" />+ </CollapsibleTrigger>+ </SidebarGroupLabel>+ <CollapsibleContent>+ <SidebarGroupContent className="border-t">+ {items && items.length > 0 ? (+ <SidebarMetadataTable items={items} />+ ) : (+ <EmptyStateContainer className="m-2">+ <EmptyStateDescription>No {label}</EmptyStateDescription>+ </EmptyStateContainer>+ )}+ </SidebarGroupContent>+ </CollapsibleContent>+ </Collapsible>+ </SidebarGroup>+ );+}++function SidebarMetadataTable({+ items,+}: {+ items: {+ label: string;+ value: React.ReactNode;+ isNested?: boolean;+ tooltip?: string;+ }[];+}) {+ return (+ <Table>+ <TableHeader className="sr-only">+ <TableRow>+ <TableHead className="w-26">Label</TableHead>+ <TableHead>Value</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {items.map((item, index) => (+ <TableRow key={`${item.label}-${index}`}>+ <TableCell className="w-26 border-r text-muted-foreground">+ <div className="min-w-[90px] max-w-[90px] truncate">+ {item.isNested ? "└ " : ""}+ {item.label}+ </div>+ </TableCell>+ <SidebarMetadataTableCell className="max-w-0 truncate font-mono">+ {item.value}+ </SidebarMetadataTableCell>+ </TableRow>+ ))}+ </TableBody>+ </Table>+ );+}++function SidebarMetadataTableCell({+ className,+ ...props+}: React.ComponentProps<typeof TableCell>) {+ const ref = React.useRef<HTMLTableCellElement>(null);+ const [isTruncated, setIsTruncated] = React.useState(false);+ const { copy, isCopied } = useCopyToClipboard();+ const [open, setOpen] = React.useState(false);++ // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>+ React.useEffect(() => {+ if (ref.current) {+ setIsTruncated(ref.current.scrollWidth > ref.current.clientWidth);+ }+ }, [ref]);++ const handleClick = () => {+ if (typeof props.children === "string") {+ copy(props.children, { withToast: false, timeout: 1000 });+ }+ };++ React.useEffect(() => {+ if (isCopied) setOpen(true);+ }, [isCopied]);++ return (+ <TableCell+ {...props}+ ref={ref}+ className={cn(+ typeof props.children === "string" && "cursor-pointer",+ className,+ )}+ onClick={handleClick}+ >+ <TooltipProvider>+ {isTruncated || isCopied ? (+ <Tooltip open={open} onOpenChange={setOpen}>+ <TooltipTrigger+ // NOTE: all the prevent default events avoid the tooltip to hide and show again+ onClick={(event) => event.preventDefault()}+ onPointerDown={(event) => event.preventDefault()}+ asChild+ >+ <span className="block truncate">{props.children}</span>+ </TooltipTrigger>+ <TooltipContent+ onPointerDownOutside={(event) => event.preventDefault()}+ side="left"+ >+ {isCopied ? "Copied" : props.children}+ </TooltipContent>+ </Tooltip>+ ) : (+ props.children+ )}+ </TooltipProvider>+ </TableCell>+ );+}diff --git a/apps/dashboard/src/components/nav/sidebar-right.tsx b/apps/dashboard/src/components/nav/sidebar-right.tsxnew file mode 100644index 000000000..f8755fb08--- /dev/null+++ b/apps/dashboard/src/components/nav/sidebar-right.tsx@@ -0,0 +1,153 @@+"use client";++import * as React from "react";++import { Button } from "@/components/ui/button";+import {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarHeader,+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarProvider,+ SidebarSeparator,+ useSidebar,+} from "@/components/ui/sidebar";+import { useMediaQuery } from "@/hooks/use-media-query";+import { useIsMobile } from "@/hooks/use-mobile";+import { cn } from "@/lib/utils";+import { PanelRight } from "lucide-react";+import { Kbd } from "../common/kbd";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "../ui/tooltip";+import { SidebarMetadata, type SidebarMetadataProps } from "./sidebar-metadata";++const SIDEBAR_KEYBOARD_SHORTCUT = "]";+const SIDEBAR_WIDTH = "18rem";+const SIDEBAR_WIDTH_2XL = "24rem";+const SIDEBAR_WIDTH_MOBILE = "18rem";++type SidebarRightProps = React.ComponentProps<typeof Sidebar> & {+ header: string;+ metadata: SidebarMetadataProps[];+ footerButton?: React.ComponentProps<typeof SidebarMenuButton>;+};++export function SidebarRight({+ header,+ metadata,+ footerButton,+ ...props+}: SidebarRightProps) {+ const isMobile = useIsMobile();+ const is2XL = useMediaQuery("(min-width: 1536px)");+ return (+ <SidebarProvider+ style={+ {+ "--sidebar-width": isMobile+ ? SIDEBAR_WIDTH_MOBILE+ : is2XL+ ? SIDEBAR_WIDTH_2XL+ : SIDEBAR_WIDTH,+ } as React.CSSProperties+ }+ defaultOpen={false}+ cookieName="sidebar_state_right"+ >+ <Sidebar+ collapsible="offcanvas"+ side="right"+ className="top-14 flex h-[calc(100svh_-_56px)]"+ {...props}+ >+ <SidebarHeader className="relative border-sidebar-border border-b">+ {header}+ <div className="-left-9 absolute inset-y-0 z-10 flex items-center justify-center">+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <SidebarTrigger />+ </TooltipTrigger>+ <TooltipContent side="left">+ <p className="mr-px inline-flex items-center">+ Toggle Sidebar{" "}+ <Kbd className="border-muted-foreground bg-primary font-mono text-background">+ ⌘+ </Kbd>+ <Kbd className="border-muted-foreground bg-primary font-mono text-background">+ {SIDEBAR_KEYBOARD_SHORTCUT}+ </Kbd>+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ </SidebarHeader>+ <SidebarContent className="flex flex-col gap-0">+ {metadata.map((item) => (+ <SidebarMetadata key={item.label} {...item} />+ ))}+ </SidebarContent>+ <SidebarSeparator className="mx-0" />+ {footerButton ? (+ <SidebarFooter>+ <SidebarMenu>+ <SidebarMenuItem>+ <SidebarMenuButton {...footerButton} />+ </SidebarMenuItem>+ </SidebarMenu>+ </SidebarFooter>+ ) : null}+ </Sidebar>+ </SidebarProvider>+ );+}++export function SidebarTrigger({+ className,+ onClick,+ ...props+}: React.ComponentProps<typeof Button>) {+ const { toggleSidebar } = useSidebar();++ // Adds a keyboard shortcut to toggle the sidebar.+ React.useEffect(() => {+ const handleKeyDown = (event: KeyboardEvent) => {+ if (+ event.key === SIDEBAR_KEYBOARD_SHORTCUT &&+ (event.metaKey || event.ctrlKey)+ ) {+ event.preventDefault();+ toggleSidebar();+ }+ };++ window.addEventListener("keydown", handleKeyDown);+ return () => window.removeEventListener("keydown", handleKeyDown);+ }, [toggleSidebar]);++ return (+ <Button+ data-sidebar="trigger"+ data-slot="sidebar-trigger"+ variant="ghost"+ size="icon"+ className={cn("size-7", className)}+ onClick={(event) => {+ onClick?.(event);+ toggleSidebar();+ }}+ {...props}+ >+ <PanelRight />+ <span className="sr-only">Toggle Sidebar</span>+ </Button>+ );+}diff --git a/apps/dashboard/src/components/nav/workspace-switcher.tsx b/apps/dashboard/src/components/nav/workspace-switcher.tsxnew file mode 100644index 000000000..0f641b761--- /dev/null+++ b/apps/dashboard/src/components/nav/workspace-switcher.tsx@@ -0,0 +1,110 @@+"use client";++import { ChevronsUpDown, Plus } from "lucide-react";++import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import {+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+ useSidebar,+} from "@/components/ui/sidebar";+import { useTRPC } from "@/lib/trpc/client";+import { useQuery } from "@tanstack/react-query";+import { Link } from "../common/link";++export function WorkspaceSwitcher() {+ const { isMobile, setOpenMobile } = useSidebar();+ const trpc = useTRPC();+ const { data: workspace } = useQuery(trpc.workspace.get.queryOptions());+ const { data: workspaces } = useQuery(trpc.workspace.list.queryOptions());++ if (!workspace) return null;++ function handleClick(slug: string) {+ document.cookie = `workspace-slug=${slug}; path=/;`;+ window.location.href = "/overview";+ }++ return (+ <SidebarMenu>+ <SidebarMenuItem>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <SidebarMenuButton+ size="lg"+ // FIXME: group-data-[collapsible=icon]:mx-8! (incl. nav-user)+ className="h-14 rounded-none px-4 ring-inset data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground group-data-[collapsible=icon]:mx-2!"+ >+ <div className="flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary">+ <div className="size-8 overflow-hidden rounded-lg">+ <img+ src={`https://api.dicebear.com/9.x/glass/svg?seed=${workspace.slug}`}+ alt="avatar"+ />+ </div>+ </div>+ <div className="grid flex-1 text-left text-sm leading-tight">+ <div className="truncate font-medium">+ {workspace.name || "Untitled Workspace"}+ </div>+ <div className="truncate text-xs">+ <span className="font-mono">{workspace.slug}</span>{" "}+ <span className="text-muted-foreground">+ {workspace.plan === "team" ? "pro" : workspace.plan}+ </span>+ </div>+ </div>+ <ChevronsUpDown className="ml-auto" />+ </SidebarMenuButton>+ </DropdownMenuTrigger>+ <DropdownMenuContent+ className="w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg"+ align="start"+ side={isMobile ? "bottom" : "right"}+ sideOffset={4}+ >+ <DropdownMenuLabel className="text-muted-foreground text-xs">+ Workspaces+ </DropdownMenuLabel>+ {workspaces?.map((workspace) => (+ <DropdownMenuItem+ key={workspace.id}+ onClick={() => {+ handleClick(workspace.slug);+ setOpenMobile(false);+ }}+ className="gap-2 p-2"+ >+ <span className="truncate">+ {workspace.name || "Untitled Workspace"}+ </span>+ <span className="truncate font-mono text-muted-foreground text-xs">+ {workspace.slug}+ </span>+ </DropdownMenuItem>+ ))}+ <DropdownMenuSeparator />+ <DropdownMenuItem className="gap-2 p-2" asChild>+ <Link href="/settings/general">+ <div className="flex size-6 items-center justify-center rounded-md border bg-transparent">+ <Plus className="size-4" />+ </div>+ <div className="font-medium text-muted-foreground">+ Add team member+ </div>+ </Link>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </SidebarMenuItem>+ </SidebarMenu>+ );+}diff --git a/apps/dashboard/src/components/status-page/floating-button.tsx b/apps/dashboard/src/components/status-page/floating-button.tsxnew file mode 100644index 000000000..c1d88907a--- /dev/null+++ b/apps/dashboard/src/components/status-page/floating-button.tsx@@ -0,0 +1,139 @@+"use client";++import { ThemeToggle } from "@/components/theme-toggle";+import { Button } from "@/components/ui/button";+import { Label } from "@/components/ui/label";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { cn } from "@/lib/utils";+import { Settings } from "lucide-react";+import type React from "react";+import { createContext, useContext, useState } from "react";++export const VARIANT = ["success", "degraded", "error", "info"] as const;+export type VariantType = (typeof VARIANT)[number];++export const CARD_TYPE = ["detailed", "compact"] as const;+export type CardType = (typeof CARD_TYPE)[number];++interface StatusPageContextType {+ variant: VariantType;+ setVariant: (variant: VariantType) => void;+ cardType: CardType;+ setCardType: (cardType: CardType) => void;+}++const StatusPageContext = createContext<StatusPageContextType | null>(null);++export function useStatusPage() {+ const context = useContext(StatusPageContext);+ if (!context) {+ throw new Error("useStatusPage must be used within a StatusPageProvider");+ }+ return context;+}++export function StatusPageProvider({+ children,+ defaultVariant = "success",+}: {+ children: React.ReactNode;+ defaultVariant?: VariantType;+}) {+ const [variant, setVariant] = useState<VariantType>(defaultVariant);+ const [cardType, setCardType] = useState<CardType>("detailed");++ return (+ <StatusPageContext.Provider+ value={{ variant, setVariant, cardType, setCardType }}+ >+ {children}+ </StatusPageContext.Provider>+ );+}++export function FloatingButton({ className }: { className?: string }) {+ const { variant, setVariant, cardType, setCardType } = useStatusPage();++ return (+ <div className={cn("fixed right-4 bottom-4 z-50 bg-background", className)}>+ <Popover>+ <PopoverTrigger asChild>+ <Button+ size="icon"+ variant="outline"+ className="size-12 rounded-full"+ >+ <Settings className="size-5" />+ <span className="sr-only">Open status page settings</span>+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-80" align="end">+ <div className="space-y-4">+ <div className="space-y-2">+ <h4 className="font-medium leading-none">Status Page Settings</h4>+ <p className="text-muted-foreground text-sm">+ Configure the status page appearance+ </p>+ </div>+ <div className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="status-variant">Status Variant</Label>+ <Select+ value={variant}+ onValueChange={(v) => setVariant(v as VariantType)}+ >+ <SelectTrigger+ id="status-variant"+ className="w-full capitalize"+ >+ <SelectValue />+ </SelectTrigger>+ <SelectContent>+ {VARIANT.map((v) => (+ <SelectItem key={v} value={v} className="capitalize">+ {v}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>+ <div className="space-y-2">+ <Label htmlFor="card-type">Card Type</Label>+ <Select+ value={cardType}+ onValueChange={(v) => setCardType(v as CardType)}+ >+ <SelectTrigger id="card-type" className="w-full capitalize">+ <SelectValue />+ </SelectTrigger>+ <SelectContent>+ {CARD_TYPE.map((v) => (+ <SelectItem key={v} value={v} className="capitalize">+ {v}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>+ <div className="space-y-2">+ <Label htmlFor="theme">Theme</Label>+ <ThemeToggle id="theme" className="w-full" />+ </div>+ </div>+ </div>+ </PopoverContent>+ </Popover>+ </div>+ );+}diff --git a/apps/dashboard/src/components/status-page/messages.ts b/apps/dashboard/src/components/status-page/messages.tsnew file mode 100644index 000000000..069a96101--- /dev/null+++ b/apps/dashboard/src/components/status-page/messages.ts@@ -0,0 +1,14 @@+export const messages = {+ long: {+ success: "All Systems Operational",+ degraded: "Degraded Performance",+ error: "Downtime Performance",+ info: "Maintenance",+ },+ short: {+ success: "Operational",+ degraded: "Degraded",+ error: "Downtime",+ info: "Maintenance",+ },+};diff --git a/apps/dashboard/src/components/status-page/status-monitor.tsx b/apps/dashboard/src/components/status-page/status-monitor.tsxnew file mode 100644index 000000000..9b6f9edf5--- /dev/null+++ b/apps/dashboard/src/components/status-page/status-monitor.tsx@@ -0,0 +1,116 @@+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { useMediaQuery } from "@/hooks/use-media-query";+import { cn } from "@/lib/utils";+import {+ AlertCircleIcon,+ CheckIcon,+ InfoIcon,+ TriangleAlertIcon,+ WrenchIcon,+} from "lucide-react";+import { useState } from "react";+import type { CardType, VariantType } from "./floating-button";+import { StatusTracker } from "./status-tracker";++export function StatusMonitor({+ className,+ variant = "success",+ type = "detailed",+ ...props+}: React.ComponentProps<"div"> & {+ variant?: VariantType;+ type?: CardType;+}) {+ return (+ <div+ data-slot="status-monitor"+ data-variant={variant}+ className={cn("group/monitor flex flex-col gap-1", className)}+ {...props}+ >+ <div className="flex flex-row items-center justify-between gap-4">+ <div className="flex flex-row items-center gap-2">+ <StatusMonitorTitle />+ <StatusMonitorDescription />+ </div>+ <div className="flex flex-row items-center gap-2">+ {type === "detailed" ? <StatusMonitorUptime /> : null}+ <StatusMonitorIcon />+ </div>+ </div>+ <StatusTracker type={type} />+ </div>+ );+}++export function StatusMonitorTitle({ ...props }: React.ComponentProps<"div">) {+ return <div {...props}>StatusMonitorTitle</div>;+}++export function StatusMonitorDescription({+ onClick,+ ...props+}: React.ComponentProps<typeof TooltipTrigger>) {+ const isTouch = useMediaQuery("(hover: none)");+ const [open, setOpen] = useState(false);++ return (+ <TooltipProvider delayDuration={0}>+ <Tooltip open={open} onOpenChange={setOpen}>+ <TooltipTrigger+ onClick={(e) => {+ if (isTouch) setOpen((prev) => !prev);+ onClick?.(e);+ }}+ {...props}+ >+ <InfoIcon className="size-4 text-muted-foreground" />+ </TooltipTrigger>+ <TooltipContent>+ <p>API used to ...</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+}+export function StatusMonitorIcon({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn(+ "flex size-4 items-center justify-center rounded-full bg-muted text-background [&>svg]:size-2.5",+ "group-data-[variant=success]/monitor:bg-success",+ "group-data-[variant=degraded]/monitor:bg-warning",+ "group-data-[variant=error]/monitor:bg-destructive",+ "group-data-[variant=info]/monitor:bg-info",+ className,+ )}+ {...props}+ >+ <CheckIcon className="hidden group-data-[variant=success]/monitor:block" />+ <TriangleAlertIcon className="hidden group-data-[variant=degraded]/monitor:block" />+ <AlertCircleIcon className="hidden group-data-[variant=error]/monitor:block" />+ <WrenchIcon className="hidden group-data-[variant=info]/monitor:block" />+ </div>+ );+}+export function StatusMonitorUptime({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ {...props}+ className={cn("font-mono text-muted-foreground text-sm", className)}+ >+ 99.89%+ </div>+ );+}diff --git a/apps/dashboard/src/components/status-page/status-tracker.tsx b/apps/dashboard/src/components/status-page/status-tracker.tsxnew file mode 100644index 000000000..29f1b4061--- /dev/null+++ b/apps/dashboard/src/components/status-page/status-tracker.tsx@@ -0,0 +1,234 @@+"use client";++import { Kbd } from "@/components/common/kbd";+import {+ HoverCard,+ HoverCardContent,+ HoverCardTrigger,+} from "@/components/ui/hover-card";+import { Separator } from "@/components/ui/separator";+import { statusReports } from "@/data/status-reports";+import { useMediaQuery } from "@/hooks/use-media-query";+import { formatDistanceStrict, isSameDay } from "date-fns";+import { ChevronRight } from "lucide-react";+import Link from "next/link";+import { useEffect, useRef, useState } from "react";+import { type CardType, VARIANT } from "./floating-button";+import { messages } from "./messages";+import { chartConfig, chartData } from "./utils";++const STATUS = VARIANT;++export function StatusTracker({ type = "detailed" }: { type?: CardType }) {+ const [pinnedIndex, setPinnedIndex] = useState<number | null>(null);+ const containerRef = useRef<HTMLDivElement>(null);+ const isTouch = useMediaQuery("(hover: none)");++ // Window-level Escape key listener+ useEffect(() => {+ const handleEscape = (e: KeyboardEvent) => {+ if (e.key === "Escape" && pinnedIndex !== null) {+ setPinnedIndex(null);+ }+ };++ window.addEventListener("keydown", handleEscape);+ return () => window.removeEventListener("keydown", handleEscape);+ }, [pinnedIndex]);++ // Document-level outside click listener+ useEffect(() => {+ const handleOutsideClick = (e: MouseEvent) => {+ if (+ pinnedIndex !== null &&+ containerRef.current &&+ !containerRef.current.contains(e.target as Node)+ ) {+ setPinnedIndex(null);+ }+ };++ if (pinnedIndex !== null) {+ document.addEventListener("mousedown", handleOutsideClick);+ return () =>+ document.removeEventListener("mousedown", handleOutsideClick);+ }+ }, [pinnedIndex]);++ // Handle keyboard events for accessibility (kept for fallback)+ const handleKeyDown = (e: React.KeyboardEvent) => {+ if (e.key === "Escape") {+ setPinnedIndex(null);+ }+ };++ const handleBarClick = (index: number) => {+ // Toggle pinned state: if clicking the same bar, unpin it; otherwise, pin the new bar+ if (pinnedIndex === index) {+ setPinnedIndex(null);+ } else {+ setPinnedIndex(index);+ }+ };++ return (+ <div+ ref={containerRef}+ className="flex h-[50px] w-full items-end gap-px xs:gap-0.5 sm:gap-1"+ onKeyDown={handleKeyDown}+ >+ {chartData.map((item, index) => {+ const total = item.success + item.degraded + item.info + item.error;+ const isPinned = pinnedIndex === index;++ const reports = statusReports.filter((report) => {+ const reportDate = new Date(report.startedAt);+ const itemDate = new Date(item.timestamp);+ return isSameDay(reportDate, itemDate);+ });++ return (+ <HoverCard+ key={item.timestamp}+ openDelay={0}+ closeDelay={0}+ open={isPinned ? true : undefined}+ >+ <HoverCardTrigger asChild>+ <div+ className="group relative flex h-full w-full cursor-pointer flex-col transition-opacity hover:opacity-80"+ onClick={() => handleBarClick(index)}+ >+ {STATUS.map((status) => {+ const value = item[status as keyof typeof item] as number;+ if (value === 0) return null;+ const heightPercentage = (value / total) * 100;+ return (+ <div+ key={`${item.timestamp}-${status}`}+ className="w-full transition-all"+ style={{+ height: `${heightPercentage}%`,+ backgroundColor: chartConfig[status].color,+ }}+ />+ );+ })}+ </div>+ </HoverCardTrigger>+ <HoverCardContent side="top" align="center" className="w-auto p-0">+ <div>+ <div className="p-2 text-xs">+ {new Date(item.timestamp).toLocaleDateString("default", {+ day: "numeric",+ month: "short",+ })}+ </div>+ <Separator />+ <div className="space-y-1 p-2 text-sm">+ {type === "detailed" ? (+ <StatusTrackerContentDetailed item={item} />+ ) : (+ <StatusTrackerContentCompact item={item} />+ )}+ </div>+ {reports.length > 0 ? (+ <>+ <Separator />+ <div className="p-2">+ {reports.map((report) => (+ <Link key={report.id} href={"#"}>+ <div className="group flex items-center justify-between text-muted-foreground text-sm hover:text-foreground">+ <div>{report.name}</div>+ <ChevronRight className="size-3 transition-transform group-hover:translate-x-0.5" />+ </div>+ </Link>+ ))}+ </div>+ </>+ ) : null}+ {isPinned && !isTouch && (+ <>+ <Separator />+ <div className="flex cursor-pointer items-center p-2 text-muted-foreground text-xs">+ <span>Click again to unpin</span>+ <Kbd>Esc</Kbd>+ </div>+ </>+ )}+ </div>+ </HoverCardContent>+ </HoverCard>+ );+ })}+ </div>+ );+}++function StatusTrackerContentDetailed({+ item,+}: {+ item: (typeof chartData)[number];+}) {+ return STATUS.map((status) => {+ const value = item[status];+ if (value === 0) return null;++ // const percentage = ((value / total) * 100).toFixed(1);++ const now = new Date();+ const duration = formatDistanceStrict(+ now,+ new Date(now.getTime() + value * 60 * 1000),+ );++ return (+ <div key={status} className="flex items-baseline gap-4">+ <div className="flex items-center gap-2">+ <div+ className="h-2.5 w-2.5 rounded-sm"+ style={{+ backgroundColor: chartConfig[status].color,+ }}+ />+ <div className="text-sm">{messages.short[status]}</div>+ </div>+ <div className="ml-auto font-mono text-muted-foreground text-xs tracking-tight">+ {duration}+ </div>+ </div>+ );+ });+}++const priority = {+ error: 3,+ degraded: 2,+ info: 1,+ success: 0,+} as const;++function StatusTrackerContentCompact({+ item,+}: {+ item: (typeof chartData)[number];+}) {+ const highestPriorityStatus =+ STATUS.filter((status) => item[status] > 0).sort(+ (a, b) => priority[b] - priority[a],+ )[0] || "success";++ return (+ <div className="flex min-w-32 items-baseline gap-4">+ <div className="flex items-center gap-2">+ <div+ className="h-2.5 w-2.5 rounded-sm"+ style={{+ backgroundColor: chartConfig[highestPriorityStatus].color,+ }}+ />+ <div className="text-sm">{messages.short[highestPriorityStatus]}</div>+ </div>+ </div>+ );+}diff --git a/apps/dashboard/src/components/status-page/status.tsx b/apps/dashboard/src/components/status-page/status.tsxnew file mode 100644index 000000000..0ce833b4d--- /dev/null+++ b/apps/dashboard/src/components/status-page/status.tsx@@ -0,0 +1,179 @@+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { cn } from "@/lib/utils";+import { UTCDate } from "@date-fns/utc";+import { format } from "date-fns";+import {+ AlertCircleIcon,+ CheckIcon,+ TriangleAlertIcon,+ WrenchIcon,+} from "lucide-react";+import { messages } from "./messages";++export function Status({+ children,+ className,+ variant = "success",+ ...props+}: React.ComponentProps<"div"> & {+ variant?: "success" | "degraded" | "error" | "info";+}) {+ return (+ <div+ data-variant={variant}+ data-slot="status"+ className={cn("group peer flex flex-col gap-8", className)}+ {...props}+ >+ {children}+ </div>+ );+}++export function StatusHeader({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="status-header"+ className={cn("@container/status-header", className)}+ {...props}+ >+ {children}+ </div>+ );+}++export function StatusTitle({+ children,+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn(+ "font-semibold text-foreground text-lg leading-none",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+}++export function StatusDescription({+ children,+ className,+}: React.ComponentProps<"div">) {+ return (+ <div className={cn("text-muted-foreground", className)}>{children}</div>+ );+}++export function StatusContent({+ children,+ className,+}: React.ComponentProps<"div">) {+ return <div className={cn("flex flex-col gap-6", className)}>{children}</div>;+}++export function StatusBanner({ className }: React.ComponentProps<"div">) {+ return (+ <div+ className={cn(+ "flex items-center gap-3 rounded-lg border p-3",+ "group-data-[variant=success]:border-success/20 group-data-[variant=success]:bg-success/10",+ "group-data-[variant=degraded]:border-warning/20 group-data-[variant=degraded]:bg-warning/10",+ "group-data-[variant=error]:border-destructive/20 group-data-[variant=error]:bg-destructive/10",+ "group-data-[variant=info]:border-info/20 group-data-[variant=info]:bg-info/10",+ className,+ )}+ >+ <StatusIcon className="flex-shrink-0" />+ <div className="flex flex-1 flex-wrap items-center justify-between gap-2">+ <StatusBannerMessage className="font-semibold text-xl" />+ <StatusTimestamp date={new Date()} className="text-xs" />+ </div>+ </div>+ );+}++export function StatusBannerMessage({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div className={cn(className)} {...props}>+ <span className="hidden group-data-[variant=success]:block">+ {messages.long.success}+ </span>+ <span className="hidden group-data-[variant=degraded]:block">+ {messages.long.degraded}+ </span>+ <span className="hidden group-data-[variant=error]:block">+ {messages.long.error}+ </span>+ <span className="hidden group-data-[variant=info]:block">+ {messages.long.info}+ </span>+ </div>+ );+}++export function StatusIcon({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ className={cn(+ "flex size-8 items-center justify-center rounded-full bg-muted text-background [&>svg]:size-4",+ "group-data-[variant=success]:bg-success",+ "group-data-[variant=degraded]:bg-warning",+ "group-data-[variant=error]:bg-destructive",+ "group-data-[variant=info]:bg-info",+ className,+ )}+ {...props}+ >+ <CheckIcon className="hidden group-data-[variant=success]:block" />+ <TriangleAlertIcon className="hidden group-data-[variant=degraded]:block" />+ <AlertCircleIcon className="hidden group-data-[variant=error]:block" />+ <WrenchIcon className="hidden group-data-[variant=info]:block" />+ </div>+ );+}++export function StatusTimestamp({+ date,+ className,+ ...props+}: React.ComponentProps<typeof TooltipTrigger> & { date: Date }) {+ return (+ <TooltipProvider>+ <Tooltip>+ {/* TODO: add outline focus */}+ <TooltipTrigger+ className={cn(+ "font-mono text-muted-foreground underline decoration-muted-foreground/30 decoration-dashed underline-offset-4",+ className,+ )}+ {...props}+ >+ {format(new UTCDate(date), "LLL dd, y HH:mm (z)")}+ </TooltipTrigger>+ <TooltipContent>+ <p className="font-mono">{format(date, "LLL dd, y HH:mm (z)")}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+}diff --git a/apps/dashboard/src/components/status-page/utils.ts b/apps/dashboard/src/components/status-page/utils.tsnew file mode 100644index 000000000..5304cea90--- /dev/null+++ b/apps/dashboard/src/components/status-page/utils.ts@@ -0,0 +1,66 @@+import type { ChartConfig } from "@/components/ui/chart";++export const chartData = Array.from({ length: 45 }, (_, i) => {+ const date = new Date();+ date.setDate(date.getDate() - i);++ // Simulate realistic daily status distribution that sums to 1440 minutes+ let error = 0;+ let degraded = 0;+ let success = 1440; // Start with all minutes as ok+ let info = 0;++ // Simulate some incidents on certain days+ if (i === 3) {+ // Day 3: Major incident for 2 hours (120 minutes)+ error = 120;+ success -= error;+ } else if (i === 16) {+ // Day 16: Degraded performance for 4 hours (240 minutes)+ degraded = 240;+ success -= degraded;+ } else if (i === 8) {+ // Day 8: Brief outage (30 minutes) + some degraded performance (60 minutes)+ error = 30;+ degraded = 60;+ success -= error + degraded;+ } else if (i === 13) {+ info = 120;+ success -= info;+ } else if (i === 22) {+ // Day 22: Extended degraded performance (6 hours = 360 minutes)+ degraded = 360;+ success -= degraded;+ } else if (Math.random() > 0.85) {+ // Random minor issues on some days (5-15 minutes of degraded performance)+ degraded = Math.floor(Math.random() * 10) + 5;+ success -= degraded;+ }++ return {+ timestamp: date.getTime(),+ info,+ degraded,+ error,+ success,+ };+}).reverse();++export const chartConfig = {+ success: {+ label: "success",+ color: "var(--success)",+ },+ degraded: {+ label: "degraded",+ color: "var(--warning)",+ },+ error: {+ label: "error",+ color: "var(--destructive)",+ },+ info: {+ label: "info",+ color: "var(--info)",+ },+} satisfies ChartConfig;diff --git a/apps/dashboard/src/components/tailwind-indicator.tsx b/apps/dashboard/src/components/tailwind-indicator.tsxnew file mode 100644index 000000000..ab3464364--- /dev/null+++ b/apps/dashboard/src/components/tailwind-indicator.tsx@@ -0,0 +1,14 @@+export function TailwindIndicator() {+ if (process.env.NODE_ENV === "production") return null;++ return (+ <div className="fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-foreground p-3 font-mono text-background text-xs">+ <div className="block sm:hidden">xs</div>+ <div className="hidden sm:block md:hidden">sm</div>+ <div className="hidden md:block lg:hidden">md</div>+ <div className="hidden lg:block xl:hidden">lg</div>+ <div className="hidden xl:block 2xl:hidden">xl</div>+ <div className="hidden 2xl:block">2xl</div>+ </div>+ );+}diff --git a/apps/dashboard/src/components/theme-provider.tsx b/apps/dashboard/src/components/theme-provider.tsxnew file mode 100644index 000000000..6459132f4--- /dev/null+++ b/apps/dashboard/src/components/theme-provider.tsx@@ -0,0 +1,11 @@+"use client";++import { ThemeProvider as NextThemesProvider } from "next-themes";+import type * as React from "react";++export function ThemeProvider({+ children,+ ...props+}: React.ComponentProps<typeof NextThemesProvider>) {+ return <NextThemesProvider {...props}>{children}</NextThemesProvider>;+}diff --git a/apps/dashboard/src/components/theme-toggle.tsx b/apps/dashboard/src/components/theme-toggle.tsxnew file mode 100644index 000000000..422d42ae8--- /dev/null+++ b/apps/dashboard/src/components/theme-toggle.tsx@@ -0,0 +1,67 @@+"use client";++import { useTheme } from "next-themes";+import type * as React from "react";++import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { cn } from "@/lib/utils";+import { Laptop, Moon, Sun } from "lucide-react";+import { useState } from "react";+import { useEffect } from "react";++export function ThemeToggle({+ className,+ ...props+}: React.ComponentProps<typeof SelectTrigger>) {+ const { setTheme, theme } = useTheme();+ const [mounted, setMounted] = useState(false);++ useEffect(() => {+ setMounted(true);+ }, []);++ // NOTE: hydration error if we don't do this+ if (!mounted) {+ return (+ <Select>+ <SelectTrigger className={cn("w-[180px]", className)} {...props}>+ <SelectValue placeholder="Select theme" />+ </SelectTrigger>+ </Select>+ );+ }++ return (+ <Select value={theme} onValueChange={setTheme}>+ <SelectTrigger className={cn("w-[180px]", className)} {...props}>+ <SelectValue defaultValue={theme} placeholder="Select theme" />+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="light">+ <div className="flex items-center gap-2">+ <Sun className="h-4 w-4" />+ <span>Light</span>+ </div>+ </SelectItem>+ <SelectItem value="dark">+ <div className="flex items-center gap-2">+ <Moon className="h-4 w-4" />+ <span>Dark</span>+ </div>+ </SelectItem>+ <SelectItem value="system">+ <div className="flex items-center gap-2">+ <Laptop className="h-4 w-4" />+ <span>System</span>+ </div>+ </SelectItem>+ </SelectContent>+ </Select>+ );+}diff --git a/apps/dashboard/src/components/ui/alert-dialog.tsx b/apps/dashboard/src/components/ui/alert-dialog.tsxnew file mode 100644index 000000000..d8e1d34ed--- /dev/null+++ b/apps/dashboard/src/components/ui/alert-dialog.tsx@@ -0,0 +1,157 @@+"use client";++import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";+import type * as React from "react";++import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";++function AlertDialog({+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {+ return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;+}++function AlertDialogTrigger({+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {+ return (+ <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />+ );+}++function AlertDialogPortal({+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {+ return (+ <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />+ );+}++function AlertDialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {+ return (+ <AlertDialogPrimitive.Overlay+ data-slot="alert-dialog-overlay"+ className={cn(+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",+ className,+ )}+ {...props}+ />+ );+}++function AlertDialogContent({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {+ return (+ <AlertDialogPortal>+ <AlertDialogOverlay />+ <AlertDialogPrimitive.Content+ data-slot="alert-dialog-content"+ className={cn(+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",+ className,+ )}+ {...props}+ />+ </AlertDialogPortal>+ );+}++function AlertDialogHeader({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="alert-dialog-header"+ className={cn("flex flex-col gap-2 text-center sm:text-left", className)}+ {...props}+ />+ );+}++function AlertDialogFooter({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="alert-dialog-footer"+ className={cn(+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",+ className,+ )}+ {...props}+ />+ );+}++function AlertDialogTitle({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {+ return (+ <AlertDialogPrimitive.Title+ data-slot="alert-dialog-title"+ className={cn("font-semibold text-lg", className)}+ {...props}+ />+ );+}++function AlertDialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {+ return (+ <AlertDialogPrimitive.Description+ data-slot="alert-dialog-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ );+}++function AlertDialogAction({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {+ return (+ <AlertDialogPrimitive.Action+ className={cn(buttonVariants(), className)}+ {...props}+ />+ );+}++function AlertDialogCancel({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {+ return (+ <AlertDialogPrimitive.Cancel+ className={cn(buttonVariants({ variant: "outline" }), className)}+ {...props}+ />+ );+}++export {+ AlertDialog,+ AlertDialogPortal,+ AlertDialogOverlay,+ AlertDialogTrigger,+ AlertDialogContent,+ AlertDialogHeader,+ AlertDialogFooter,+ AlertDialogTitle,+ AlertDialogDescription,+ AlertDialogAction,+ AlertDialogCancel,+};diff --git a/apps/dashboard/src/components/ui/alert.tsx b/apps/dashboard/src/components/ui/alert.tsxnew file mode 100644index 000000000..4f74e7b2b--- /dev/null+++ b/apps/dashboard/src/components/ui/alert.tsx@@ -0,0 +1,66 @@+import { type VariantProps, cva } from "class-variance-authority";+import type * as React from "react";++import { cn } from "@/lib/utils";++const alertVariants = cva(+ "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",+ {+ variants: {+ variant: {+ default: "bg-card text-card-foreground",+ destructive:+ "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ },+);++function Alert({+ className,+ variant,+ ...props+}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {+ return (+ <div+ data-slot="alert"+ role="alert"+ className={cn(alertVariants({ variant }), className)}+ {...props}+ />+ );+}++function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="alert-title"+ className={cn(+ "col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",+ className,+ )}+ {...props}+ />+ );+}++function AlertDescription({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="alert-description"+ className={cn(+ "col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed",+ className,+ )}+ {...props}+ />+ );+}++export { Alert, AlertTitle, AlertDescription };diff --git a/apps/dashboard/src/components/ui/avatar.tsx b/apps/dashboard/src/components/ui/avatar.tsxnew file mode 100644index 000000000..98e4243f8--- /dev/null+++ b/apps/dashboard/src/components/ui/avatar.tsx@@ -0,0 +1,53 @@+"use client";++import * as AvatarPrimitive from "@radix-ui/react-avatar";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Avatar({+ className,+ ...props+}: React.ComponentProps<typeof AvatarPrimitive.Root>) {+ return (+ <AvatarPrimitive.Root+ data-slot="avatar"+ className={cn(+ "relative flex size-8 shrink-0 overflow-hidden rounded-full",+ className,+ )}+ {...props}+ />+ );+}++function AvatarImage({+ className,+ ...props+}: React.ComponentProps<typeof AvatarPrimitive.Image>) {+ return (+ <AvatarPrimitive.Image+ data-slot="avatar-image"+ className={cn("aspect-square size-full", className)}+ {...props}+ />+ );+}++function AvatarFallback({+ className,+ ...props+}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {+ return (+ <AvatarPrimitive.Fallback+ data-slot="avatar-fallback"+ className={cn(+ "flex size-full items-center justify-center rounded-full bg-muted",+ className,+ )}+ {...props}+ />+ );+}++export { Avatar, AvatarImage, AvatarFallback };diff --git a/apps/dashboard/src/components/ui/badge.tsx b/apps/dashboard/src/components/ui/badge.tsxnew file mode 100644index 000000000..e5ffef1c2--- /dev/null+++ b/apps/dashboard/src/components/ui/badge.tsx@@ -0,0 +1,43 @@+import { Slot } from "@radix-ui/react-slot";+import { type VariantProps, cva } from "class-variance-authority";+import type * as React from "react";++import { cn } from "@/lib/utils";++const badgeVariants = cva(+ "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",+ {+ variants: {+ variant: {+ default:+ "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",+ secondary:+ "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",+ destructive:+ "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",+ outline:+ "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ },+);++export type BadgeProps = React.ComponentProps<"span"> &+ VariantProps<typeof badgeVariants> & { asChild?: boolean };++function Badge({ className, variant, asChild = false, ...props }: BadgeProps) {+ const Comp = asChild ? Slot : "span";++ return (+ <Comp+ data-slot="badge"+ className={cn(badgeVariants({ variant }), className)}+ {...props}+ />+ );+}++export { Badge, badgeVariants };diff --git a/apps/dashboard/src/components/ui/breadcrumb.tsx b/apps/dashboard/src/components/ui/breadcrumb.tsxnew file mode 100644index 000000000..95e809620--- /dev/null+++ b/apps/dashboard/src/components/ui/breadcrumb.tsx@@ -0,0 +1,109 @@+import { Slot } from "@radix-ui/react-slot";+import { ChevronRight, MoreHorizontal } from "lucide-react";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {+ return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;+}++function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {+ return (+ <ol+ data-slot="breadcrumb-list"+ className={cn(+ "flex flex-wrap items-center gap-1.5 break-words text-muted-foreground text-sm sm:gap-2.5",+ className,+ )}+ {...props}+ />+ );+}++function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {+ return (+ <li+ data-slot="breadcrumb-item"+ className={cn("inline-flex items-center gap-1.5", className)}+ {...props}+ />+ );+}++function BreadcrumbLink({+ asChild,+ className,+ ...props+}: React.ComponentProps<"a"> & {+ asChild?: boolean;+}) {+ const Comp = asChild ? Slot : "a";++ return (+ <Comp+ data-slot="breadcrumb-link"+ className={cn("transition-colors hover:text-foreground", className)}+ {...props}+ />+ );+}++function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="breadcrumb-page"+ role="link"+ aria-disabled="true"+ aria-current="page"+ className={cn("font-normal text-foreground", className)}+ {...props}+ />+ );+}++function BreadcrumbSeparator({+ children,+ className,+ ...props+}: React.ComponentProps<"li">) {+ return (+ <li+ data-slot="breadcrumb-separator"+ role="presentation"+ aria-hidden="true"+ className={cn("[&>svg]:size-3.5", className)}+ {...props}+ >+ {children ?? <ChevronRight />}+ </li>+ );+}++function BreadcrumbEllipsis({+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="breadcrumb-ellipsis"+ role="presentation"+ aria-hidden="true"+ className={cn("flex size-9 items-center justify-center", className)}+ {...props}+ >+ <MoreHorizontal className="size-4" />+ <span className="sr-only">More</span>+ </span>+ );+}++export {+ Breadcrumb,+ BreadcrumbList,+ BreadcrumbItem,+ BreadcrumbLink,+ BreadcrumbPage,+ BreadcrumbSeparator,+ BreadcrumbEllipsis,+};diff --git a/apps/dashboard/src/components/ui/button.tsx b/apps/dashboard/src/components/ui/button.tsxnew file mode 100644index 000000000..11621b95f--- /dev/null+++ b/apps/dashboard/src/components/ui/button.tsx@@ -0,0 +1,59 @@+import { Slot } from "@radix-ui/react-slot";+import { type VariantProps, cva } from "class-variance-authority";+import type * as React from "react";++import { cn } from "@/lib/utils";++const buttonVariants = cva(+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",+ {+ variants: {+ variant: {+ default:+ "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",+ destructive:+ "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",+ outline:+ "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",+ secondary:+ "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",+ ghost:+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-9 px-4 py-2 has-[>svg]:px-3",+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",+ icon: "size-9",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ },+);++function Button({+ className,+ variant,+ size,+ asChild = false,+ ...props+}: React.ComponentProps<"button"> &+ VariantProps<typeof buttonVariants> & {+ asChild?: boolean;+ }) {+ const Comp = asChild ? Slot : "button";++ return (+ <Comp+ data-slot="button"+ className={cn(buttonVariants({ variant, size, className }))}+ {...props}+ />+ );+}++export { Button, buttonVariants };diff --git a/apps/dashboard/src/components/ui/calendar.tsx b/apps/dashboard/src/components/ui/calendar.tsxnew file mode 100644index 000000000..07f4a92b9--- /dev/null+++ b/apps/dashboard/src/components/ui/calendar.tsx@@ -0,0 +1,75 @@+"use client";++import { ChevronLeft, ChevronRight } from "lucide-react";+import type * as React from "react";+import { DayPicker } from "react-day-picker";++import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";++function Calendar({+ className,+ classNames,+ showOutsideDays = true,+ ...props+}: React.ComponentProps<typeof DayPicker>) {+ return (+ <DayPicker+ showOutsideDays={showOutsideDays}+ className={cn("p-3", className)}+ classNames={{+ months: "flex flex-col sm:flex-row gap-2",+ month: "flex flex-col gap-4",+ caption: "flex justify-center pt-1 relative items-center w-full",+ caption_label: "text-sm font-medium",+ nav: "flex items-center gap-1",+ nav_button: cn(+ buttonVariants({ variant: "outline" }),+ "size-7 bg-transparent p-0 opacity-50 hover:opacity-100",+ ),+ nav_button_previous: "absolute left-1",+ nav_button_next: "absolute right-1",+ table: "w-full border-collapse space-x-1",+ head_row: "flex",+ head_cell:+ "text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",+ row: "flex w-full mt-2",+ cell: cn(+ "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",+ props.mode === "range"+ ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md"+ : "[&:has([aria-selected])]:rounded-md",+ ),+ day: cn(+ buttonVariants({ variant: "ghost" }),+ "size-8 p-0 font-normal aria-selected:opacity-100",+ ),+ day_range_start:+ "day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",+ day_range_end:+ "day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",+ day_selected:+ "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",+ day_today: "bg-accent text-accent-foreground",+ day_outside:+ "day-outside text-muted-foreground aria-selected:text-muted-foreground",+ day_disabled: "text-muted-foreground opacity-50",+ day_range_middle:+ "aria-selected:bg-accent aria-selected:text-accent-foreground",+ day_hidden: "invisible",+ ...classNames,+ }}+ components={{+ IconLeft: ({ className, ...props }) => (+ <ChevronLeft className={cn("size-4", className)} {...props} />+ ),+ IconRight: ({ className, ...props }) => (+ <ChevronRight className={cn("size-4", className)} {...props} />+ ),+ }}+ {...props}+ />+ );+}++export { Calendar };diff --git a/apps/dashboard/src/components/ui/card.tsx b/apps/dashboard/src/components/ui/card.tsxnew file mode 100644index 000000000..cee9feaeb--- /dev/null+++ b/apps/dashboard/src/components/ui/card.tsx@@ -0,0 +1,92 @@+import type * as React from "react";++import { cn } from "@/lib/utils";++function Card({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card"+ className={cn(+ "flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",+ className,+ )}+ {...props}+ />+ );+}++function CardHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-header"+ className={cn(+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",+ className,+ )}+ {...props}+ />+ );+}++function CardTitle({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-title"+ className={cn("font-semibold leading-none", className)}+ {...props}+ />+ );+}++function CardDescription({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ );+}++function CardAction({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-action"+ className={cn(+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",+ className,+ )}+ {...props}+ />+ );+}++function CardContent({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-content"+ className={cn("px-6", className)}+ {...props}+ />+ );+}++function CardFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-footer"+ className={cn("flex items-center px-6 [.border-t]:pt-6", className)}+ {...props}+ />+ );+}++export {+ Card,+ CardHeader,+ CardFooter,+ CardTitle,+ CardAction,+ CardDescription,+ CardContent,+};diff --git a/apps/dashboard/src/components/ui/chart.tsx b/apps/dashboard/src/components/ui/chart.tsxnew file mode 100644index 000000000..699ea35de--- /dev/null+++ b/apps/dashboard/src/components/ui/chart.tsx@@ -0,0 +1,354 @@+"use client";++import * as React from "react";+import * as RechartsPrimitive from "recharts";++import { cn } from "@/lib/utils";++// Format: { THEME_NAME: CSS_SELECTOR }+const THEMES = { light: "", dark: ".dark" } as const;++export type ChartConfig = {+ [k in string]: {+ label?: React.ReactNode;+ icon?: React.ComponentType;+ } & (+ | { color?: string; theme?: never }+ | { color?: never; theme: Record<keyof typeof THEMES, string> }+ );+};++type ChartContextProps = {+ config: ChartConfig;+};++const ChartContext = React.createContext<ChartContextProps | null>(null);++function useChart() {+ const context = React.useContext(ChartContext);++ if (!context) {+ throw new Error("useChart must be used within a <ChartContainer />");+ }++ return context;+}++function ChartContainer({+ id,+ className,+ children,+ config,+ ...props+}: React.ComponentProps<"div"> & {+ config: ChartConfig;+ children: React.ComponentProps<+ typeof RechartsPrimitive.ResponsiveContainer+ >["children"];+}) {+ const uniqueId = React.useId();+ const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;++ return (+ <ChartContext.Provider value={{ config }}>+ <div+ data-slot="chart"+ data-chart={chartId}+ className={cn(+ "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden",+ className,+ )}+ {...props}+ >+ <ChartStyle id={chartId} config={config} />+ <RechartsPrimitive.ResponsiveContainer>+ {children}+ </RechartsPrimitive.ResponsiveContainer>+ </div>+ </ChartContext.Provider>+ );+}++const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {+ const colorConfig = Object.entries(config).filter(+ ([, config]) => config.theme || config.color,+ );++ if (!colorConfig.length) {+ return null;+ }++ return (+ <style+ // biome-ignore lint/security/noDangerouslySetInnerHtml: <explanation>+ dangerouslySetInnerHTML={{+ __html: Object.entries(THEMES)+ .map(+ ([theme, prefix]) => `+${prefix} [data-chart=${id}] {+${colorConfig+ .map(([key, itemConfig]) => {+ const color =+ itemConfig.theme?.[theme as keyof typeof itemConfig.theme] ||+ itemConfig.color;+ return color ? ` --color-${key}: ${color};` : null;+ })+ .join("\n")}+}+`,+ )+ .join("\n"),+ }}+ />+ );+};++const ChartTooltip = RechartsPrimitive.Tooltip;++function ChartTooltipContent({+ active,+ payload,+ className,+ indicator = "dot",+ hideLabel = false,+ hideIndicator = false,+ label,+ labelFormatter,+ labelClassName,+ formatter,+ color,+ nameKey,+ labelKey,+}: React.ComponentProps<typeof RechartsPrimitive.Tooltip> &+ React.ComponentProps<"div"> & {+ hideLabel?: boolean;+ hideIndicator?: boolean;+ indicator?: "line" | "dot" | "dashed";+ nameKey?: string;+ labelKey?: string;+ }) {+ const { config } = useChart();++ const tooltipLabel = React.useMemo(() => {+ if (hideLabel || !payload?.length) {+ return null;+ }++ const [item] = payload;+ const key = `${labelKey || item?.dataKey || item?.name || "value"}`;+ const itemConfig = getPayloadConfigFromPayload(config, item, key);+ const value =+ !labelKey && typeof label === "string"+ ? config[label as keyof typeof config]?.label || label+ : itemConfig?.label;++ if (labelFormatter) {+ return (+ <div className={cn("font-medium", labelClassName)}>+ {labelFormatter(value, payload)}+ </div>+ );+ }++ if (!value) {+ return null;+ }++ return <div className={cn("font-medium", labelClassName)}>{value}</div>;+ }, [+ label,+ labelFormatter,+ payload,+ hideLabel,+ labelClassName,+ config,+ labelKey,+ ]);++ if (!active || !payload?.length) {+ return null;+ }++ const nestLabel = payload.length === 1 && indicator !== "dot";++ return (+ <div+ className={cn(+ "grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",+ className,+ )}+ >+ {!nestLabel ? tooltipLabel : null}+ <div className="grid gap-1.5">+ {payload.map((item, index) => {+ const key = `${nameKey || item.name || item.dataKey || "value"}`;+ const itemConfig = getPayloadConfigFromPayload(config, item, key);+ const indicatorColor = color || item.payload.fill || item.color;++ return (+ <div+ key={item.dataKey}+ className={cn(+ "flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",+ indicator === "dot" && "items-center",+ )}+ >+ {formatter && item?.value !== undefined && item.name ? (+ formatter(item.value, item.name, item, index, item.payload)+ ) : (+ <>+ {itemConfig?.icon ? (+ <itemConfig.icon />+ ) : (+ !hideIndicator && (+ <div+ className={cn(+ "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",+ {+ "h-2.5 w-2.5": indicator === "dot",+ "w-1": indicator === "line",+ "w-0 border-[1.5px] border-dashed bg-transparent":+ indicator === "dashed",+ "my-0.5": nestLabel && indicator === "dashed",+ },+ )}+ style={+ {+ "--color-bg": indicatorColor,+ "--color-border": indicatorColor,+ } as React.CSSProperties+ }+ />+ )+ )}+ <div+ className={cn(+ "flex flex-1 justify-between leading-none",+ nestLabel ? "items-end" : "items-center",+ )}+ >+ <div className="grid gap-1.5">+ {nestLabel ? tooltipLabel : null}+ <span className="text-muted-foreground">+ {itemConfig?.label || item.name}+ </span>+ </div>+ {item.value && (+ <span className="font-medium font-mono text-foreground tabular-nums">+ {item.value.toLocaleString()}+ </span>+ )}+ </div>+ </>+ )}+ </div>+ );+ })}+ </div>+ </div>+ );+}++const ChartLegend = RechartsPrimitive.Legend;++function ChartLegendContent({+ className,+ hideIcon = false,+ payload,+ verticalAlign = "bottom",+ nameKey,+}: React.ComponentProps<"div"> &+ Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {+ hideIcon?: boolean;+ nameKey?: string;+ }) {+ const { config } = useChart();++ if (!payload?.length) {+ return null;+ }++ return (+ <div+ className={cn(+ "flex items-center justify-center gap-4",+ verticalAlign === "top" ? "pb-3" : "pt-3",+ className,+ )}+ >+ {payload.map((item) => {+ const key = `${nameKey || item.dataKey || "value"}`;+ const itemConfig = getPayloadConfigFromPayload(config, item, key);++ return (+ <div+ key={item.value}+ className={cn(+ "flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground",+ )}+ >+ {itemConfig?.icon && !hideIcon ? (+ <itemConfig.icon />+ ) : (+ <div+ className="h-2 w-2 shrink-0 rounded-[2px]"+ style={{+ backgroundColor: item.color,+ }}+ />+ )}+ {itemConfig?.label}+ </div>+ );+ })}+ </div>+ );+}++// Helper to extract item config from a payload.+function getPayloadConfigFromPayload(+ config: ChartConfig,+ payload: unknown,+ key: string,+) {+ if (typeof payload !== "object" || payload === null) {+ return undefined;+ }++ const payloadPayload =+ "payload" in payload &&+ typeof payload.payload === "object" &&+ payload.payload !== null+ ? payload.payload+ : undefined;++ let configLabelKey: string = key;++ if (+ key in payload &&+ typeof payload[key as keyof typeof payload] === "string"+ ) {+ configLabelKey = payload[key as keyof typeof payload] as string;+ } else if (+ payloadPayload &&+ key in payloadPayload &&+ typeof payloadPayload[key as keyof typeof payloadPayload] === "string"+ ) {+ configLabelKey = payloadPayload[+ key as keyof typeof payloadPayload+ ] as string;+ }++ return configLabelKey in config+ ? config[configLabelKey]+ : config[key as keyof typeof config];+}++export {+ ChartContainer,+ ChartTooltip,+ ChartTooltipContent,+ ChartLegend,+ ChartLegendContent,+ ChartStyle,+};diff --git a/apps/dashboard/src/components/ui/checkbox.tsx b/apps/dashboard/src/components/ui/checkbox.tsxnew file mode 100644index 000000000..26fdc1db1--- /dev/null+++ b/apps/dashboard/src/components/ui/checkbox.tsx@@ -0,0 +1,32 @@+"use client";++import * as CheckboxPrimitive from "@radix-ui/react-checkbox";+import { CheckIcon } from "lucide-react";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Checkbox({+ className,+ ...props+}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {+ return (+ <CheckboxPrimitive.Root+ data-slot="checkbox"+ className={cn(+ "peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40",+ className,+ )}+ {...props}+ >+ <CheckboxPrimitive.Indicator+ data-slot="checkbox-indicator"+ className="flex items-center justify-center text-current transition-none"+ >+ <CheckIcon className="size-3.5" />+ </CheckboxPrimitive.Indicator>+ </CheckboxPrimitive.Root>+ );+}++export { Checkbox };diff --git a/apps/dashboard/src/components/ui/collapsible.tsx b/apps/dashboard/src/components/ui/collapsible.tsxnew file mode 100644index 000000000..90935c6b2--- /dev/null+++ b/apps/dashboard/src/components/ui/collapsible.tsx@@ -0,0 +1,33 @@+"use client";++import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";++function Collapsible({+ ...props+}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {+ return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />;+}++function CollapsibleTrigger({+ ...props+}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {+ return (+ <CollapsiblePrimitive.CollapsibleTrigger+ data-slot="collapsible-trigger"+ {...props}+ />+ );+}++function CollapsibleContent({+ ...props+}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {+ return (+ <CollapsiblePrimitive.CollapsibleContent+ data-slot="collapsible-content"+ {...props}+ />+ );+}++export { Collapsible, CollapsibleTrigger, CollapsibleContent };diff --git a/apps/dashboard/src/components/ui/command.tsx b/apps/dashboard/src/components/ui/command.tsxnew file mode 100644index 000000000..49a009fca--- /dev/null+++ b/apps/dashboard/src/components/ui/command.tsx@@ -0,0 +1,177 @@+"use client";++import { Command as CommandPrimitive } from "cmdk";+import { SearchIcon } from "lucide-react";+import type * as React from "react";++import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { cn } from "@/lib/utils";++function Command({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive>) {+ return (+ <CommandPrimitive+ data-slot="command"+ className={cn(+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",+ className,+ )}+ {...props}+ />+ );+}++function CommandDialog({+ title = "Command Palette",+ description = "Search for a command to run...",+ children,+ ...props+}: React.ComponentProps<typeof Dialog> & {+ title?: string;+ description?: string;+}) {+ return (+ <Dialog {...props}>+ <DialogHeader className="sr-only">+ <DialogTitle>{title}</DialogTitle>+ <DialogDescription>{description}</DialogDescription>+ </DialogHeader>+ <DialogContent className="overflow-hidden p-0">+ <Command className="**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">+ {children}+ </Command>+ </DialogContent>+ </Dialog>+ );+}++function CommandInput({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Input>) {+ return (+ <div+ data-slot="command-input-wrapper"+ className="flex h-9 items-center gap-2 border-b px-3"+ >+ <SearchIcon className="size-4 shrink-0 opacity-50" />+ <CommandPrimitive.Input+ data-slot="command-input"+ className={cn(+ "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",+ className,+ )}+ {...props}+ />+ </div>+ );+}++function CommandList({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.List>) {+ return (+ <CommandPrimitive.List+ data-slot="command-list"+ className={cn(+ "max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden",+ className,+ )}+ {...props}+ />+ );+}++function CommandEmpty({+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Empty>) {+ return (+ <CommandPrimitive.Empty+ data-slot="command-empty"+ className="py-6 text-center text-sm"+ {...props}+ />+ );+}++function CommandGroup({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Group>) {+ return (+ <CommandPrimitive.Group+ data-slot="command-group"+ className={cn(+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",+ className,+ )}+ {...props}+ />+ );+}++function CommandSeparator({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Separator>) {+ return (+ <CommandPrimitive.Separator+ data-slot="command-separator"+ className={cn("-mx-1 h-px bg-border", className)}+ {...props}+ />+ );+}++function CommandItem({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Item>) {+ return (+ <CommandPrimitive.Item+ data-slot="command-item"+ className={cn(+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",+ className,+ )}+ {...props}+ />+ );+}++function CommandShortcut({+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="command-shortcut"+ className={cn(+ "ml-auto text-muted-foreground text-xs tracking-widest",+ className,+ )}+ {...props}+ />+ );+}++export {+ Command,+ CommandDialog,+ CommandInput,+ CommandList,+ CommandEmpty,+ CommandGroup,+ CommandItem,+ CommandShortcut,+ CommandSeparator,+};diff --git a/apps/dashboard/src/components/ui/data-table/data-table-action-bar.tsx b/apps/dashboard/src/components/ui/data-table/data-table-action-bar.tsxnew file mode 100644index 000000000..a4d7fe7a8--- /dev/null+++ b/apps/dashboard/src/components/ui/data-table/data-table-action-bar.tsx@@ -0,0 +1,173 @@+"use client";++import { Button } from "@/components/ui/button";+import { Separator } from "@/components/ui/separator";+import {+ Tooltip,+ TooltipContent,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { cn } from "@/lib/utils";+import type { Table } from "@tanstack/react-table";+import { Loader, X } from "lucide-react";+import * as React from "react";+import * as ReactDOM from "react-dom";++export interface DataTableActionBarProps<TData>+ extends React.ComponentProps<"div"> {+ table: Table<TData>;+ visible?: boolean;+ container?: Element | DocumentFragment | null;+}++function DataTableActionBar<TData>({+ table,+ visible: visibleProp,+ container: containerProp,+ children,+ className,+ ...props+}: DataTableActionBarProps<TData>) {+ const [mounted, setMounted] = React.useState(false);++ React.useLayoutEffect(() => {+ setMounted(true);+ }, []);++ React.useEffect(() => {+ function onKeyDown(event: KeyboardEvent) {+ if (event.key === "Escape") {+ table.toggleAllRowsSelected(false);+ }+ }++ window.addEventListener("keydown", onKeyDown);+ return () => window.removeEventListener("keydown", onKeyDown);+ }, [table]);++ const container =+ containerProp ?? (mounted ? globalThis.document?.body : null);++ if (!container) return null;++ const visible =+ visibleProp ?? table.getFilteredSelectedRowModel().rows.length > 0;++ return ReactDOM.createPortal(+ <div>+ {visible && (+ <div+ role="toolbar"+ aria-orientation="horizontal"+ className={cn(+ "fixed inset-x-0 bottom-6 z-50 mx-auto flex w-fit flex-wrap items-center justify-center gap-2 rounded-md border bg-background p-2 text-foreground shadow-sm",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ )}+ </div>,+ container,+ );+}++interface DataTableActionBarActionProps+ extends React.ComponentProps<typeof Button> {+ tooltip?: string;+ isPending?: boolean;+}++function DataTableActionBarAction({+ size = "sm",+ tooltip,+ isPending,+ disabled,+ className,+ children,+ ...props+}: DataTableActionBarActionProps) {+ const trigger = (+ <Button+ variant="secondary"+ size={size}+ className={cn(+ "gap-1.5 border border-secondary bg-secondary/50 hover:bg-secondary/70 [&>svg]:size-3.5",+ size === "icon" ? "size-7" : "h-7",+ className,+ )}+ disabled={disabled || isPending}+ {...props}+ >+ {isPending ? <Loader className="animate-spin" /> : children}+ </Button>+ );++ if (!tooltip) return trigger;++ return (+ <Tooltip>+ <TooltipTrigger asChild>{trigger}</TooltipTrigger>+ <TooltipContent+ sideOffset={6}+ className="border bg-accent font-semibold text-foreground dark:bg-zinc-900 [&>span]:hidden"+ >+ <p>{tooltip}</p>+ </TooltipContent>+ </Tooltip>+ );+}++interface DataTableActionBarSelectionProps<TData> {+ table: Table<TData>;+}++function DataTableActionBarSelection<TData>({+ table,+}: DataTableActionBarSelectionProps<TData>) {+ const onClearSelection = React.useCallback(() => {+ table.toggleAllRowsSelected(false);+ }, [table]);++ return (+ <div className="flex h-7 items-center rounded-md border pr-1 pl-2.5">+ <span className="whitespace-nowrap text-xs">+ {table.getFilteredSelectedRowModel().rows.length} selected+ </span>+ <Separator+ orientation="vertical"+ className="mr-1 ml-2 data-[orientation=vertical]:h-4"+ />+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="ghost"+ size="icon"+ className="size-5"+ onClick={onClearSelection}+ >+ <X className="size-3.5" />+ </Button>+ </TooltipTrigger>+ <TooltipContent+ sideOffset={10}+ className="flex items-center gap-2 border bg-accent px-2 py-1 font-semibold text-foreground dark:bg-zinc-900 [&>span]:hidden"+ >+ <p>Clear selection</p>+ <kbd className="select-none rounded border bg-background px-1.5 py-px font-mono font-normal text-[0.7rem] text-foreground shadow-xs">+ <abbr title="Escape" className="no-underline">+ Esc+ </abbr>+ </kbd>+ </TooltipContent>+ </Tooltip>+ </div>+ );+}++export {+ DataTableActionBar,+ DataTableActionBarAction,+ DataTableActionBarSelection,+};diff --git a/apps/dashboard/src/components/ui/data-table/data-table-column-header.tsx b/apps/dashboard/src/components/ui/data-table/data-table-column-header.tsxnew file mode 100644index 000000000..77df200be--- /dev/null+++ b/apps/dashboard/src/components/ui/data-table/data-table-column-header.tsx@@ -0,0 +1,58 @@+import type { Column } from "@tanstack/react-table";+import { ChevronDown, ChevronUp } from "lucide-react";++import { Button } from "@/components/ui/button";++import { cn } from "@/lib/utils";++interface DataTableColumnHeaderProps<TData, TValue>+ extends React.ComponentProps<"button"> {+ column: Column<TData, TValue>;+ title: string;+}++export function DataTableColumnHeader<TData, TValue>({+ column,+ title,+ className,+ ...props+}: DataTableColumnHeaderProps<TData, TValue>) {+ if (!column.getCanSort()) {+ return <div className={cn(className)}>{title}</div>;+ }++ return (+ <Button+ variant="ghost"+ size="sm"+ onClick={() => {+ column.toggleSorting(undefined);+ }}+ className={cn(+ "flex h-7 w-full items-center justify-between gap-2 px-0 py-0 hover:bg-transparent dark:hover:bg-transparent",+ className,+ )}+ {...props}+ >+ <span>{title}</span>+ <span className="flex flex-col">+ <ChevronUp+ className={cn(+ "-mb-0.5 size-3",+ column.getIsSorted() === "asc"+ ? "text-accent-foreground"+ : "text-muted-foreground",+ )}+ />+ <ChevronDown+ className={cn(+ "-mt-0.5 size-3",+ column.getIsSorted() === "desc"+ ? "text-accent-foreground"+ : "text-muted-foreground",+ )}+ />+ </span>+ </Button>+ );+}diff --git a/apps/dashboard/src/components/ui/data-table/data-table-faceted-filter.tsx b/apps/dashboard/src/components/ui/data-table/data-table-faceted-filter.tsxnew file mode 100644index 000000000..f71981e6b--- /dev/null+++ b/apps/dashboard/src/components/ui/data-table/data-table-faceted-filter.tsx@@ -0,0 +1,149 @@+import type { Column } from "@tanstack/react-table";+import { Check, PlusCircle } from "lucide-react";+import type * as React from "react";++import { Badge } from "@/components/ui/badge";+import { Button } from "@/components/ui/button";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+ CommandSeparator,+} from "@/components/ui/command";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import { Separator } from "@/components/ui/separator";+import { cn } from "@/lib/utils";++interface DataTableFacetedFilterProps<TData, TValue> {+ column?: Column<TData, TValue>;+ title?: string;+ options: {+ label: string;+ value: string | number;+ icon?: React.ComponentType<{ className?: string }>;+ }[];+}++export function DataTableFacetedFilter<TData, TValue>({+ column,+ title,+ options,+}: DataTableFacetedFilterProps<TData, TValue>) {+ const facets = column?.getFacetedUniqueValues();+ const selectedValues = new Set(+ column?.getFilterValue() as (string | number)[],+ );++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button variant="outline" size="sm" className="h-8 border-dashed">+ <PlusCircle />+ {title}+ {selectedValues?.size > 0 && (+ <>+ <Separator orientation="vertical" className="mx-2 h-4" />+ <Badge+ variant="secondary"+ className="rounded-sm px-1 font-normal lg:hidden"+ >+ {selectedValues.size}+ </Badge>+ <div className="hidden space-x-1 lg:flex">+ {selectedValues.size > 2 ? (+ <Badge+ variant="secondary"+ className="rounded-sm px-1 font-normal"+ >+ {selectedValues.size} selected+ </Badge>+ ) : (+ options+ .filter((option) => selectedValues.has(option.value))+ .map((option) => (+ <Badge+ variant="secondary"+ key={option.value}+ className="rounded-sm px-1 font-normal"+ >+ {option.label}+ </Badge>+ ))+ )}+ </div>+ </>+ )}+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-[200px] p-0" align="start">+ <Command>+ <CommandInput placeholder={title} />+ <CommandList>+ <CommandEmpty>No results found.</CommandEmpty>+ <CommandGroup>+ {options.map((option) => {+ const isSelected = selectedValues.has(option.value);+ return (+ <CommandItem+ key={option.value}+ onSelect={() => {+ if (isSelected) {+ selectedValues.delete(option.value);+ } else {+ selectedValues.add(option.value);+ }+ const filterValues = Array.from(selectedValues);+ column?.setFilterValue(+ filterValues.length ? filterValues : undefined,+ );+ }}+ >+ <div+ className={cn(+ "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",+ isSelected+ ? "bg-primary text-primary-foreground"+ : "opacity-50 [&_svg]:invisible",+ )}+ >+ <Check />+ </div>+ {option.icon && (+ <option.icon className="mr-2 h-4 w-4 text-muted-foreground" />+ )}+ <span>{option.label}</span>+ {facets?.get(option.value) && (+ <span className="ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs">+ {facets.get(option.value)}+ </span>+ )}+ </CommandItem>+ );+ })}+ </CommandGroup>+ {selectedValues.size > 0 && (+ <>+ <CommandSeparator />+ <CommandGroup>+ <CommandItem+ onSelect={() => column?.setFilterValue(undefined)}+ className="justify-center text-center"+ >+ Clear filters+ </CommandItem>+ </CommandGroup>+ </>+ )}+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ );+}diff --git a/apps/dashboard/src/components/ui/data-table/data-table-pagination.tsx b/apps/dashboard/src/components/ui/data-table/data-table-pagination.tsxnew file mode 100644index 000000000..6ab31c182--- /dev/null+++ b/apps/dashboard/src/components/ui/data-table/data-table-pagination.tsx@@ -0,0 +1,148 @@+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";++export interface DataTablePaginationProps<TData> {+ table: Table<TData>;+}++export function DataTablePagination<TData>({+ table,+}: DataTablePaginationProps<TData>) {+ return (+ <div className="flex flex-wrap items-center justify-between gap-2">+ <div className="flex-1 text-muted-foreground text-sm">+ {table.getFilteredSelectedRowModel().rows.length} of{" "}+ {table.getFilteredRowModel().rows.length} row(s) selected.+ </div>+ <div className="flex items-center space-x-6 lg:space-x-8">+ <div className="flex items-center space-x-2">+ <p className="font-medium text-sm">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 items-center justify-center font-medium text-sm">+ 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 />+ </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 />+ </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 />+ </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 />+ </Button>+ </div>+ </div>+ </div>+ );+}++export function DataTablePaginationSimple<TData>({+ table,+}: DataTablePaginationProps<TData>) {+ return (+ <div className="flex items-center justify-between">+ <div className="flex-1 text-muted-foreground text-sm">+ {table.getFilteredRowModel().rows.length} of{" "}+ {table.getPreFilteredRowModel().rows.length} row(s) filtered.+ </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 />+ </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 />+ </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 />+ </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 />+ </Button>+ </div>+ </div>+ );+}diff --git a/apps/dashboard/src/components/ui/data-table/data-table-skeleton.tsx b/apps/dashboard/src/components/ui/data-table/data-table-skeleton.tsxnew file mode 100644index 000000000..992265288--- /dev/null+++ b/apps/dashboard/src/components/ui/data-table/data-table-skeleton.tsx@@ -0,0 +1,64 @@+import { Skeleton } from "@/components/ui/skeleton";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";++interface DataTableSkeletonProps {+ /**+ * Number of rows to render+ * @default 10+ */+ rows?: number;+}++// TODO: add checkbox skeleton (for MonitorTable e.g.)++export function DataTableSkeleton({ rows = 3 }: DataTableSkeletonProps) {+ return (+ <Table>+ <TableHeader className="bg-muted/50">+ <TableRow className="hover:bg-transparent">+ <TableHead>+ <Skeleton className="my-1.5 h-4 w-24" />+ </TableHead>+ <TableHead className="hidden sm:table-cell">+ <Skeleton className="my-1.5 h-4 w-32" />+ </TableHead>+ <TableHead className="hidden md:table-cell">+ <Skeleton className="my-1.5 h-4 w-16" />+ </TableHead>+ <TableHead>+ <Skeleton className="my-1.5 h-4 w-20" />+ </TableHead>+ <TableHead className="flex items-center justify-end" />+ </TableRow>+ </TableHeader>+ <TableBody>+ {new Array(rows).fill(0).map((_, i) => (+ <TableRow key={i} className="hover:bg-transparent">+ <TableCell>+ <Skeleton className="my-1.5 h-4 w-full max-w-40" />+ </TableCell>+ <TableCell className="hidden sm:table-cell">+ <Skeleton className="my-1.5 h-4 w-full max-w-52" />+ </TableCell>+ <TableCell className="hidden md:table-cell">+ <Skeleton className="my-1.5 h-4 w-24" />+ </TableCell>+ <TableCell>+ <Skeleton className="my-1.5 h-4 w-full max-w-40" />+ </TableCell>+ <TableCell className="flex justify-end">+ <Skeleton className="my-1.5 h-5 w-5" />+ </TableCell>+ </TableRow>+ ))}+ </TableBody>+ </Table>+ );+}diff --git a/apps/dashboard/src/components/ui/data-table/data-table-toobar.tsx b/apps/dashboard/src/components/ui/data-table/data-table-toobar.tsxnew file mode 100644index 000000000..3655f37aa--- /dev/null+++ b/apps/dashboard/src/components/ui/data-table/data-table-toobar.tsx@@ -0,0 +1,60 @@+"use client";++import type { Table } from "@tanstack/react-table";+import { X } from "lucide-react";++import { Button } from "@/components/ui/button";+import { DataTableViewOptions } from "@/components/ui/data-table/data-table-view-options";+import { Input } from "@/components/ui/input";++import { DataTableFacetedFilter } from "@/components/ui/data-table/data-table-faceted-filter";++export interface DataTableToolbarProps<TData> {+ table: Table<TData>;+}++export function DataTableToolbar<TData>({+ table,+}: DataTableToolbarProps<TData>) {+ const isFiltered = table.getState().columnFilters.length > 0;++ return (+ <div className="flex items-center justify-between">+ <div className="flex flex-1 items-center space-x-2">+ <Input+ placeholder="Filter entries..."+ value={(table.getColumn("title")?.getFilterValue() as string) ?? ""}+ onChange={(event) =>+ table.getColumn("title")?.setFilterValue(event.target.value)+ }+ className="h-8 w-[150px] lg:w-[250px]"+ />+ {table.getColumn("status") && (+ <DataTableFacetedFilter+ column={table.getColumn("status")}+ title="Status"+ options={[]}+ />+ )}+ {table.getColumn("tags") && (+ <DataTableFacetedFilter+ column={table.getColumn("tags")}+ title="Tags"+ options={[]}+ />+ )}+ {isFiltered && (+ <Button+ variant="ghost"+ onClick={() => table.resetColumnFilters()}+ className="h-8 px-2 lg:px-3"+ >+ Reset+ <X />+ </Button>+ )}+ </div>+ <DataTableViewOptions table={table} />+ </div>+ );+}diff --git a/apps/dashboard/src/components/ui/data-table/data-table-view-options.tsx b/apps/dashboard/src/components/ui/data-table/data-table-view-options.tsxnew file mode 100644index 000000000..53faebc6d--- /dev/null+++ b/apps/dashboard/src/components/ui/data-table/data-table-view-options.tsx@@ -0,0 +1,59 @@+"use client";++import { DropdownMenuTrigger } from "@radix-ui/react-dropdown-menu";+import type { Table } from "@tanstack/react-table";+import { Settings2 } from "lucide-react";++import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuCheckboxItem,+ DropdownMenuContent,+ DropdownMenuLabel,+ DropdownMenuSeparator,+} from "@/components/ui/dropdown-menu";++interface DataTableViewOptionsProps<TData> {+ table: Table<TData>;+}++export function DataTableViewOptions<TData>({+ table,+}: DataTableViewOptionsProps<TData>) {+ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button+ variant="outline"+ size="sm"+ className="ml-auto hidden h-8 lg:flex"+ >+ <Settings2 />+ View+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="w-[150px]">+ <DropdownMenuLabel>Toggle columns</DropdownMenuLabel>+ <DropdownMenuSeparator />+ {table+ .getAllColumns()+ .filter(+ (column) =>+ typeof column.accessorFn !== "undefined" && column.getCanHide(),+ )+ .map((column) => {+ return (+ <DropdownMenuCheckboxItem+ key={column.id}+ className="capitalize"+ checked={column.getIsVisible()}+ onCheckedChange={(value) => column.toggleVisibility(!!value)}+ >+ {column.id}+ </DropdownMenuCheckboxItem>+ );+ })}+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/apps/dashboard/src/components/ui/data-table/data-table.tsx b/apps/dashboard/src/components/ui/data-table/data-table.tsxnew file mode 100644index 000000000..b91d8b0d4--- /dev/null+++ b/apps/dashboard/src/components/ui/data-table/data-table.tsx@@ -0,0 +1,208 @@+"use client";++import {+ type ColumnDef,+ type ColumnFiltersState,+ type PaginationState,+ type Row,+ type SortingState,+ type VisibilityState,+ flexRender,+ getCoreRowModel,+ getExpandedRowModel,+ getFacetedRowModel,+ getFacetedUniqueValues,+ getFilteredRowModel,+ getPaginationRowModel,+ getSortedRowModel,+ useReactTable,+} from "@tanstack/react-table";+import * as React from "react";++import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";+import { Fragment } from "react";+import type { DataTableActionBarProps } from "./data-table-action-bar";+import type { DataTablePaginationProps } from "./data-table-pagination";+import type { DataTableToolbarProps } from "./data-table-toobar";++export interface DataTableProps<TData, TValue> {+ columns: ColumnDef<TData, TValue>[];+ data: TData[];+ rowComponent?: React.ComponentType<{ row: Row<TData> }>;+ toolbarComponent?: React.ComponentType<DataTableToolbarProps<TData>>;+ actionBar?: React.ComponentType<DataTableActionBarProps<TData>>;+ paginationComponent?: React.ComponentType<DataTablePaginationProps<TData>>;+ onRowClick?: (row: Row<TData>) => void;+ defaultSorting?: SortingState;+ defaultColumnVisibility?: VisibilityState;+ defaultColumnFilters?: ColumnFiltersState;+ defaultPagination?: PaginationState;+ autoResetPageIndex?: boolean;++ /** access the state from the parent component */+ columnFilters?: ColumnFiltersState;+ setColumnFilters?: React.Dispatch<React.SetStateAction<ColumnFiltersState>>;+ sorting?: SortingState;+ setSorting?: React.Dispatch<React.SetStateAction<SortingState>>;+ pagination?: PaginationState;+ setPagination?: React.Dispatch<React.SetStateAction<PaginationState>>;+}++export function DataTable<TData, TValue>({+ columns,+ data,+ rowComponent,+ toolbarComponent,+ actionBar,+ paginationComponent,+ onRowClick,+ defaultSorting = [],+ defaultColumnVisibility = {},+ defaultColumnFilters = [],+ defaultPagination = { pageIndex: 0, pageSize: 20 },+ autoResetPageIndex = true,+ columnFilters,+ setColumnFilters,+ sorting,+ setSorting,+ pagination,+ setPagination,+}: DataTableProps<TData, TValue>) {+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>+ const [globalFilter, setGlobalFilter] = React.useState<any>();+ const [rowSelection, setRowSelection] = React.useState({});+ const [columnVisibility, setColumnVisibility] =+ React.useState<VisibilityState>(defaultColumnVisibility);+ const [internalPagination, setInternalPagination] =+ React.useState<PaginationState>(defaultPagination);+ const [internalColumnFilters, setInternalColumnFilters] =+ React.useState<ColumnFiltersState>(defaultColumnFilters);+ const [internalSorting, setInternalSorting] =+ React.useState<SortingState>(defaultSorting);++ // Use controlled or uncontrolled column filters+ const columnFiltersState = columnFilters ?? internalColumnFilters;+ const setColumnFiltersState = setColumnFilters ?? setInternalColumnFilters;+ const sortingState = sorting ?? internalSorting;+ const setSortingState = setSorting ?? setInternalSorting;+ const paginationState = pagination ?? internalPagination;+ const setPaginationState = setPagination ?? setInternalPagination;++ const table = useReactTable({+ data,+ columns,+ state: {+ sorting: sortingState,+ columnVisibility,+ rowSelection,+ pagination: paginationState,+ columnFilters: columnFiltersState,+ globalFilter,+ },+ enableRowSelection: true,+ onRowSelectionChange: setRowSelection,+ onSortingChange: setSortingState,+ onColumnFiltersChange: setColumnFiltersState,+ onColumnVisibilityChange: setColumnVisibility,+ onPaginationChange: setPaginationState,+ onGlobalFilterChange: setGlobalFilter,+ getCoreRowModel: getCoreRowModel(),+ getFilteredRowModel: getFilteredRowModel(),+ getPaginationRowModel: getPaginationRowModel(),+ getSortedRowModel: getSortedRowModel(),+ getFacetedRowModel: getFacetedRowModel(),+ getFacetedUniqueValues: getFacetedUniqueValues(),+ getExpandedRowModel: getExpandedRowModel(),+ autoResetPageIndex,+ // @ts-expect-error as we have an id in the data+ getRowCanExpand: (row) => Boolean(row.original.id),+ });++ return (+ <div className="grid gap-2">+ {toolbarComponent+ ? React.createElement(toolbarComponent, { table })+ : null}+ <Table>+ <TableHeader>+ {table.getHeaderGroups().map((headerGroup) => (+ <TableRow key={headerGroup.id}>+ {headerGroup.headers.map((header) => {+ return (+ <TableHead+ key={header.id}+ colSpan={header.colSpan}+ className={header.column.columnDef.meta?.headerClassName}+ >+ {header.isPlaceholder+ ? null+ : flexRender(+ header.column.columnDef.header,+ header.getContext(),+ )}+ </TableHead>+ );+ })}+ </TableRow>+ ))}+ </TableHeader>+ <TableBody>+ {table.getRowModel().rows?.length ? (+ table.getRowModel().rows.map((row) => (+ <Fragment key={row.id}>+ <TableRow+ data-state={+ (row.getIsSelected() || row.getIsExpanded()) && "selected"+ }+ onClick={() => onRowClick?.(row)}+ className="data-[state=selected]:bg-muted/50"+ >+ {row.getVisibleCells().map((cell) => (+ <TableCell+ key={cell.id}+ className={cell.column.columnDef.meta?.cellClassName}+ >+ {flexRender(+ cell.column.columnDef.cell,+ cell.getContext(),+ )}+ </TableCell>+ ))}+ </TableRow>+ {row.getIsExpanded() && (+ <TableRow className="hover:bg-background">+ <TableCell+ className="p-0"+ colSpan={row.getVisibleCells().length}+ >+ {rowComponent+ ? React.createElement(rowComponent, { row })+ : null}+ </TableCell>+ </TableRow>+ )}+ </Fragment>+ ))+ ) : (+ <TableRow>+ <TableCell colSpan={columns.length} className="h-24 text-center">+ No results.+ </TableCell>+ </TableRow>+ )}+ </TableBody>+ {actionBar ? React.createElement(actionBar, { table }) : null}+ </Table>+ {paginationComponent+ ? React.createElement(paginationComponent, { table })+ : null}+ </div>+ );+}diff --git a/apps/dashboard/src/components/ui/dialog.tsx b/apps/dashboard/src/components/ui/dialog.tsxnew file mode 100644index 000000000..3f639a55a--- /dev/null+++ b/apps/dashboard/src/components/ui/dialog.tsx@@ -0,0 +1,135 @@+"use client";++import * as DialogPrimitive from "@radix-ui/react-dialog";+import { XIcon } from "lucide-react";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Dialog({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return <DialogPrimitive.Root data-slot="dialog" {...props} />;+}++function DialogTrigger({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />;+}++function DialogPortal({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />;+}++function DialogClose({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />;+}++function DialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {+ return (+ <DialogPrimitive.Overlay+ data-slot="dialog-overlay"+ className={cn(+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",+ className,+ )}+ {...props}+ />+ );+}++function DialogContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Content>) {+ return (+ <DialogPortal data-slot="dialog-portal">+ <DialogOverlay />+ <DialogPrimitive.Content+ data-slot="dialog-content"+ className={cn(+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",+ className,+ )}+ {...props}+ >+ {children}+ <DialogPrimitive.Close className="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0">+ <XIcon />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ </DialogPrimitive.Content>+ </DialogPortal>+ );+}++function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-header"+ className={cn("flex flex-col gap-2 text-center sm:text-left", className)}+ {...props}+ />+ );+}++function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-footer"+ className={cn(+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",+ className,+ )}+ {...props}+ />+ );+}++function DialogTitle({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Title>) {+ return (+ <DialogPrimitive.Title+ data-slot="dialog-title"+ className={cn("font-semibold text-lg leading-none", className)}+ {...props}+ />+ );+}++function DialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Description>) {+ return (+ <DialogPrimitive.Description+ data-slot="dialog-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ );+}++export {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+};diff --git a/apps/dashboard/src/components/ui/dropdown-menu.tsx b/apps/dashboard/src/components/ui/dropdown-menu.tsxnew file mode 100644index 000000000..5b73af0b5--- /dev/null+++ b/apps/dashboard/src/components/ui/dropdown-menu.tsx@@ -0,0 +1,257 @@+"use client";++import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";+import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";+import type * as React from "react";++import { cn } from "@/lib/utils";++function DropdownMenu({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {+ return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />;+}++function DropdownMenuPortal({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {+ return (+ <DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />+ );+}++function DropdownMenuTrigger({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {+ return (+ <DropdownMenuPrimitive.Trigger+ data-slot="dropdown-menu-trigger"+ {...props}+ />+ );+}++function DropdownMenuContent({+ className,+ sideOffset = 4,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {+ return (+ <DropdownMenuPrimitive.Portal>+ <DropdownMenuPrimitive.Content+ data-slot="dropdown-menu-content"+ sideOffset={sideOffset}+ className={cn(+ "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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",+ className,+ )}+ {...props}+ />+ </DropdownMenuPrimitive.Portal>+ );+}++function DropdownMenuGroup({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {+ return (+ <DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />+ );+}++function DropdownMenuItem({+ className,+ inset,+ variant = "default",+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {+ inset?: boolean;+ variant?: "default" | "destructive";+}) {+ return (+ <DropdownMenuPrimitive.Item+ data-slot="dropdown-menu-item"+ data-inset={inset}+ data-variant={variant}+ className={cn(+ "data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",+ className,+ )}+ {...props}+ />+ );+}++function DropdownMenuCheckboxItem({+ className,+ children,+ checked,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {+ return (+ <DropdownMenuPrimitive.CheckboxItem+ data-slot="dropdown-menu-checkbox-item"+ className={cn(+ "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",+ className,+ )}+ checked={checked}+ {...props}+ >+ <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.CheckboxItem>+ );+}++function DropdownMenuRadioGroup({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {+ return (+ <DropdownMenuPrimitive.RadioGroup+ data-slot="dropdown-menu-radio-group"+ {...props}+ />+ );+}++function DropdownMenuRadioItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {+ return (+ <DropdownMenuPrimitive.RadioItem+ data-slot="dropdown-menu-radio-item"+ className={cn(+ "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",+ className,+ )}+ {...props}+ >+ <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <CircleIcon className="size-2 fill-current" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.RadioItem>+ );+}++function DropdownMenuLabel({+ className,+ inset,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {+ inset?: boolean;+}) {+ return (+ <DropdownMenuPrimitive.Label+ data-slot="dropdown-menu-label"+ data-inset={inset}+ className={cn(+ "px-2 py-1.5 font-medium text-sm data-[inset]:pl-8",+ className,+ )}+ {...props}+ />+ );+}++function DropdownMenuSeparator({+ className,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {+ return (+ <DropdownMenuPrimitive.Separator+ data-slot="dropdown-menu-separator"+ className={cn("-mx-1 my-1 h-px bg-border", className)}+ {...props}+ />+ );+}++function DropdownMenuShortcut({+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="dropdown-menu-shortcut"+ className={cn(+ "ml-auto text-muted-foreground text-xs tracking-widest",+ className,+ )}+ {...props}+ />+ );+}++function DropdownMenuSub({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {+ return <DropdownMenuPrimitive.Sub data-slot="dropdown-menu-sub" {...props} />;+}++function DropdownMenuSubTrigger({+ className,+ inset,+ children,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {+ inset?: boolean;+}) {+ return (+ <DropdownMenuPrimitive.SubTrigger+ data-slot="dropdown-menu-sub-trigger"+ data-inset={inset}+ className={cn(+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[inset]:pl-8 data-[state=open]:text-accent-foreground",+ className,+ )}+ {...props}+ >+ {children}+ <ChevronRightIcon className="ml-auto size-4" />+ </DropdownMenuPrimitive.SubTrigger>+ );+}++function DropdownMenuSubContent({+ className,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {+ return (+ <DropdownMenuPrimitive.SubContent+ data-slot="dropdown-menu-sub-content"+ className={cn(+ "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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",+ className,+ )}+ {...props}+ />+ );+}++export {+ DropdownMenu,+ DropdownMenuPortal,+ DropdownMenuTrigger,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuLabel,+ DropdownMenuItem,+ DropdownMenuCheckboxItem,+ DropdownMenuRadioGroup,+ DropdownMenuRadioItem,+ DropdownMenuSeparator,+ DropdownMenuShortcut,+ DropdownMenuSub,+ DropdownMenuSubTrigger,+ DropdownMenuSubContent,+};diff --git a/apps/dashboard/src/components/ui/form.tsx b/apps/dashboard/src/components/ui/form.tsxnew file mode 100644index 000000000..105428b1a--- /dev/null+++ b/apps/dashboard/src/components/ui/form.tsx@@ -0,0 +1,168 @@+"use client";++import type * as LabelPrimitive from "@radix-ui/react-label";+import { Slot } from "@radix-ui/react-slot";+import * as React from "react";+import {+ Controller,+ type ControllerProps,+ type FieldPath,+ type FieldValues,+ FormProvider,+ useFormContext,+ useFormState,+} from "react-hook-form";++import { Label } from "@/components/ui/label";+import { cn } from "@/lib/utils";++const Form = FormProvider;++type FormFieldContextValue<+ TFieldValues extends FieldValues = FieldValues,+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,+> = {+ name: TName;+};++const FormFieldContext = React.createContext<FormFieldContextValue>(+ {} as FormFieldContextValue,+);++const FormField = <+ TFieldValues extends FieldValues = FieldValues,+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,+>({+ ...props+}: ControllerProps<TFieldValues, TName>) => {+ return (+ <FormFieldContext.Provider value={{ name: props.name }}>+ <Controller {...props} />+ </FormFieldContext.Provider>+ );+};++const useFormField = () => {+ const fieldContext = React.useContext(FormFieldContext);+ const itemContext = React.useContext(FormItemContext);+ const { getFieldState } = useFormContext();+ const formState = useFormState({ name: fieldContext.name });+ const fieldState = getFieldState(fieldContext.name, formState);++ if (!fieldContext) {+ throw new Error("useFormField should be used within <FormField>");+ }++ const { id } = itemContext;++ return {+ id,+ name: fieldContext.name,+ formItemId: `${id}-form-item`,+ formDescriptionId: `${id}-form-item-description`,+ formMessageId: `${id}-form-item-message`,+ ...fieldState,+ };+};++type FormItemContextValue = {+ id: string;+};++const FormItemContext = React.createContext<FormItemContextValue>(+ {} as FormItemContextValue,+);++function FormItem({ className, ...props }: React.ComponentProps<"div">) {+ const id = React.useId();++ return (+ <FormItemContext.Provider value={{ id }}>+ <div+ data-slot="form-item"+ className={cn("grid gap-2", className)}+ {...props}+ />+ </FormItemContext.Provider>+ );+}++function FormLabel({+ className,+ ...props+}: React.ComponentProps<typeof LabelPrimitive.Root>) {+ const { error, formItemId } = useFormField();++ return (+ <Label+ data-slot="form-label"+ data-error={!!error}+ className={cn("data-[error=true]:text-destructive", className)}+ htmlFor={formItemId}+ {...props}+ />+ );+}++function FormControl({ ...props }: React.ComponentProps<typeof Slot>) {+ const { error, formItemId, formDescriptionId, formMessageId } =+ useFormField();++ return (+ <Slot+ data-slot="form-control"+ id={formItemId}+ aria-describedby={+ !error+ ? `${formDescriptionId}`+ : `${formDescriptionId} ${formMessageId}`+ }+ aria-invalid={!!error}+ {...props}+ />+ );+}++function FormDescription({ className, ...props }: React.ComponentProps<"p">) {+ const { formDescriptionId } = useFormField();++ return (+ <p+ data-slot="form-description"+ id={formDescriptionId}+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ );+}++function FormMessage({ className, ...props }: React.ComponentProps<"p">) {+ const { error, formMessageId } = useFormField();+ const body = error ? String(error?.message ?? "") : props.children;++ if (!body) {+ return null;+ }++ return (+ <p+ data-slot="form-message"+ id={formMessageId}+ className={cn("text-destructive text-sm", className)}+ {...props}+ >+ {body}+ </p>+ );+}++export {+ useFormField,+ Form,+ FormItem,+ FormLabel,+ FormControl,+ FormDescription,+ FormMessage,+ FormField,+};diff --git a/apps/dashboard/src/components/ui/hover-card.tsx b/apps/dashboard/src/components/ui/hover-card.tsxnew file mode 100644index 000000000..815a2f199--- /dev/null+++ b/apps/dashboard/src/components/ui/hover-card.tsx@@ -0,0 +1,44 @@+"use client";++import * as HoverCardPrimitive from "@radix-ui/react-hover-card";+import type * as React from "react";++import { cn } from "@/lib/utils";++function HoverCard({+ ...props+}: React.ComponentProps<typeof HoverCardPrimitive.Root>) {+ return <HoverCardPrimitive.Root data-slot="hover-card" {...props} />;+}++function HoverCardTrigger({+ ...props+}: React.ComponentProps<typeof HoverCardPrimitive.Trigger>) {+ return (+ <HoverCardPrimitive.Trigger data-slot="hover-card-trigger" {...props} />+ );+}++function HoverCardContent({+ className,+ align = "center",+ sideOffset = 4,+ ...props+}: React.ComponentProps<typeof HoverCardPrimitive.Content>) {+ return (+ <HoverCardPrimitive.Portal data-slot="hover-card-portal">+ <HoverCardPrimitive.Content+ data-slot="hover-card-content"+ align={align}+ sideOffset={sideOffset}+ className={cn(+ "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 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in",+ className,+ )}+ {...props}+ />+ </HoverCardPrimitive.Portal>+ );+}++export { HoverCard, HoverCardTrigger, HoverCardContent };diff --git a/apps/dashboard/src/components/ui/input.tsx b/apps/dashboard/src/components/ui/input.tsxnew file mode 100644index 000000000..a60356ddd--- /dev/null+++ b/apps/dashboard/src/components/ui/input.tsx@@ -0,0 +1,21 @@+import type * as React from "react";++import { cn } from "@/lib/utils";++function Input({ className, type, ...props }: React.ComponentProps<"input">) {+ return (+ <input+ type={type}+ data-slot="input"+ className={cn(+ "flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30",+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",+ "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",+ className,+ )}+ {...props}+ />+ );+}++export { Input };diff --git a/apps/dashboard/src/components/ui/label.tsx b/apps/dashboard/src/components/ui/label.tsxnew file mode 100644index 000000000..67f975b6f--- /dev/null+++ b/apps/dashboard/src/components/ui/label.tsx@@ -0,0 +1,24 @@+"use client";++import * as LabelPrimitive from "@radix-ui/react-label";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Label({+ className,+ ...props+}: React.ComponentProps<typeof LabelPrimitive.Root>) {+ return (+ <LabelPrimitive.Root+ data-slot="label"+ className={cn(+ "flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",+ className,+ )}+ {...props}+ />+ );+}++export { Label };diff --git a/apps/dashboard/src/components/ui/popover.tsx b/apps/dashboard/src/components/ui/popover.tsxnew file mode 100644index 000000000..5c5f19968--- /dev/null+++ b/apps/dashboard/src/components/ui/popover.tsx@@ -0,0 +1,48 @@+"use client";++import * as PopoverPrimitive from "@radix-ui/react-popover";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Popover({+ ...props+}: React.ComponentProps<typeof PopoverPrimitive.Root>) {+ return <PopoverPrimitive.Root data-slot="popover" {...props} />;+}++function PopoverTrigger({+ ...props+}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {+ return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;+}++function PopoverContent({+ className,+ align = "center",+ sideOffset = 4,+ ...props+}: React.ComponentProps<typeof PopoverPrimitive.Content>) {+ return (+ <PopoverPrimitive.Portal>+ <PopoverPrimitive.Content+ data-slot="popover-content"+ align={align}+ sideOffset={sideOffset}+ className={cn(+ "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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in",+ className,+ )}+ {...props}+ />+ </PopoverPrimitive.Portal>+ );+}++function PopoverAnchor({+ ...props+}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {+ return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />;+}++export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };diff --git a/apps/dashboard/src/components/ui/progress.tsx b/apps/dashboard/src/components/ui/progress.tsxnew file mode 100644index 000000000..2ee61a1b0--- /dev/null+++ b/apps/dashboard/src/components/ui/progress.tsx@@ -0,0 +1,31 @@+"use client";++import * as ProgressPrimitive from "@radix-ui/react-progress";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Progress({+ className,+ value,+ ...props+}: React.ComponentProps<typeof ProgressPrimitive.Root>) {+ return (+ <ProgressPrimitive.Root+ data-slot="progress"+ className={cn(+ "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",+ className,+ )}+ {...props}+ >+ <ProgressPrimitive.Indicator+ data-slot="progress-indicator"+ className="h-full w-full flex-1 bg-primary transition-all"+ style={{ transform: `translateX(-${100 - (value || 0)}%)` }}+ />+ </ProgressPrimitive.Root>+ );+}++export { Progress };diff --git a/apps/dashboard/src/components/ui/radio-group.tsx b/apps/dashboard/src/components/ui/radio-group.tsxnew file mode 100644index 000000000..b1137030b--- /dev/null+++ b/apps/dashboard/src/components/ui/radio-group.tsx@@ -0,0 +1,45 @@+"use client";++import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";+import { CircleIcon } from "lucide-react";+import type * as React from "react";++import { cn } from "@/lib/utils";++function RadioGroup({+ className,+ ...props+}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {+ return (+ <RadioGroupPrimitive.Root+ data-slot="radio-group"+ className={cn("grid gap-3", className)}+ {...props}+ />+ );+}++function RadioGroupItem({+ className,+ ...props+}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {+ return (+ <RadioGroupPrimitive.Item+ data-slot="radio-group-item"+ className={cn(+ "aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",+ className,+ )}+ {...props}+ >+ <RadioGroupPrimitive.Indicator+ data-slot="radio-group-indicator"+ className="relative flex items-center justify-center"+ >+ <CircleIcon className="-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 size-2 fill-primary" />+ </RadioGroupPrimitive.Indicator>+ </RadioGroupPrimitive.Item>+ );+}++export { RadioGroup, RadioGroupItem };diff --git a/apps/dashboard/src/components/ui/select.tsx b/apps/dashboard/src/components/ui/select.tsxnew file mode 100644index 000000000..ee4e8514e--- /dev/null+++ b/apps/dashboard/src/components/ui/select.tsx@@ -0,0 +1,185 @@+"use client";++import * as SelectPrimitive from "@radix-ui/react-select";+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Select({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Root>) {+ return <SelectPrimitive.Root data-slot="select" {...props} />;+}++function SelectGroup({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Group>) {+ return <SelectPrimitive.Group data-slot="select-group" {...props} />;+}++function SelectValue({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Value>) {+ return <SelectPrimitive.Value data-slot="select-value" {...props} />;+}++function SelectTrigger({+ className,+ size = "default",+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {+ size?: "sm" | "default";+}) {+ return (+ <SelectPrimitive.Trigger+ data-slot="select-trigger"+ data-size={size}+ className={cn(+ "flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",+ className,+ )}+ {...props}+ >+ {children}+ <SelectPrimitive.Icon asChild>+ <ChevronDownIcon className="size-4 opacity-50" />+ </SelectPrimitive.Icon>+ </SelectPrimitive.Trigger>+ );+}++function SelectContent({+ className,+ children,+ position = "popper",+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Content>) {+ return (+ <SelectPrimitive.Portal>+ <SelectPrimitive.Content+ data-slot="select-content"+ className={cn(+ "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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",+ position === "popper" &&+ "data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",+ className,+ )}+ position={position}+ {...props}+ >+ <SelectScrollUpButton />+ <SelectPrimitive.Viewport+ className={cn(+ "p-1",+ position === "popper" &&+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1",+ )}+ >+ {children}+ </SelectPrimitive.Viewport>+ <SelectScrollDownButton />+ </SelectPrimitive.Content>+ </SelectPrimitive.Portal>+ );+}++function SelectLabel({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Label>) {+ return (+ <SelectPrimitive.Label+ data-slot="select-label"+ className={cn("px-2 py-1.5 text-muted-foreground text-xs", className)}+ {...props}+ />+ );+}++function SelectItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Item>) {+ return (+ <SelectPrimitive.Item+ data-slot="select-item"+ className={cn(+ "relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",+ className,+ )}+ {...props}+ >+ <span className="absolute right-2 flex size-3.5 items-center justify-center">+ <SelectPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </SelectPrimitive.ItemIndicator>+ </span>+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>+ </SelectPrimitive.Item>+ );+}++function SelectSeparator({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {+ return (+ <SelectPrimitive.Separator+ data-slot="select-separator"+ className={cn("-mx-1 pointer-events-none my-1 h-px bg-border", className)}+ {...props}+ />+ );+}++function SelectScrollUpButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {+ return (+ <SelectPrimitive.ScrollUpButton+ data-slot="select-scroll-up-button"+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className,+ )}+ {...props}+ >+ <ChevronUpIcon className="size-4" />+ </SelectPrimitive.ScrollUpButton>+ );+}++function SelectScrollDownButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {+ return (+ <SelectPrimitive.ScrollDownButton+ data-slot="select-scroll-down-button"+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className,+ )}+ {...props}+ >+ <ChevronDownIcon className="size-4" />+ </SelectPrimitive.ScrollDownButton>+ );+}++export {+ Select,+ SelectContent,+ SelectGroup,+ SelectItem,+ SelectLabel,+ SelectScrollDownButton,+ SelectScrollUpButton,+ SelectSeparator,+ SelectTrigger,+ SelectValue,+};diff --git a/apps/dashboard/src/components/ui/separator.tsx b/apps/dashboard/src/components/ui/separator.tsxnew file mode 100644index 000000000..8fc1c16d4--- /dev/null+++ b/apps/dashboard/src/components/ui/separator.tsx@@ -0,0 +1,28 @@+"use client";++import * as SeparatorPrimitive from "@radix-ui/react-separator";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Separator({+ className,+ orientation = "horizontal",+ decorative = true,+ ...props+}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {+ return (+ <SeparatorPrimitive.Root+ data-slot="separator-root"+ decorative={decorative}+ orientation={orientation}+ className={cn(+ "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",+ className,+ )}+ {...props}+ />+ );+}++export { Separator };diff --git a/apps/dashboard/src/components/ui/sheet.tsx b/apps/dashboard/src/components/ui/sheet.tsxnew file mode 100644index 000000000..e220a2275--- /dev/null+++ b/apps/dashboard/src/components/ui/sheet.tsx@@ -0,0 +1,139 @@+"use client";++import * as SheetPrimitive from "@radix-ui/react-dialog";+import { XIcon } from "lucide-react";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {+ return <SheetPrimitive.Root data-slot="sheet" {...props} />;+}++function SheetTrigger({+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {+ return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />;+}++function SheetClose({+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Close>) {+ return <SheetPrimitive.Close data-slot="sheet-close" {...props} />;+}++function SheetPortal({+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Portal>) {+ return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />;+}++function SheetOverlay({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {+ return (+ <SheetPrimitive.Overlay+ data-slot="sheet-overlay"+ className={cn(+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",+ className,+ )}+ {...props}+ />+ );+}++function SheetContent({+ className,+ children,+ side = "right",+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Content> & {+ side?: "top" | "right" | "bottom" | "left";+}) {+ return (+ <SheetPortal>+ <SheetOverlay />+ <SheetPrimitive.Content+ data-slot="sheet-content"+ className={cn(+ "fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",+ side === "right" &&+ "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",+ side === "left" &&+ "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",+ side === "top" &&+ "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",+ side === "bottom" &&+ "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",+ className,+ )}+ {...props}+ >+ {children}+ <SheetPrimitive.Close className="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">+ <XIcon className="size-4" />+ <span className="sr-only">Close</span>+ </SheetPrimitive.Close>+ </SheetPrimitive.Content>+ </SheetPortal>+ );+}++function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sheet-header"+ className={cn("flex flex-col gap-1.5 p-4", className)}+ {...props}+ />+ );+}++function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sheet-footer"+ className={cn("mt-auto flex flex-col gap-2 p-4", className)}+ {...props}+ />+ );+}++function SheetTitle({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Title>) {+ return (+ <SheetPrimitive.Title+ data-slot="sheet-title"+ className={cn("font-semibold text-foreground", className)}+ {...props}+ />+ );+}++function SheetDescription({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Description>) {+ return (+ <SheetPrimitive.Description+ data-slot="sheet-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ );+}++export {+ Sheet,+ SheetTrigger,+ SheetClose,+ SheetContent,+ SheetHeader,+ SheetFooter,+ SheetTitle,+ SheetDescription,+};diff --git a/apps/dashboard/src/components/ui/sidebar.tsx b/apps/dashboard/src/components/ui/sidebar.tsxnew file mode 100644index 000000000..059a32b2b--- /dev/null+++ b/apps/dashboard/src/components/ui/sidebar.tsx@@ -0,0 +1,731 @@+"use client";++import { Slot } from "@radix-ui/react-slot";+import { type VariantProps, cva } from "class-variance-authority";+import { PanelLeftIcon } from "lucide-react";+import * as React from "react";++import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import { Separator } from "@/components/ui/separator";+import {+ Sheet,+ SheetContent,+ SheetDescription,+ SheetHeader,+ SheetTitle,+} from "@/components/ui/sheet";+import { Skeleton } from "@/components/ui/skeleton";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { useIsMobile } from "@/hooks/use-mobile";+import { cn } from "@/lib/utils";++const SIDEBAR_COOKIE_NAME = "sidebar_state";+const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;+const SIDEBAR_WIDTH = "16rem";+const SIDEBAR_WIDTH_MOBILE = "18rem";+const SIDEBAR_WIDTH_ICON = "3rem";+const SIDEBAR_KEYBOARD_SHORTCUT = "b";++type SidebarContextProps = {+ state: "expanded" | "collapsed";+ open: boolean;+ setOpen: (open: boolean) => void;+ openMobile: boolean;+ setOpenMobile: (open: boolean) => void;+ isMobile: boolean;+ toggleSidebar: () => void;+};++const SidebarContext = React.createContext<SidebarContextProps | null>(null);++function useSidebar() {+ const context = React.useContext(SidebarContext);+ if (!context) {+ throw new Error("useSidebar must be used within a SidebarProvider.");+ }++ return context;+}++function SidebarProvider({+ defaultOpen = true,+ open: openProp,+ onOpenChange: setOpenProp,+ className,+ style,+ children,+ cookieName,+ ...props+}: React.ComponentProps<"div"> & {+ defaultOpen?: boolean;+ open?: boolean;+ onOpenChange?: (open: boolean) => void;+ // NOTE: change from default shadcn sidebar+ cookieName?: string;+}) {+ const isMobile = useIsMobile();+ const [openMobile, setOpenMobile] = React.useState(false);++ // This is the internal state of the sidebar.+ // We use openProp and setOpenProp for control from outside the component.+ const [_open, _setOpen] = React.useState(defaultOpen);+ const open = openProp ?? _open;+ const setOpen = React.useCallback(+ (value: boolean | ((value: boolean) => boolean)) => {+ const openState = typeof value === "function" ? value(open) : value;+ if (setOpenProp) {+ setOpenProp(openState);+ } else {+ _setOpen(openState);+ }++ // This sets the cookie to keep the sidebar state.+ document.cookie = `${cookieName ?? SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;+ },+ [setOpenProp, open, cookieName],+ );++ // Helper to toggle the sidebar.+ // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>+ const toggleSidebar = React.useCallback(() => {+ return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);+ }, [isMobile, setOpen, setOpenMobile]);++ // Adds a keyboard shortcut to toggle the sidebar.+ React.useEffect(() => {+ const handleKeyDown = (event: KeyboardEvent) => {+ if (+ event.key === SIDEBAR_KEYBOARD_SHORTCUT &&+ (event.metaKey || event.ctrlKey)+ ) {+ event.preventDefault();+ toggleSidebar();+ }+ };++ window.addEventListener("keydown", handleKeyDown);+ return () => window.removeEventListener("keydown", handleKeyDown);+ }, [toggleSidebar]);++ // We add a state so that we can do data-state="expanded" or "collapsed".+ // This makes it easier to style the sidebar with Tailwind classes.+ const state = open ? "expanded" : "collapsed";++ // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>+ const contextValue = React.useMemo<SidebarContextProps>(+ () => ({+ state,+ open,+ setOpen,+ isMobile,+ openMobile,+ setOpenMobile,+ toggleSidebar,+ }),+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar],+ );++ return (+ <SidebarContext.Provider value={contextValue}>+ <TooltipProvider delayDuration={0}>+ <div+ data-slot="sidebar-wrapper"+ style={+ {+ "--sidebar-width": SIDEBAR_WIDTH,+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,+ ...style,+ } as React.CSSProperties+ }+ className={cn(+ "group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ </TooltipProvider>+ </SidebarContext.Provider>+ );+}++function Sidebar({+ side = "left",+ variant = "sidebar",+ collapsible = "offcanvas",+ className,+ children,+ ...props+}: React.ComponentProps<"div"> & {+ side?: "left" | "right";+ variant?: "sidebar" | "floating" | "inset";+ collapsible?: "offcanvas" | "icon" | "none";+}) {+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();++ if (collapsible === "none") {+ return (+ <div+ data-slot="sidebar"+ className={cn(+ "flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+ }++ if (isMobile) {+ return (+ <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>+ <SheetContent+ data-sidebar="sidebar"+ data-slot="sidebar"+ data-mobile="true"+ className="w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"+ style={+ {+ "--sidebar-width": SIDEBAR_WIDTH_MOBILE,+ } as React.CSSProperties+ }+ side={side}+ >+ <SheetHeader className="sr-only">+ <SheetTitle>Sidebar</SheetTitle>+ <SheetDescription>Displays the mobile sidebar.</SheetDescription>+ </SheetHeader>+ <div className="flex h-full w-full flex-col">{children}</div>+ </SheetContent>+ </Sheet>+ );+ }++ return (+ <div+ className="group peer hidden text-sidebar-foreground md:block"+ data-state={state}+ data-collapsible={state === "collapsed" ? collapsible : ""}+ data-variant={variant}+ data-side={side}+ data-slot="sidebar"+ >+ {/* This is what handles the sidebar gap on desktop */}+ <div+ data-slot="sidebar-gap"+ className={cn(+ "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",+ "group-data-[collapsible=offcanvas]:w-0",+ "group-data-[side=right]:rotate-180",+ variant === "floating" || variant === "inset"+ ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]"+ : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)",+ )}+ />+ <div+ data-slot="sidebar-container"+ className={cn(+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",+ side === "left"+ ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"+ : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",+ // Adjust the padding for floating and inset variants.+ variant === "floating" || variant === "inset"+ ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"+ : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",+ className,+ )}+ {...props}+ >+ <div+ data-sidebar="sidebar"+ data-slot="sidebar-inner"+ className="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm"+ >+ {children}+ </div>+ </div>+ </div>+ );+}++function SidebarTrigger({+ className,+ onClick,+ ...props+}: React.ComponentProps<typeof Button>) {+ const { toggleSidebar } = useSidebar();++ return (+ <Button+ data-sidebar="trigger"+ data-slot="sidebar-trigger"+ variant="ghost"+ size="icon"+ className={cn("size-7", className)}+ onClick={(event) => {+ onClick?.(event);+ toggleSidebar();+ }}+ {...props}+ >+ <PanelLeftIcon />+ <span className="sr-only">Toggle Sidebar</span>+ </Button>+ );+}++function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {+ const { toggleSidebar } = useSidebar();++ return (+ <button+ data-sidebar="rail"+ data-slot="sidebar-rail"+ aria-label="Toggle Sidebar"+ tabIndex={-1}+ onClick={toggleSidebar}+ title="Toggle Sidebar"+ className={cn(+ "-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex",+ "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",+ "group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full",+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",+ className,+ )}+ {...props}+ />+ );+}++function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {+ return (+ <main+ data-slot="sidebar-inset"+ className={cn(+ "relative flex w-full flex-1 flex-col bg-background",+ "md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",+ className,+ )}+ {...props}+ />+ );+}++function SidebarInput({+ className,+ ...props+}: React.ComponentProps<typeof Input>) {+ return (+ <Input+ data-slot="sidebar-input"+ data-sidebar="input"+ className={cn("h-8 w-full bg-background shadow-none", className)}+ {...props}+ />+ );+}++function SidebarHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-header"+ data-sidebar="header"+ className={cn("flex flex-col gap-2 p-2", className)}+ {...props}+ />+ );+}++function SidebarFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-footer"+ data-sidebar="footer"+ className={cn("flex flex-col gap-2 p-2", className)}+ {...props}+ />+ );+}++function SidebarSeparator({+ className,+ ...props+}: React.ComponentProps<typeof Separator>) {+ return (+ <Separator+ data-slot="sidebar-separator"+ data-sidebar="separator"+ className={cn("mx-2 w-auto bg-sidebar-border", className)}+ {...props}+ />+ );+}++function SidebarContent({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-content"+ data-sidebar="content"+ className={cn(+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",+ className,+ )}+ {...props}+ />+ );+}++function SidebarGroup({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-group"+ data-sidebar="group"+ className={cn("relative flex w-full min-w-0 flex-col p-2", className)}+ {...props}+ />+ );+}++function SidebarGroupLabel({+ className,+ asChild = false,+ ...props+}: React.ComponentProps<"div"> & { asChild?: boolean }) {+ const Comp = asChild ? Slot : "div";++ return (+ <Comp+ data-slot="sidebar-group-label"+ data-sidebar="group-label"+ className={cn(+ "flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",+ className,+ )}+ {...props}+ />+ );+}++function SidebarGroupAction({+ className,+ asChild = false,+ ...props+}: React.ComponentProps<"button"> & { asChild?: boolean }) {+ const Comp = asChild ? Slot : "button";++ return (+ <Comp+ data-slot="sidebar-group-action"+ data-sidebar="group-action"+ className={cn(+ "absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ // Increases the hit area of the button on mobile.+ "after:-inset-2 after:absolute md:after:hidden",+ "group-data-[collapsible=icon]:hidden",+ className,+ )}+ {...props}+ />+ );+}++function SidebarGroupContent({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-group-content"+ data-sidebar="group-content"+ className={cn("w-full text-sm", className)}+ {...props}+ />+ );+}++function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">) {+ return (+ <ul+ data-slot="sidebar-menu"+ data-sidebar="menu"+ className={cn("flex w-full min-w-0 flex-col gap-1", className)}+ {...props}+ />+ );+}++function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {+ return (+ <li+ data-slot="sidebar-menu-item"+ data-sidebar="menu-item"+ className={cn("group/menu-item relative", className)}+ {...props}+ />+ );+}++const sidebarMenuButtonVariants = cva(+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",+ {+ variants: {+ variant: {+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",+ outline:+ "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",+ },+ size: {+ default: "h-8 text-sm",+ sm: "h-7 text-xs",+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ },+);++function SidebarMenuButton({+ asChild = false,+ isActive = false,+ variant = "default",+ size = "default",+ tooltip,+ className,+ ...props+}: React.ComponentProps<"button"> & {+ asChild?: boolean;+ isActive?: boolean;+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;+} & VariantProps<typeof sidebarMenuButtonVariants>) {+ const Comp = asChild ? Slot : "button";+ const { isMobile, state } = useSidebar();++ const button = (+ <Comp+ data-slot="sidebar-menu-button"+ data-sidebar="menu-button"+ data-size={size}+ data-active={isActive}+ className={cn(sidebarMenuButtonVariants({ variant, size }), className)}+ {...props}+ />+ );++ if (!tooltip) {+ return button;+ }++ if (typeof tooltip === "string") {+ tooltip = {+ children: tooltip,+ };+ }++ return (+ <Tooltip>+ <TooltipTrigger asChild>{button}</TooltipTrigger>+ <TooltipContent+ side="right"+ align="center"+ hidden={state !== "collapsed" || isMobile}+ {...tooltip}+ />+ </Tooltip>+ );+}++function SidebarMenuAction({+ className,+ asChild = false,+ showOnHover = false,+ ...props+}: React.ComponentProps<"button"> & {+ asChild?: boolean;+ showOnHover?: boolean;+}) {+ const Comp = asChild ? Slot : "button";++ return (+ <Comp+ data-slot="sidebar-menu-action"+ data-sidebar="menu-action"+ className={cn(+ "absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",+ // Increases the hit area of the button on mobile.+ "after:-inset-2 after:absolute md:after:hidden",+ "peer-data-[size=sm]/menu-button:top-1",+ "peer-data-[size=default]/menu-button:top-1.5",+ "peer-data-[size=lg]/menu-button:top-2.5",+ "group-data-[collapsible=icon]:hidden",+ showOnHover &&+ "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",+ className,+ )}+ {...props}+ />+ );+}++function SidebarMenuBadge({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-menu-badge"+ data-sidebar="menu-badge"+ className={cn(+ "pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums",+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",+ "peer-data-[size=sm]/menu-button:top-1",+ "peer-data-[size=default]/menu-button:top-1.5",+ "peer-data-[size=lg]/menu-button:top-2.5",+ "group-data-[collapsible=icon]:hidden",+ className,+ )}+ {...props}+ />+ );+}++function SidebarMenuSkeleton({+ className,+ showIcon = false,+ ...props+}: React.ComponentProps<"div"> & {+ showIcon?: boolean;+}) {+ // Random width between 50 to 90%.+ const width = React.useMemo(() => {+ return `${Math.floor(Math.random() * 40) + 50}%`;+ }, []);++ return (+ <div+ data-slot="sidebar-menu-skeleton"+ data-sidebar="menu-skeleton"+ className={cn("flex h-8 items-center gap-2 rounded-md px-2", className)}+ {...props}+ >+ {showIcon && (+ <Skeleton+ className="size-4 rounded-md"+ data-sidebar="menu-skeleton-icon"+ />+ )}+ <Skeleton+ className="h-4 max-w-(--skeleton-width) flex-1"+ data-sidebar="menu-skeleton-text"+ style={+ {+ "--skeleton-width": width,+ } as React.CSSProperties+ }+ />+ </div>+ );+}++function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">) {+ return (+ <ul+ data-slot="sidebar-menu-sub"+ data-sidebar="menu-sub"+ className={cn(+ "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5",+ "group-data-[collapsible=icon]:hidden",+ className,+ )}+ {...props}+ />+ );+}++function SidebarMenuSubItem({+ className,+ ...props+}: React.ComponentProps<"li">) {+ return (+ <li+ data-slot="sidebar-menu-sub-item"+ data-sidebar="menu-sub-item"+ className={cn("group/menu-sub-item relative", className)}+ {...props}+ />+ );+}++function SidebarMenuSubButton({+ asChild = false,+ size = "md",+ isActive = false,+ className,+ ...props+}: React.ComponentProps<"a"> & {+ asChild?: boolean;+ size?: "sm" | "md";+ isActive?: boolean;+}) {+ const Comp = asChild ? Slot : "a";++ return (+ <Comp+ data-slot="sidebar-menu-sub-button"+ data-sidebar="menu-sub-button"+ data-size={size}+ data-active={isActive}+ className={cn(+ "-translate-x-px flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",+ size === "sm" && "text-xs",+ size === "md" && "text-sm",+ "group-data-[collapsible=icon]:hidden",+ className,+ )}+ {...props}+ />+ );+}++export {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarGroup,+ SidebarGroupAction,+ SidebarGroupContent,+ SidebarGroupLabel,+ SidebarHeader,+ SidebarInput,+ SidebarInset,+ SidebarMenu,+ SidebarMenuAction,+ SidebarMenuBadge,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarMenuSkeleton,+ SidebarMenuSub,+ SidebarMenuSubButton,+ SidebarMenuSubItem,+ SidebarProvider,+ SidebarRail,+ SidebarSeparator,+ SidebarTrigger,+ useSidebar,+};diff --git a/apps/dashboard/src/components/ui/skeleton.tsx b/apps/dashboard/src/components/ui/skeleton.tsxnew file mode 100644index 000000000..da6c299b6--- /dev/null+++ b/apps/dashboard/src/components/ui/skeleton.tsx@@ -0,0 +1,13 @@+import { cn } from "@/lib/utils";++function Skeleton({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="skeleton"+ className={cn("animate-pulse rounded-md bg-accent", className)}+ {...props}+ />+ );+}++export { Skeleton };diff --git a/apps/dashboard/src/components/ui/slider.tsx b/apps/dashboard/src/components/ui/slider.tsxnew file mode 100644index 000000000..2adaa9c59--- /dev/null+++ b/apps/dashboard/src/components/ui/slider.tsx@@ -0,0 +1,63 @@+"use client";++import * as SliderPrimitive from "@radix-ui/react-slider";+import * as React from "react";++import { cn } from "@/lib/utils";++function Slider({+ className,+ defaultValue,+ value,+ min = 0,+ max = 100,+ ...props+}: React.ComponentProps<typeof SliderPrimitive.Root>) {+ const _values = React.useMemo(+ () =>+ Array.isArray(value)+ ? value+ : Array.isArray(defaultValue)+ ? defaultValue+ : [min, max],+ [value, defaultValue, min, max],+ );++ return (+ <SliderPrimitive.Root+ data-slot="slider"+ defaultValue={defaultValue}+ value={value}+ min={min}+ max={max}+ className={cn(+ "relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-[disabled]:opacity-50",+ className,+ )}+ {...props}+ >+ <SliderPrimitive.Track+ data-slot="slider-track"+ className={cn(+ "relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1.5",+ )}+ >+ <SliderPrimitive.Range+ data-slot="slider-range"+ className={cn(+ "absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",+ )}+ />+ </SliderPrimitive.Track>+ {Array.from({ length: _values.length }, (_, index) => (+ <SliderPrimitive.Thumb+ data-slot="slider-thumb"+ key={index}+ className="block size-4 shrink-0 rounded-full border border-primary bg-background shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:outline-hidden focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50"+ />+ ))}+ </SliderPrimitive.Root>+ );+}++export { Slider };diff --git a/apps/dashboard/src/components/ui/sonner.tsx b/apps/dashboard/src/components/ui/sonner.tsxnew file mode 100644index 000000000..f96a98d91--- /dev/null+++ b/apps/dashboard/src/components/ui/sonner.tsx@@ -0,0 +1,25 @@+"use client";++import { useTheme } from "next-themes";+import { Toaster as Sonner, type ToasterProps } from "sonner";++const Toaster = ({ ...props }: ToasterProps) => {+ const { theme = "system" } = useTheme();++ return (+ <Sonner+ theme={theme as ToasterProps["theme"]}+ className="toaster group"+ style={+ {+ "--normal-bg": "var(--popover)",+ "--normal-text": "var(--popover-foreground)",+ "--normal-border": "var(--border)",+ } as React.CSSProperties+ }+ {...props}+ />+ );+};++export { Toaster };diff --git a/apps/dashboard/src/components/ui/sortable.tsx b/apps/dashboard/src/components/ui/sortable.tsxnew file mode 100644index 000000000..9b6ee53a2--- /dev/null+++ b/apps/dashboard/src/components/ui/sortable.tsx@@ -0,0 +1,581 @@+"use client";++import {+ type Announcements,+ DndContext,+ type DndContextProps,+ type DragEndEvent,+ DragOverlay,+ type DraggableSyntheticListeners,+ type DropAnimation,+ KeyboardSensor,+ MouseSensor,+ type ScreenReaderInstructions,+ TouchSensor,+ type UniqueIdentifier,+ closestCenter,+ closestCorners,+ defaultDropAnimationSideEffects,+ useSensor,+ useSensors,+} from "@dnd-kit/core";+import {+ restrictToHorizontalAxis,+ restrictToParentElement,+ restrictToVerticalAxis,+} from "@dnd-kit/modifiers";+import {+ SortableContext,+ type SortableContextProps,+ arrayMove,+ horizontalListSortingStrategy,+ sortableKeyboardCoordinates,+ useSortable,+ verticalListSortingStrategy,+} from "@dnd-kit/sortable";+import { CSS } from "@dnd-kit/utilities";+import { Slot } from "@radix-ui/react-slot";+import * as React from "react";+import * as ReactDOM from "react-dom";++import { composeEventHandlers, useComposedRefs } from "@/lib/composition";+import { cn } from "@/lib/utils";++const orientationConfig = {+ vertical: {+ modifiers: [restrictToVerticalAxis, restrictToParentElement],+ strategy: verticalListSortingStrategy,+ collisionDetection: closestCenter,+ },+ horizontal: {+ modifiers: [restrictToHorizontalAxis, restrictToParentElement],+ strategy: horizontalListSortingStrategy,+ collisionDetection: closestCenter,+ },+ mixed: {+ modifiers: [restrictToParentElement],+ strategy: undefined,+ collisionDetection: closestCorners,+ },+};++const ROOT_NAME = "Sortable";+const CONTENT_NAME = "SortableContent";+const ITEM_NAME = "SortableItem";+const ITEM_HANDLE_NAME = "SortableItemHandle";+const OVERLAY_NAME = "SortableOverlay";++const SORTABLE_ERRORS = {+ [ROOT_NAME]: `\`${ROOT_NAME}\` components must be within \`${ROOT_NAME}\``,+ [CONTENT_NAME]: `\`${CONTENT_NAME}\` must be within \`${ROOT_NAME}\``,+ [ITEM_NAME]: `\`${ITEM_NAME}\` must be within \`${CONTENT_NAME}\``,+ [ITEM_HANDLE_NAME]: `\`${ITEM_HANDLE_NAME}\` must be within \`${ITEM_NAME}\``,+ [OVERLAY_NAME]: `\`${OVERLAY_NAME}\` must be within \`${ROOT_NAME}\``,+} as const;++interface SortableRootContextValue<T> {+ id: string;+ items: UniqueIdentifier[];+ modifiers: DndContextProps["modifiers"];+ strategy: SortableContextProps["strategy"];+ activeId: UniqueIdentifier | null;+ setActiveId: (id: UniqueIdentifier | null) => void;+ getItemValue: (item: T) => UniqueIdentifier;+ flatCursor: boolean;+}++const SortableRootContext =+ React.createContext<SortableRootContextValue<unknown> | null>(null);+SortableRootContext.displayName = ROOT_NAME;++function useSortableContext(name: keyof typeof SORTABLE_ERRORS) {+ const context = React.useContext(SortableRootContext);+ if (!context) {+ throw new Error(SORTABLE_ERRORS[name]);+ }+ return context;+}++interface GetItemValue<T> {+ /**+ * Callback that returns a unique identifier for each sortable item. Required for array of objects.+ * @example getItemValue={(item) => item.id}+ */+ getItemValue: (item: T) => UniqueIdentifier;+}++type SortableProps<T> = DndContextProps & {+ value: T[];+ onValueChange?: (items: T[]) => void;+ onMove?: (+ event: DragEndEvent & { activeIndex: number; overIndex: number },+ ) => void;+ strategy?: SortableContextProps["strategy"];+ orientation?: "vertical" | "horizontal" | "mixed";+ flatCursor?: boolean;+} & (T extends object ? GetItemValue<T> : Partial<GetItemValue<T>>);++function Sortable<T>(props: SortableProps<T>) {+ const {+ value,+ onValueChange,+ collisionDetection,+ modifiers,+ strategy,+ onMove,+ orientation = "vertical",+ flatCursor = false,+ getItemValue: getItemValueProp,+ accessibility,+ ...sortableProps+ } = props;+ const id = React.useId();+ const [activeId, setActiveId] = React.useState<UniqueIdentifier | null>(null);++ const sensors = useSensors(+ useSensor(MouseSensor),+ useSensor(TouchSensor),+ useSensor(KeyboardSensor, {+ coordinateGetter: sortableKeyboardCoordinates,+ }),+ );+ const config = React.useMemo(+ () => orientationConfig[orientation],+ [orientation],+ );++ const getItemValue = React.useCallback(+ (item: T): UniqueIdentifier => {+ if (typeof item === "object" && !getItemValueProp) {+ throw new Error(+ "getItemValue is required when using array of objects.",+ );+ }+ return getItemValueProp+ ? getItemValueProp(item)+ : (item as UniqueIdentifier);+ },+ [getItemValueProp],+ );++ const items = React.useMemo(() => {+ return value.map((item) => getItemValue(item));+ }, [value, getItemValue]);++ const onDragEnd = React.useCallback(+ (event: DragEndEvent) => {+ const { active, over } = event;+ if (over && active.id !== over?.id) {+ const activeIndex = value.findIndex(+ (item) => getItemValue(item) === active.id,+ );+ const overIndex = value.findIndex(+ (item) => getItemValue(item) === over.id,+ );++ if (onMove) {+ onMove({ ...event, activeIndex, overIndex });+ } else {+ onValueChange?.(arrayMove(value, activeIndex, overIndex));+ }+ }+ setActiveId(null);+ },+ [value, onValueChange, onMove, getItemValue],+ );++ const announcements: Announcements = React.useMemo(+ () => ({+ onDragStart({ active }) {+ const activeValue = active.id.toString();+ return `Grabbed sortable item "${activeValue}". Current position is ${+ active.data.current?.sortable.index + 1+ } of ${value.length}. Use arrow keys to move, space to drop.`;+ },+ onDragOver({ active, over }) {+ if (over) {+ const overIndex = over.data.current?.sortable.index ?? 0;+ const activeIndex = active.data.current?.sortable.index ?? 0;+ const moveDirection = overIndex > activeIndex ? "down" : "up";+ const activeValue = active.id.toString();+ return `Sortable item "${activeValue}" moved ${moveDirection} to position ${+ overIndex + 1+ } of ${value.length}.`;+ }+ return "Sortable item is no longer over a droppable area. Press escape to cancel.";+ },+ onDragEnd({ active, over }) {+ const activeValue = active.id.toString();+ if (over) {+ const overIndex = over.data.current?.sortable.index ?? 0;+ return `Sortable item "${activeValue}" dropped at position ${+ overIndex + 1+ } of ${value.length}.`;+ }+ return `Sortable item "${activeValue}" dropped. No changes were made.`;+ },+ onDragCancel({ active }) {+ const activeIndex = active.data.current?.sortable.index ?? 0;+ const activeValue = active.id.toString();+ return `Sorting cancelled. Sortable item "${activeValue}" returned to position ${+ activeIndex + 1+ } of ${value.length}.`;+ },+ onDragMove({ active, over }) {+ if (over) {+ const overIndex = over.data.current?.sortable.index ?? 0;+ const activeIndex = active.data.current?.sortable.index ?? 0;+ const moveDirection = overIndex > activeIndex ? "down" : "up";+ const activeValue = active.id.toString();+ return `Sortable item "${activeValue}" is moving ${moveDirection} to position ${+ overIndex + 1+ } of ${value.length}.`;+ }+ return "Sortable item is no longer over a droppable area. Press escape to cancel.";+ },+ }),+ [value],+ );++ const screenReaderInstructions: ScreenReaderInstructions = React.useMemo(+ () => ({+ draggable: `+ To pick up a sortable item, press space or enter.+ While dragging, use the ${+ orientation === "vertical"+ ? "up and down"+ : orientation === "horizontal"+ ? "left and right"+ : "arrow"+ } keys to move the item.+ Press space or enter again to drop the item in its new position, or press escape to cancel.+ `,+ }),+ [orientation],+ );++ const contextValue = React.useMemo(+ () => ({+ id,+ items,+ modifiers: modifiers ?? config.modifiers,+ strategy: strategy ?? config.strategy,+ activeId,+ setActiveId,+ getItemValue,+ flatCursor,+ }),+ [+ id,+ items,+ modifiers,+ strategy,+ config.modifiers,+ config.strategy,+ activeId,+ getItemValue,+ flatCursor,+ ],+ );++ return (+ <SortableRootContext.Provider+ value={contextValue as SortableRootContextValue<unknown>}+ >+ <DndContext+ collisionDetection={collisionDetection ?? config.collisionDetection}+ modifiers={modifiers ?? config.modifiers}+ sensors={sensors}+ {...sortableProps}+ id={id}+ onDragStart={composeEventHandlers(+ sortableProps.onDragStart,+ ({ active }) => setActiveId(active.id),+ )}+ onDragEnd={composeEventHandlers(sortableProps.onDragEnd, onDragEnd)}+ onDragCancel={composeEventHandlers(sortableProps.onDragCancel, () =>+ setActiveId(null),+ )}+ accessibility={{+ announcements,+ screenReaderInstructions,+ ...accessibility,+ }}+ />+ </SortableRootContext.Provider>+ );+}++const SortableContentContext = React.createContext<boolean>(false);+SortableContentContext.displayName = CONTENT_NAME;++interface SortableContentProps extends React.ComponentPropsWithoutRef<"div"> {+ strategy?: SortableContextProps["strategy"];+ children: React.ReactNode;+ asChild?: boolean;+ withoutSlot?: boolean;+}++const SortableContent = React.forwardRef<HTMLDivElement, SortableContentProps>(+ (props, forwardedRef) => {+ const {+ strategy: strategyProp,+ asChild,+ withoutSlot,+ children,+ ...contentProps+ } = props;+ const context = useSortableContext(CONTENT_NAME);++ const ContentPrimitive = asChild ? Slot : "div";++ return (+ <SortableContentContext.Provider value={true}>+ <SortableContext+ items={context.items}+ strategy={strategyProp ?? context.strategy}+ >+ {withoutSlot ? (+ children+ ) : (+ <ContentPrimitive {...contentProps} ref={forwardedRef}>+ {children}+ </ContentPrimitive>+ )}+ </SortableContext>+ </SortableContentContext.Provider>+ );+ },+);+SortableContent.displayName = CONTENT_NAME;++interface SortableItemContextValue {+ id: string;+ attributes: React.HTMLAttributes<HTMLElement>;+ listeners: DraggableSyntheticListeners | undefined;+ setActivatorNodeRef: (node: HTMLElement | null) => void;+ isDragging?: boolean;+ disabled?: boolean;+}++const SortableItemContext =+ React.createContext<SortableItemContextValue | null>(null);+SortableItemContext.displayName = ITEM_NAME;++interface SortableItemProps extends React.ComponentPropsWithoutRef<"div"> {+ value: UniqueIdentifier;+ asHandle?: boolean;+ asChild?: boolean;+ disabled?: boolean;+}++const SortableItem = React.forwardRef<HTMLDivElement, SortableItemProps>(+ (props, forwardedRef) => {+ const {+ value,+ style,+ asHandle,+ asChild,+ disabled,+ className,+ ...itemProps+ } = props;+ const inSortableContent = React.useContext(SortableContentContext);+ const inSortableOverlay = React.useContext(SortableOverlayContext);++ if (!inSortableContent && !inSortableOverlay) {+ throw new Error(SORTABLE_ERRORS[ITEM_NAME]);+ }++ if (value === "") {+ throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`);+ }++ const context = useSortableContext(ITEM_NAME);+ const id = React.useId();+ const {+ attributes,+ listeners,+ setNodeRef,+ setActivatorNodeRef,+ transform,+ transition,+ isDragging,+ } = useSortable({ id: value, disabled });++ const composedRef = useComposedRefs(forwardedRef, (node) => {+ if (disabled) return;+ setNodeRef(node);+ if (asHandle) setActivatorNodeRef(node);+ });++ const composedStyle = React.useMemo<React.CSSProperties>(() => {+ return {+ transform: CSS.Translate.toString(transform),+ transition,+ ...style,+ };+ }, [transform, transition, style]);++ const itemContext = React.useMemo<SortableItemContextValue>(+ () => ({+ id,+ attributes,+ listeners,+ setActivatorNodeRef,+ isDragging,+ disabled,+ }),+ [id, attributes, listeners, setActivatorNodeRef, isDragging, disabled],+ );++ const ItemPrimitive = asChild ? Slot : "div";++ return (+ <SortableItemContext.Provider value={itemContext}>+ <ItemPrimitive+ id={id}+ data-dragging={isDragging ? "" : undefined}+ {...itemProps}+ {...(asHandle ? attributes : {})}+ {...(asHandle ? listeners : {})}+ tabIndex={disabled ? undefined : 0}+ ref={composedRef}+ style={composedStyle}+ className={cn(+ "focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1",+ {+ "touch-none select-none": asHandle,+ "cursor-default": context.flatCursor,+ "data-dragging:cursor-grabbing": !context.flatCursor,+ "cursor-grab": !isDragging && asHandle && !context.flatCursor,+ "opacity-50": isDragging,+ "pointer-events-none opacity-50": disabled,+ },+ className,+ )}+ />+ </SortableItemContext.Provider>+ );+ },+);+SortableItem.displayName = ITEM_NAME;++interface SortableItemHandleProps+ extends React.ComponentPropsWithoutRef<"button"> {+ asChild?: boolean;+}++const SortableItemHandle = React.forwardRef<+ HTMLButtonElement,+ SortableItemHandleProps+>((props, forwardedRef) => {+ const { asChild, disabled, className, ...itemHandleProps } = props;+ const itemContext = React.useContext(SortableItemContext);+ if (!itemContext) {+ throw new Error(SORTABLE_ERRORS[ITEM_HANDLE_NAME]);+ }+ const context = useSortableContext(ITEM_HANDLE_NAME);++ const isDisabled = disabled ?? itemContext.disabled;++ const composedRef = useComposedRefs(forwardedRef, (node) => {+ if (!isDisabled) return;+ itemContext.setActivatorNodeRef(node);+ });++ const HandlePrimitive = asChild ? Slot : "button";++ return (+ <HandlePrimitive+ type="button"+ aria-controls={itemContext.id}+ data-dragging={itemContext.isDragging ? "" : undefined}+ {...itemHandleProps}+ {...itemContext.attributes}+ {...itemContext.listeners}+ ref={composedRef}+ className={cn(+ "select-none disabled:pointer-events-none disabled:opacity-50",+ context.flatCursor+ ? "cursor-default"+ : "cursor-grab data-dragging:cursor-grabbing",+ className,+ )}+ disabled={isDisabled}+ />+ );+});+SortableItemHandle.displayName = ITEM_HANDLE_NAME;++const SortableOverlayContext = React.createContext(false);+SortableOverlayContext.displayName = OVERLAY_NAME;++const dropAnimation: DropAnimation = {+ sideEffects: defaultDropAnimationSideEffects({+ styles: {+ active: {+ opacity: "0.4",+ },+ },+ }),+};++interface SortableOverlayProps+ extends Omit<React.ComponentPropsWithoutRef<typeof DragOverlay>, "children"> {+ container?: Element | DocumentFragment | null;+ children?:+ | ((params: { value: UniqueIdentifier }) => React.ReactNode)+ | React.ReactNode;+}++function SortableOverlay(props: SortableOverlayProps) {+ const { container: containerProp, children, ...overlayProps } = props;+ const context = useSortableContext(OVERLAY_NAME);++ const [mounted, setMounted] = React.useState(false);+ React.useLayoutEffect(() => setMounted(true), []);++ const container =+ containerProp ?? (mounted ? globalThis.document?.body : null);++ if (!container) return null;++ return ReactDOM.createPortal(+ <DragOverlay+ dropAnimation={dropAnimation}+ modifiers={context.modifiers}+ className={cn(!context.flatCursor && "cursor-grabbing")}+ {...overlayProps}+ >+ <SortableOverlayContext.Provider value={true}>+ {context.activeId+ ? typeof children === "function"+ ? children({ value: context.activeId })+ : children+ : null}+ </SortableOverlayContext.Provider>+ </DragOverlay>,+ container,+ );+}++const Root = Sortable;+const Content = SortableContent;+const Item = SortableItem;+const ItemHandle = SortableItemHandle;+const Overlay = SortableOverlay;++export {+ Root,+ Content,+ Item,+ ItemHandle,+ Overlay,+ //+ Sortable,+ SortableContent,+ SortableItem,+ SortableItemHandle,+ SortableOverlay,+};diff --git a/apps/dashboard/src/components/ui/switch.tsx b/apps/dashboard/src/components/ui/switch.tsxnew file mode 100644index 000000000..727e54404--- /dev/null+++ b/apps/dashboard/src/components/ui/switch.tsx@@ -0,0 +1,31 @@+"use client";++import * as SwitchPrimitive from "@radix-ui/react-switch";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Switch({+ className,+ ...props+}: React.ComponentProps<typeof SwitchPrimitive.Root>) {+ return (+ <SwitchPrimitive.Root+ data-slot="switch"+ className={cn(+ "peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",+ className,+ )}+ {...props}+ >+ <SwitchPrimitive.Thumb+ data-slot="switch-thumb"+ className={cn(+ "pointer-events-none block size-4 rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground",+ )}+ />+ </SwitchPrimitive.Root>+ );+}++export { Switch };diff --git a/apps/dashboard/src/components/ui/table.tsx b/apps/dashboard/src/components/ui/table.tsxnew file mode 100644index 000000000..4ea6433d0--- /dev/null+++ b/apps/dashboard/src/components/ui/table.tsx@@ -0,0 +1,116 @@+"use client";++import type * as React from "react";++import { cn } from "@/lib/utils";++function Table({ className, ...props }: React.ComponentProps<"table">) {+ return (+ <div+ data-slot="table-container"+ className="relative w-full overflow-x-auto"+ >+ <table+ data-slot="table"+ className={cn("w-full caption-bottom text-sm", className)}+ {...props}+ />+ </div>+ );+}++function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {+ return (+ <thead+ data-slot="table-header"+ className={cn("[&_tr]:border-b", className)}+ {...props}+ />+ );+}++function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {+ return (+ <tbody+ data-slot="table-body"+ className={cn("[&_tr:last-child]:border-0", className)}+ {...props}+ />+ );+}++function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {+ return (+ <tfoot+ data-slot="table-footer"+ className={cn(+ "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",+ className,+ )}+ {...props}+ />+ );+}++function TableRow({ className, ...props }: React.ComponentProps<"tr">) {+ return (+ <tr+ data-slot="table-row"+ className={cn(+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",+ className,+ )}+ {...props}+ />+ );+}++function TableHead({ className, ...props }: React.ComponentProps<"th">) {+ return (+ <th+ data-slot="table-head"+ className={cn(+ "h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",+ className,+ )}+ {...props}+ />+ );+}++function TableCell({ className, ...props }: React.ComponentProps<"td">) {+ return (+ <td+ data-slot="table-cell"+ className={cn(+ "whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",+ className,+ )}+ {...props}+ />+ );+}++function TableCaption({+ className,+ ...props+}: React.ComponentProps<"caption">) {+ return (+ <caption+ data-slot="table-caption"+ className={cn("mt-4 text-muted-foreground text-sm", className)}+ {...props}+ />+ );+}++export {+ Table,+ TableHeader,+ TableBody,+ TableFooter,+ TableHead,+ TableRow,+ TableCell,+ TableCaption,+};diff --git a/apps/dashboard/src/components/ui/tabs.tsx b/apps/dashboard/src/components/ui/tabs.tsxnew file mode 100644index 000000000..ba16df9e1--- /dev/null+++ b/apps/dashboard/src/components/ui/tabs.tsx@@ -0,0 +1,66 @@+"use client";++import * as TabsPrimitive from "@radix-ui/react-tabs";+import type * as React from "react";++import { cn } from "@/lib/utils";++function Tabs({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Root>) {+ return (+ <TabsPrimitive.Root+ data-slot="tabs"+ className={cn("flex flex-col gap-2", className)}+ {...props}+ />+ );+}++function TabsList({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.List>) {+ return (+ <TabsPrimitive.List+ data-slot="tabs-list"+ className={cn(+ "inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-[3px] text-muted-foreground",+ className,+ )}+ {...props}+ />+ );+}++function TabsTrigger({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {+ return (+ <TabsPrimitive.Trigger+ data-slot="tabs-trigger"+ className={cn(+ "inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground text-sm transition-[color,box-shadow] focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:shadow-sm dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",+ className,+ )}+ {...props}+ />+ );+}++function TabsContent({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Content>) {+ return (+ <TabsPrimitive.Content+ data-slot="tabs-content"+ className={cn("flex-1 outline-none", className)}+ {...props}+ />+ );+}++export { Tabs, TabsList, TabsTrigger, TabsContent };diff --git a/apps/dashboard/src/components/ui/textarea.tsx b/apps/dashboard/src/components/ui/textarea.tsxnew file mode 100644index 000000000..fdb92c380--- /dev/null+++ b/apps/dashboard/src/components/ui/textarea.tsx@@ -0,0 +1,18 @@+import type * as React from "react";++import { cn } from "@/lib/utils";++function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {+ return (+ <textarea+ data-slot="textarea"+ className={cn(+ "field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",+ className,+ )}+ {...props}+ />+ );+}++export { Textarea };diff --git a/apps/dashboard/src/components/ui/tooltip.tsx b/apps/dashboard/src/components/ui/tooltip.tsxnew file mode 100644index 000000000..1ae8e37e5--- /dev/null+++ b/apps/dashboard/src/components/ui/tooltip.tsx@@ -0,0 +1,61 @@+"use client";++import * as TooltipPrimitive from "@radix-ui/react-tooltip";+import type * as React from "react";++import { cn } from "@/lib/utils";++function TooltipProvider({+ delayDuration = 0,+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {+ return (+ <TooltipPrimitive.Provider+ data-slot="tooltip-provider"+ delayDuration={delayDuration}+ {...props}+ />+ );+}++function Tooltip({+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Root>) {+ return (+ <TooltipProvider>+ <TooltipPrimitive.Root data-slot="tooltip" {...props} />+ </TooltipProvider>+ );+}++function TooltipTrigger({+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />;+}++function TooltipContent({+ className,+ sideOffset = 0,+ children,+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Content>) {+ return (+ <TooltipPrimitive.Portal>+ <TooltipPrimitive.Content+ data-slot="tooltip-content"+ sideOffset={sideOffset}+ className={cn(+ "fade-in-0 zoom-in-95 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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs data-[state=closed]:animate-out",+ className,+ )}+ {...props}+ >+ {children}+ <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-primary fill-primary" />+ </TooltipPrimitive.Content>+ </TooltipPrimitive.Portal>+ );+}++export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };diff --git a/apps/dashboard/src/data/audit-logs.client.ts b/apps/dashboard/src/data/audit-logs.client.tsnew file mode 100644index 000000000..80232a84e--- /dev/null+++ b/apps/dashboard/src/data/audit-logs.client.ts@@ -0,0 +1,88 @@+import { formatMilliseconds } from "@/lib/formatter";+import {+ CircleAlert,+ CircleCheck,+ CircleMinus,+ Send,+ Siren,+} from "lucide-react";++export const config = {+ "incident.created": {+ icon: Siren,+ color: "text-destructive",+ title: "Incident Created",+ },+ "incident.resolved": {+ icon: CircleCheck,+ color: "text-success",+ title: "Incident Resolved",+ },+ "monitor.failed": {+ icon: CircleMinus,+ color: "text-destructive",+ title: "Monitor Failed",+ },+ "notification.sent": {+ icon: Send,+ color: "text-info",+ title: "Notification Sent",+ },+ "monitor.recovered": {+ icon: CircleCheck,+ color: "text-success",+ title: "Monitor Recovered",+ },+ "monitor.degraded": {+ icon: CircleAlert,+ color: "text-warning",+ title: "Monitor Degraded",+ },+} as const;++export const metadata = {+ region: {+ label: "Region",+ key: "region",+ unit: undefined,+ visible: () => true,+ format: (value) => String(value),+ },+ cronTimestamp: {+ label: "Timestamp",+ key: "timestamp",+ unit: undefined,+ visible: () => false,+ format: (value) => String(value),+ },+ statusCode: {+ label: "Status Code",+ key: "status",+ unit: undefined,+ visible: (_value) => typeof _value === "number" && _value !== -1,+ format: (value) => String(value),+ },+ latency: {+ label: "Latency",+ key: "latency",+ unit: "ms",+ visible: () => true,+ format: (value) => formatMilliseconds(Number(value)),+ },+ provider: {+ label: "Provider",+ key: "provider",+ unit: undefined,+ visible: () => true,+ format: (value) => String(value),+ },+} as const satisfies Record<+ string,+ {+ label: string;+ key: string;+ unit?: string | undefined;+ visible: (value: string | number) => boolean;+ format: (value: string | number) => string;+ }+>;diff --git a/apps/dashboard/src/data/audit-logs.ts b/apps/dashboard/src/data/audit-logs.tsnew file mode 100644index 000000000..f77e2e505--- /dev/null+++ b/apps/dashboard/src/data/audit-logs.ts@@ -0,0 +1,90 @@+export const auditLogs = [+ {+ id: 3,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "incident.created" as const,+ },+ {+ id: 2,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "monitor.failed" as const,+ metadata: {+ region: "ams",+ status: 500,+ latency: 1400,+ } as const,+ },+ {+ id: 1,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "notification.sent" as const,+ metadata: {+ provider: "slack",+ } as const,+ },+ {+ id: 0,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "monitor.recovered" as const,+ metadata: {+ region: "ams",+ latency: 140,+ } as const,+ },+ {+ id: -1,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "monitor.degraded" as const,+ metadata: {+ region: "ams",+ latency: 30_000,+ } as const,+ },+ {+ id: -2,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "incident.resolved" as const,+ },+ {+ id: -3,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "incident.created" as const,+ },+ {+ id: -4,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "monitor.degraded" as const,+ metadata: {+ region: "ams",+ latency: 30_000,+ } as const,+ },+ {+ id: -5,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "monitor.degraded" as const,+ metadata: {+ region: "ams",+ latency: 32_000,+ } as const,+ },+ {+ id: -6,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "monitor.degraded" as const,+ metadata: {+ region: "ams",+ latency: 33_000,+ } as const,+ },+ {+ id: -7,+ timestamp: new Date("2025-05-05 12:00:00"),+ action: "monitor.degraded" as const,+ metadata: {+ region: "ams",+ latency: 34_000,+ } as const,+ },+];+export type AuditLog = (typeof auditLogs)[number];diff --git a/apps/dashboard/src/data/icons.ts b/apps/dashboard/src/data/icons.tsnew file mode 100644index 000000000..94e10d4f6--- /dev/null+++ b/apps/dashboard/src/data/icons.ts@@ -0,0 +1,14 @@+"use client";++import { Activity, AlertCircle, Search, SearchCheck } from "lucide-react";++export const status = {+ resolved: SearchCheck,+ investigating: AlertCircle,+ identified: Search,+ monitoring: Activity,+} as const;++export const icons = {+ status,+};diff --git a/apps/dashboard/src/data/incidents.client.ts b/apps/dashboard/src/data/incidents.client.tsnew file mode 100644index 000000000..b1c3ea968--- /dev/null+++ b/apps/dashboard/src/data/incidents.client.ts@@ -0,0 +1,35 @@+import { Bookmark, Check, Trash2 } from "lucide-react";++export const actions = [+ {+ id: "acknowledge",+ label: "Acknowledge",+ icon: Bookmark,+ variant: "default" as const,+ },+ {+ id: "resolve",+ label: "Resolve",+ icon: Check,+ variant: "default" as const,+ },+ {+ id: "delete",+ label: "Delete",+ icon: Trash2,+ variant: "destructive" as const,+ },+] as const;++export type IncidentAction = (typeof actions)[number];++export const getActions = (+ props: Partial<Record<IncidentAction["id"], () => Promise<void> | void>>,+): (IncidentAction & {+ onClick?: () => Promise<void> | void;+})[] => {+ return actions.map((action) => ({+ ...action,+ onClick: props[action.id as keyof typeof props],+ }));+};diff --git a/apps/dashboard/src/data/incidents.ts b/apps/dashboard/src/data/incidents.tsnew file mode 100644index 000000000..d4c242c45--- /dev/null+++ b/apps/dashboard/src/data/incidents.ts@@ -0,0 +1,11 @@+export const incidents = [+ {+ id: 1,+ startedAt: new Date("2025-05-05 12:00:00"),+ acknowledged: null,+ resolvedAt: new Date("2025-05-05 14:00:00"),+ monitor: "OpenStatus API",+ },+];++export type Incident = (typeof incidents)[number];diff --git a/apps/dashboard/src/data/invitations.ts b/apps/dashboard/src/data/invitations.tsnew file mode 100644index 000000000..560d4d0c3--- /dev/null+++ b/apps/dashboard/src/data/invitations.ts@@ -0,0 +1,12 @@+export const invitations = [+ {+ id: 1,+ email: "[email protected]",+ role: "member",+ createdAt: "2021-01-01",+ expiresAt: "2021-01-07",+ acceptedAt: "2021-01-02",+ },+];++export type Invitation = (typeof invitations)[number];diff --git a/apps/dashboard/src/data/maintenances.client.ts b/apps/dashboard/src/data/maintenances.client.tsnew file mode 100644index 000000000..013ede965--- /dev/null+++ b/apps/dashboard/src/data/maintenances.client.ts@@ -0,0 +1,27 @@+import { Pencil, Trash2 } from "lucide-react";++export const actions = [+ {+ id: "edit",+ label: "Edit",+ icon: Pencil,+ variant: "default" as const,+ },+ {+ id: "delete",+ label: "Delete",+ icon: Trash2,+ variant: "destructive" as const,+ },+] as const;++export type MaintenanceAction = (typeof actions)[number];++export const getActions = (+ props: Partial<Record<MaintenanceAction["id"], () => Promise<void> | void>>,+): (MaintenanceAction & { onClick?: () => Promise<void> | void })[] => {+ return actions.map((action) => ({+ ...action,+ onClick: props[action.id as keyof typeof props],+ }));+};diff --git a/apps/dashboard/src/data/maintenances.ts b/apps/dashboard/src/data/maintenances.tsnew file mode 100644index 000000000..f8fce1470--- /dev/null+++ b/apps/dashboard/src/data/maintenances.ts@@ -0,0 +1,13 @@+export const maintenances = [+ {+ id: 1,+ title: "DB Migration",+ message:+ "We are currently performing a db migration on our system and will be down for a few hours.",+ startDate: new Date("2025-04-01"),+ endDate: new Date("2025-04-02"),+ affected: ["OpenStatus API"],+ },+];++export type Maintenance = (typeof maintenances)[number];diff --git a/apps/dashboard/src/data/members.ts b/apps/dashboard/src/data/members.tsnew file mode 100644index 000000000..389ce7996--- /dev/null+++ b/apps/dashboard/src/data/members.ts@@ -0,0 +1,11 @@+export const members = [+ {+ id: 1,+ name: "Maximilian Kaske",+ email: "[email protected]",+ role: "admin",+ createdAt: "2021-01-01",+ },+];++export type Member = (typeof members)[number];diff --git a/apps/dashboard/src/data/metrics.client.ts b/apps/dashboard/src/data/metrics.client.tsnew file mode 100644index 000000000..9477b1f88--- /dev/null+++ b/apps/dashboard/src/data/metrics.client.ts@@ -0,0 +1,314 @@+"use client";++import type { MetricCard } from "@/components/metric/metric-card";+import { formatDateTime, formatMilliseconds } from "@/lib/formatter";+import type { RouterOutputs } from "@openstatus/api";+import { flyRegions } from "@openstatus/db/src/schema/constants";+import type { RegionMetric } from "./region-metrics";+import type { Region } from "./regions";++export const STATUS = ["success", "error", "degraded"] as const;+export const PERIODS = ["1d", "7d", "14d"] as const;+export const REGIONS = flyRegions as unknown as (typeof flyRegions)[number][];+export const PERCENTILES = ["p50", "p75", "p90", "p95", "p99"] as const;+export const INTERVALS = [5, 15, 30, 60, 120, 240, 480, 1440] as const;+export const TRIGGER = ["api", "cron"] as const;++const PERCENTILE_MAP = {+ p50: "p50Latency",+ p75: "p75Latency",+ p90: "p90Latency",+ p95: "p95Latency",+ p99: "p99Latency",+} as const;++// FIXME: rename pipe return values++export function mapMetrics(metrics: RouterOutputs["tinybird"]["metrics"]) {+ return metrics.data?.map((metric) => {+ return {+ p50: metric.p50Latency,+ p75: metric.p75Latency,+ p90: metric.p90Latency,+ p95: metric.p95Latency,+ p99: metric.p99Latency,+ total: metric.count,+ uptime: (metric.success + metric.degraded) / metric.count,+ degraded: metric.degraded,+ error: metric.error,+ lastTimestamp: metric.lastTimestamp,+ };+ });+}++export const metricsCards = {+ uptime: {+ label: "UPTIME",+ variant: "success",+ },+ degraded: {+ label: "DEGRADED",+ variant: "warning",+ },+ error: {+ label: "FAILING",+ variant: "destructive",+ },+ total: {+ label: "REQUESTS",+ variant: "default",+ },+ lastTimestamp: {+ label: "LAST CHECKED",+ variant: "ghost",+ },+ p50: {+ label: "P50",+ variant: "default",+ },+ p75: {+ label: "P75",+ variant: "default",+ },+ p90: {+ label: "P90",+ variant: "default",+ },+ p95: {+ label: "P95",+ variant: "default",+ },+ p99: {+ label: "P99",+ variant: "default",+ },+} as const satisfies Record<+ keyof ReturnType<typeof mapMetrics>[number],+ {+ label: string;+ variant: React.ComponentProps<typeof MetricCard>["variant"];+ }+>;++export function mapUptime(status: RouterOutputs["tinybird"]["uptime"]) {+ return status.data+ .map((status) => {+ return {+ ...status,+ ok: status.success,+ interval: formatDateTime(status.interval),+ total: status.success + status.error + status.degraded,+ };+ })+ .reverse();+}++/**+ * Transform Tinybird `metricsRegions` response into RegionMetric[] for UI.+ */+export function mapRegionMetrics(+ timeline: RouterOutputs["tinybird"]["metricsRegions"] | undefined,+ regions: Region[],+): RegionMetric[] {+ if (!timeline)+ return (regions+ .sort((a, b) => a.localeCompare(b))+ .map((region) => ({+ region,+ p50: 0,+ p90: 0,+ p99: 0,+ trend: [] as { latency: number; timestamp: number }[],+ })) ?? []) as RegionMetric[];++ type TimelineRow = (typeof timeline.data)[number];++ const map = new Map<+ Region,+ {+ region: Region;+ p50: number;+ p90: number;+ p99: number;+ trend: { latency: number; timestamp: number }[];+ }+ >();++ (timeline.data as TimelineRow[])+ .filter((row) => regions.includes(row.region as Region))+ .sort((a, b) => a.region.localeCompare(b.region))+ .forEach((row) => {+ const region = row.region as Region;+ const entry = map.get(region) ?? {+ region,+ p50: 0,+ p90: 0,+ p99: 0,+ trend: [],+ };++ entry.trend.push({+ latency: row.p50Latency ?? 0,+ timestamp: row.timestamp,+ });++ entry.p50 += row.p50Latency ?? 0;+ entry.p90 += row.p90Latency ?? 0;+ entry.p99 += row.p99Latency ?? 0;++ map.set(region, entry);+ });++ map.forEach((entry) => {+ const count = entry.trend.length || 1;+ entry.p50 = Math.round(entry.p50 / count);+ entry.p90 = Math.round(entry.p90 / count);+ entry.p99 = Math.round(entry.p99 / count);+ });++ return Array.from(map.values()) as RegionMetric[];+}++export function mapGlobalMetrics(+ metrics: RouterOutputs["tinybird"]["globalMetrics"],+) {+ return metrics.data?.map((metric) => {+ return {+ p50: metric.p50Latency,+ p75: metric.p75Latency,+ p90: metric.p90Latency,+ p95: metric.p95Latency,+ p99: metric.p99Latency,+ total: metric.count,+ monitorId: metric.monitorId,+ };+ });+}++export type MonitorListMetric = {+ title: string;+ key: "degraded" | "error" | "active" | "inactive" | "p95";+ value: number | string | undefined;+ variant: React.ComponentProps<typeof MetricCard>["variant"];+};++export const globalCards = [+ "active",+ "degraded",+ "error",+ "inactive",+ "p95",+] as const;++export const metricsGlobalCards: Record<+ (typeof globalCards)[number],+ {+ title: string;+ key: (typeof globalCards)[number];+ }+> = {+ active: {+ title: "Normal",+ key: "active" as const,+ },+ degraded: {+ title: "Degraded",+ key: "degraded" as const,+ },+ error: {+ title: "Failing",+ key: "error" as const,+ },+ inactive: {+ title: "Inactive",+ key: "inactive" as const,+ },+ p95: {+ title: "Slowest P95",+ key: "p95" as const,+ },+};++/**+ * Build the metric cards data that is shown on the monitors list page.+ */+export function getMonitorListMetrics(+ monitors: RouterOutputs["monitor"]["list"] = [],+ data: {+ p95Latency: number;+ monitorId: string;+ }[] = [],+): readonly MonitorListMetric[] {+ const variantMap: Record<+ (typeof globalCards)[number],+ React.ComponentProps<typeof MetricCard>["variant"]+ > = {+ active: "success",+ degraded: "warning",+ error: "destructive",+ inactive: "default",+ p95: "ghost",+ } as const;++ return globalCards.map((key) => {+ let value: number | string | undefined;+ switch (key) {+ case "active":+ value = monitors.filter(+ (m) => m.status === "active" && m.active,+ ).length;+ break;+ case "degraded":+ value = monitors.filter(+ (m) => m.status === "degraded" && m.active,+ ).length;+ break;+ case "error":+ value = monitors.filter((m) => m.status === "error" && m.active).length;+ break;+ case "inactive":+ value = monitors.filter((m) => m.active === false).length;+ break;+ case "p95":+ const p95 = data.sort((a, b) => b.p95Latency - a.p95Latency)[0]+ ?.p95Latency;+ value = p95 ? formatMilliseconds(p95) : "N/A";+ break;+ }++ return {+ title: metricsGlobalCards[key].title,+ key,+ value,+ variant: variantMap[key],+ } as const;+ }) as readonly MonitorListMetric[];+}++export function mapLatency(+ latency: RouterOutputs["tinybird"]["metricsLatency"],+ percentile: (typeof PERCENTILES)[number],+) {+ return latency.data?.map((metric) => {+ return {+ timestamp: formatDateTime(new Date(metric.timestamp)),+ latency: metric[PERCENTILE_MAP[percentile]],+ };+ });+}++export function mapTimingPhases(+ timingPhases: RouterOutputs["tinybird"]["metricsTimingPhases"],+ percentile: (typeof PERCENTILES)[number],+) {+ return timingPhases.data?.map((metric) => {+ return {+ timestamp: formatDateTime(new Date(metric.timestamp)),+ dns: metric[`${percentile}Dns`],+ ttfb: metric[`${percentile}Ttfb`],+ transfer: metric[`${percentile}Transfer`],+ connect: metric[`${percentile}Connect`],+ tls: metric[`${percentile}Tls`],+ };+ });+}diff --git a/apps/dashboard/src/data/monitor-tags.ts b/apps/dashboard/src/data/monitor-tags.tsnew file mode 100644index 000000000..ad2886162--- /dev/null+++ b/apps/dashboard/src/data/monitor-tags.ts@@ -0,0 +1,34 @@+export const monitorTags = [+ {+ value: "production",+ label: "Production",+ color: "bg-green-500",+ },+ {+ value: "development",+ label: "Development",+ color: "bg-blue-500",+ },+ {+ value: "staging",+ label: "Staging",+ color: "bg-yellow-500",+ },+ {+ value: "testing",+ label: "Testing",+ color: "bg-purple-500",+ },+ {+ value: "api",+ label: "API",+ color: "bg-red-500",+ },+ {+ value: "database",+ label: "Database",+ color: "bg-orange-500",+ },+];++export type MonitorTag = (typeof monitorTags)[number];diff --git a/apps/dashboard/src/data/monitors.client.ts b/apps/dashboard/src/data/monitors.client.tsnew file mode 100644index 000000000..ba2df7797--- /dev/null+++ b/apps/dashboard/src/data/monitors.client.ts@@ -0,0 +1,45 @@+import { Copy, CopyPlus, Pencil, Trash2 } from "lucide-react";++export const actions = [+ {+ id: "edit",+ label: "Edit",+ icon: Pencil,+ variant: "default" as const,+ },+ {+ id: "copy-id",+ label: "Copy ID",+ icon: Copy,+ variant: "default" as const,+ },+ {+ id: "clone",+ label: "Clone",+ icon: CopyPlus,+ variant: "default" as const,+ },+ // {+ // id: "export",+ // label: "Export Code",+ // icon: Code,+ // variant: "default" as const,+ // },+ {+ id: "delete",+ label: "Delete",+ icon: Trash2,+ variant: "destructive" as const,+ },+] as const;++export type MonitorAction = (typeof actions)[number];++export const getActions = (+ props: Partial<Record<MonitorAction["id"], () => Promise<void> | void>>,+): (MonitorAction & { onClick?: () => Promise<void> | void })[] => {+ return actions.map((action) => ({+ ...action,+ onClick: props[action.id as keyof typeof props],+ }));+};diff --git a/apps/dashboard/src/data/monitors.ts b/apps/dashboard/src/data/monitors.tsnew file mode 100644index 000000000..11a76c982--- /dev/null+++ b/apps/dashboard/src/data/monitors.ts@@ -0,0 +1,88 @@+export const monitors = [+ {+ id: 1,+ name: "OpenStatus Marketing",+ description: "Marketing website for OpenStatus",+ public: false,+ active: true,+ status: "Normal" as const,+ url: "https://openstatus.dev",+ tags: ["Production"],+ lastIncident: undefined,+ p50: 110,+ p90: 200,+ p99: 250,+ },+ {+ id: 2,+ name: "OpenStatus API",+ description: "API for OpenStatus",+ public: false,+ active: true,+ status: "Normal" as const,+ url: "https://api.openstatus.dev/v1/ping",+ tags: ["Production", "API"],+ lastIncident: undefined,+ p50: 34,+ p90: 201,+ p99: 530,+ },+ {+ id: 3,+ name: "OpenStatus App",+ description: "Dashboard for OpenStatus",+ public: false,+ active: true,+ status: "Failing" as const,+ url: "https://openstatus.dev/app",+ tags: ["Production"],+ lastIncident: "10 minutes ago",+ p50: 130,+ p90: 200,+ p99: 250,+ },+ {+ id: 4,+ name: "Lightweight OS",+ description: "Lightweight Operations System",+ public: false,+ active: false,+ status: "Inactive" as const,+ url: "https://data-table.openstatus.dev/light",+ tags: ["Development"],+ lastIncident: undefined,+ p50: undefined,+ p90: undefined,+ p99: undefined,+ },+ {+ id: 5,+ name: "Astro Status Page",+ description: "Status page for Astro",+ public: false,+ active: true,+ status: "Degraded" as const,+ url: "https://status.openstat.us",+ tags: ["Development"],+ lastIncident: undefined,+ p50: 130,+ p90: 201,+ p99: 250,+ },+ {+ id: 6,+ name: "Vercel Edge Ping",+ description: "Ping for Vercel Edge",+ public: false,+ active: true,+ status: "Normal" as const,+ url: "https://light.openstatus.dev",+ tags: ["Staging"],+ lastIncident: "15 days ago",+ p50: 30,+ p90: 240,+ p99: 400,+ },+];++export type Monitor = (typeof monitors)[number];diff --git a/apps/dashboard/src/data/notifications.client.ts b/apps/dashboard/src/data/notifications.client.tsnew file mode 100644index 000000000..4ee8fdd69--- /dev/null+++ b/apps/dashboard/src/data/notifications.client.ts@@ -0,0 +1,109 @@+import { FormDiscord } from "@/components/forms/notifications/form-discord";+import { FormEmail } from "@/components/forms/notifications/form-email";+import { FormNtfy } from "@/components/forms/notifications/form-ntfy";+import { FormOpsGenie } from "@/components/forms/notifications/form-opsgenie";+import { FormPagerDuty } from "@/components/forms/notifications/form-pagerduty";+import { FormSlack } from "@/components/forms/notifications/form-slack";+import { FormSms } from "@/components/forms/notifications/form-sms";+import { FormWebhook } from "@/components/forms/notifications/form-webhook";+import { DiscordIcon } from "@/components/icons/discord";+import { OpsGenieIcon } from "@/components/icons/opsgenie";+import { PagerDutyIcon } from "@/components/icons/pagerduty";+import { SlackIcon } from "@/components/icons/slack";+import { sendTestDiscordMessage as sendTestDiscord } from "@openstatus/notification-discord";+import { sendTest as sendTestNtfy } from "@openstatus/notification-ntfy";+import { sendTest as sendTestOpsGenie } from "@openstatus/notification-opsgenie";+import { sendTest as sendTestPagerDuty } from "@openstatus/notification-pagerduty";+import { sendTestSlackMessage as sendTestSlack } from "@openstatus/notification-slack";+import { sendTest as sendTestWebhook } from "@openstatus/notification-webhook";+import {+ BellIcon,+ Mail,+ MessageCircle,+ Pencil,+ Trash2,+ Webhook,+} from "lucide-react";++export const actions = [+ {+ id: "edit",+ label: "Edit",+ icon: Pencil,+ variant: "default" as const,+ },+ {+ id: "delete",+ label: "Delete",+ icon: Trash2,+ variant: "destructive" as const,+ },+] as const;++export type NotifierAction = (typeof actions)[number];++export const getActions = (+ props: Partial<Record<NotifierAction["id"], () => Promise<void> | void>>,+): (NotifierAction & { onClick?: () => Promise<void> | void })[] => {+ return actions.map((action) => ({+ ...action,+ onClick: props[action.id as keyof typeof props],+ }));+};++// List of the notifiers++export const config = {+ slack: {+ icon: SlackIcon,+ label: "Slack",+ form: FormSlack,+ sendTest: sendTestSlack,+ },+ discord: {+ icon: DiscordIcon,+ label: "Discord",+ form: FormDiscord,+ sendTest: sendTestDiscord,+ },+ email: {+ icon: Mail,+ label: "Email",+ form: FormEmail,+ // TODO: add sendTest+ sendTest: undefined,+ },+ sms: {+ icon: MessageCircle,+ label: "SMS",+ form: FormSms,+ // TODO: add sendTest+ sendTest: undefined,+ },+ webhook: {+ icon: Webhook,+ label: "Webhook",+ form: FormWebhook,+ sendTest: sendTestWebhook,+ },+ opsgenie: {+ icon: OpsGenieIcon,+ label: "OpsGenie",+ form: FormOpsGenie,+ sendTest: sendTestOpsGenie,+ },+ pagerduty: {+ icon: PagerDutyIcon,+ label: "PagerDuty",+ form: FormPagerDuty,+ sendTest: sendTestPagerDuty,+ },+ ntfy: {+ icon: BellIcon, // TODO: add svg icon+ label: "Ntfy",+ form: FormNtfy,+ sendTest: sendTestNtfy,+ },+};++export type NotifierProvider = keyof typeof config;diff --git a/apps/dashboard/src/data/notifications.ts b/apps/dashboard/src/data/notifications.tsnew file mode 100644index 000000000..b03d57810--- /dev/null+++ b/apps/dashboard/src/data/notifications.ts@@ -0,0 +1,10 @@+export const notifications = [+ {+ id: 1,+ name: "Email",+ provider: "email",+ value: "[email protected]",+ },+];++export type Notification = (typeof notifications)[number];diff --git a/apps/dashboard/src/data/plans.ts b/apps/dashboard/src/data/plans.tsnew file mode 100644index 000000000..94626857b--- /dev/null+++ b/apps/dashboard/src/data/plans.ts@@ -0,0 +1,115 @@+import { allPlans } from "@openstatus/db/src/schema/plan/config";+import type { Limits } from "@openstatus/db/src/schema/plan/schema";+import type React from "react";++export const plans = allPlans;++export const config: Record<+ string,+ {+ label: string;+ features: {+ value: keyof Limits;+ label: string;+ description?: React.ReactNode; // tooltip informations+ badge?: string;+ monthly?: boolean;+ }[];+ }+> = {+ monitors: {+ label: "Monitors",+ features: [+ {+ value: "periodicity",+ label: "Frequency",+ },+ {+ value: "monitors",+ label: "Number of monitors",+ },+ {+ value: "multi-region",+ label: "Multi-region monitoring",+ },+ { value: "regions", label: "Total regions" },+ { value: "max-regions", label: "Regions per monitor" },+ { value: "data-retention", label: "Data retention" },+ { value: "response-logs", label: "Response Logs" },+ { value: "otel", label: "OTel Exporter" },+ {+ value: "synthetic-checks",+ label: "Synthetic API Checks",+ monthly: true,+ },+ ],+ },+ "status-pages": {+ label: "Status Pages",+ features: [+ {+ value: "status-pages",+ label: "Number of status pages",+ },+ {+ value: "maintenance",+ label: "Maintenance status",+ },+ {+ value: "monitor-values-visibility",+ label: "Toggle numbers visibility",+ },+ {+ value: "status-subscribers",+ label: "Subscribers",+ },+ {+ value: "custom-domain",+ label: "Custom domain",+ },+ {+ value: "password-protection",+ label: "Password-protected",+ },+ ],+ },+ notifications: {+ label: "Notifications",+ features: [+ {+ value: "notifications",+ label: "Slack, Discord, Email, Webhook, ntfy.sh",+ },+ {+ value: "sms",+ label: "SMS",+ },+ {+ value: "pagerduty",+ label: "PagerDuty",+ },+ {+ value: "opsgenie",+ label: "OpsGenie",+ },+ {+ value: "notification-channels",+ label: "Number of notification channels",+ },+ ],+ },+ collaboration: {+ label: "Collaboration",+ features: [+ {+ value: "members",+ label: "Team members",+ },+ {+ value: "audit-log",+ label: "Audit log",+ badge: "Planned",+ },+ ],+ },+};diff --git a/apps/dashboard/src/data/region-metrics.client.ts b/apps/dashboard/src/data/region-metrics.client.tsnew file mode 100644index 000000000..5d803beed--- /dev/null+++ b/apps/dashboard/src/data/region-metrics.client.ts@@ -0,0 +1,27 @@+import { Filter } from "lucide-react";++export const actions = [+ {+ id: "filter",+ label: "Filter",+ icon: Filter,+ variant: "default" as const,+ },+ // {+ // id: "trigger",+ // label: "Trigger",+ // icon: Zap,+ // variant: "default" as const,+ // },+] as const;++export type RegionMetricAction = (typeof actions)[number];++export const getActions = (+ props: Partial<Record<RegionMetricAction["id"], () => Promise<void> | void>>,+): (RegionMetricAction & { onClick?: () => Promise<void> | void })[] => {+ return actions.map((action) => ({+ ...action,+ onClick: props[action.id as keyof typeof props],+ }));+};diff --git a/apps/dashboard/src/data/region-metrics.ts b/apps/dashboard/src/data/region-metrics.tsnew file mode 100644index 000000000..babe7139e--- /dev/null+++ b/apps/dashboard/src/data/region-metrics.ts@@ -0,0 +1,27 @@+import type { Region } from "./regions";++export const regionMetrics = [+ {+ region: "ams" as const satisfies Region,+ p50: 100,+ p90: 150,+ p99: 200,+ trend: [{ latency: 100, timestamp: 1716729600 }],+ },+ {+ region: "fra" as const satisfies Region,+ p50: 110,+ p90: 155,+ p99: 220,+ trend: [{ latency: 100, timestamp: 1716729600 }],+ },+ {+ region: "gru" as const satisfies Region,+ p50: 120,+ p90: 160,+ p99: 230,+ trend: [{ latency: 100, timestamp: 1716729600 }],+ },+];++export type RegionMetric = (typeof regionMetrics)[number];diff --git a/apps/dashboard/src/data/regions.ts b/apps/dashboard/src/data/regions.tsnew file mode 100644index 000000000..362e0f163--- /dev/null+++ b/apps/dashboard/src/data/regions.ts@@ -0,0 +1,226 @@+export const regions = [+ {+ code: "ams",+ location: "Amsterdam, Netherlands",+ flag: "🇳🇱",+ continent: "Europe",+ },+ {+ code: "arn",+ location: "Stockholm, Sweden",+ flag: "🇸🇪",+ continent: "Europe",+ },+ {+ code: "atl",+ location: "Atlanta, Georgia, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "bog",+ location: "Bogotá, Colombia",+ flag: "🇨🇴",+ continent: "South America",+ },+ {+ code: "bom",+ location: "Mumbai, India",+ flag: "🇮🇳",+ continent: "Asia",+ },+ {+ code: "bos",+ location: "Boston, Massachusetts, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "cdg",+ location: "Paris, France",+ flag: "🇫🇷",+ continent: "Europe",+ },+ {+ code: "den",+ location: "Denver, Colorado, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "dfw",+ location: "Dallas, Texas, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "ewr",+ location: "Secaucus, New Jersey, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "eze",+ location: "Ezeiza, Argentina",+ flag: "🇦🇷",+ continent: "South America",+ },+ {+ code: "fra",+ location: "Frankfurt, Germany",+ flag: "🇩🇪",+ continent: "Europe",+ },+ {+ code: "gdl",+ location: "Guadalajara, Mexico",+ flag: "🇲🇽",+ continent: "North America",+ },+ {+ code: "gig",+ location: "Rio de Janeiro, Brazil",+ flag: "🇧🇷",+ continent: "South America",+ },+ {+ code: "gru",+ location: "Sao Paulo, Brazil",+ flag: "🇧🇷",+ continent: "South America",+ },+ {+ code: "hkg",+ location: "Hong Kong, Hong Kong",+ flag: "🇭🇰",+ continent: "Asia",+ },+ {+ code: "iad",+ location: "Ashburn, Virginia, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "jnb",+ location: "Johannesburg, South Africa",+ flag: "🇿🇦",+ continent: "Africa",+ },+ {+ code: "lax",+ location: "Los Angeles, California, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "lhr",+ location: "London, United Kingdom",+ flag: "🇬🇧",+ continent: "Europe",+ },+ {+ code: "mad",+ location: "Madrid, Spain",+ flag: "🇪🇸",+ continent: "Europe",+ },+ {+ code: "mia",+ location: "Miami, Florida, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "nrt",+ location: "Tokyo, Japan",+ flag: "🇯🇵",+ continent: "Asia",+ },+ {+ code: "ord",+ location: "Chicago, Illinois, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "otp",+ location: "Bucharest, Romania",+ flag: "🇷🇴",+ continent: "Europe",+ },+ {+ code: "phx",+ location: "Phoenix, Arizona, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "qro",+ location: "Querétaro, Mexico",+ flag: "🇲🇽",+ continent: "North America",+ },+ {+ code: "scl",+ location: "Santiago, Chile",+ flag: "🇨🇱",+ continent: "South America",+ },+ {+ code: "sjc",+ location: "San Jose, California, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "sea",+ location: "Seattle, Washington, USA",+ flag: "🇺🇸",+ continent: "North America",+ },+ {+ code: "sin",+ location: "Singapore, Singapore",+ flag: "🇸🇬",+ continent: "Asia",+ },+ {+ code: "syd",+ location: "Sydney, Australia",+ flag: "🇦🇺",+ continent: "Oceania",+ },+ {+ code: "waw",+ location: "Warsaw, Poland",+ flag: "🇵🇱",+ continent: "Europe",+ },+ {+ code: "yul",+ location: "Montreal, Canada",+ flag: "🇨🇦",+ continent: "North America",+ },+ {+ code: "yyz",+ location: "Toronto, Canada",+ flag: "🇨🇦",+ continent: "North America",+ },+] as const;++export type Region = (typeof regions)[number]["code"];++export const groupedRegions = regions.reduce(+ (acc, region) => {+ const continent = region.continent;+ if (!acc[continent]) {+ acc[continent] = [];+ }+ acc[continent].push(region.code);+ return acc;+ },+ {} as Record<string, Region[]>,+);diff --git a/apps/dashboard/src/data/response-logs.ts b/apps/dashboard/src/data/response-logs.tsnew file mode 100644index 000000000..f655a788c--- /dev/null+++ b/apps/dashboard/src/data/response-logs.ts@@ -0,0 +1,41 @@+import type { RouterOutputs } from "@openstatus/api";+import { flyRegions } from "@openstatus/db/src/schema/constants";+import { startOfDay } from "date-fns";++type ResponseLog = RouterOutputs["tinybird"]["list"]["data"][number];++const today = startOfDay(new Date());++export const exampleLogs: ResponseLog[] = Array.from({ length: 10 }).map(+ (_, i) => ({+ id: i.toString(),+ type: "http",+ url: "https://api.openstatus.dev",+ method: "GET",+ statusCode: 200,+ requestStatus: "success" as const,+ latency: 150,+ timing: {+ dns: 10,+ connect: 20,+ tls: 30,+ ttfb: 40,+ transfer: 50,+ },+ assertions: [],+ region: flyRegions[i],+ error: false,+ timestamp: today.getTime() + i * 1000 * 60,+ headers: {+ "Cache-Control":+ "private, no-cache, no-store, max-age=0, must-revalidate",+ "Content-Type": "text/html; charset=utf-8",+ Date: "Sun, 28 Jan 2024 08:50:13 GMT",+ Server: "Vercel",+ },+ workspaceId: "1",+ monitorId: "1",+ cronTimestamp: today.getTime() + i * 1000 * 60,+ trigger: "cron" as const satisfies "cron" | "api",+ }),+);diff --git a/apps/dashboard/src/data/status-codes.ts b/apps/dashboard/src/data/status-codes.tsnew file mode 100644index 000000000..55d8dcc4e--- /dev/null+++ b/apps/dashboard/src/data/status-codes.ts@@ -0,0 +1,41 @@+export const statusCodes = [+ {+ code: 200 as const,+ bg: "bg-success",+ text: "text-success",+ name: "OK",+ },+ {+ code: 500 as const,+ bg: "bg-destructive",+ text: "text-destructive",+ name: "Internal Server Error",+ },+];++export type StatusCode = (typeof statusCodes)[number]["code"];++export const getStatusCodeVariant = (code?: number | null) => {+ if (!code) return "muted";+ if (code.toString().startsWith("2")) return "success";+ if (code.toString().startsWith("3")) return "info";+ if (code.toString().startsWith("4")) return "warning";+ if (code.toString().startsWith("5")) return "destructive";+ return "muted";+};++export const bgColors = {+ success: "bg-success",+ info: "bg-info",+ warning: "bg-warning",+ destructive: "bg-destructive",+ muted: "bg-muted",+};++export const textColors = {+ success: "text-success",+ info: "text-info",+ warning: "text-warning",+ destructive: "text-destructive",+ muted: "text-muted-foreground",+};diff --git a/apps/dashboard/src/data/status-pages.client.ts b/apps/dashboard/src/data/status-pages.client.tsnew file mode 100644index 000000000..59f4e9c7f--- /dev/null+++ b/apps/dashboard/src/data/status-pages.client.ts@@ -0,0 +1,39 @@+import { Copy, Pencil, Trash2 } from "lucide-react";++export const actions = [+ {+ id: "edit",+ label: "Edit",+ icon: Pencil,+ variant: "default" as const,+ },+ {+ id: "copy-id",+ label: "Copy ID",+ icon: Copy,+ variant: "default" as const,+ },+ // {+ // id: "create-badge",+ // label: "Create Badge",+ // icon: Tag,+ // variant: "default" as const,+ // },+ {+ id: "delete",+ label: "Delete",+ icon: Trash2,+ variant: "destructive" as const,+ },+] as const;++export type StatusPageAction = (typeof actions)[number];++export const getActions = (+ props: Partial<Record<StatusPageAction["id"], () => Promise<void> | void>>,+): (StatusPageAction & { onClick?: () => Promise<void> | void })[] => {+ return actions.map((action) => ({+ ...action,+ onClick: props[action.id as keyof typeof props],+ }));+};diff --git a/apps/dashboard/src/data/status-pages.ts b/apps/dashboard/src/data/status-pages.tsnew file mode 100644index 000000000..ef5a7bd1f--- /dev/null+++ b/apps/dashboard/src/data/status-pages.ts@@ -0,0 +1,17 @@+export const statusPages = [+ {+ id: 1,+ name: "OpenStatus Status",+ description: "See our uptime history and status reports.",+ slug: "status",+ favicon: "https://openstatus.dev/favicon.ico",+ domain: "status.openstatus.dev",+ protected: true,+ showValues: false,+ // NOTE: the worst status of a report+ status: "degraded" as const,+ monitors: [],+ },+];++export type StatusPage = (typeof statusPages)[number];diff --git a/apps/dashboard/src/data/status-report-updates.client.ts b/apps/dashboard/src/data/status-report-updates.client.tsnew file mode 100644index 000000000..d6da1b542--- /dev/null+++ b/apps/dashboard/src/data/status-report-updates.client.ts@@ -0,0 +1,41 @@+import type { StatusReportStatus } from "@openstatus/db/src/schema";+import { Pencil, Trash2 } from "lucide-react";++export const actions = [+ {+ id: "edit",+ label: "Edit",+ icon: Pencil,+ variant: "default" as const,+ },+ {+ id: "delete",+ label: "Delete",+ icon: Trash2,+ variant: "destructive" as const,+ },+] as const;++export type StatusReportUpdateAction = (typeof actions)[number];++export const getActions = (+ props: Partial<+ Record<StatusReportUpdateAction["id"], () => Promise<void> | void>+ >,+): (StatusReportUpdateAction & { onClick?: () => Promise<void> | void })[] => {+ return actions.map((action) => ({+ ...action,+ onClick: props[action.id as keyof typeof props],+ }));+};++export const colors = {+ resolved:+ "text-success/80 data-[state=selected]:bg-success/10 data-[state=selected]:text-success",+ investigating:+ "text-destructive/80 data-[state=selected]:bg-destructive/10 data-[state=selected]:text-destructive",+ monitoring:+ "text-info/80 data-[state=selected]:bg-info/10 data-[state=selected]:text-info",+ identified:+ "text-warning/80 data-[state=selected]:bg-warning/10 data-[state=selected]:text-warning",+} as const satisfies Record<StatusReportStatus, string>;diff --git a/apps/dashboard/src/data/status-reports.client.ts b/apps/dashboard/src/data/status-reports.client.tsnew file mode 100644index 000000000..6aab79048--- /dev/null+++ b/apps/dashboard/src/data/status-reports.client.ts@@ -0,0 +1,41 @@+import { Eye, Pencil, Plus, Trash2 } from "lucide-react";++export const actions = [+ {+ id: "edit",+ label: "Edit",+ icon: Pencil,+ variant: "default" as const,+ },+ {+ id: "create-update",+ label: "Create Update",+ icon: Plus,+ variant: "default" as const,+ },+ {+ id: "view-report",+ label: "View Report",+ icon: Eye,+ variant: "default" as const,+ },+ {+ id: "delete",+ label: "Delete",+ icon: Trash2,+ variant: "destructive" as const,+ },+] as const;++export type StatusReportUpdateAction = (typeof actions)[number];++export const getActions = (+ props: Partial<+ Record<StatusReportUpdateAction["id"], () => Promise<void> | void>+ >,+): (StatusReportUpdateAction & { onClick?: () => Promise<void> | void })[] => {+ return actions.map((action) => ({+ ...action,+ onClick: props[action.id as keyof typeof props],+ }));+};diff --git a/apps/dashboard/src/data/status-reports.ts b/apps/dashboard/src/data/status-reports.tsnew file mode 100644index 000000000..f4575f107--- /dev/null+++ b/apps/dashboard/src/data/status-reports.ts@@ -0,0 +1,60 @@+export const statusReports = [+ {+ id: 1,+ name: "Downtime API",+ startedAt: new Date("2025-06-07 12:00:00"),+ updatedAt: new Date("2025-06-07 12:30:00"),+ status: "operational",+ updates: [+ {+ id: 2,+ status: "operational" as const,+ message:+ "Everything is under control, we continue to monitor the situation.",+ date: new Date("2025-06-07 12:30:00"),+ updatedAt: new Date("2025-06-07 12:30:00"),+ monitors: [1],+ },+ {+ id: 1,+ status: "investigating" as const,+ message:+ "Our hosting provider is having an increase of 400 errors. We are aware of the dependency and will be working on a solution to reduce the risk.",+ date: new Date("2025-06-07 12:00:00"),+ updatedAt: new Date("2025-06-07 12:00:00"),+ monitors: [1],+ },+ ],+ affected: ["OpenStatus API"],+ },+ {+ id: 2,+ name: "Downtime API",+ startedAt: new Date("2025-06-04 12:10:00"),+ updatedAt: new Date("2025-06-04 12:30:00"),+ status: "operational",+ updates: [+ {+ id: 2,+ status: "operational" as const,+ message:+ "Everything is under control, we continue to monitor the situation.",+ date: new Date("2025-06-04 12:30:00"),+ updatedAt: new Date("2025-06-04 12:30:00"),+ monitors: [1],+ },+ {+ id: 1,+ status: "investigating" as const,+ message:+ "Our hosting provider is having an increase of 400 errors. We are working on a solution to reduce the risk.",+ date: new Date("2025-06-04 12:00:00"),+ updatedAt: new Date("2025-06-04 12:00:00"),+ monitors: [1],+ },+ ],+ affected: ["OpenStatus API"],+ },+];++export type StatusReport = (typeof statusReports)[number];diff --git a/apps/dashboard/src/data/subscribers.ts b/apps/dashboard/src/data/subscribers.tsnew file mode 100644index 000000000..40c5584c1--- /dev/null+++ b/apps/dashboard/src/data/subscribers.ts@@ -0,0 +1,16 @@+export const subscribers = [+ {+ id: "1",+ email: "[email protected]",+ createdAt: "2025-05-20",+ validatedAt: "2025-05-20",+ },+ {+ id: "2",+ email: "[email protected]",+ createdAt: "2025-05-20",+ validatedAt: "2025-05-20",+ },+];++export type Subscriber = (typeof subscribers)[number];diff --git a/apps/dashboard/src/hooks/use-cookie-state.ts b/apps/dashboard/src/hooks/use-cookie-state.tsnew file mode 100644index 000000000..926bf8782--- /dev/null+++ b/apps/dashboard/src/hooks/use-cookie-state.ts@@ -0,0 +1,41 @@+"use client";++import { useCallback, useEffect, useState } from "react";++export function useCookieState<T extends string>(+ name: string,+ defaultValue?: T,+ config?: { expires?: number },+) {+ const [state, setState] = useState<T | undefined>();++ const handleChange = useCallback(+ (value: T) => {+ if (document) {+ const date = new Date();+ date.setTime(date.getTime() + 365 * 24 * 60 * 60 * 1000); // in one year+ document.cookie = `${name}=${value}; path=/; expires=${+ config?.expires ?? date.toUTCString()+ }`;+ setState(value);+ }+ },+ [name, config],+ );++ useEffect(() => {+ if (document) {+ const cookie = document.cookie+ .split("; ")+ .find((row) => row.startsWith(name));+ if (!cookie) {+ setState(defaultValue);+ return;+ }+ const value = cookie.split("=")[1] as T;+ setState(value);+ }+ }, [defaultValue, name]);++ return [state, handleChange] as const;+}diff --git a/apps/dashboard/src/hooks/use-copy-to-clipboard.ts b/apps/dashboard/src/hooks/use-copy-to-clipboard.tsnew file mode 100644index 000000000..656ceefc2--- /dev/null+++ b/apps/dashboard/src/hooks/use-copy-to-clipboard.ts@@ -0,0 +1,52 @@+"use client";++import { useCallback, useState } from "react";+import { toast } from "sonner";++export function useCopyToClipboard() {+ const [text, setText] = useState<string | null>(null);++ const copy = useCallback(+ async (+ text: string,+ {+ timeout = 3000,+ withToast = true,+ successMessage = "Copied to clipboard",+ }: {+ timeout?: number;+ withToast?: boolean;+ successMessage?: string;+ },+ ) => {+ if (!navigator?.clipboard) {+ console.warn("Clipboard not supported");+ return false;+ }++ try {+ await navigator.clipboard.writeText(text);+ setText(text);++ if (timeout) {+ setTimeout(() => {+ setText(null);+ }, timeout);+ }++ if (withToast) {+ toast.success(successMessage);+ }++ return true;+ } catch (error) {+ console.warn("Copy failed", error);+ setText(null);+ return false;+ }+ },+ [],+ );++ return { text, copy, isCopied: text !== null };+}diff --git a/apps/dashboard/src/hooks/use-debounce.ts b/apps/dashboard/src/hooks/use-debounce.tsnew file mode 100644index 000000000..3a34896de--- /dev/null+++ b/apps/dashboard/src/hooks/use-debounce.ts@@ -0,0 +1,16 @@+import * as React from "react";++// consider using https://github.com/xnimorz/use-debounce+export function useDebounce<T>(value: T, delay?: number): T {+ const [debouncedValue, setDebouncedValue] = React.useState<T>(value);++ React.useEffect(() => {+ const timer = setTimeout(() => setDebouncedValue(value), delay ?? 500);++ return () => {+ clearTimeout(timer);+ };+ }, [value, delay]);++ return debouncedValue;+}diff --git a/apps/dashboard/src/hooks/use-media-query.ts b/apps/dashboard/src/hooks/use-media-query.tsnew file mode 100644index 000000000..7ac3915ab--- /dev/null+++ b/apps/dashboard/src/hooks/use-media-query.ts@@ -0,0 +1,19 @@+import * as React from "react";++export function useMediaQuery(query: string) {+ const [value, setValue] = React.useState(false);++ React.useEffect(() => {+ function onChange(event: MediaQueryListEvent) {+ setValue(event.matches);+ }++ const result = matchMedia(query);+ result.addEventListener("change", onChange);+ setValue(result.matches);++ return () => result.removeEventListener("change", onChange);+ }, [query]);++ return value;+}diff --git a/apps/dashboard/src/hooks/use-mobile.ts b/apps/dashboard/src/hooks/use-mobile.tsnew file mode 100644index 000000000..a93d58393--- /dev/null+++ b/apps/dashboard/src/hooks/use-mobile.ts@@ -0,0 +1,21 @@+import * as React from "react";++const MOBILE_BREAKPOINT = 768;++export function useIsMobile() {+ const [isMobile, setIsMobile] = React.useState<boolean | undefined>(+ undefined,+ );++ React.useEffect(() => {+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);+ const onChange = () => {+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);+ };+ mql.addEventListener("change", onChange);+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);+ return () => mql.removeEventListener("change", onChange);+ }, []);++ return !!isMobile;+}diff --git a/apps/dashboard/src/hooks/use-table.ts b/apps/dashboard/src/hooks/use-table.tsnew file mode 100644index 000000000..a91b2030a--- /dev/null+++ b/apps/dashboard/src/hooks/use-table.ts@@ -0,0 +1,21 @@+import * as React from "react";++const TABLET_BREAKPOINT = 1024;++export function useIsTablet() {+ const [isTablet, setIsTablet] = React.useState<boolean | undefined>(+ undefined,+ );++ React.useEffect(() => {+ const mql = window.matchMedia(`(max-width: ${TABLET_BREAKPOINT - 1}px)`);+ const onChange = () => {+ setIsTablet(window.innerWidth < TABLET_BREAKPOINT);+ };+ mql.addEventListener("change", onChange);+ setIsTablet(window.innerWidth < TABLET_BREAKPOINT);+ return () => mql.removeEventListener("change", onChange);+ }, []);++ return !!isTablet;+}diff --git a/apps/dashboard/src/instrumentation.ts b/apps/dashboard/src/instrumentation.tsnew file mode 100644index 000000000..ecb65282b--- /dev/null+++ b/apps/dashboard/src/instrumentation.ts@@ -0,0 +1,13 @@+import * as Sentry from "@sentry/nextjs";++export async function register() {+ if (process.env.NEXT_RUNTIME === "nodejs") {+ await import("../sentry.server.config");+ }++ if (process.env.NEXT_RUNTIME === "edge") {+ await import("../sentry.edge.config");+ }+}++export const onRequestError = Sentry.captureRequestError;diff --git a/apps/dashboard/src/lib/auth/adapter.ts b/apps/dashboard/src/lib/auth/adapter.tsnew file mode 100644index 000000000..803c4cd94--- /dev/null+++ b/apps/dashboard/src/lib/auth/adapter.ts@@ -0,0 +1,30 @@+import { DrizzleAdapter } from "@auth/drizzle-adapter";+import type { Adapter } from "next-auth/adapters";++import { db } from "@openstatus/db";+import {+ account,+ session,+ user,+ verificationToken,+} from "@openstatus/db/src/schema";++import { createUser, getUser } from "./helpers";++export const adapter: Adapter = {+ // @ts-expect-error some issues with types+ ...DrizzleAdapter(db, {+ usersTable: user,+ accountsTable: account,+ sessionsTable: session,+ verificationTokensTable: verificationToken,+ }),+ // @ts-expect-error some issues with types+ createUser: async (data) => {+ return await createUser(data);+ },+ // @ts-expect-error some issues with types+ getUser: async (id) => {+ return await getUser(id);+ },+};diff --git a/apps/dashboard/src/lib/auth/helpers.ts b/apps/dashboard/src/lib/auth/helpers.tsnew file mode 100644index 000000000..cef2e12cb--- /dev/null+++ b/apps/dashboard/src/lib/auth/helpers.ts@@ -0,0 +1,73 @@+import type { AdapterUser } from "next-auth/adapters";+import * as randomWordSlugs from "random-word-slugs";++import { db, eq } from "@openstatus/db";+import { user, usersToWorkspaces, workspace } from "@openstatus/db/src/schema";++export async function createUser(data: AdapterUser) {+ const newUser = await db+ .insert(user)+ .values({+ email: data.email,+ photoUrl: data.image,+ name: data.name,+ firstName: data.firstName,+ lastName: data.lastName,+ })+ .returning({+ id: user.id,+ email: user.email,+ emailVerified: user.emailVerified,+ })+ .get();++ let slug: string | undefined = undefined;++ while (!slug) {+ slug = randomWordSlugs.generateSlug(2);+ const slugAlreadyExists = await db+ .select()+ .from(workspace)+ .where(eq(workspace.slug, slug))+ .get();++ if (slugAlreadyExists) {+ console.warn(`slug already exists: '${slug} - recreating new one'`);+ slug = undefined;+ }+ }++ const newWorkspace = await db+ .insert(workspace)+ .values({ slug, name: "" })+ .returning({ id: workspace.id })+ .get();++ await db+ .insert(usersToWorkspaces)+ .values({+ userId: newUser.id,+ workspaceId: newWorkspace.id,+ role: "owner",+ })+ .returning()+ .get();++ return newUser;+}++export async function getUser(id: string) {+ const _user = await db+ .select({+ id: user.id,+ email: user.email,+ firstName: user.firstName,+ lastName: user.lastName,+ photoUrl: user.photoUrl,+ })+ .from(user)+ .where(eq(user.id, Number(id)))+ .get();++ return _user || null;+}diff --git a/apps/dashboard/src/lib/auth/index.ts b/apps/dashboard/src/lib/auth/index.tsnew file mode 100644index 000000000..f76747b7c--- /dev/null+++ b/apps/dashboard/src/lib/auth/index.ts@@ -0,0 +1,124 @@+import type { DefaultSession } from "next-auth";+import NextAuth from "next-auth";++import { Events, setupAnalytics } from "@openstatus/analytics";+import { db, eq } from "@openstatus/db";+import { user } from "@openstatus/db/src/schema";++import { WelcomeEmail, sendEmail } from "@openstatus/emails";+import { headers } from "next/headers";+import { adapter } from "./adapter";+import { GitHubProvider, GoogleProvider, ResendProvider } from "./providers";++export type { DefaultSession };++export const { handlers, signIn, signOut, auth } = NextAuth({+ // debug: true,+ adapter,+ providers:+ process.env.NODE_ENV === "development"+ ? [GitHubProvider, GoogleProvider, ResendProvider]+ : [GitHubProvider, GoogleProvider],+ callbacks: {+ async signIn(params) {+ // We keep updating the user info when we loggin in++ if (params.account?.provider === "google") {+ if (!params.profile) return true;+ if (Number.isNaN(Number(params.user.id))) return true;++ await db+ .update(user)+ .set({+ firstName: params.profile.given_name,+ lastName: params.profile.family_name || "",+ photoUrl: params.profile.picture,+ // keep the name in sync+ name: `${params.profile.given_name} ${+ params.profile.family_name || ""+ }`.trim(),+ updatedAt: new Date(),+ })+ .where(eq(user.id, Number(params.user.id)))+ .run();+ }+ if (params.account?.provider === "github") {+ if (!params.profile) return true;+ if (Number.isNaN(Number(params.user.id))) return true;++ await db+ .update(user)+ .set({+ name: params.profile.name,+ photoUrl: String(params.profile.avatar_url),+ updatedAt: new Date(),+ })+ .where(eq(user.id, Number(params.user.id)))+ .run();+ }++ // REMINDER: only used in dev mode+ if (params.account?.provider === "resend") {+ if (Number.isNaN(Number(params.user.id))) return true;+ await db+ .update(user)+ .set({ updatedAt: new Date() })+ .where(eq(user.id, Number(params.user.id)))+ .run();+ }++ return true;+ },+ async session(params) {+ return params.session;+ },+ },+ events: {+ // That should probably done in the callback method instead+ async createUser(params) {+ if (!params.user.id || !params.user.email) {+ throw new Error("User id & email is required");+ }++ // this means the user has already been created with clerk+ if (params.user.tenantId) return;++ await sendEmail({+ from: "Thibault from OpenStatus <[email protected]>",+ subject: "Welcome to OpenStatus.",+ to: [params.user.email],+ react: WelcomeEmail(),+ });++ const analytics = await setupAnalytics({+ userId: `usr_${params.user.id}`,+ email: params.user.email,+ location: (await headers()).get("x-forwarded-for") ?? undefined,+ userAgent: (await headers()).get("user-agent") ?? undefined,+ });++ await analytics.track(Events.CreateUser);+ },++ async signIn(params) {+ if (params.isNewUser) return;+ if (!params.user.id || !params.user.email) return;++ const analytics = await setupAnalytics({+ userId: `usr_${params.user.id}`,+ email: params.user.email,+ location: (await headers()).get("x-forwarded-for") ?? undefined,+ userAgent: (await headers()).get("user-agent") ?? undefined,+ });++ await analytics.track(Events.SignInUser);+ },+ },+ pages: {+ signIn: "/login",+ newUser: "/onboarding",+ },+ // basePath: "/api/auth", // default is `/api/auth`+ // secret: process.env.AUTH_SECRET, // default is `AUTH_SECRET`+ debug: process.env.NODE_ENV === "development",+});diff --git a/apps/dashboard/src/lib/auth/providers.ts b/apps/dashboard/src/lib/auth/providers.tsnew file mode 100644index 000000000..c990eaf60--- /dev/null+++ b/apps/dashboard/src/lib/auth/providers.ts@@ -0,0 +1,28 @@+import GitHub from "next-auth/providers/github";+import Google from "next-auth/providers/google";+import Resend from "next-auth/providers/resend";++export const GitHubProvider = GitHub({+ allowDangerousEmailAccountLinking: true,+});++export const GoogleProvider = Google({+ allowDangerousEmailAccountLinking: true,+ authorization: {+ params: {+ // See https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest+ prompt: "select_account",+ // scope:+ // "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email",+ },+ },+});++export const ResendProvider = Resend({+ apiKey: undefined, // REMINDER: keep undefined to avoid sending emails+ async sendVerificationRequest(params) {+ console.log("");+ console.log(`>>> Magic Link: ${params.url}`);+ console.log("");+ },+});diff --git a/apps/dashboard/src/lib/composition.ts b/apps/dashboard/src/lib/composition.tsnew file mode 100644index 000000000..b65a7008a--- /dev/null+++ b/apps/dashboard/src/lib/composition.ts@@ -0,0 +1,87 @@+import * as React from "react";++/**+ * A utility to compose multiple event handlers into a single event handler.+ * Run originalEventHandler first, then ourEventHandler unless prevented.+ */+function composeEventHandlers<E>(+ originalEventHandler?: (event: E) => void,+ ourEventHandler?: (event: E) => void,+ { checkForDefaultPrevented = true } = {},+) {+ return function handleEvent(event: E) {+ originalEventHandler?.(event);++ if (+ checkForDefaultPrevented === false ||+ !(event as unknown as Event).defaultPrevented+ ) {+ return ourEventHandler?.(event);+ }+ };+}++/**+ * @see https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/compose-refs.tsx+ */++type PossibleRef<T> = React.Ref<T> | undefined;++/**+ * Set a given ref to a given value.+ * This utility takes care of different types of refs: callback refs and RefObject(s).+ */+function setRef<T>(ref: PossibleRef<T>, value: T) {+ if (typeof ref === "function") {+ return ref(value);+ }++ if (ref !== null && ref !== undefined) {+ ref.current = value;+ }+}++/**+ * A utility to compose multiple refs together.+ * Accepts callback refs and RefObject(s).+ */+function composeRefs<T>(...refs: PossibleRef<T>[]): React.RefCallback<T> {+ return (node) => {+ let hasCleanup = false;+ const cleanups = refs.map((ref) => {+ const cleanup = setRef(ref, node);+ if (!hasCleanup && typeof cleanup === "function") {+ hasCleanup = true;+ }+ return cleanup;+ });++ // React <19 will log an error to the console if a callback ref returns a+ // value. We don't use ref cleanups internally so this will only happen if a+ // user's ref callback returns a value, which we only expect if they are+ // using the cleanup functionality added in React 19.+ if (hasCleanup) {+ return () => {+ for (let i = 0; i < cleanups.length; i++) {+ const cleanup = cleanups[i];+ if (typeof cleanup === "function") {+ cleanup();+ } else {+ setRef(refs[i], null);+ }+ }+ };+ }+ };+}++/**+ * A custom hook that composes multiple refs.+ * Accepts callback refs and RefObject(s).+ */+function useComposedRefs<T>(...refs: PossibleRef<T>[]): React.RefCallback<T> {+ // eslint-disable-next-line react-hooks/exhaustive-deps+ return React.useCallback(composeRefs(...refs), refs);+}++export { composeEventHandlers, composeRefs, useComposedRefs };diff --git a/apps/dashboard/src/lib/domains.ts b/apps/dashboard/src/lib/domains.tsnew file mode 100644index 000000000..7a408dc10--- /dev/null+++ b/apps/dashboard/src/lib/domains.ts@@ -0,0 +1,21 @@+export const getSubdomain = (name: string, apexName: string) => {+ if (name === apexName) return null;+ return name.slice(0, name.length - apexName.length - 1);+};++export const getApexDomain = (url: string) => {+ let domain: string;+ try {+ domain = new URL(url).hostname;+ } catch (e) {+ console.error(e);+ return "";+ }+ const parts = domain.split(".");+ if (parts.length > 2) {+ // if it's a subdomain (e.g. dub.vercel.app), return the last 2 parts+ return parts.slice(-2).join(".");+ }+ // if it's a normal domain (e.g. dub.sh), we return the domain+ return domain;+};diff --git a/apps/dashboard/src/lib/formatter.ts b/apps/dashboard/src/lib/formatter.tsnew file mode 100644index 000000000..ebc5cd6e0--- /dev/null+++ b/apps/dashboard/src/lib/formatter.ts@@ -0,0 +1,94 @@+import { endOfDay, isSameDay, startOfDay } from "date-fns";++export function formatMilliseconds(ms: number) {+ if (ms > 1000) {+ return `${Intl.NumberFormat("en-US", {+ style: "unit",+ unit: "second",+ maximumFractionDigits: 2,+ }).format(ms / 1000)}`;+ }++ return `${Intl.NumberFormat("en-US", {+ style: "unit",+ unit: "millisecond",+ }).format(ms)}`;+}++export function formatPercentage(value: number) {+ if (Number.isNaN(value)) return "100%";+ return `${Intl.NumberFormat("en-US", {+ style: "percent",+ minimumFractionDigits: 2,+ maximumFractionDigits: 2,+ }).format(value)}`;+}++export function formatNumber(value: number) {+ return `${Intl.NumberFormat("en-US").format(value)}`;+}++// TODO: think of supporting custom formats++export function formatDate(date: Date) {+ return date.toLocaleDateString("en-US", {+ year: "numeric",+ month: "long",+ day: "numeric",+ });+}++export function formatDateTime(date: Date) {+ return date.toLocaleDateString("en-US", {+ month: "long",+ day: "numeric",+ hour: "numeric",+ minute: "numeric",+ });+}++export function formatTime(date: Date) {+ return date.toLocaleTimeString("en-US", {+ hour: "numeric",+ minute: "numeric",+ });+}++export function formatDateRange(from?: Date, to?: Date) {+ const sameDay = from && to && isSameDay(from, to);+ const isFromStartDay = from && startOfDay(from).getTime() === from.getTime();+ const isToEndDay = to && endOfDay(to).getTime() === to.getTime();++ if (sameDay) {+ if (from && to) {+ return `${formatDateTime(from)} - ${formatTime(to)}`;+ }+ }++ if (from && to) {+ if (isFromStartDay && isToEndDay) {+ return `${formatDate(from)} - ${formatDate(to)}`;+ }+ return `${formatDateTime(from)} - ${formatDateTime(to)}`;+ }++ if (to) {+ return `Until ${formatDateTime(to)}`;+ }++ if (from) {+ return `Since ${formatDateTime(from)}`;+ }++ return "All time";+}++export function formatDateForInput(date: Date): string {+ const year = date.getFullYear();+ const month = String(date.getMonth() + 1).padStart(2, "0");+ const day = String(date.getDate()).padStart(2, "0");+ const hours = String(date.getHours()).padStart(2, "0");+ const minutes = String(date.getMinutes()).padStart(2, "0");++ return `${year}-${month}-${day}T${hours}:${minutes}`;+}diff --git a/apps/dashboard/src/lib/middleware/with-invitation.ts b/apps/dashboard/src/lib/middleware/with-invitation.tsnew file mode 100644index 000000000..e69de29bbdiff --git a/apps/dashboard/src/lib/stripe.ts b/apps/dashboard/src/lib/stripe.tsnew file mode 100644index 000000000..c35ac44eb--- /dev/null+++ b/apps/dashboard/src/lib/stripe.ts@@ -0,0 +1,16 @@+import type { Stripe as StripeProps } from "@stripe/stripe-js";+import { loadStripe } from "@stripe/stripe-js";++let stripePromise: Promise<StripeProps | null>;++export const getStripe = () => {+ if (!process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY) {+ throw new Error("NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY is not set");+ }++ if (!stripePromise) {+ stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY);+ }++ return stripePromise;+};diff --git a/apps/dashboard/src/lib/trpc/client.tsx b/apps/dashboard/src/lib/trpc/client.tsxnew file mode 100644index 000000000..9d1609037--- /dev/null+++ b/apps/dashboard/src/lib/trpc/client.tsx@@ -0,0 +1,65 @@+"use client";++import { endingLink } from "@/lib/trpc/shared";+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { createTRPCClient, loggerLink } from "@trpc/client";+import { createTRPCContext } from "@trpc/tanstack-react-query";+import { useState } from "react";++import type { AppRouter } from "@openstatus/api";++export const { TRPCProvider, useTRPC, useTRPCClient } =+ createTRPCContext<AppRouter>();++function makeQueryClient() {+ return new QueryClient({+ defaultOptions: {+ queries: {+ // With SSR, we usually want to set some default staleTime+ // above 0 to avoid refetching immediately on the client+ staleTime: 60 * 1000,+ },+ },+ });+}+let browserQueryClient: QueryClient | undefined = undefined;+function getQueryClient() {+ if (typeof window === "undefined") {+ // Server: always make a new query client+ return makeQueryClient();+ }+ // Browser: make a new query client if we don't already have one+ // This is very important, so we don't re-make a new client if React+ // suspends during the initial render. This may not be needed if we+ // have a suspense boundary BELOW the creation of the query client+ if (!browserQueryClient) browserQueryClient = makeQueryClient();+ return browserQueryClient;+}++export function TRPCReactProvider({ children }: { children: React.ReactNode }) {+ const queryClient = getQueryClient();+ const [trpcClient] = useState(() =>+ createTRPCClient<AppRouter>({+ links: [+ loggerLink({+ enabled: (opts) =>+ process.env.NODE_ENV === "development" ||+ (opts.direction === "down" && opts.result instanceof Error),+ }),+ endingLink({+ headers: {+ "x-trpc-source": "client",+ },+ }),+ ],+ }),+ );++ return (+ <QueryClientProvider client={queryClient}>+ <TRPCProvider trpcClient={trpcClient} queryClient={queryClient}>+ {children}+ </TRPCProvider>+ </QueryClientProvider>+ );+}diff --git a/apps/dashboard/src/lib/trpc/query-client.ts b/apps/dashboard/src/lib/trpc/query-client.tsnew file mode 100644index 000000000..4fd826fe5--- /dev/null+++ b/apps/dashboard/src/lib/trpc/query-client.ts@@ -0,0 +1,20 @@+import {+ QueryClient,+ defaultShouldDehydrateQuery,+} from "@tanstack/react-query";++export function makeQueryClient() {+ return new QueryClient({+ defaultOptions: {+ queries: {+ staleTime: 60 * 1000,+ },+ dehydrate: {+ shouldDehydrateQuery: (query) =>+ defaultShouldDehydrateQuery(query) ||+ query.state.status === "pending",+ },+ hydrate: {},+ },+ });+}diff --git a/apps/dashboard/src/lib/trpc/server.tsx b/apps/dashboard/src/lib/trpc/server.tsxnew file mode 100644index 000000000..33cb12c65--- /dev/null+++ b/apps/dashboard/src/lib/trpc/server.tsx@@ -0,0 +1,88 @@+import "server-only";++import type { AppRouter } from "@openstatus/api";++import { HydrationBoundary } from "@tanstack/react-query";+import { dehydrate } from "@tanstack/react-query";+import { createTRPCClient, loggerLink } from "@trpc/client";+import {+ type TRPCQueryOptions,+ createTRPCOptionsProxy,+} from "@trpc/tanstack-react-query";+import { cookies } from "next/headers";+import { cache } from "react";+import { makeQueryClient } from "./query-client";+import { endingLink } from "./shared";++// IMPORTANT: Create a stable getter for the query client that+// will return the same client during the same request.+export const getQueryClient = cache(makeQueryClient);++export const trpc = createTRPCOptionsProxy<AppRouter>({+ queryClient: getQueryClient,+ client: createTRPCClient({+ links: [+ loggerLink({+ enabled: (opts) =>+ process.env.NODE_ENV === "development" ||+ (opts.direction === "down" && opts.result instanceof Error),+ }),+ endingLink({+ headers: {+ "x-trpc-source": "server",+ },+ async fetch(url, options) {+ const cookieStore = await cookies();+ return fetch(url, {+ ...options,+ credentials: "include",+ headers: {+ ...options?.headers,+ cookie: cookieStore.toString(),+ },+ });+ },+ }),+ ],+ }),+});++export function HydrateClient(props: { children: React.ReactNode }) {+ const queryClient = getQueryClient();++ return (+ <HydrationBoundary state={dehydrate(queryClient)}>+ {props.children}+ </HydrationBoundary>+ );+}++// biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any+export function prefetch<T extends ReturnType<TRPCQueryOptions<any>>>(+ queryOptions: T,+) {+ const queryClient = getQueryClient();++ if (queryOptions.queryKey[1]?.type === "infinite") {+ // biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any+ void queryClient.prefetchInfiniteQuery(queryOptions as any);+ } else {+ void queryClient.prefetchQuery(queryOptions);+ }+}++// biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any+export function batchPrefetch<T extends ReturnType<TRPCQueryOptions<any>>>(+ queryOptionsArray: T[],+) {+ const queryClient = getQueryClient();++ for (const queryOptions of queryOptionsArray) {+ if (queryOptions.queryKey[1]?.type === "infinite") {+ // biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any+ void queryClient.prefetchInfiniteQuery(queryOptions as any);+ } else {+ void queryClient.prefetchQuery(queryOptions);+ }+ }+}diff --git a/apps/dashboard/src/lib/trpc/shared.ts b/apps/dashboard/src/lib/trpc/shared.tsnew file mode 100644index 000000000..a3290046c--- /dev/null+++ b/apps/dashboard/src/lib/trpc/shared.ts@@ -0,0 +1,48 @@+import type { HTTPBatchLinkOptions, HTTPHeaders, TRPCLink } from "@trpc/client";+import { httpBatchLink } from "@trpc/client";++import type { AppRouter } from "@openstatus/api";+import superjson from "superjson";++const getBaseUrl = () => {+ if (typeof window !== "undefined") return "";+ const vc = process.env.VERCEL_URL;+ // if (vc) return `https://${vc}`;+ if (vc) return "https://app.openstatus.dev";+ return "http://localhost:3000";+};++const lambdas = ["stripeRouter", "emailRouter"];++export const endingLink = (opts?: {+ fetch?: typeof fetch;+ headers?: HTTPHeaders | (() => HTTPHeaders | Promise<HTTPHeaders>);+}) =>+ ((runtime) => {+ const sharedOpts = {+ headers: opts?.headers,+ fetch: opts?.fetch,+ transformer: superjson,+ // biome-ignore lint/suspicious/noExplicitAny: FIXME: remove any+ } satisfies Partial<HTTPBatchLinkOptions<any>>;++ const edgeLink = httpBatchLink({+ ...sharedOpts,+ url: `${getBaseUrl()}/api/trpc/edge`,+ })(runtime);+ const lambdaLink = httpBatchLink({+ ...sharedOpts,+ url: `${getBaseUrl()}/api/trpc/lambda`,+ })(runtime);++ return (ctx) => {+ const path = ctx.op.path.split(".") as [string, ...string[]];+ const endpoint = lambdas.includes(path[0]) ? "lambda" : "edge";++ const newCtx = {+ ...ctx,+ op: { ...ctx.op, path: path.join(".") },+ };+ return endpoint === "edge" ? edgeLink(newCtx) : lambdaLink(newCtx);+ };+ }) satisfies TRPCLink<AppRouter>;diff --git a/apps/dashboard/src/lib/utils.ts b/apps/dashboard/src/lib/utils.tsnew file mode 100644index 000000000..365058ceb--- /dev/null+++ b/apps/dashboard/src/lib/utils.ts@@ -0,0 +1,6 @@+import { type ClassValue, clsx } from "clsx";+import { twMerge } from "tailwind-merge";++export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs));+}diff --git a/apps/dashboard/src/middleware.ts b/apps/dashboard/src/middleware.tsnew file mode 100644index 000000000..963425386--- /dev/null+++ b/apps/dashboard/src/middleware.ts@@ -0,0 +1,56 @@+import { NextResponse } from "next/server";++import { auth } from "@/lib/auth";++import { db, eq } from "@openstatus/db";+import { user, usersToWorkspaces, workspace } from "@openstatus/db/src/schema";++export default auth(async (req) => {+ const url = req.nextUrl.clone();+ const response = NextResponse.next();++ if (url.pathname.includes("api/trpc")) {+ return response;+ }++ if (!req.auth && url.pathname !== "/login") {+ const newURL = new URL("/login", req.url);+ const encodedSearchParams = `${url.pathname}${url.search}`;++ if (encodedSearchParams) {+ newURL.searchParams.append("redirectTo", encodedSearchParams);+ }++ return NextResponse.redirect(newURL);+ }++ const hasWorkspaceSlug = req.cookies.has("workspace-slug");++ if (req.auth?.user?.id && !hasWorkspaceSlug) {+ const [query] = await db+ .select()+ .from(usersToWorkspaces)+ .innerJoin(user, eq(user.id, usersToWorkspaces.userId))+ .innerJoin(workspace, eq(workspace.id, usersToWorkspaces.workspaceId))+ .where(eq(user.id, Number.parseInt(req.auth.user.id)))+ .all();++ if (!query) {+ console.error(">> Should not happen, no workspace found for user");+ }++ response.cookies.set("workspace-slug", query.workspace.slug);+ }++ if (!req.auth && hasWorkspaceSlug) {+ response.cookies.delete("workspace-slug");+ }++ return response;+});++export const config = {+ matcher: [+ "/((?!api|assets|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)",+ ],+};diff --git a/apps/dashboard/src/next-auth.d.ts b/apps/dashboard/src/next-auth.d.tsnew file mode 100644index 000000000..3a1796359--- /dev/null+++ b/apps/dashboard/src/next-auth.d.ts@@ -0,0 +1,6 @@+import type { User as DefaultUserSchema } from "@openstatus/db/src/schema";++declare module "next-auth" {+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type+ interface User extends DefaultUserSchema {}+}diff --git a/apps/dashboard/tsconfig.json b/apps/dashboard/tsconfig.jsonnew file mode 100644index 000000000..48872953b--- /dev/null+++ b/apps/dashboard/tsconfig.json@@ -0,0 +1,28 @@+{+ "compilerOptions": {+ "target": "ES2017",+ "lib": ["dom", "dom.iterable", "esnext"],+ "allowJs": true,+ "skipLibCheck": true,+ "strict": true,+ "strictNullChecks": true,+ "noEmit": true,+ "esModuleInterop": true,+ "module": "esnext",+ "moduleResolution": "bundler",+ "resolveJsonModule": true,+ "isolatedModules": true,+ "jsx": "preserve",+ "incremental": true,+ "plugins": [+ {+ "name": "next"+ }+ ],+ "paths": {+ "@/*": ["./src/*"]+ }+ },+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],+ "exclude": ["node_modules"]+}diff --git a/apps/docs/astro.config.mjs b/apps/docs/astro.config.mjsindex 724d6ff7c..4604829db 100644--- a/apps/docs/astro.config.mjs+++ b/apps/docs/astro.config.mjs@@ -74,13 +74,17 @@ export default defineConfig({],},{- label: "Synthetic Monitoring",+ label: "Monitoring",items: [{ label: "Overview", slug: "monitoring/overview" },{- label: "Create a synthetic check",+ label: "Create a monitor",slug: "monitoring/create-monitor",},+ {+ label: "Monitoring as Code",+ slug: "monitoring/monitoring-as-code",+ },{label: "View your results data",slug: "monitoring/monitor-data-collected",@@ -211,28 +215,6 @@ export default defineConfig({},],},- {- label: "Guides",- icon: "rocket",- link: "/guides/introduction",- items: [- {- label: "Guides",- autogenerate: { directory: "guides" },- },- ],- },- {- label: "Contributing",- icon: "heart",- link: "/contributing/getting-started",- items: [- {- label: "Contributing",- autogenerate: { directory: "contributing" },- },- ],- },{label: "CLI",icon: "seti:powershell",@@ -258,6 +240,28 @@ export default defineConfig({icon: "puzzle",link: "https://api.openstatus.dev/v1",},+ {+ label: "Guides",+ icon: "rocket",+ link: "/guides/introduction",+ items: [+ {+ label: "Guides",+ autogenerate: { directory: "guides" },+ },+ ],+ },+ {+ label: "Contributing",+ icon: "heart",+ link: "/contributing/getting-started",+ items: [+ {+ label: "Contributing",+ autogenerate: { directory: "contributing" },+ },+ ],+ },]),starlightLlmsTxt({projectName: "OpenStatus Documentation",diff --git a/apps/docs/src/content/docs/cli/commands/monitors.mdx b/apps/docs/src/content/docs/cli/commands/monitors.mdxindex 2b0a73a64..24aa209d1 100644--- a/apps/docs/src/content/docs/cli/commands/monitors.mdx+++ b/apps/docs/src/content/docs/cli/commands/monitors.mdx@@ -1,75 +1,126 @@----title: Monitors+title: monitorsdescription: "Manage your monitors in OpenStatus from the command line"----The monitors command is used to manage your monitors. You trigger, view and list your monitors using this command.+x+### `monitors` command-### create (beta)+The monitors command is used to manage your monitors. You can import, update, delete, trigger, view and list your monitors using this command.-Create monitors++Usage:```bash-openstatus monitors create [options]+$ openstatus [GLOBAL FLAGS] monitors [ARGUMENTS...]```**--access-token, -t**="": OpenStatus API Access Token-**--auto-accept, -y**: Automatically accept the prompt+### `monitors apply` subcommand++Create or update monitors.++> openstatus monitors apply [options]-**--config**="": The configuration file containing monitor information (default: openstatus.yaml)+Creates or updates monitors according to the OpenStatus configuration file.-### delete+You can find some examples in the OpenStatus Template repository:-Delete a monitor+[https://github.com/openstatusHQ/cli-template/](https://github.com/openstatusHQ/cli-template/)++Usage:```bash-openstatus monitors delete [MonitorID] [options]+$ openstatus [GLOBAL FLAGS] monitors apply [COMMAND FLAGS] [ARGUMENTS...]```-**--access-token, -t**="": OpenStatus API Access Token+The following flags are supported:++| Name | Description | Default value | Environment variables |+|-----------------------------|-------------------------------------------------------|:-----------------:|:----------------------:|+| `--config="…"` (`-c`) | The configuration file containing monitor information | `openstatus.yaml` | *none* |+| `--access-token="…"` (`-t`) | OpenStatus API Access Token | | `OPENSTATUS_API_TOKEN` |+| `--auto-accept` (`-y`) | Automatically accept the prompt | `false` | *none* |-**--auto-accept, -y**: Automatically accept the prompt-### export+### `monitors import` subcommand-Export all your monitors+Import all your monitors.++> openstatus monitors import [options]++Import all your monitors from your workspace to a YAML file; it will also create a lock file to manage your monitors with 'apply'.++Usage:```bash-openstatus monitors export [options]+$ openstatus [GLOBAL FLAGS] monitors import [COMMAND FLAGS] [ARGUMENTS...]```-**--access-token, -t**="": OpenStatus API Access Token+The following flags are supported:++| Name | Description | Default value | Environment variables |+|-----------------------------|-----------------------------|:-----------------:|:----------------------:|+| `--access-token="…"` (`-t`) | OpenStatus API Access Token | | `OPENSTATUS_API_TOKEN` |+| `--output="…"` (`-o`) | The output file name | `openstatus.yaml` | *none* |++### `monitors info` subcommand-**--output, -o**="": The output file name (default: openstatus.yaml)+Get a monitor information.-### info+> openstatus monitors info [MonitorID]-Get a monitor information+Fetch the monitor information. The monitor information includes details such as name, description, endpoint, method, frequency, locations, active status, public status, timeout, degraded after, and body. The body is truncated to 40 characters.++Usage:```bash-openstatus monitors info [MonitorID] [options]+$ openstatus [GLOBAL FLAGS] monitors info [COMMAND FLAGS] [ARGUMENTS...]```-**--access-token, -t**="": OpenStatus API Access Token+The following flags are supported:++| Name | Description | Default value | Environment variables |+|-----------------------------|-----------------------------|:-------------:|:----------------------:|+| `--access-token="…"` (`-t`) | OpenStatus API Access Token | | `OPENSTATUS_API_TOKEN` |++### `monitors list` subcommand++List all monitors.++> openstatus monitors list [options]-### list+List all monitors. The list shows all your monitors attached to your workspace. It displays the ID, name, and URL of each monitor.-List all monitors+Usage:```bash-openstatus monitors list [options]+$ openstatus [GLOBAL FLAGS] monitors list [COMMAND FLAGS] [ARGUMENTS...]```-**--access-token, -t**="": OpenStatus API Access Token+The following flags are supported:++| Name | Description | Default value | Environment variables |+|-----------------------------|-------------------------------------------|:-------------:|:----------------------:|+| `--all` | List all monitors including inactive ones | `false` | *none* |+| `--access-token="…"` (`-t`) | OpenStatus API Access Token | | `OPENSTATUS_API_TOKEN` |++### `monitors trigger` subcommand-**--all**: List all monitors including inactive ones+Trigger a monitor execution.-### trigger+> openstatus monitors trigger [MonitorId] [options]-Trigger a monitor execution+Trigger a monitor execution on demand. This command allows you to launch your tests on demand.++Usage:```bash-openstatus monitors trigger [MonitorId] [options]+$ openstatus [GLOBAL FLAGS] monitors trigger [COMMAND FLAGS] [ARGUMENTS...]```-**--access-token, -t**="": OpenStatus API Access Token+The following flags are supported:++| Name | Description | Default value | Environment variables |+|-----------------------------|-----------------------------|:-------------:|:----------------------:|+| `--access-token="…"` (`-t`) | OpenStatus API Access Token | | `OPENSTATUS_API_TOKEN` |diff --git a/apps/docs/src/content/docs/cli/commands/run.mdx b/apps/docs/src/content/docs/cli/commands/run.mdxindex 63a4c6f9a..e4c379e92 100644--- a/apps/docs/src/content/docs/cli/commands/run.mdx+++ b/apps/docs/src/content/docs/cli/commands/run.mdx@@ -1,11 +1,16 @@----title: Run+title: rundescription: "How to run a list of synthetic checks in OpenStatus from the command line"----This command is used to run a list of synthetic check.+### `run` command (aliases: `r`)-You need to create file `config.openstatus.yaml` in the root of your project. The file should contain the following information.+Run your synthetics tests.++> openstatus run [options]++Run the synthetic tests defined in the `config.openstatus.yaml`.+The config file should be in the following format:```yamltests:@@ -14,12 +19,15 @@ tests:- monitor-id-2```-You can run the synthetic checks using the following command.+Usage:```bash-openstatus run+$ openstatus [GLOBAL FLAGS] run [COMMAND FLAGS] [ARGUMENTS...]```-### Options+The following flags are supported:-- `--config` - Path to the config file. Default is `config.openstatus.yaml`.+| Name | Description | Default value | Environment variables |+|-----------------------------|-----------------------------|:------------------------:|:----------------------:|+| `--config="…"` | The configuration file | `config.openstatus.yaml` | *none* |+| `--access-token="…"` (`-t`) | OpenStatus API Access Token | | `OPENSTATUS_API_TOKEN` |diff --git a/apps/docs/src/content/docs/cli/commands/whoami.mdx b/apps/docs/src/content/docs/cli/commands/whoami.mdxindex 4df09e029..c23eda28c 100644--- a/apps/docs/src/content/docs/cli/commands/whoami.mdx+++ b/apps/docs/src/content/docs/cli/commands/whoami.mdx@@ -1,5 +1,5 @@----title: Whoami+title: whoamidescription: "How to check the currently authenticated user in OpenStatus with the whoami command"---diff --git a/apps/docs/src/content/docs/cli/getting-started.mdx b/apps/docs/src/content/docs/cli/getting-started.mdxindex 9d4aad824..38dad48e9 100644--- a/apps/docs/src/content/docs/cli/getting-started.mdx+++ b/apps/docs/src/content/docs/cli/getting-started.mdx@@ -14,28 +14,47 @@ import CLI from '../../../assets/cli/CLI.png';-You can use the OpenStatus CLI to manage and run your synthetic checks. The CLI is a powerful tool that allows you to interact with OpenStatus from your terminal.+You can use the OpenStatus CLI to manage and run your monitors. The CLI is a powerful tool that allows you to interact with OpenStatus from your terminal.## InstallationYou can install the OpenStatus CLI using brew.+#### Windows+```powershell+iwr instl.sh/openstatushq/cli/windows | iex+```++#### macOS+```bash+brew install openstatusHQ/cli/openstatus --cask+```++or++```bash-brew tap openstatusHQ/cli+curl -sSL instl.sh/openstatushq/cli/macos | bash```-<br/>++#### Linux```bash-brew install openstatus --cask+curl -sSL instl.sh/openstatushq/cli/linux | bash```++Then you can run the following command to verify the installation.```bashopenstatus --help```++## Usage+You need to get an API token to use the CLI. You can get an API key by signing up on the OpenStatus website._Settings → API Token → Create API token_diff --git a/apps/docs/src/content/docs/index.mdx b/apps/docs/src/content/docs/index.mdxindex 806600f57..efe1f338f 100644--- a/apps/docs/src/content/docs/index.mdx+++ b/apps/docs/src/content/docs/index.mdx@@ -18,6 +18,10 @@ import "../../custom.css"We also provide beautiful [status pages](/status-page/overview) to keep your users informed about the status of your services.+#### Monitoring as Code++We provide a [CLI](/cli/getting-started) to manage your monitors as code.+### New to OpenStatus?diff --git a/apps/docs/src/content/docs/monitoring/create-monitor.mdx b/apps/docs/src/content/docs/monitoring/create-monitor.mdxindex 62cd42d6d..b42dbf36a 100644--- a/apps/docs/src/content/docs/monitoring/create-monitor.mdx+++ b/apps/docs/src/content/docs/monitoring/create-monitor.mdx@@ -1,5 +1,5 @@----title: How to create a synthetic check?+title: How to create your first monitor?description: "How to create your first monitor with OpenStatus"---@@ -15,26 +15,34 @@ import { ShowcaseYouTube } from 'starlight-showcases'alt="Charts with status code and response time"/>-First you need to create a monitor to start monitoring your services.-## What is a monitor?+## Creating Your First Monitor-A monitor is a job that runs periodically or on-demand and checks the status of a service. A monitor will do some synthetic checks to ensure that your service is working as expected.+A monitor is your automated watchdog for your services. 🕵️♀️ It periodically checks your endpoints to ensure they are up, performant, and returning the correct data. Think of it as a curl command that runs 24/7.+This guide will walk you through creating and configuring your first HTTP monitor.-## Create your first monitor-Go to the **Monitors** page and click on the **Create Monitor** button.+## Get Started in 1 Minute-## Configure your monitor+Let's get your first endpoint check up and running.-Your endpoint check requires:+### 1. Create the Monitor-- a **name** to identify your monitor-- the **URL** to checked+Navigate to the Monitors page from the sidebar and click the + Create Monitor button.++### 2. Configure the Basics++To get started, you only need two things:+- **Name** : A descriptive name so you can easily identify it (e.g., "API - Production Health Check").+- **URL** : The full URL of the endpoint you want to test (e.g., https://openstat.us).++Once you've set the URL, we'll automatically begin tracking key metrics for every check:+- **Response Time**+- **Status Code**+- **Response Headers**+- **Detailed Timing Metrics** (DNS lookup, TCP connection, TLS handshake, etc.)-We will store the **response time**, the **status code**, the **headers**-returned, and the **timing metrics** of your endpoint.<Imagesrc={monitorDetail}@@ -42,30 +50,38 @@ returned, and the **timing metrics** of your endpoint./>-### HTTP Request+### 3. Customizing the HTTP Request-Customize the request sent to your endpoint.+You can customize the HTTP request to simulate real user traffic or test specific scenarios.-Choose between one of the request **HTTP Method**: `GET` (default), `POST` or-`HEAD`.+#### HTTP Method-Add custom key-value **HTTP Headers** to your request.+Choose the HTTP method for your check. While `GET` is the default, you can also use `POST` or `HEAD` or any other HTTP method.-> OpenStatus automatically set the `"User-Agent": "OpenStatus/1.0"` header to-> your request. This header is used to identify the request as a ping request-> and can be exluded from your analytics.+- `GET`: Retrieve data from an endpoint. The most common choice for health checks.+- `POST`: Send data to an endpoint, for example, to test a form submission or API creation endpoint.+- `HEAD`: Same as `GET`, but without the response body. Useful for quickly checking if a resource exists.+#### Request Body+If you select the `POST` method, you can specify a Body to send with your request. This is perfect for testing API endpoints that require a JSON payload.-If you select the `POST` method, you can add a custom **HTTP Body** to your-request.+#### Custom Headers+You can add any number of custom HTTP headers to your request. This is useful for:+- Sending an `Authorization` token to test a protected endpoint.+- Setting an `Accept` header to request a specific content type (e.g., `application/json`).+- Simulating a request from a specific device or client.+ Heads Up: We've got your User-Agent covered!+ OpenStatus automatically includes the `"User-Agent": "OpenStatus/1.0"` header in every request. This makes it easy to identify and filter out our monitoring traffic from your server logs or analytics.-## Customization-You can customize your monitor with the following options:++## Fine-Tuning Your Monitor ⚙️++Once you've set up the basics, you can further refine your monitor's behavior with these advanced options:<CardGrid><LinkCard@@ -88,9 +104,9 @@ You can customize your monitor with the following options:-## Known Limitations--<Aside>If you are monitoring an endpoint you don't own (e.g google.com), your request might be blocked by the remote server.</Aside>+## Important Considerations+### Monitoring Third-Party Endpoints+<Aside>If you're monitoring a URL you don't own (like `google.com` or a partner API), your requests might be blocked by firewalls or rate limiters (e.g., Cloudflare). This is a security measure on their end to prevent scraping or denial-of-service attacks.</Aside>@@ -104,4 +120,4 @@ You can customize your monitor with the following options:},]}-/>\ No newline at end of file+/>diff --git a/apps/docs/src/content/docs/monitoring/monitoring-as-code.mdx b/apps/docs/src/content/docs/monitoring/monitoring-as-code.mdxnew file mode 100644index 000000000..2c608cb40--- /dev/null+++ b/apps/docs/src/content/docs/monitoring/monitoring-as-code.mdx@@ -0,0 +1,84 @@+---+title: Monitoring as Code+description: "How to manage monitors as code with OpenStatus?"+---++## Introduction++Monitoring as code is a practice that allows you to define and manage your monitoring configurations using code. This approach provides several benefits, including:++- **Version control**: You can track changes to your monitoring configurations using version control systems like Git.+- **Reproducibility**: Your monitoring configurations can be easily reproduced across environments.+- **Automation**: You can automate the deployment and management of your monitoring configurations using tools like CI/CD pipelines.+++## Getting Started++OpenStatus provides a [CLI](/cli/getting-started) tool that allows you to create, update, and delete monitors as code. To get started, you need to install the CLI tool.++## Examples++### Uptime Monitoring++```yaml+# yaml-language-server: $schema=https://www.openstatus.dev/schema.json+uptime-monitor:+ name: "Uptime Monitor"+ description: "Uptime monitoring example"+ frequency: "10m"+ active: true+ regions:+ - iad+ - ams+ - syd+ - jnb+ - gru+ retry: 3+ kind: http+ request:+ url: https://openstat.us+ method: GET+ headers:+ User-Agent: OpenStatus+ assertions:+ - kind: statusCode+ compare: eq+ target: 200+```++#### Monitoring a MCP Server:++```yaml+# yaml-language-server: $schema=https://www.openstatus.dev/schema.json++mcp-server:+ name: "HF MCP Server "+ description: "Hugging Face MCP server monitoring"+ frequency: "1m"+ active: true+ regions: ["iad", "ams", "lax"]+ retry: 3+ kind: http+ request:+ url: https://hf.co/mcp+ method: POST+ body: >+ {+ "jsonrpc": "2.0",+ "id": "openstatus",+ "method": "ping"+ }+ headers:+ User-Agent: OpenStatus+ Accept: application/json, text/event-stream+ Content-Type: application/json+ assertions:+ - kind: statusCode+ compare: eq+ target: 200+ - kind: textBody+ compare: eq+ target: '{"result":{},"jsonrpc":"2.0","id":"openstatus"}'+```++You can find more examples in the [OpenStatus Template GitHub repository](https://github.com/openstatusHQ/cli-template/).diff --git a/apps/docs/src/custom.css b/apps/docs/src/custom.cssindex df9365ef6..f27e099d8 100644--- a/apps/docs/src/custom.css+++ b/apps/docs/src/custom.css@@ -7,4 +7,4 @@background-color: var(--sl-color-black);padding: 0.2em;border-radius: 0.25rem;- }\ No newline at end of file+ }diff --git a/apps/docs/src/global.css b/apps/docs/src/global.cssindex 3cbf3c06c..a516cd6a8 100644--- a/apps/docs/src/global.css+++ b/apps/docs/src/global.css@@ -4,7 +4,6 @@@import 'tailwindcss/theme.css' layer(theme);@import 'tailwindcss/utilities.css' layer(utilities);-@theme {--font-cal: "calsans", "sans-serif";}diff --git a/apps/screenshot-service/package.json b/apps/screenshot-service/package.jsonindex f69a4fab1..d60da023c 100644--- a/apps/screenshot-service/package.json+++ b/apps/screenshot-service/package.json@@ -16,7 +16,7 @@"drizzle-orm": "0.35.3","hono": "4.5.3","playwright": "1.46.0",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/apps/server/package.json b/apps/server/package.jsonindex 8004a3dbf..fb60e3c39 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -32,7 +32,7 @@"nanoid": "5.0.7","percentile": "1.6.0","validator": "13.12.0",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/apps/server/src/routes/v1/monitors/post.ts b/apps/server/src/routes/v1/monitors/post.tsindex 37dbc43f3..6f8e00472 100644--- a/apps/server/src/routes/v1/monitors/post.ts+++ b/apps/server/src/routes/v1/monitors/post.ts@@ -70,6 +70,13 @@ export function registerPostMonitor(api: typeof monitorsApi) {});}+ if (limits["max-regions"] < input.regions.length) {+ throw new OpenStatusApiError({+ code: "PAYMENT_REQUIRED",+ message: "Upgrade for more regions",+ });+ }+for (const region of input.regions) {if (!limits.regions.includes(region)) {throw new OpenStatusApiError({diff --git a/apps/server/src/routes/v1/monitors/post_http.ts b/apps/server/src/routes/v1/monitors/post_http.tsindex b749551e3..93d674d32 100644--- a/apps/server/src/routes/v1/monitors/post_http.ts+++ b/apps/server/src/routes/v1/monitors/post_http.ts@@ -70,6 +70,13 @@ export function registerPostMonitorHTTP(api: typeof monitorsApi) {});}+ if (limits["max-regions"] < input.regions.length) {+ throw new OpenStatusApiError({+ code: "PAYMENT_REQUIRED",+ message: "Upgrade for more regions",+ });+ }+for (const region of input.regions) {if (!limits.regions.includes(region)) {throw new OpenStatusApiError({diff --git a/apps/server/src/routes/v1/monitors/post_tcp.ts b/apps/server/src/routes/v1/monitors/post_tcp.tsindex 26805fdb4..4e835c80b 100644--- a/apps/server/src/routes/v1/monitors/post_tcp.ts+++ b/apps/server/src/routes/v1/monitors/post_tcp.ts@@ -67,6 +67,13 @@ export function registerPostMonitorTCP(api: typeof monitorsApi) {});}+ if (limits["max-regions"] < input.regions.length) {+ throw new OpenStatusApiError({+ code: "PAYMENT_REQUIRED",+ message: "Upgrade for more regions",+ });+ }+for (const region of input.regions) {if (!limits.regions.includes(region)) {throw new OpenStatusApiError({diff --git a/apps/server/src/routes/v1/monitors/put.ts b/apps/server/src/routes/v1/monitors/put.tsindex fea5c9de1..3be57ca3e 100644--- a/apps/server/src/routes/v1/monitors/put.ts+++ b/apps/server/src/routes/v1/monitors/put.ts@@ -56,6 +56,13 @@ export function registerPutMonitor(api: typeof monitorsApi) {}if (input.regions) {+ if (limits["max-regions"] < input.regions.length) {+ throw new OpenStatusApiError({+ code: "PAYMENT_REQUIRED",+ message: "Upgrade for more regions",+ });+ }+for (const region of input.regions) {if (!limits.regions.includes(region)) {throw new OpenStatusApiError({diff --git a/apps/web/package.json b/apps/web/package.jsonindex b09325334..447f903b5 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -14,7 +14,7 @@"@auth/core": "0.34.1","@auth/drizzle-adapter": "1.9.1","@google-cloud/tasks": "4.0.1",- "@hookform/resolvers": "4.1.3",+ "@hookform/resolvers": "3.9.1","@libsql/client": "0.14.0","@openpanel/nextjs": "^1.0.8","@openstatus/analytics": "workspace:*",@@ -46,10 +46,10 @@"@tanstack/react-query": "5.80.7","@tanstack/react-query-devtools": "5.80.7","@tanstack/react-table": "8.10.3",- "@trpc/client": "11.4.0",- "@trpc/next": "11.4.0",- "@trpc/react-query": "11.4.0",- "@trpc/server": "11.4.0",+ "@trpc/client": "11.4.3",+ "@trpc/next": "11.4.3",+ "@trpc/react-query": "11.4.3",+ "@trpc/server": "11.4.3","@unkey/api": "0.26.1","@upstash/qstash": "2.6.2","@upstash/redis": "1.22.1",@@ -63,7 +63,7 @@"feed": "^4.2.2","lucide-react": "0.468.0","nanoid": "5.0.7",- "next": "15.2.4",+ "next": "15.3.4","next-auth": "5.0.0-beta.28","next-plausible": "3.12.4","next-themes": "0.2.1",@@ -72,7 +72,7 @@"react": "19.1.0","react-day-picker": "8.10.1","react-dom": "19.1.0",- "react-hook-form": "7.56.2",+ "react-hook-form": "7.54.1","react-tweet": "3.2.1","reading-time": "1.5.0","recharts": "2.15.0",@@ -88,7 +88,7 @@"superjson": "1.13.3","tailwind-merge": "1.14.0","tailwindcss-animate": "1.0.7",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@content-collections/core": "0.7.3",@@ -97,8 +97,8 @@"@openstatus/tsconfig": "workspace:*","@tailwindcss/postcss": "^4.1.8","@types/node": "20.14.8",- "@types/react": "19.1.0",- "@types/react-dom": "19.1.1",+ "@types/react": "19.1.6",+ "@types/react-dom": "19.1.6","postcss": "8.4.38","rehype-autolink-headings": "7.1.0","rehype-slug": "5.1.0",diff --git a/apps/web/src/app/(content)/blog/page.tsx b/apps/web/src/app/(content)/blog/page.tsxindex e2ec08bfe..f3b9b0c81 100644--- a/apps/web/src/app/(content)/blog/page.tsx+++ b/apps/web/src/app/(content)/blog/page.tsx@@ -87,7 +87,6 @@ export default async function Post(props: {{Array.from({ length: MAX_PAGE_INDEX + 1 }).map((_, index) => {return (<PaginationLink- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation>key={index}href={`?pageIndex=${index}`}isActive={pageIndex === index}diff --git a/apps/web/src/app/(content)/layout.tsx b/apps/web/src/app/(content)/layout.tsxindex 1a96b5c4a..fbd67f377 100644--- a/apps/web/src/app/(content)/layout.tsx+++ b/apps/web/src/app/(content)/layout.tsx@@ -3,12 +3,12 @@ import { ArrowRight, ChevronRight } from "lucide-react";import Link from "next/link";import type { ReactNode } from "react";-const FLAG = false;+const DASHBOARD_V2 = false;export default function ContentLayout({ children }: { children: ReactNode }) {return (<>- {FLAG ? <Banner /> : null}+ {DASHBOARD_V2 ? <Banner /> : null}<MarketingLayout>{children}</MarketingLayout></>);diff --git a/apps/web/src/app/(content)/play/checker/_components/global-monitoring.tsx b/apps/web/src/app/(content)/play/checker/_components/global-monitoring.tsxindex c22e4eacd..396f2e3ad 100644--- a/apps/web/src/app/(content)/play/checker/_components/global-monitoring.tsx+++ b/apps/web/src/app/(content)/play/checker/_components/global-monitoring.tsx@@ -44,7 +44,6 @@ export const GlobalMonitoring = () => {</CardHeader><ul className="grid grid-cols-1 gap-4 sm:grid-cols-3 sm:gap-6">{features?.map((feature, i) => (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><CardFeature key={i} {...feature} />))}</ul>diff --git a/apps/web/src/app/api/callback/pagerduty/route.ts b/apps/web/src/app/api/callback/pagerduty/route.tsindex e11e21c2a..a7936be96 100644--- a/apps/web/src/app/api/callback/pagerduty/route.ts+++ b/apps/web/src/app/api/callback/pagerduty/route.ts@@ -1,12 +1,22 @@import { redirect } from "next/navigation";+const DASHBOARD_V2 = false;+export async function GET(request: Request) {const { searchParams } = new URL(request.url);const workspace = searchParams.get("workspace");- const url = `${++ const APP_URL = `${+ process.env.NODE_ENV === "development" // FIXME: This sucks+ ? "http://localhost:3000"+ : "https://app.openstatus.dev"+ }/notifiers?${searchParams}&channel=pagerduty`;++ const WWW_URL = `${process.env.NODE_ENV === "development" // FIXME: This sucks? "http://localhost:3000": "https://www.openstatus.dev"}/app/${workspace}/notifications/new/pagerduty?${searchParams}`;- redirect(url);++ redirect(DASHBOARD_V2 ? APP_URL : WWW_URL);}diff --git a/apps/web/src/app/api/og/_components/tracker.tsx b/apps/web/src/app/api/og/_components/tracker.tsxindex 952dbdfb3..1aed5ab5e 100644--- a/apps/web/src/app/api/og/_components/tracker.tsx+++ b/apps/web/src/app/api/og/_components/tracker.tsx@@ -19,7 +19,6 @@ export function Tracker({ data }: TrackerProps) {{/* Empty State */}<div tw="flex flex-row relative">{new Array(data.length).fill(null).map((_, i) => {- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation>return <div key={i} tw="h-16 w-3 rounded-full mr-1 bg-black/20" />;})}<div tw="flex flex-row-reverse absolute left-0">@@ -28,7 +27,6 @@ export function Tracker({ data }: TrackerProps) {if (isBlackListed) {return (<div- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation>key={i}tw="h-16 w-3 rounded-full mr-1 bg-status-operational/90"/>@@ -36,7 +34,6 @@ export function Tracker({ data }: TrackerProps) {}return (<div- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation>key={i}tw={cn("h-16 w-3 rounded-full mr-1",diff --git a/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/overview/loading.tsx b/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/overview/loading.tsxindex c12f289e9..ed173af84 100644--- a/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/overview/loading.tsx+++ b/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/overview/loading.tsx@@ -7,14 +7,12 @@ export default function Loading() {<div className="grid gap-6"><div className="grid grid-cols-2 gap-4 sm:grid-cols-4 md:grid-cols-5 md:gap-6">{new Array(4).fill(0).map((_, i) => (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><Skeleton key={i} className="h-16 w-full" />))}</div><div className="grid gap-4"><div className="grid grid-cols-2 gap-4 sm:grid-cols-4 md:grid-cols-5 md:gap-6">{new Array(5).fill(0).map((_, i) => (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><Skeleton key={i} className="h-16 w-full" />))}</div>diff --git a/apps/web/src/app/app/[workspaceSlug]/(dashboard)/settings/team/_components/invite-button.tsx b/apps/web/src/app/app/[workspaceSlug]/(dashboard)/settings/team/_components/invite-button.tsxindex 20f611056..61826f988 100644--- a/apps/web/src/app/app/[workspaceSlug]/(dashboard)/settings/team/_components/invite-button.tsx+++ b/apps/web/src/app/app/[workspaceSlug]/(dashboard)/settings/team/_components/invite-button.tsx@@ -4,9 +4,8 @@ import { zodResolver } from "@hookform/resolvers/zod";import { useRouter } from "next/navigation";import { useState, useTransition } from "react";import { useForm } from "react-hook-form";-import type * as z from "zod";+import * as z from "zod";-import { insertInvitationSchema } from "@openstatus/db/src/schema";import {Button,Dialog,@@ -29,7 +28,10 @@ import { LoadingAnimation } from "@/components/loading-animation";import { toastAction } from "@/lib/toast";import { api } from "@/trpc/client";-const schema = insertInvitationSchema.pick({ email: true });+const schema = z.object({+ email: z.string().email(),+});+type Schema = z.infer<typeof schema>;export function InviteButton({diff --git a/apps/web/src/app/public/monitors/[id]/loading.tsx b/apps/web/src/app/public/monitors/[id]/loading.tsxindex 363e4fd70..5b9b2c3d5 100644--- a/apps/web/src/app/public/monitors/[id]/loading.tsx+++ b/apps/web/src/app/public/monitors/[id]/loading.tsx@@ -18,14 +18,12 @@ export default function Loading() {<div className="grid gap-6"><div className="grid grid-cols-2 gap-4 sm:grid-cols-4 md:grid-cols-5 md:gap-6">{new Array(4).fill(0).map((_, i) => (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><Skeleton key={i} className="h-16 w-full" />))}</div><div className="grid gap-4"><div className="grid grid-cols-2 gap-4 sm:grid-cols-4 md:grid-cols-5 md:gap-6">{new Array(5).fill(0).map((_, i) => (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><Skeleton key={i} className="h-16 w-full" />))}</div>diff --git a/apps/web/src/components/data-table/data-table-badges.tsx b/apps/web/src/components/data-table/data-table-badges.tsxindex 695dec2c4..ee0bbb28c 100644--- a/apps/web/src/components/data-table/data-table-badges.tsx+++ b/apps/web/src/components/data-table/data-table-badges.tsx@@ -27,7 +27,6 @@ export function DataTableBadges({ names }: { names: string[] }) {</TooltipTrigger><TooltipContent side="top" className="flex gap-2">{rest.map((name, i) => (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><Badge key={i} variant="outline">{name}</Badge>diff --git a/apps/web/src/components/data-table/data-table-pagination.tsx b/apps/web/src/components/data-table/data-table-pagination.tsxindex bb3be7b6f..503088e30 100644--- a/apps/web/src/components/data-table/data-table-pagination.tsx+++ b/apps/web/src/components/data-table/data-table-pagination.tsx@@ -28,7 +28,7 @@ interface DataTablePaginationProps<TData> {export function DataTablePagination<TData>({table,}: DataTablePaginationProps<TData>) {- const [{ pageSize }, setSearchParams] = useQueryStates({+ const [_, setSearchParams] = useQueryStates({pageSize: parseAsInteger.withDefault(10),// pageIndex: parseAsInteger.withDefault(0),});diff --git a/apps/web/src/components/data-table/data-table-skeleton.tsx b/apps/web/src/components/data-table/data-table-skeleton.tsxindex e711c585c..9244a6321 100644--- a/apps/web/src/components/data-table/data-table-skeleton.tsx+++ b/apps/web/src/components/data-table/data-table-skeleton.tsx@@ -41,7 +41,6 @@ export function DataTableSkeleton({ rows = 3 }: DataTableSkeletonProps) {</TableHeader><TableBody>{new Array(rows).fill(0).map((_, i) => (- // biome-ignore lint: only one row<TableRow key={i} className="hover:bg-transparent"><TableCell><Skeleton className="my-1.5 h-4 w-full max-w-40" />diff --git a/apps/web/src/components/data-table/monitor/data-table-pagination.tsx b/apps/web/src/components/data-table/monitor/data-table-pagination.tsxindex ff5798620..4ca633141 100644--- a/apps/web/src/components/data-table/monitor/data-table-pagination.tsx+++ b/apps/web/src/components/data-table/monitor/data-table-pagination.tsx@@ -28,7 +28,7 @@ interface DataTablePaginationProps<TData> {export function DataTablePagination<TData>({table,}: DataTablePaginationProps<TData>) {- const [{ pageSize }, setSearchParams] = useQueryStates({+ const [_, setSearchParams] = useQueryStates({pageSize: parseAsInteger.withDefault(10),// pageIndex: parseAsInteger.withDefault(0),});diff --git a/apps/web/src/components/forms/maintenance/form.tsx b/apps/web/src/components/forms/maintenance/form.tsxindex 2911228bc..0ace2cb8e 100644--- a/apps/web/src/components/forms/maintenance/form.tsx+++ b/apps/web/src/components/forms/maintenance/form.tsx@@ -59,7 +59,7 @@ export function MaintenanceForm({startTransition(async () => {try {if (defaultValues) {- await api.maintenance.update.mutate(props);+ await api.maintenance.updateLegacy.mutate(props);} else {await api.maintenance.create.mutate(props);}diff --git a/apps/web/src/components/forms/notification/provider/section-opsgenie.tsx b/apps/web/src/components/forms/notification/provider/section-opsgenie.tsxindex c524ecd32..007f72fe5 100644--- a/apps/web/src/components/forms/notification/provider/section-opsgenie.tsx+++ b/apps/web/src/components/forms/notification/provider/section-opsgenie.tsx@@ -32,7 +32,7 @@ interface Props {plan: WorkspacePlan;}-export function SectionOpsGenie({ form, plan }: Props) {+export function SectionOpsGenie({ form }: Props) {const [isTestPending, startTestTransition] = useTransition();const watchApiKey = form.watch("data.opsgenie.apiKey");const watchRegion = form.watch("data.opsgenie.region");diff --git a/apps/web/src/components/layout/header/app-tabs.tsx b/apps/web/src/components/layout/header/app-tabs.tsxindex 377d75108..7eacaf7d4 100644--- a/apps/web/src/components/layout/header/app-tabs.tsx+++ b/apps/web/src/components/layout/header/app-tabs.tsx@@ -38,7 +38,7 @@ export function AppTabs() {}// FIXME: use react-query - once the user resolves the incident, the dot should disappear without refresh-function IncidentsDot() {+export function IncidentsDot() {const [open, setOpen] = useState(false);useEffect(() => {diff --git a/apps/web/src/components/marketing/alert/card.tsx b/apps/web/src/components/marketing/alert/card.tsxindex 6db54c694..5394a11ee 100644--- a/apps/web/src/components/marketing/alert/card.tsx+++ b/apps/web/src/components/marketing/alert/card.tsx@@ -22,7 +22,6 @@ export function AlertCard() {<Timeline /><CardFeatureContainer>{features?.map((feature, i) => (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><CardFeature key={i} {...feature} />))}</CardFeatureContainer>diff --git a/apps/web/src/components/marketing/cli/card.tsx b/apps/web/src/components/marketing/cli/card.tsxindex 07598a0d5..a42fe7b46 100644--- a/apps/web/src/components/marketing/cli/card.tsx+++ b/apps/web/src/components/marketing/cli/card.tsx@@ -22,7 +22,6 @@ export function CLICard() {<Terminal /><CardFeatureContainer>{features?.map((feature, i) => (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><CardFeature key={i} {...feature} />))}</CardFeatureContainer>diff --git a/apps/web/src/components/marketing/cli/terminal.tsx b/apps/web/src/components/marketing/cli/terminal.tsxindex aa217fd6c..d987d8e0f 100644--- a/apps/web/src/components/marketing/cli/terminal.tsx+++ b/apps/web/src/components/marketing/cli/terminal.tsx@@ -28,7 +28,7 @@ export function Terminal({ className, ...props }: React.ComponentProps<"pre">) {variant="ghost"size="icon"onClick={handleCopy}- className="hover:bg-transparent backdrop-blur-sm absolute right-1 top-1"+ className="absolute top-1 right-1 backdrop-blur-sm hover:bg-transparent">{isCopied ? (<CheckIcon className="size-4" />diff --git a/apps/web/src/components/marketing/monitor/card.tsx b/apps/web/src/components/marketing/monitor/card.tsxindex eeeb0d08b..2db3a3744 100644--- a/apps/web/src/components/marketing/monitor/card.tsx+++ b/apps/web/src/components/marketing/monitor/card.tsx@@ -27,7 +27,6 @@ export function MonitoringCard() {<Globe /><CardFeatureContainer>{features?.map((feature, i) => (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><CardFeature key={i} {...feature} />))}<div className="order-first flex items-center justify-center gap-2 text-center md:order-0">diff --git a/apps/web/src/components/marketing/pricing/pricing-table.tsx b/apps/web/src/components/marketing/pricing/pricing-table.tsxindex 890746e3a..7d56729a2 100644--- a/apps/web/src/components/marketing/pricing/pricing-table.tsx+++ b/apps/web/src/components/marketing/pricing/pricing-table.tsx@@ -167,14 +167,13 @@ export function PricingTable({Array.isArray(limitValue) &&limitValue.length > 0) {- return limitValue[0];+ return limitValue.length;}return limitValue;}return (<TableCell- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation>key={key + value + _i}className={cn("p-3 font-mono",diff --git a/apps/web/src/components/marketing/status-page/card.tsx b/apps/web/src/components/marketing/status-page/card.tsxindex 3708fa91a..fe96a32b5 100644--- a/apps/web/src/components/marketing/status-page/card.tsx+++ b/apps/web/src/components/marketing/status-page/card.tsx@@ -22,7 +22,6 @@ export function StatusPageCard() {<TrackerExample /><CardFeatureContainer dir="cols">{features?.map((feature, i) => (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><CardFeature key={i} {...feature} />))}</CardFeatureContainer>diff --git a/apps/web/src/components/marketing/status-page/tracker-example.tsx b/apps/web/src/components/marketing/status-page/tracker-example.tsxindex f966ac050..885d57251 100644--- a/apps/web/src/components/marketing/status-page/tracker-example.tsx+++ b/apps/web/src/components/marketing/status-page/tracker-example.tsx@@ -26,7 +26,7 @@ function ExampleTrackerFallback() {return <Tracker data={[]} name="Ping" description="Pong" />;}-async function ExampleTracker() {+export async function ExampleTracker() {const res = await prepareStatusByPeriod("45d").getData({monitorId: "1",});diff --git a/apps/web/src/components/ping-response-analysis/response-assertion.tsx b/apps/web/src/components/ping-response-analysis/response-assertion.tsxindex 63b252e22..ee90203ee 100644--- a/apps/web/src/components/ping-response-analysis/response-assertion.tsx+++ b/apps/web/src/components/ping-response-analysis/response-assertion.tsx@@ -29,7 +29,6 @@ export function ResponseAssertion({ assertions }: { assertions: Assertion[] }) {{assertions.map((a, i) => {if (a.schema.type === "status") {return (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><TableRow key={i}><TableCell className="text-muted-foreground">Status Code@@ -44,7 +43,6 @@ export function ResponseAssertion({ assertions }: { assertions: Assertion[] }) {}if (a.schema.type === "header") {return (- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation><TableRow key={i}><TableCell className="text-muted-foreground">Header</TableCell><TableCell className="font-mono">{a.schema.key}</TableCell>diff --git a/apps/web/src/components/tracker/tracker.tsx b/apps/web/src/components/tracker/tracker.tsxindex c520c3176..1c819c061 100644--- a/apps/web/src/components/tracker/tracker.tsx+++ b/apps/web/src/components/tracker/tracker.tsx@@ -109,7 +109,6 @@ export function Tracker({<div className="relative h-full w-full"><div className="flex flex-row-reverse gap-px sm:gap-0.5">{tracker.days.map((props, i) => {- // biome-ignore lint/suspicious/noArrayIndexKey: <explanation>return <Bar key={i} showValues={showValues} {...props} />;})}</div>diff --git a/apps/web/src/config/pricing-table.tsx b/apps/web/src/config/pricing-table.tsxindex 6bbdc7cee..cb2525a81 100644--- a/apps/web/src/config/pricing-table.tsx+++ b/apps/web/src/config/pricing-table.tsx@@ -49,14 +49,11 @@ export const pricingTableConfig: Record<value: "multi-region",label: "Multi-region monitoring",},- { value: "max-regions", label: "Number of Regions" },+ { value: "regions", label: "Total regions" },+ { value: "max-regions", label: "Regions per monitor" },{ value: "data-retention", label: "Data retention" },+ { value: "response-logs", label: "Response logs" },{ value: "otel", label: "OTel Exporter" },- ],- },- "synthetic-checks": {- label: "Synthetic API Checks",- features: [{value: "synthetic-checks",label: "Number of on-demand checks",diff --git a/apps/web/src/lib/tb.ts b/apps/web/src/lib/tb.tsindex b2d1e3422..64dd91de0 100644--- a/apps/web/src/lib/tb.ts+++ b/apps/web/src/lib/tb.ts@@ -19,29 +19,29 @@ export function prepareListByPeriod(period: Period, type: Type = "http") {switch (period) {case "1d": {const getData = {- http: tb.httpListDaily,- tcp: tb.tcpListDaily,+ http: tb.legacy_httpListDaily,+ tcp: tb.legacy_tcpListDaily,} as const;return { getData: getData[type] };}case "7d": {const getData = {- http: tb.httpListWeekly,- tcp: tb.tcpListWeekly,+ http: tb.legacy_httpListWeekly,+ tcp: tb.legacy_tcpListWeekly,} as const;return { getData: getData[type] };}case "14d": {const getData = {- http: tb.httpListBiweekly,- tcp: tb.tcpListBiweekly,+ http: tb.legacy_httpListBiweekly,+ tcp: tb.legacy_tcpListBiweekly,} as const;return { getData: getData[type] };}default: {const getData = {- http: tb.httpListDaily,- tcp: tb.tcpListDaily,+ http: tb.legacy_httpListDaily,+ tcp: tb.legacy_tcpListDaily,} as const;return { getData: getData[type] };}@@ -52,29 +52,29 @@ export function prepareMetricsByPeriod(period: Period, type: Type = "http") {switch (period) {case "1d": {const getData = {- http: tb.httpMetricsDaily,- tcp: tb.tcpMetricsDaily,+ http: tb.legacy_httpMetricsDaily,+ tcp: tb.legacy_tcpMetricsDaily,} as const;return { getData: getData[type] };}case "7d": {const getData = {- http: tb.httpMetricsWeekly,- tcp: tb.tcpMetricsWeekly,+ http: tb.legacy_httpMetricsWeekly,+ tcp: tb.legacy_tcpMetricsWeekly,} as const;return { getData: getData[type] };}case "14d": {const getData = {- http: tb.httpMetricsBiweekly,- tcp: tb.tcpMetricsBiweekly,+ http: tb.legacy_httpMetricsBiweekly,+ tcp: tb.legacy_tcpMetricsBiweekly,} as const;return { getData: getData[type] };}default: {const getData = {- http: tb.httpMetricsDaily,- tcp: tb.tcpMetricsDaily,+ http: tb.legacy_httpMetricsDaily,+ tcp: tb.legacy_tcpMetricsDaily,} as const;return { getData: getData[type] };}@@ -203,7 +203,7 @@ export function prepareGetByPeriod(period: "30d", type: Type = "http") {// FOR MIGRATIONexport type ResponseTimeMetrics = Awaited<- ReturnType<OSTinybird["httpMetricsDaily"]>+ ReturnType<OSTinybird["legacy_httpMetricsDaily"]>>["data"][number];export type ResponseTimeMetricsByRegion = Awaited<diff --git a/apps/workflows/package.json b/apps/workflows/package.jsonindex 726ef4f43..3a015816a 100644--- a/apps/workflows/package.json+++ b/apps/workflows/package.json@@ -24,7 +24,7 @@"@upstash/qstash": "2.6.2","hono": "4.5.3","limiter": "^3.0.0",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/biome.jsonc b/biome.jsoncindex e22f3aae1..69d327fea 100644--- a/biome.jsonc+++ b/biome.jsonc@@ -11,12 +11,23 @@"enabled": true,"rules": {"recommended": true,+ "suspicious": {+ "noArrayIndexKey": "off"+ },+ "performance": {+ "noAccumulatingSpread": "warn"+ },+ "complexity": {+ "noForEach": "off"+ },"a11y": {- "noSvgWithoutTitle": "off"+ "noSvgWithoutTitle": "off",+ "useKeyWithClickEvents": "off"},"correctness": {"noUnusedVariables": "warn",- "noUnusedImports": "error"+ "noUnusedImports": "error",+ "noSwitchDeclarations": "off"},"nursery": {"useSortedClasses": "warn"diff --git a/infra/openstatus.lock b/infra/openstatus.locknew file mode 100644index 000000000..a987b68d8--- /dev/null+++ b/infra/openstatus.lock@@ -0,0 +1,229 @@+openstat.us:+ ID: 2085+ Monitor:+ active: true+ frequency: 1m+ kind: http+ name: openstat.us+ public: true+ regions:+ - ams+ - iad+ - syd+ - gru+ - sin+ request:+ method: GET+ url: https://openstat.us+ retry: 3+openstatus:+ ID: 1+ Monitor:+ active: true+ description: "Our website \U0001F310"+ frequency: 10m+ kind: http+ name: 'OpenStatus '+ public: true+ regions:+ - ams+ - iad+ - jnb+ - hkg+ - gru+ - syd+ - mad+ - cdg+ - bom+ - sin+ - fra+ - otp+ - lhr+ - arn+ - waw+ - atl+ - bos+ - den+ - dfw+ - ord+ - gdl+ - lax+ - mia+ - qro+ - phx+ - yul+ - sjc+ - sea+ - ewr+ - yyz+ - bog+ - eze+ - gig+ - scl+ request:+ method: GET+ url: https://www.openstatus.dev+ retry: 3+openstatus api server:+ ID: 771+ Monitor:+ active: true+ description: "Our API Server \U0001F50C"+ frequency: 10m+ kind: http+ name: OpenStatus API+ public: true+ regions:+ - ams+ - iad+ - jnb+ - hkg+ - gru+ - syd+ - nrt+ - fra+ - lhr+ - bom+ - otp+ - sin+ - cdg+ - mad+ - waw+ - arn+ - atl+ - bos+ - den+ - dfw+ - ord+ - gdl+ - lax+ - mia+ - qro+ - phx+ - yul+ - sjc+ - sea+ - ewr+ - yyz+ - bog+ - eze+ - gig+ - scl+ request:+ method: GET+ url: https://api.openstatus.dev/ping+ retry: 3+openstatus astro status page:+ ID: 2662+ Monitor:+ active: true+ frequency: 1h+ kind: http+ name: OpenStatus Astro Status Page+ public: true+ regions:+ - ams+ - iad+ - hkg+ - jnb+ - syd+ - gru+ request:+ method: GET+ url: https://astro.openstat.us/+ retry: 3+openstatus status page:+ ID: 666+ Monitor:+ active: true+ description: "We are monitoring our own Status Page \U0001F4DD"+ frequency: 10m+ kind: http+ name: OpenStatus Status Page+ public: true+ regions:+ - ams+ - iad+ - jnb+ - hkg+ - gru+ - syd+ - bom+ - sin+ - fra+ - otp+ - lhr+ - mad+ - cdg+ - waw+ - arn+ - atl+ - bos+ - den+ - dfw+ - ord+ - gdl+ - lax+ - mia+ - qro+ - phx+ - sjc+ - yul+ - sea+ - ewr+ - yyz+ - bog+ - scl+ - eze+ - gig+ request:+ method: GET+ url: https://status.openstatus.dev/+ retry: 3+openstatus tcp check:+ ID: 4667+ Monitor:+ active: true+ frequency: 1m+ kind: tcp+ name: OpenStatus TCP+ regions:+ - ams+ - arn+ - atl+ - bog+ - bom+ - bos+ - cdg+ - den+ - dfw+ - ewr+ - eze+ - fra+ - gdl+ - gig+ - gru+ - hkg+ - iad+ - jnb+ - lax+ - lhr+ - mad+ - mia+ - nrt+ - ord+ - otp+ - phx+ - qro+ - scl+ - sea+ - sin+ - sjc+ - syd+ - waw+ - yul+ - yyz+ request:+ host: openstatus.dev+ port: 443+ retry: 3diff --git a/infra/openstatus.yaml b/infra/openstatus.yamlnew file mode 100644index 000000000..671659b6e--- /dev/null+++ b/infra/openstatus.yaml@@ -0,0 +1,219 @@+# yaml-language-server: $schema=https://www.openstatus.dev/schema.json++"openstatus":+ active: true+ description: "Our website \U0001F310"+ frequency: 10m+ kind: http+ name: 'OpenStatus '+ public: true+ regions:+ - ams+ - iad+ - jnb+ - hkg+ - gru+ - syd+ - mad+ - cdg+ - bom+ - sin+ - fra+ - otp+ - lhr+ - arn+ - waw+ - atl+ - bos+ - den+ - dfw+ - ord+ - gdl+ - lax+ - mia+ - qro+ - phx+ - yul+ - sjc+ - sea+ - ewr+ - yyz+ - bog+ - eze+ - gig+ - scl+ request:+ method: GET+ url: https://www.openstatus.dev+ retry: 3+"openstatus status page":+ active: true+ description: "We are monitoring our own Status Page \U0001F4DD"+ frequency: 10m+ kind: http+ name: OpenStatus Status Page+ public: true+ regions:+ - ams+ - iad+ - jnb+ - hkg+ - gru+ - syd+ - bom+ - sin+ - fra+ - otp+ - lhr+ - mad+ - cdg+ - waw+ - arn+ - atl+ - bos+ - den+ - dfw+ - ord+ - gdl+ - lax+ - mia+ - qro+ - phx+ - sjc+ - yul+ - sea+ - ewr+ - yyz+ - bog+ - scl+ - eze+ - gig+ request:+ method: GET+ url: https://status.openstatus.dev/+ retry: 3+"openstatus api server":+ active: true+ description: "Our API Server \U0001F50C"+ frequency: 10m+ kind: http+ name: OpenStatus API+ public: true+ regions:+ - ams+ - iad+ - jnb+ - hkg+ - gru+ - syd+ - nrt+ - fra+ - lhr+ - bom+ - otp+ - sin+ - cdg+ - mad+ - waw+ - arn+ - atl+ - bos+ - den+ - dfw+ - ord+ - gdl+ - lax+ - mia+ - qro+ - phx+ - yul+ - sjc+ - sea+ - ewr+ - yyz+ - bog+ - eze+ - gig+ - scl+ request:+ method: GET+ url: https://api.openstatus.dev/ping+ retry: 3+"openstat.us":+ active: true+ frequency: 1m+ kind: http+ name: openstat.us+ public: true+ regions:+ - ams+ - iad+ - syd+ - gru+ - sin+ request:+ method: GET+ url: https://openstat.us+ retry: 3+"openstatus astro status page":+ active: true+ frequency: 1h+ kind: http+ name: OpenStatus Astro Status Page+ public: true+ regions:+ - ams+ - iad+ - hkg+ - jnb+ - syd+ - gru+ request:+ method: GET+ url: https://astro.openstat.us/+ retry: 3+"openstatus tcp check":+ active: true+ frequency: 1m+ kind: tcp+ name: 'OpenStatus TCP'+ regions:+ - ams+ - arn+ - atl+ - bog+ - bom+ - bos+ - cdg+ - den+ - dfw+ - ewr+ - eze+ - fra+ - gdl+ - gig+ - gru+ - hkg+ - iad+ - jnb+ - lax+ - lhr+ - mad+ - mia+ - nrt+ - ord+ - otp+ - phx+ - qro+ - scl+ - sea+ - sin+ - sjc+ - syd+ - waw+ - yul+ - yyz+ request:+ host: openstatus.dev+ port: 443+ retry: 3diff --git a/packages/analytics/package.json b/packages/analytics/package.jsonindex 0a6ceee56..02073e4ea 100644--- a/packages/analytics/package.json+++ b/packages/analytics/package.json@@ -5,8 +5,8 @@"main": "src/index.ts","dependencies": {"@openpanel/sdk": "1.0.0",- "@t3-oss/env-core": "0.7.0",- "zod": "3.24.4"+ "@t3-oss/env-core": "0.7.1",+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/analytics/src/events.ts b/packages/analytics/src/events.tsindex 4436bec05..1c8adafac 100644--- a/packages/analytics/src/events.ts+++ b/packages/analytics/src/events.ts@@ -136,8 +136,12 @@ export const Events = {name: "api_key_revoked",channel: "api_key",},- UpgradeWorkspace: {+ UpdateWorkspace: {name: "workspace_updated",+ channel: "workspace",+ },+ UpgradeWorkspace: {+ name: "workspace_upgraded",channel: "billing",},StripePortal: {diff --git a/packages/api/package.json b/packages/api/package.jsonindex f9351a900..a51a34a4b 100644--- a/packages/api/package.json+++ b/packages/api/package.json@@ -13,16 +13,18 @@"@openstatus/emails": "workspace:*","@openstatus/error": "workspace:*","@openstatus/tinybird": "workspace:*",- "@t3-oss/env-core": "0.7.0",- "@trpc/client": "11.4.0",- "@trpc/server": "11.4.0",+ "@t3-oss/env-core": "0.7.1",+ "@trpc/client": "11.4.3",+ "@trpc/server": "11.4.3",+ "@unkey/api": "0.26.1",+ "@vercel/blob": "0.23.3","nanoid": "5.0.7","nanoid-dictionary": "5.0.0-beta.1",- "next": "15.2.4",+ "next": "15.3.4","random-word-slugs": "0.1.7","stripe": "13.8.0","superjson": "1.13.3",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/api/src/edge.ts b/packages/api/src/edge.tsindex 03487f909..8010ae94d 100644--- a/packages/api/src/edge.ts+++ b/packages/api/src/edge.ts@@ -1,8 +1,13 @@+import { apiKeyRouter } from "./router/apiKey";+import { blobRouter } from "./router/blob";+import { checkerRouter } from "./router/checker";import { domainRouter } from "./router/domain";+import { feedbackRouter } from "./router/feedback";import { incidentRouter } from "./router/incident";import { integrationRouter } from "./router/integration";import { invitationRouter } from "./router/invitation";import { maintenanceRouter } from "./router/maintenance";+import { memberRouter } from "./router/member";import { monitorRouter } from "./router/monitor";import { monitorTagRouter } from "./router/monitorTag";import { notificationRouter } from "./router/notification";@@ -16,6 +21,7 @@ import { createTRPCRouter } from "./trpc";// Deployed to /trpc/edge/**export const edgeRouter = createTRPCRouter({+ apiKey: apiKeyRouter,workspace: workspaceRouter,monitor: monitorRouter,page: pageRouter,@@ -30,4 +36,8 @@ export const edgeRouter = createTRPCRouter({tinybird: tinybirdRouter,monitorTag: monitorTagRouter,maintenance: maintenanceRouter,+ member: memberRouter,+ checker: checkerRouter,+ blob: blobRouter,+ feedback: feedbackRouter,});diff --git a/packages/api/src/env.ts b/packages/api/src/env.tsindex 75914134b..6d995fa2d 100644--- a/packages/api/src/env.ts+++ b/packages/api/src/env.ts@@ -9,6 +9,10 @@ export const env = createEnv({VERCEL_AUTH_BEARER_TOKEN: z.string(),TINY_BIRD_API_KEY: z.string(),RESEND_API_KEY: z.string(),+ CRON_SECRET: z.string(),+ UNKEY_TOKEN: z.string(),+ UNKEY_API_ID: z.string(),+ SLACK_FEEDBACK_WEBHOOK_URL: z.string().optional(),},runtimeEnv: {@@ -18,6 +22,10 @@ export const env = createEnv({VERCEL_AUTH_BEARER_TOKEN: process.env.VERCEL_AUTH_BEARER_TOKEN,TINY_BIRD_API_KEY: process.env.TINY_BIRD_API_KEY,RESEND_API_KEY: process.env.RESEND_API_KEY,+ CRON_SECRET: process.env.CRON_SECRET,+ UNKEY_TOKEN: process.env.UNKEY_TOKEN,+ UNKEY_API_ID: process.env.UNKEY_API_ID,+ SLACK_FEEDBACK_WEBHOOK_URL: process.env.SLACK_FEEDBACK_WEBHOOK_URL,},skipValidation: process.env.NODE_ENV === "test",});diff --git a/packages/api/src/router/apiKey.ts b/packages/api/src/router/apiKey.tsnew file mode 100644index 000000000..29d8075ae--- /dev/null+++ b/packages/api/src/router/apiKey.ts@@ -0,0 +1,76 @@+import { Unkey } from "@unkey/api";+import { z } from "zod";++import { Events } from "@openstatus/analytics";+import { db, eq } from "@openstatus/db";+import { user, usersToWorkspaces, workspace } from "@openstatus/db/src/schema";++import { TRPCError } from "@trpc/server";+import { env } from "../env";+import { createTRPCRouter, protectedProcedure } from "../trpc";++export const apiKeyRouter = createTRPCRouter({+ create: protectedProcedure+ .meta({ track: Events.CreateAPI })+ .input(z.object({ ownerId: z.number() }))+ .mutation(async ({ input, ctx }) => {+ const unkey = new Unkey({ token: env.UNKEY_TOKEN, cache: "no-cache" });++ const allowedWorkspaces = await db+ .select()+ .from(usersToWorkspaces)+ .innerJoin(user, eq(user.id, usersToWorkspaces.userId))+ .innerJoin(workspace, eq(workspace.id, usersToWorkspaces.workspaceId))+ .where(eq(user.id, ctx.user.id))+ .all();++ const allowedIds = allowedWorkspaces.map((i) => i.workspace.id);++ if (!allowedIds.includes(input.ownerId)) {+ throw new TRPCError({+ code: "UNAUTHORIZED",+ message: "Unauthorized",+ });+ }++ const key = await unkey.keys.create({+ apiId: env.UNKEY_API_ID,+ ownerId: String(input.ownerId),+ prefix: "os",+ });++ console.log(key);++ return key;+ }),++ revoke: protectedProcedure+ .meta({ track: Events.RevokeAPI })+ .input(z.object({ keyId: z.string() }))+ .mutation(async ({ input }) => {+ const unkey = new Unkey({ token: env.UNKEY_TOKEN, cache: "no-cache" });++ const res = await unkey.keys.delete({ keyId: input.keyId });+ return res;+ }),++ get: protectedProcedure.query(async ({ ctx }) => {+ const unkey = new Unkey({ token: env.UNKEY_TOKEN, cache: "no-cache" });++ const data = await unkey.apis.listKeys({+ apiId: env.UNKEY_API_ID,+ ownerId: String(ctx.workspace.id),+ });++ if (data?.error) {+ throw new TRPCError({+ code: "INTERNAL_SERVER_ERROR",+ message: "Something went wrong. Please contact us.",+ });+ }++ const value = data.result.keys?.[0] || null;++ return value;+ }),+});diff --git a/packages/api/src/router/blob.ts b/packages/api/src/router/blob.tsnew file mode 100644index 000000000..60134371d--- /dev/null+++ b/packages/api/src/router/blob.ts@@ -0,0 +1,39 @@+import { put } from "@vercel/blob";+import { z } from "zod";++import { TRPCError } from "@trpc/server";+import { createTRPCRouter, protectedProcedure } from "../trpc";++export const blobRouter = createTRPCRouter({+ upload: protectedProcedure+ .input(+ z.object({+ filename: z.string().min(1),+ // Base64 encoded string (without data: prefix)+ file: z.string().min(1),+ }),+ )+ .mutation(async (opts) => {+ const { filename, file } = opts.input;++ // If the client sent a data URL, strip the prefix+ const base64 = file.includes("base64,")+ ? file.split("base64,").pop()+ : file;++ if (!base64) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "Invalid file",+ });+ }++ const buffer = Buffer.from(base64, "base64");++ const blob = await put(`${opts.ctx.workspace.slug}/${filename}`, buffer, {+ access: "public",+ });++ return blob;+ }),+});diff --git a/packages/api/src/router/checker.ts b/packages/api/src/router/checker.tsnew file mode 100644index 000000000..c0bec1956--- /dev/null+++ b/packages/api/src/router/checker.ts@@ -0,0 +1,264 @@+import { TRPCError } from "@trpc/server";++import { Events } from "@openstatus/analytics";+import {+ deserialize,+ headerAssertion,+ jsonBodyAssertion,+ statusAssertion,+ textBodyAssertion,+} from "@openstatus/assertions";+import { monitorFlyRegionSchema } from "@openstatus/db/src/schema/constants";+import { z } from "zod";+import { env } from "../env";+import { createTRPCRouter, protectedProcedure } from "../trpc";++const ABORT_TIMEOUT = 10000;++// Input schemas+const httpTestInput = z.object({+ url: z.string().url(),+ method: z+ .enum([+ "GET",+ "HEAD",+ "OPTIONS",+ "POST",+ "PUT",+ "DELETE",+ "PATCH",+ "CONNECT",+ "TRACE",+ ])+ .default("GET"),+ headers: z.array(z.object({ key: z.string(), value: z.string() })).optional(),+ body: z.string().optional(),+ region: monitorFlyRegionSchema.optional().default("ams"),+ assertions: z+ .array(+ z.discriminatedUnion("type", [+ statusAssertion,+ headerAssertion,+ textBodyAssertion,+ jsonBodyAssertion,+ ]),+ )+ .default([]),+});++const tcpTestInput = z.object({+ url: z.string(),+ region: monitorFlyRegionSchema.optional().default("ams"),+});++export const tcpTextOutput = z+ .object({+ state: z.literal("success").default("success"),+ type: z.literal("tcp").default("tcp"),+ requestId: z.number().optional(),+ workspaceId: z.number().optional(),+ monitorId: z.number().optional(),+ timestamp: z.number(),+ timing: z.object({+ tcpStart: z.number(),+ tcpDone: z.number(),+ }),+ error: z.string().optional(),+ region: monitorFlyRegionSchema,+ latency: z.number().optional(),+ })+ .or(+ z.object({+ state: z.literal("error").default("error"),+ message: z.string(),+ }),+ );++export const httpOutput = z+ .object({+ state: z.literal("success").default("success"),+ type: z.literal("http").default("http"),+ status: z.number(),+ latency: z.number(),+ headers: z.record(z.string()),+ timestamp: z.number(),+ timing: z.object({+ dnsStart: z.number(),+ dnsDone: z.number(),+ connectStart: z.number(),+ connectDone: z.number(),+ tlsHandshakeStart: z.number(),+ tlsHandshakeDone: z.number(),+ firstByteStart: z.number(),+ firstByteDone: z.number(),+ transferStart: z.number(),+ transferDone: z.number(),+ }),+ body: z.string().optional().nullable(),+ region: monitorFlyRegionSchema,+ })+ .or(+ z.object({+ state: z.literal("error").default("error"),+ message: z.string(),+ }),+ );++export async function testHttp(input: z.infer<typeof httpTestInput>) {+ // Reject requests to our own domain to avoid loops+ if (input.url.includes("openstatus.dev")) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "Self-requests are not allowed",+ });+ }++ try {+ const res = await fetch(+ `https://checker.openstatus.dev/ping/${input.region}`,+ {+ method: "POST",+ headers: {+ Authorization: `Basic ${env.CRON_SECRET}`,+ "Content-Type": "application/json",+ "fly-prefer-region": input.region,+ },+ body: JSON.stringify({+ url: input.url,+ method: input.method,+ headers: input.headers?.reduce(+ (acc, { key, value }) => {+ if (!key) return acc;+ return { ...acc, [key]: value };+ },+ {} as Record<string, string>,+ ),+ body: input.body,+ }),+ signal: AbortSignal.timeout(ABORT_TIMEOUT),+ },+ );++ const json = await res.json();+ const result = httpOutput.safeParse(json);++ if (!result.success) {+ console.error(+ `Checker HTTP test failed for ${input.url}:`,+ result.error.message,+ );+ throw new TRPCError({+ code: "BAD_REQUEST",+ message:+ "Checker response is not valid. Please try again. If the problem persists, please contact support.",+ });+ }++ if (result.data.state === "error") {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: result.data.message,+ });+ }++ if (result.data.state === "success") {+ const { body, headers, status } = result.data;++ const assertions = deserialize(JSON.stringify(input.assertions)).map(+ (assertion) =>+ assertion.assert({+ body: body ?? "",+ header: headers ?? {},+ status: status,+ }),+ );++ if (assertions.some((assertion) => !assertion.success)) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: `Assertion error: ${+ assertions.find((assertion) => !assertion.success)?.message+ }`,+ });+ }++ if (assertions.length === 0 && (status < 200 || status >= 300)) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: `Assertion error: The response status was not 2XX: ${status}.`,+ });+ }+ }++ return result.data;+ } catch (error) {+ console.error("Checker HTTP test failed", error);+ throw new TRPCError({+ code: "INTERNAL_SERVER_ERROR",+ message: error instanceof Error ? error.message : "HTTP check failed",+ });+ }+}++export async function testTcp(input: z.infer<typeof tcpTestInput>) {+ try {+ const res = await fetch(+ `https://checker.openstatus.dev/tcp/${input.region}`,+ {+ method: "POST",+ headers: {+ Authorization: `Basic ${env.CRON_SECRET}`,+ "Content-Type": "application/json",+ "fly-prefer-region": input.region,+ },+ body: JSON.stringify({ uri: input.url }),+ signal: AbortSignal.timeout(ABORT_TIMEOUT),+ },+ );++ const json = await res.json();+ const result = tcpTextOutput.safeParse(json);++ if (!result.success) {+ console.error(+ `Checker TCP test failed for ${input.url}:`,+ result.error.message,+ );+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: `Checker response is not valid. Please try again. If the problem persists, please contact support. ${result.error.message}`,+ });+ }++ if (result.data.state === "error") {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: result.data.message,+ });+ }++ return result.data;+ } catch (error) {+ console.error("Checker TCP test failed", error);+ throw new TRPCError({+ code: "INTERNAL_SERVER_ERROR",+ message: "TCP check failed",+ });+ }+}++export const checkerRouter = createTRPCRouter({+ testHttp: protectedProcedure+ .meta({ track: Events.TestMonitor })+ .input(httpTestInput)+ .mutation(async ({ input }) => {+ return testHttp(input);+ }),++ testTcp: protectedProcedure+ .meta({ track: Events.TestMonitor })+ .input(tcpTestInput)+ .mutation(async ({ input }) => {+ return testTcp(input);+ }),+});diff --git a/packages/api/src/router/email/index.ts b/packages/api/src/router/email/index.tsindex 0656eef43..ce2943b16 100644--- a/packages/api/src/router/email/index.ts+++ b/packages/api/src/router/email/index.ts@@ -69,7 +69,7 @@ export const emailRouter = createTRPCRouter({}}),sendTeamInvitation: protectedProcedure- .input(z.object({ id: z.number() }))+ .input(z.object({ id: z.number(), baseUrl: z.string().optional() })).mutation(async (opts) => {const limits = opts.ctx.workspace.limits;@@ -88,6 +88,7 @@ export const emailRouter = createTRPCRouter({token: _invitation.token,invitedBy: `${opts.ctx.user.email}`,workspaceName: opts.ctx.workspace.name || "OpenStatus",+ baseUrl: opts.input.baseUrl,});}}),diff --git a/packages/api/src/router/feedback.ts b/packages/api/src/router/feedback.tsnew file mode 100644index 000000000..a76e60cb6--- /dev/null+++ b/packages/api/src/router/feedback.ts@@ -0,0 +1,60 @@+import { TRPCError } from "@trpc/server";+import { z } from "zod";+import { env } from "../env";+import { createTRPCRouter, protectedProcedure } from "../trpc";++export const feedbackRouter = createTRPCRouter({+ submit: protectedProcedure+ .input(+ z.object({+ // NOTE: coming from NavFeedback+ message: z.string().min(1, "Message required"),+ path: z.string().optional(),+ isMobile: z.boolean().optional(),+ // NOTE: coming from ContactForm+ name: z.string().optional(),+ email: z.string().email().optional(),+ blocker: z.boolean().optional(),+ type: z.string().optional(),+ }),+ )+ .mutation(async (opts) => {+ if (!env.SLACK_FEEDBACK_WEBHOOK_URL) {+ throw new TRPCError({+ code: "INTERNAL_SERVER_ERROR",+ message: "Slack feedback webhook not configured.",+ });+ }++ const textLines: string[] = [];+ if (opts.input.name) textLines.push(`*Name:* ${opts.input.name}`);+ if (opts.input.email) textLines.push(`*Email:* ${opts.input.email}`);+ if (opts.input.blocker)+ textLines.push(`*Blocker:* ${opts.input.blocker}`);+ if (opts.input.type) textLines.push(`*Type:* ${opts.input.type}`);+ if (opts.ctx.user) textLines.push(`*User:* ${opts.ctx.user.email}`);+ if (opts.input.path) textLines.push(`*Path:* ${opts.input.path}`);+ if (opts.input.isMobile)+ textLines.push(`*Mobile:* ${opts.input.isMobile}`);+ if (opts.ctx.metadata?.userAgent)+ textLines.push(`*User Agent:* ${opts.ctx.metadata.userAgent}`);+ if (opts.ctx.metadata?.location)+ textLines.push(`*Location:* ${opts.ctx.metadata.location}`);++ textLines.push("--------------------------------");++ textLines.push(`*Message:* ${opts.input.message}`);++ await fetch(env.SLACK_FEEDBACK_WEBHOOK_URL, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ text: textLines.join("\n"),+ }),+ });++ return { success: true } as const;+ }),+});diff --git a/packages/api/src/router/incident.ts b/packages/api/src/router/incident.tsindex 7adf96fb7..6d2e9201e 100644--- a/packages/api/src/router/incident.ts+++ b/packages/api/src/router/incident.ts@@ -1,9 +1,23 @@import { z } from "zod";-import { and, eq, isNull, schema } from "@openstatus/db";-import { selectIncidentSchema } from "@openstatus/db/src/schema";+import {+ type SQL,+ and,+ asc,+ desc,+ eq,+ gte,+ isNull,+ schema,+} from "@openstatus/db";+import {+ incidentTable,+ selectIncidentSchema,+ selectMonitorSchema,+} from "@openstatus/db/src/schema";import { Events } from "@openstatus/analytics";+import { TRPCError } from "@trpc/server";import { createTRPCRouter, protectedProcedure } from "../trpc";export const incidentRouter = createTRPCRouter({@@ -90,6 +104,7 @@ export const incidentRouter = createTRPCRouter({.set({acknowledgedAt: new Date(),acknowledgedBy: opts.ctx.user.id,+ updatedAt: new Date(),}).where(and(@@ -127,6 +142,7 @@ export const incidentRouter = createTRPCRouter({.set({resolvedAt: new Date(),resolvedBy: opts.ctx.user.id,+ updatedAt: new Date(),}).where(and(@@ -158,4 +174,138 @@ export const incidentRouter = createTRPCRouter({.where(eq(schema.incidentTable.id, incidentToDelete.id)).run();}),++ // DASHBOARD++ list: protectedProcedure+ .input(+ z+ .object({+ startedAt: z+ .object({+ gte: z.date().optional(),+ })+ .optional(),+ monitorId: z.number().nullish(),+ order: z.enum(["asc", "desc"]).optional(),+ })+ .optional(),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(incidentTable.workspaceId, opts.ctx.workspace.id),+ ];++ if (opts.input?.startedAt?.gte) {+ whereConditions.push(+ gte(incidentTable.startedAt, opts.input.startedAt.gte),+ );+ }++ if (opts.input?.monitorId) {+ whereConditions.push(eq(incidentTable.monitorId, opts.input.monitorId));+ }++ const result = await opts.ctx.db.query.incidentTable.findMany({+ where: and(...whereConditions),+ with: {+ monitor: true,+ },+ orderBy:+ opts.input?.order === "asc"+ ? asc(incidentTable.startedAt)+ : desc(incidentTable.startedAt),+ });++ return selectIncidentSchema+ .extend({+ monitor: selectMonitorSchema,+ })+ .array()+ .parse(result);+ }),++ acknowledge: protectedProcedure+ .meta({ track: Events.AcknowledgeIncident })+ .input(z.object({ id: z.number() }))+ .mutation(async (opts) => {+ const currentIncident = await opts.ctx.db+ .select()+ .from(schema.incidentTable)+ .where(+ and(+ eq(schema.incidentTable.id, opts.input.id),+ eq(schema.incidentTable.workspaceId, opts.ctx.workspace.id),+ ),+ )+ .get();+ if (!currentIncident) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Incident not found",+ });+ }+ if (currentIncident.acknowledgedAt) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "Incident already acknowledged",+ });+ }+ await opts.ctx.db+ .update(schema.incidentTable)+ .set({+ acknowledgedAt: new Date(),+ acknowledgedBy: opts.ctx.user.id,+ updatedAt: new Date(),+ })+ .where(+ and(+ eq(schema.incidentTable.id, opts.input.id),+ eq(schema.incidentTable.workspaceId, opts.ctx.workspace.id),+ ),+ );+ return true;+ }),++ resolve: protectedProcedure+ .meta({ track: Events.ResolveIncident })+ .input(z.object({ id: z.number() }))+ .mutation(async (opts) => {+ const currentIncident = await opts.ctx.db+ .select()+ .from(schema.incidentTable)+ .where(+ and(+ eq(schema.incidentTable.id, opts.input.id),+ eq(schema.incidentTable.workspaceId, opts.ctx.workspace.id),+ ),+ )+ .get();+ if (!currentIncident) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Incident not found",+ });+ }+ if (currentIncident.resolvedAt) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "Incident already resolved",+ });+ }+ await opts.ctx.db+ .update(schema.incidentTable)+ .set({+ resolvedAt: new Date(),+ resolvedBy: opts.ctx.user.id,+ updatedAt: new Date(),+ })+ .where(+ and(+ eq(schema.incidentTable.id, opts.input.id),+ eq(schema.incidentTable.workspaceId, opts.ctx.workspace.id),+ ),+ );+ return true;+ }),});diff --git a/packages/api/src/router/invitation.ts b/packages/api/src/router/invitation.tsindex 5be7115d1..1ffe1b689 100644--- a/packages/api/src/router/invitation.ts+++ b/packages/api/src/router/invitation.ts@@ -2,13 +2,15 @@ import { TRPCError } from "@trpc/server";import { z } from "zod";import { Events } from "@openstatus/analytics";-import { and, eq, gte, isNull } from "@openstatus/db";+import { type SQL, and, db, eq, gte, isNull } from "@openstatus/db";import {insertInvitationSchema,invitation,+ selectInvitationSchema,selectWorkspaceSchema,user,usersToWorkspaces,+ workspace,} from "@openstatus/db/src/schema";import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc";@@ -167,4 +169,127 @@ export const invitationRouter = createTRPCRouter({data: _invitation.workspace,};}),++ // DASHBOARD++ list: protectedProcedure.query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(invitation.workspaceId, opts.ctx.workspace.id),+ gte(invitation.expiresAt, new Date()),+ isNull(invitation.acceptedAt),+ ];++ const result = await opts.ctx.db.query.invitation.findMany({+ where: and(...whereConditions),+ });++ return result;+ }),++ get: protectedProcedure+ .input(z.object({ token: z.string().nullable() }))+ .query(async (opts) => {+ if (!opts.ctx.user.email) {+ throw new TRPCError({+ code: "UNAUTHORIZED",+ message: "You are not authorized to access this resource.",+ });+ }++ if (!opts.input.token) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "Token is required.",+ });+ }++ const result = await opts.ctx.db.query.invitation.findFirst({+ where: and(+ eq(invitation.token, opts.input.token),+ isNull(invitation.acceptedAt),+ gte(invitation.expiresAt, new Date()),+ eq(invitation.email, opts.ctx.user.email),+ ),+ with: {+ workspace: true,+ },+ });++ if (!result) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Invitation not found.",+ });+ }++ return selectInvitationSchema+ .extend({+ workspace: selectWorkspaceSchema,+ })+ .parse(result);+ }),++ accept: protectedProcedure+ .input(z.object({ id: z.number() }))+ .mutation(async (opts) => {+ if (!opts.ctx.user.email) {+ throw new TRPCError({+ code: "UNAUTHORIZED",+ message: "You are not authorized to access this resource.",+ });+ }++ const _invitation = await opts.ctx.db.query.invitation.findFirst({+ where: and(+ eq(invitation.id, opts.input.id),+ eq(invitation.email, opts.ctx.user.email),+ isNull(invitation.acceptedAt),+ gte(invitation.expiresAt, new Date()),+ ),+ with: {+ workspace: true,+ },+ });++ if (!_invitation) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Invitation not found.",+ });+ }++ if (_invitation.acceptedAt) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "Invitation already accepted.",+ });+ }++ const result = await db.transaction(async (tx) => {+ await tx+ .update(invitation)+ .set({+ acceptedAt: new Date(),+ })+ .where(eq(invitation.id, opts.input.id))+ .run();++ await tx+ .insert(usersToWorkspaces)+ .values({+ userId: opts.ctx.user.id,+ workspaceId: _invitation.workspaceId,+ role: _invitation.role,+ })+ .run();++ const _workspace = await tx.query.workspace.findFirst({+ where: eq(workspace.id, _invitation.workspaceId),+ });++ return _workspace;+ });++ return result;+ }),});diff --git a/packages/api/src/router/maintenance.ts b/packages/api/src/router/maintenance.tsindex b3e1750d8..389a9c899 100644--- a/packages/api/src/router/maintenance.ts+++ b/packages/api/src/router/maintenance.ts@@ -1,10 +1,21 @@import { z } from "zod";-import { and, eq, gte, inArray, lte } from "@openstatus/db";+import {+ type SQL,+ and,+ asc,+ desc,+ eq,+ gte,+ inArray,+ lte,+} from "@openstatus/db";import {insertMaintenanceSchema,maintenance,maintenancesToMonitors,+ monitor,+ selectMaintenanceSchema,} from "@openstatus/db/src/schema";import { Events } from "@openstatus/analytics";@@ -111,7 +122,7 @@ export const maintenanceRouter = createTRPCRouter({.all();return _maintenances;}),- update: protectedProcedure+ updateLegacy: protectedProcedure.meta({ track: Events.UpdateMaintenance }).input(insertMaintenanceSchema).mutation(async (opts) => {@@ -121,7 +132,11 @@ export const maintenanceRouter = createTRPCRouter({const _maintenance = await opts.ctx.db.update(maintenance)- .set({ ...opts.input, workspaceId: opts.ctx.workspace.id })+ .set({+ ...opts.input,+ workspaceId: opts.ctx.workspace.id,+ updatedAt: new Date(),+ }).where(and(eq(maintenance.id, opts.input.id),@@ -190,4 +205,188 @@ export const maintenanceRouter = createTRPCRouter({).returning();}),++ // DASHBOARD++ list: protectedProcedure+ .input(+ z+ .object({+ createdAt: z+ .object({+ gte: z.date().optional(),+ })+ .optional(),+ pageId: z.number().optional(),+ order: z.enum(["asc", "desc"]).optional(),+ })+ .optional(),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(maintenance.workspaceId, opts.ctx.workspace.id),+ ];++ if (opts.input?.createdAt?.gte) {+ whereConditions.push(+ gte(maintenance.createdAt, opts.input.createdAt.gte),+ );+ }++ if (opts.input?.pageId) {+ whereConditions.push(eq(maintenance.pageId, opts.input.pageId));+ }++ const query = opts.ctx.db.query.maintenance.findMany({+ where: and(...whereConditions),+ orderBy:+ opts.input?.order === "asc"+ ? asc(maintenance.createdAt)+ : desc(maintenance.createdAt),+ with: { maintenancesToMonitors: true },+ });++ const result = await query;++ return selectMaintenanceSchema.array().parse(+ result.map((m) => ({+ ...m,+ monitors: m.maintenancesToMonitors.map((m) => m.monitorId),+ })),+ );+ }),++ new: protectedProcedure+ .meta({ track: Events.CreateMaintenance })+ .input(+ z.object({+ pageId: z.number(),+ title: z.string(),+ message: z.string(),+ startDate: z.coerce.date(),+ endDate: z.coerce.date(),+ monitors: z.array(z.number()).optional(),+ }),+ )+ .mutation(async (opts) => {+ // Check if the user has access to the monitors+ if (opts.input.monitors?.length) {+ const whereConditions: SQL[] = [+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ inArray(monitor.id, opts.input.monitors),+ ];+ const monitors = await opts.ctx.db+ .select()+ .from(monitor)+ .where(and(...whereConditions))+ .all();++ if (monitors.length !== opts.input.monitors.length) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "You do not have access to all the monitors",+ });+ }+ }++ await opts.ctx.db.transaction(async (tx) => {+ const newMaintenance = await tx+ .insert(maintenance)+ .values({+ pageId: opts.input.pageId,+ workspaceId: opts.ctx.workspace.id,+ title: opts.input.title,+ message: opts.input.message,+ from: opts.input.startDate,+ to: opts.input.endDate,+ })+ .returning()+ .get();++ if (opts.input.monitors?.length) {+ await tx.insert(maintenancesToMonitors).values(+ opts.input.monitors.map((monitorId) => ({+ maintenanceId: newMaintenance.id,+ monitorId,+ })),+ );+ }++ return newMaintenance;+ });+ }),++ update: protectedProcedure+ .meta({ track: Events.UpdateMaintenance })+ .input(+ z.object({+ id: z.number(),+ title: z.string(),+ message: z.string(),+ startDate: z.coerce.date(),+ endDate: z.coerce.date(),+ monitors: z.array(z.number()).optional(),+ }),+ )+ .mutation(async (opts) => {+ // Check if the user has access to the monitors+ if (opts.input.monitors?.length) {+ const whereConditions: SQL[] = [+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ inArray(monitor.id, opts.input.monitors),+ ];+ const monitors = await opts.ctx.db+ .select()+ .from(monitor)+ .where(and(...whereConditions))+ .all();++ if (monitors.length !== opts.input.monitors.length) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "You do not have access to all the monitors",+ });+ }+ }++ await opts.ctx.db.transaction(async (tx) => {+ const whereConditions: SQL[] = [+ eq(maintenance.id, opts.input.id),+ eq(maintenance.workspaceId, opts.ctx.workspace.id),+ ];++ // Update the maintenance+ const _maintenance = await tx+ .update(maintenance)+ .set({+ title: opts.input.title,+ message: opts.input.message,+ from: opts.input.startDate,+ to: opts.input.endDate,+ workspaceId: opts.ctx.workspace.id,+ updatedAt: new Date(),+ })+ .where(and(...whereConditions))+ .returning()+ .get();++ // Delete all existing relations+ await tx+ .delete(maintenancesToMonitors)+ .where(eq(maintenancesToMonitors.maintenanceId, _maintenance.id))+ .run();++ // Create new relations if monitors are provided+ if (opts.input.monitors?.length) {+ await tx.insert(maintenancesToMonitors).values(+ opts.input.monitors.map((monitorId) => ({+ maintenanceId: _maintenance.id,+ monitorId,+ })),+ );+ }++ return _maintenance;+ });+ }),});diff --git a/packages/api/src/router/member.ts b/packages/api/src/router/member.tsnew file mode 100644index 000000000..b7dcc3702--- /dev/null+++ b/packages/api/src/router/member.ts@@ -0,0 +1,69 @@+import { z } from "zod";++import { Events } from "@openstatus/analytics";+import { and, eq } from "@openstatus/db";+import {+ selectUserSchema,+ usersToWorkspaces,+ workspaceRole,+} from "@openstatus/db/src/schema";++import { TRPCError } from "@trpc/server";+import { createTRPCRouter, protectedProcedure } from "../trpc";++export const memberRouter = createTRPCRouter({+ list: protectedProcedure.query(async (opts) => {+ const result = await opts.ctx.db.query.usersToWorkspaces.findMany({+ where: eq(usersToWorkspaces.workspaceId, opts.ctx.workspace.id),+ with: {+ user: true,+ },+ });++ return z+ .object({+ role: z.enum(workspaceRole),+ createdAt: z.coerce.date(),+ user: selectUserSchema,+ })+ .array()+ .parse(result);+ }),++ delete: protectedProcedure+ .meta({ track: Events.RemoveUser })+ .input(z.object({ id: z.number() }))+ .mutation(async (opts) => {+ const currentUser = await opts.ctx.db.query.usersToWorkspaces.findFirst({+ where: and(+ eq(usersToWorkspaces.userId, opts.ctx.user.id),+ eq(usersToWorkspaces.workspaceId, opts.ctx.workspace.id),+ ),+ });++ if (!currentUser) throw new Error("No user to workspace found");++ if (!["owner"].includes(currentUser.role)) {+ throw new TRPCError({+ code: "PRECONDITION_FAILED",+ message: "Not authorized to remove user from workspace",+ });+ }++ if (opts.input.id === opts.ctx.user.id) {+ throw new TRPCError({+ code: "PRECONDITION_FAILED",+ message: "Cannot remove yourself from workspace",+ });+ }++ await opts.ctx.db+ .delete(usersToWorkspaces)+ .where(+ and(+ eq(usersToWorkspaces.workspaceId, opts.ctx.workspace.id),+ eq(usersToWorkspaces.userId, opts.input.id),+ ),+ );+ }),+});diff --git a/packages/api/src/router/monitor.ts b/packages/api/src/router/monitor.tsindex 3a7aca975..339332f73 100644--- a/packages/api/src/router/monitor.ts+++ b/packages/api/src/router/monitor.ts@@ -6,13 +6,19 @@ import {HeaderAssertion,StatusAssertion,TextBodyAssertion,+ headerAssertion,+ jsonBodyAssertion,serialize,+ statusAssertion,+ textBodyAssertion,} from "@openstatus/assertions";-import { and, eq, inArray, isNull, sql } from "@openstatus/db";+import { type SQL, and, count, eq, inArray, isNull, sql } from "@openstatus/db";import {insertMonitorSchema,maintenancesToMonitors,monitor,+ monitorJobTypes,+ monitorMethods,monitorTag,monitorTagsToMonitors,monitorsToPages,@@ -20,14 +26,23 @@ import {notification,notificationsToMonitors,page,+ selectIncidentSchema,+ selectMaintenanceSchema,selectMonitorSchema,selectMonitorTagSchema,selectNotificationSchema,+ selectPageSchema,selectPublicMonitorSchema,} from "@openstatus/db/src/schema";import { Events } from "@openstatus/analytics";+import {+ flyRegions,+ freeFlyRegions,+ monitorPeriodicity,+} from "@openstatus/db/src/schema/constants";import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc";+import { testHttp, testTcp } from "./checker";export const monitorRouter = createTRPCRouter({create: protectedProcedure@@ -798,4 +813,600 @@ export const monitorRouter = createTRPCRouter({monitorTagIds: parsedTags,};}),++ // DASHBOARD++ list: protectedProcedure+ .input(+ z+ .object({+ order: z.enum(["asc", "desc"]).optional(),+ })+ .optional(),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ isNull(monitor.deletedAt),+ ];++ const result = await opts.ctx.db.query.monitor.findMany({+ where: and(...whereConditions),+ with: {+ monitorTagsToMonitors: {+ with: { monitorTag: true },+ },+ incidents: {+ orderBy: (incident, { desc }) => [desc(incident.createdAt)],+ },+ },+ orderBy: (monitor, { asc, desc }) =>+ opts.input?.order === "asc"+ ? [asc(monitor.active), asc(monitor.createdAt)]+ : [desc(monitor.active), desc(monitor.createdAt)],+ });++ return z+ .array(+ selectMonitorSchema.extend({+ tags: z.array(selectMonitorTagSchema).default([]),+ incidents: z.array(selectIncidentSchema).default([]),+ }),+ )+ .parse(+ result.map((data) => ({+ ...data,+ tags: data.monitorTagsToMonitors.map((t) => t.monitorTag),+ })),+ );+ }),++ get: protectedProcedure+ .input(z.object({ id: z.coerce.number() }))+ .query(async ({ ctx, input }) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, input.id),+ eq(monitor.workspaceId, ctx.workspace.id),+ isNull(monitor.deletedAt),+ ];++ const data = await ctx.db.query.monitor.findFirst({+ where: and(...whereConditions),+ with: {+ monitorsToNotifications: {+ with: { notification: true },+ },+ monitorsToPages: {+ with: { page: true },+ },+ monitorTagsToMonitors: {+ with: { monitorTag: true },+ },+ maintenancesToMonitors: {+ with: { maintenance: true },+ },+ incidents: true,+ },+ });++ if (!data) return null;++ return selectMonitorSchema+ .extend({+ notifications: z.array(selectNotificationSchema).default([]),+ pages: z.array(selectPageSchema).default([]),+ tags: z.array(selectMonitorTagSchema).default([]),+ maintenances: z.array(selectMaintenanceSchema).default([]),+ incidents: z.array(selectIncidentSchema).default([]),+ })+ .parse({+ ...data,+ notifications: data.monitorsToNotifications.map(+ (m) => m.notification,+ ),+ pages: data.monitorsToPages.map((p) => p.page),+ tags: data.monitorTagsToMonitors.map((t) => t.monitorTag),+ maintenances: data.maintenancesToMonitors.map((m) => m.maintenance),+ incidents: data.incidents,+ });+ }),++ clone: protectedProcedure+ .input(z.object({ id: z.number() }))+ .mutation(async ({ ctx, input }) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, input.id),+ eq(monitor.workspaceId, ctx.workspace.id),+ isNull(monitor.deletedAt),+ ];++ const _monitors = await ctx.db.query.monitor.findMany({+ where: and(+ eq(monitor.workspaceId, ctx.workspace.id),+ isNull(monitor.deletedAt),+ ),+ });++ if (_monitors.length >= ctx.workspace.limits.monitors) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You have reached the maximum number of monitors.",+ });+ }++ const data = await ctx.db.query.monitor.findFirst({+ where: and(...whereConditions),+ });++ if (!data) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Monitor not found.",+ });+ }++ const [newMonitor] = await ctx.db+ .insert(monitor)+ .values({+ ...data,+ id: undefined, // let the db generate the id+ name: `${data.name} (Copy)`,+ createdAt: new Date(),+ updatedAt: new Date(),+ })+ .returning();++ if (!newMonitor) {+ throw new TRPCError({+ code: "INTERNAL_SERVER_ERROR",+ message: "Failed to clone monitor.",+ });+ }++ return newMonitor;+ }),++ updateRetry: protectedProcedure+ .input(z.object({ id: z.number(), retry: z.number() }))+ .mutation(async ({ ctx, input }) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, input.id),+ eq(monitor.workspaceId, ctx.workspace.id),+ isNull(monitor.deletedAt),+ ];++ await ctx.db+ .update(monitor)+ .set({ retry: input.retry, updatedAt: new Date() })+ .where(and(...whereConditions))+ .run();+ }),++ updateOtel: protectedProcedure+ .input(+ z.object({+ id: z.number(),+ otelEndpoint: z.string(),+ otelHeaders: z+ .array(z.object({ key: z.string(), value: z.string() }))+ .optional(),+ }),+ )+ .mutation(async ({ ctx, input }) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, input.id),+ eq(monitor.workspaceId, ctx.workspace.id),+ isNull(monitor.deletedAt),+ ];++ await ctx.db+ .update(monitor)+ .set({+ otelEndpoint: input.otelEndpoint,+ otelHeaders: input.otelHeaders+ ? JSON.stringify(input.otelHeaders)+ : undefined,+ updatedAt: new Date(),+ })+ .where(and(...whereConditions))+ .run();+ }),++ updatePublic: protectedProcedure+ .input(z.object({ id: z.number(), public: z.boolean() }))+ .mutation(async ({ ctx, input }) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, input.id),+ eq(monitor.workspaceId, ctx.workspace.id),+ isNull(monitor.deletedAt),+ ];++ await ctx.db+ .update(monitor)+ .set({ public: input.public, updatedAt: new Date() })+ .where(and(...whereConditions))+ .run();+ }),++ updateSchedulingRegions: protectedProcedure+ .input(+ z.object({+ id: z.number(),+ regions: z.array(z.string()),+ periodicity: z.enum(monitorPeriodicity),+ }),+ )+ .mutation(async ({ ctx, input }) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, input.id),+ eq(monitor.workspaceId, ctx.workspace.id),+ isNull(monitor.deletedAt),+ ];++ const limits = ctx.workspace.limits;++ if (!limits.periodicity.includes(input.periodicity)) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "Upgrade to check more often.",+ });+ }++ if (limits["max-regions"] < input.regions.length) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You have reached the maximum number of regions.",+ });+ }++ console.log(input.regions, limits.regions);++ if (+ input.regions.length > 0 &&+ !input.regions.every((r) =>+ limits.regions.includes(r as (typeof limits)["regions"][number]),+ )+ ) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You don't have access to this region.",+ });+ }++ await ctx.db+ .update(monitor)+ .set({+ regions: input.regions.join(","),+ periodicity: input.periodicity,+ updatedAt: new Date(),+ })+ .where(and(...whereConditions))+ .run();+ }),++ updateResponseTime: protectedProcedure+ .input(+ z.object({+ id: z.number(),+ timeout: z.number(),+ degradedAfter: z.number().optional(),+ }),+ )+ .mutation(async ({ ctx, input }) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, input.id),+ eq(monitor.workspaceId, ctx.workspace.id),+ isNull(monitor.deletedAt),+ ];++ await ctx.db+ .update(monitor)+ .set({+ timeout: input.timeout,+ degradedAfter: input.degradedAfter,+ updatedAt: new Date(),+ })+ .where(and(...whereConditions))+ .run();+ }),++ updateTags: protectedProcedure+ .input(z.object({ id: z.number(), tags: z.array(z.number()) }))+ .mutation(async ({ ctx, input }) => {+ const allTags = await ctx.db.query.monitorTag.findMany({+ where: and(+ eq(monitorTag.workspaceId, ctx.workspace.id),+ inArray(monitorTag.id, input.tags),+ ),+ });++ if (allTags.length !== input.tags.length) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You don't have access to this tag.",+ });+ }++ await ctx.db.transaction(async (tx) => {+ await tx+ .delete(monitorTagsToMonitors)+ .where(and(eq(monitorTagsToMonitors.monitorId, input.id)));++ if (input.tags.length > 0) {+ await tx.insert(monitorTagsToMonitors).values(+ input.tags.map((tagId) => ({+ monitorId: input.id,+ monitorTagId: tagId,+ })),+ );+ }+ });+ }),++ updateStatusPages: protectedProcedure+ .input(+ z.object({+ id: z.number(),+ statusPages: z.array(z.number()),+ // TODO: add custom name for monitor, shown on status page, requires db migration+ description: z.string().optional(),+ }),+ )+ .mutation(async ({ ctx, input }) => {+ const allPages = await ctx.db.query.page.findMany({+ where: and(+ eq(page.workspaceId, ctx.workspace.id),+ inArray(page.id, input.statusPages),+ ),+ });++ if (allPages.length !== input.statusPages.length) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You don't have access to this status page.",+ });+ }++ await ctx.db.transaction(async (tx) => {+ await tx+ .delete(monitorsToPages)+ .where(and(eq(monitorsToPages.monitorId, input.id)));++ if (input.statusPages.length > 0) {+ await tx.insert(monitorsToPages).values(+ input.statusPages.map((pageId) => ({+ monitorId: input.id,+ pageId,+ })),+ );+ }++ if (input.description) {+ await tx+ .update(monitor)+ .set({ description: input.description, updatedAt: new Date() })+ .where(and(eq(monitor.id, input.id)));+ }+ });+ }),++ updateGeneral: protectedProcedure+ .input(+ z.object({+ id: z.number(),+ jobType: z.enum(monitorJobTypes),+ url: z.string(),+ method: z.enum(monitorMethods),+ headers: z.array(z.object({ key: z.string(), value: z.string() })),+ body: z.string().optional(),+ name: z.string(),+ assertions: z.array(+ z.discriminatedUnion("type", [+ statusAssertion,+ headerAssertion,+ textBodyAssertion,+ jsonBodyAssertion,+ ]),+ ),+ active: z.boolean().default(true),+ // skip the test check if assertions are OK+ skipCheck: z.boolean().default(true),+ // save check in db (iff success? -> e.g. onboarding to get a first ping)+ saveCheck: z.boolean().default(false),+ }),+ )+ .mutation(async ({ ctx, input }) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, input.id),+ eq(monitor.workspaceId, ctx.workspace.id),+ isNull(monitor.deletedAt),+ ];++ const assertions: Assertion[] = [];+ for (const a of input.assertions ?? []) {+ if (a.type === "status") {+ assertions.push(new StatusAssertion(a));+ }+ if (a.type === "header") {+ assertions.push(new HeaderAssertion(a));+ }+ if (a.type === "textBody") {+ assertions.push(new TextBodyAssertion(a));+ }+ }++ // NOTE: we are checking the endpoint before saving+ if (!input.skipCheck) {+ if (input.jobType === "http") {+ await testHttp({+ url: input.url,+ method: input.method,+ headers: input.headers,+ body: input.body,+ assertions: input.assertions,+ region: "ams",+ });+ } else if (input.jobType === "tcp") {+ await testTcp({+ url: input.url,+ region: "ams",+ });+ }+ }++ await ctx.db+ .update(monitor)+ .set({+ name: input.name,+ jobType: input.jobType,+ url: input.url,+ method: input.method,+ headers: input.headers ? JSON.stringify(input.headers) : undefined,+ body: input.body,+ active: input.active,+ assertions: serialize(assertions),+ updatedAt: new Date(),+ })+ .where(and(...whereConditions))+ .run();+ }),++ updateNotifiers: protectedProcedure+ .input(z.object({ id: z.number(), notifiers: z.array(z.number()) }))+ .mutation(async ({ ctx, input }) => {+ const allNotifiers = await ctx.db.query.notification.findMany({+ where: and(+ eq(notification.workspaceId, ctx.workspace.id),+ inArray(notification.id, input.notifiers),+ ),+ });++ if (allNotifiers.length !== input.notifiers.length) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You don't have access to this notifier.",+ });+ }++ await ctx.db.transaction(async (tx) => {+ await tx+ .delete(notificationsToMonitors)+ .where(and(eq(notificationsToMonitors.monitorId, input.id)));++ if (input.notifiers.length > 0) {+ await tx.insert(notificationsToMonitors).values(+ input.notifiers.map((notifierId) => ({+ monitorId: input.id,+ notificationId: notifierId,+ })),+ );+ }+ });+ }),++ new: protectedProcedure+ .input(+ z.object({+ name: z.string(),+ jobType: z.enum(monitorJobTypes),+ url: z.string(),+ method: z.enum(monitorMethods),+ headers: z.array(z.object({ key: z.string(), value: z.string() })),+ body: z.string().optional(),+ assertions: z.array(+ z.discriminatedUnion("type", [+ statusAssertion,+ headerAssertion,+ textBodyAssertion,+ jsonBodyAssertion,+ ]),+ ),+ active: z.boolean().default(false),+ saveCheck: z.boolean().default(false),+ skipCheck: z.boolean().default(false),+ }),+ )+ .mutation(async ({ ctx, input }) => {+ const limits = ctx.workspace.limits;++ const res = await ctx.db+ .select({ count: count() })+ .from(monitor)+ .where(+ and(+ eq(monitor.workspaceId, ctx.workspace.id),+ isNull(monitor.deletedAt),+ ),+ )+ .get();++ // the user has reached the limits+ if (res && res.count >= limits.monitors) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You reached your monitor limits.",+ });+ }++ const assertions: Assertion[] = [];+ for (const a of input.assertions ?? []) {+ if (a.type === "status") {+ assertions.push(new StatusAssertion(a));+ }+ if (a.type === "header") {+ assertions.push(new HeaderAssertion(a));+ }+ if (a.type === "textBody") {+ assertions.push(new TextBodyAssertion(a));+ }+ }++ // NOTE: we are checking the endpoint before saving+ if (!input.skipCheck) {+ if (input.jobType === "http") {+ await testHttp({+ url: input.url,+ method: input.method,+ headers: input.headers,+ body: input.body,+ assertions: input.assertions,+ region: "ams",+ });+ } else if (input.jobType === "tcp") {+ await testTcp({+ url: input.url,+ region: "ams",+ });+ }+ }++ const selectableRegions =+ ctx.workspace.plan === "free" ? freeFlyRegions : flyRegions;+ const randomRegions = ctx.workspace.plan === "free" ? 4 : 6;++ const regions = [...selectableRegions]+ .sort(() => 0.5 - Math.random())+ .slice(0, randomRegions);++ const newMonitor = await ctx.db+ .insert(monitor)+ .values({+ name: input.name,+ jobType: input.jobType,+ url: input.url,+ method: input.method,+ headers: input.headers ? JSON.stringify(input.headers) : undefined,+ body: input.body,+ active: input.active,+ workspaceId: ctx.workspace.id,+ periodicity: "30m",+ regions: regions.join(","),+ assertions: serialize(assertions),+ updatedAt: new Date(),+ })+ .returning()+ .get();++ return newMonitor;+ }),});diff --git a/packages/api/src/router/monitorTag.ts b/packages/api/src/router/monitorTag.tsindex 47a8baf0a..2abeb5ce4 100644--- a/packages/api/src/router/monitorTag.ts+++ b/packages/api/src/router/monitorTag.ts@@ -1,10 +1,16 @@import { z } from "zod";-import { and, eq } from "@openstatus/db";+import { and, eq, inArray } from "@openstatus/db";import { insertMonitorTagSchema, monitorTag } from "@openstatus/db/src/schema";import { createTRPCRouter, protectedProcedure } from "../trpc";+const tagSchema = z.object({+ id: z.number().optional(),+ name: z.string(),+ color: z.string(),+});+export const monitorTagRouter = createTRPCRouter({getMonitorTagsByWorkspace: protectedProcedure.query(async (opts) => {return opts.ctx.db.query.monitorTag.findMany({@@ -19,7 +25,11 @@ export const monitorTagRouter = createTRPCRouter({if (!opts.input.id) return;return await opts.ctx.db.update(monitorTag)- .set({ name: opts.input.name, color: opts.input.color })+ .set({+ name: opts.input.name,+ color: opts.input.color,+ updatedAt: new Date(),+ }).where(and(eq(monitorTag.workspaceId, opts.ctx.workspace.id),@@ -57,4 +67,91 @@ export const monitorTagRouter = createTRPCRouter({.returning().get();}),++ // DASHBOARD++ list: protectedProcedure.query(async (opts) => {+ return opts.ctx.db.query.monitorTag.findMany({+ where: eq(monitorTag.workspaceId, opts.ctx.workspace.id),+ with: { monitor: true },+ });+ }),++ syncTags: protectedProcedure+ .input(z.array(tagSchema))+ .mutation(async (opts) => {+ const { ctx } = opts;+ const workspaceId = ctx.workspace.id;++ return await ctx.db.transaction(async (tx) => {+ // Get all existing tags for this workspace+ const existingTags = await tx.query.monitorTag.findMany({+ where: eq(monitorTag.workspaceId, workspaceId),+ });++ // Get IDs of tags that should be kept (have an ID in the input)+ const keepTagIds = new Set(+ opts.input+ .map((tag) => tag.id)+ .filter((id): id is number => id !== undefined),+ );++ // Delete tags that are not in the input+ const tagsToDelete = existingTags.filter(+ (tag) => !keepTagIds.has(tag.id),+ );+ if (tagsToDelete.length > 0) {+ await tx+ .delete(monitorTag)+ .where(+ and(+ eq(monitorTag.workspaceId, workspaceId),+ inArray(+ monitorTag.id,+ tagsToDelete.map((t) => t.id),+ ),+ ),+ )+ .run();+ }++ // Update or create tags+ const results = await Promise.all(+ opts.input.map(async (tag) => {+ if (tag.id) {+ // Update existing tag+ return tx+ .update(monitorTag)+ .set({+ name: tag.name,+ color: tag.color,+ updatedAt: new Date(),+ })+ .where(+ and(+ eq(monitorTag.workspaceId, workspaceId),+ eq(monitorTag.id, tag.id),+ ),+ )+ .returning()+ .get();+ }+ // Create new tag+ return tx+ .insert(monitorTag)+ .values({+ name: tag.name,+ color: tag.color,+ workspaceId,+ })+ .returning()+ .get();+ }),+ );++ console.error(results);++ return results;+ });+ }),});diff --git a/packages/api/src/router/notification.ts b/packages/api/src/router/notification.tsindex c425053b1..0838a0d39 100644--- a/packages/api/src/router/notification.ts+++ b/packages/api/src/router/notification.ts@@ -1,12 +1,13 @@import { TRPCError } from "@trpc/server";import { z } from "zod";-import { and, eq, inArray } from "@openstatus/db";+import { type SQL, and, count, db, eq, inArray } from "@openstatus/db";import {NotificationDataSchema,insertNotificationSchema,monitor,notification,+ notificationProvider,notificationsToMonitors,selectMonitorSchema,selectNotificationSchema,@@ -240,4 +241,199 @@ export const notificationRouter = createTRPCRouter({return notificationNumbers >= notificationLimit;}),++ list: protectedProcedure.query(async (opts) => {+ const notifications = await opts.ctx.db.query.notification.findMany({+ where: eq(notification.workspaceId, opts.ctx.workspace.id),+ with: {+ monitor: {+ with: {+ monitor: true,+ },+ },+ },+ });++ return selectNotificationSchema+ .extend({+ monitors: selectMonitorSchema.array(),+ })+ .array()+ .parse(+ notifications.map((notification) => ({+ ...notification,+ monitors: notification.monitor.map(({ monitor }) => monitor),+ })),+ );+ }),++ // TODO: rename to update after migration+ updateNotifier: protectedProcedure+ .meta({ track: Events.UpdateNotification })+ .input(+ z.object({+ id: z.number(),+ name: z.string(),+ data: z.record(+ z.string(),+ z.string().or(z.record(z.string(), z.string())),+ ),+ monitors: z.array(z.number()),+ }),+ )+ .mutation(async (opts) => {+ const whereCondition: SQL[] = [+ eq(notification.id, opts.input.id),+ eq(notification.workspaceId, opts.ctx.workspace.id),+ ];++ const allMonitors = await opts.ctx.db.query.monitor.findMany({+ where: and(+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ inArray(monitor.id, opts.input.monitors),+ ),+ });++ if (allMonitors.length !== opts.input.monitors.length) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You don't have access to all the monitors.",+ });+ }++ db.transaction(async (tx) => {+ await tx+ .update(notification)+ .set({+ name: opts.input.name,+ data: JSON.stringify(opts.input.data),+ updatedAt: new Date(),+ })+ .where(and(...whereCondition));++ await tx+ .delete(notificationsToMonitors)+ .where(+ and(eq(notificationsToMonitors.notificationId, opts.input.id)),+ );++ await tx.insert(notificationsToMonitors).values(+ opts.input.monitors.map((monitorId) => ({+ notificationId: opts.input.id,+ monitorId,+ })),+ );+ });+ }),++ new: protectedProcedure+ .meta({ track: Events.CreateNotification })+ .input(+ z.object({+ provider: z.enum(notificationProvider),+ data: z.record(+ z.enum(notificationProvider),+ z.record(z.string(), z.string()).or(z.string()),+ ),+ name: z.string(),+ monitors: z.array(z.number()).default([]),+ }),+ )+ .mutation(async (opts) => {+ const limits = opts.ctx.workspace.limits;++ const res = await opts.ctx.db+ .select({ count: count() })+ .from(notification)+ .where(eq(notification.workspaceId, opts.ctx.workspace.id))+ .get();++ // the user has reached the limits+ if (res && res.count >= limits["notification-channels"]) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You reached your notification limits.",+ });+ }++ const allMonitors = await opts.ctx.db.query.monitor.findMany({+ where: and(+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ inArray(monitor.id, opts.input.monitors),+ ),+ });++ if (allMonitors.length !== opts.input.monitors.length) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You don't have access to all the monitors.",+ });+ }++ const limitedProviders = ["sms", "pagerduty", "opsgenie"] as const;+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>+ if (limitedProviders.includes(opts.input.provider as any)) {+ const isAllowed =+ opts.ctx.workspace.limits[+ opts.input.provider as "sms" | "pagerduty" | "opsgenie"+ ];++ if (!isAllowed) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "Upgrade to use the notification channel.",+ });+ }+ }++ const _data = NotificationDataSchema.safeParse(opts.input.data);++ if (!_data.success) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: SchemaError.fromZod(_data.error, opts.input).message,+ });+ }++ const _notification = await db.transaction(async (tx) => {+ const _notification = await opts.ctx.db+ .insert(notification)+ .values({+ name: opts.input.name,+ provider: opts.input.provider,+ data: JSON.stringify(opts.input.data),+ workspaceId: opts.ctx.workspace.id,+ })+ .returning()+ .get();++ if (opts.input.monitors.length) {+ await tx.insert(notificationsToMonitors).values(+ opts.input.monitors.map((monitorId) => ({+ notificationId: _notification.id,+ monitorId,+ })),+ );+ }++ return _notification;+ });++ return _notification;+ }),++ delete: protectedProcedure+ .meta({ track: Events.DeleteNotification })+ .input(z.object({ id: z.number() }))+ .mutation(async (opts) => {+ await opts.ctx.db+ .delete(notification)+ .where(+ and(+ eq(notification.id, opts.input.id),+ eq(notification.workspaceId, opts.ctx.workspace.id),+ ),+ )+ .run();+ }),});diff --git a/packages/api/src/router/page.ts b/packages/api/src/router/page.tsindex a449e45d0..3d824b2fa 100644--- a/packages/api/src/router/page.ts+++ b/packages/api/src/router/page.ts@@ -1,7 +1,17 @@import { TRPCError } from "@trpc/server";import { z } from "zod";-import { and, eq, gte, inArray, isNull, lte, sql } from "@openstatus/db";+import {+ type SQL,+ and,+ desc,+ eq,+ gte,+ inArray,+ isNull,+ lte,+ sql,+} from "@openstatus/db";import {incidentTable,insertPageSchema,@@ -9,6 +19,9 @@ import {monitor,monitorsToPages,page,+ selectMaintenanceSchema,+ selectMonitorSchema,+ selectPageSchema,selectPageSchemaWithMonitorsRelation,selectPublicPageSchemaWithRelation,statusReport,@@ -17,8 +30,38 @@ import {} from "@openstatus/db/src/schema";import { Events } from "@openstatus/analytics";+import { env } from "../env";import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc";+// Helper functions to reuse Vercel API logic+async function addDomainToVercel(domain: string) {+ const data = await fetch(+ `https://api.vercel.com/v9/projects/${env.PROJECT_ID_VERCEL}/domains?teamId=${env.TEAM_ID_VERCEL}`,+ {+ body: JSON.stringify({ name: domain }),+ headers: {+ Authorization: `Bearer ${env.VERCEL_AUTH_BEARER_TOKEN}`,+ "Content-Type": "application/json",+ },+ method: "POST",+ },+ );+ return data.json();+}++async function removeDomainFromVercel(domain: string) {+ const data = await fetch(+ `https://api.vercel.com/v9/projects/${env.PROJECT_ID_VERCEL}/domains/${domain}?teamId=${env.TEAM_ID_VERCEL}`,+ {+ headers: {+ Authorization: `Bearer ${env.VERCEL_AUTH_BEARER_TOKEN}`,+ },+ method: "DELETE",+ },+ );+ return data.json();+}+export const pageRouter = createTRPCRouter({create: protectedProcedure.meta({ track: Events.CreatePage, trackProps: ["slug"] })@@ -203,16 +246,17 @@ export const pageRouter = createTRPCRouter({.meta({ track: Events.DeletePage }).input(z.object({ id: z.number() })).mutation(async (opts) => {+ const whereConditions: SQL[] = [+ eq(page.id, opts.input.id),+ eq(page.workspaceId, opts.ctx.workspace.id),+ ];+await opts.ctx.db.delete(page)- .where(- and(- eq(page.id, opts.input.id),- eq(page.workspaceId, opts.ctx.workspace.id),- ),- )+ .where(and(...whereConditions)).run();}),+getPagesByWorkspace: protectedProcedure.query(async (opts) => {const allPages = await opts.ctx.db.query.page.findMany({where: and(eq(page.workspaceId, opts.ctx.workspace.id)),@@ -369,10 +413,17 @@ export const pageRouter = createTRPCRouter({z.object({ customDomain: z.string().toLowerCase(), pageId: z.number() }),).mutation(async (opts) => {+ if (opts.input.customDomain.toLowerCase().includes("openstatus")) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "Domain cannot contain 'openstatus'",+ });+ }+// TODO Add some check ?await opts.ctx.db.update(page)- .set({ customDomain: opts.input.customDomain })+ .set({ customDomain: opts.input.customDomain, updatedAt: new Date() }).where(eq(page.id, opts.input.pageId)).returning().get();@@ -388,4 +439,339 @@ export const pageRouter = createTRPCRouter({return pageNumbers >= pageLimit;}),++ // DASHBOARD++ list: protectedProcedure+ .input(+ z+ .object({+ order: z.enum(["asc", "desc"]).optional(),+ })+ .optional(),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(page.workspaceId, opts.ctx.workspace.id),+ ];++ const result = await opts.ctx.db.query.page.findMany({+ where: and(...whereConditions),+ with: {+ statusReports: true,+ },+ orderBy: (pages, { asc }) => [+ opts.input?.order === "asc"+ ? asc(pages.createdAt)+ : desc(pages.createdAt),+ ],+ });++ return result;+ }),++ get: protectedProcedure+ .input(z.object({ id: z.number() }))+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(page.workspaceId, opts.ctx.workspace.id),+ eq(page.id, opts.input.id),+ ];++ const data = await opts.ctx.db.query.page.findFirst({+ where: and(...whereConditions),+ with: {+ monitorsToPages: { with: { monitor: true } },+ maintenancesToPages: true,+ },+ });++ return selectPageSchema+ .extend({+ monitors: z+ .array(selectMonitorSchema.extend({ order: z.number().default(0) }))+ .default([]),+ maintenances: z.array(selectMaintenanceSchema).default([]),+ })+ .parse({+ ...data,+ monitors: data?.monitorsToPages.map((m) => ({+ ...m.monitor,+ order: m.order,+ })),+ maintenances: data?.maintenancesToPages,+ });+ }),++ // TODO: rename to create+ new: protectedProcedure+ .meta({ track: Events.CreatePage, trackProps: ["slug"] })+ .input(+ z.object({+ title: z.string(),+ slug: z.string().toLowerCase(),+ icon: z.string().nullish(),+ description: z.string().nullish(),+ }),+ )+ .mutation(async (opts) => {+ const pageNumbers = (+ await opts.ctx.db.query.page.findMany({+ where: eq(page.workspaceId, opts.ctx.workspace.id),+ })+ ).length;++ const limit = opts.ctx.workspace.limits;++ // the user has reached the status page number limits+ if (pageNumbers >= limit["status-pages"]) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You reached your status-page limits.",+ });+ }++ const result = await opts.ctx.db.query.page.findMany({+ where: sql`lower(${page.slug}) = ${opts.input.slug}`,+ });++ if (subdomainSafeList.includes(opts.input.slug) || result?.length > 0) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "This slug is already taken. Please choose another one.",+ });+ }++ const newPage = await opts.ctx.db+ .insert(page)+ .values({+ workspaceId: opts.ctx.workspace.id,+ title: opts.input.title,+ slug: opts.input.slug,+ description: opts.input.description ?? "",+ icon: opts.input.icon ?? "",+ customDomain: "", // TODO: make nullable+ })+ .returning()+ .get();++ return newPage;+ }),++ updateGeneral: protectedProcedure+ .meta({ track: Events.UpdatePage })+ .input(+ z.object({+ id: z.number(),+ title: z.string(),+ slug: z.string().toLowerCase(),+ description: z.string().nullish(),+ icon: z.string().nullish(),+ }),+ )+ .mutation(async (opts) => {+ const whereConditions: SQL[] = [+ eq(page.workspaceId, opts.ctx.workspace.id),+ eq(page.id, opts.input.id),+ ];++ const result = await opts.ctx.db.query.page.findMany({+ where: sql`lower(${page.slug}) = ${opts.input.slug}`,+ });++ const oldSlug = await opts.ctx.db.query.page.findFirst({+ where: and(...whereConditions),+ });++ if (+ subdomainSafeList.includes(opts.input.slug) ||+ (oldSlug?.slug !== opts.input.slug && result?.length > 0)+ ) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "This slug is already taken. Please choose another one.",+ });+ }++ await opts.ctx.db+ .update(page)+ .set({+ title: opts.input.title,+ slug: opts.input.slug,+ description: opts.input.description ?? "",+ icon: opts.input.icon ?? "",+ updatedAt: new Date(),+ })+ .where(and(...whereConditions))+ .run();+ }),++ updateCustomDomain: protectedProcedure+ .meta({ track: Events.UpdatePage })+ .input(z.object({ id: z.number(), customDomain: z.string().toLowerCase() }))+ .mutation(async (opts) => {+ const whereConditions: SQL[] = [+ eq(page.workspaceId, opts.ctx.workspace.id),+ eq(page.id, opts.input.id),+ ];++ if (opts.input.customDomain.includes("openstatus")) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "Domain cannot contain 'openstatus'",+ });+ }++ // Get the current page to check the existing custom domain+ const currentPage = await opts.ctx.db.query.page.findFirst({+ where: and(...whereConditions),+ });++ if (!currentPage) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Page not found",+ });+ }++ const oldDomain = currentPage.customDomain;+ const newDomain = opts.input.customDomain;++ try {+ // Handle domain changes+ if (newDomain && !oldDomain) {+ // Adding a new domain+ await opts.ctx.db+ .update(page)+ .set({ customDomain: newDomain, updatedAt: new Date() })+ .where(and(...whereConditions))+ .run();++ // Add domain to Vercel using the domain router logic+ await addDomainToVercel(newDomain);+ } else if (oldDomain && newDomain !== oldDomain) {+ // Changing domain - remove old and add new+ await opts.ctx.db+ .update(page)+ .set({ customDomain: newDomain, updatedAt: new Date() })+ .where(and(...whereConditions))+ .run();++ // Remove old domain from Vercel+ await removeDomainFromVercel(oldDomain);++ // Add new domain to Vercel+ if (newDomain) {+ await addDomainToVercel(newDomain);+ }+ } else if (oldDomain && newDomain === "") {+ // Removing domain+ await opts.ctx.db+ .update(page)+ .set({ customDomain: "", updatedAt: new Date() })+ .where(and(...whereConditions))+ .run();++ // Remove domain from Vercel+ await removeDomainFromVercel(oldDomain);+ } else {+ // No change needed, just update the database+ await opts.ctx.db+ .update(page)+ .set({ customDomain: newDomain, updatedAt: new Date() })+ .where(and(...whereConditions))+ .run();+ }+ } catch (error) {+ // If Vercel operations fail, we should rollback the database change+ // For now, we'll just throw the error+ console.error("Error updating custom domain:", error);+ throw new TRPCError({+ code: "INTERNAL_SERVER_ERROR",+ message: "Failed to update custom domain",+ });+ }+ }),++ updatePasswordProtection: protectedProcedure+ .meta({ track: Events.UpdatePage })+ .input(+ z.object({+ id: z.number(),+ passwordProtected: z.boolean(),+ password: z.string().nullish(),+ }),+ )+ .mutation(async (opts) => {+ const whereConditions: SQL[] = [+ eq(page.workspaceId, opts.ctx.workspace.id),+ eq(page.id, opts.input.id),+ ];++ const limit = opts.ctx.workspace.limits;++ // the user is not eligible for password protection+ if (+ limit["password-protection"] === false &&+ opts.input.passwordProtected === true+ ) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message:+ "Password protection is not available for your current plan.",+ });+ }++ await opts.ctx.db+ .update(page)+ .set({+ passwordProtected: opts.input.passwordProtected,+ password: opts.input.password,+ updatedAt: new Date(),+ })+ .where(and(...whereConditions))+ .run();+ }),++ updateMonitors: protectedProcedure+ .meta({ track: Events.UpdatePage })+ .input(+ z.object({+ id: z.number(),+ monitors: z.array(z.object({ id: z.number(), order: z.number() })),+ }),+ )+ .mutation(async (opts) => {+ // check if the monitors are in the workspace+ const monitors = await opts.ctx.db.query.monitor.findMany({+ where: and(+ inArray(+ monitor.id,+ opts.input.monitors.map((m) => m.id),+ ),+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ ),+ });++ if (monitors.length !== opts.input.monitors.length) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You don't have access to all the monitors.",+ });+ }++ await opts.ctx.db.transaction(async (tx) => {+ await tx+ .delete(monitorsToPages)+ .where(eq(monitorsToPages.pageId, opts.input.id));++ await tx.insert(monitorsToPages).values(+ opts.input.monitors.map((m) => ({+ pageId: opts.input.id,+ monitorId: m.id,+ order: m.order,+ })),+ );+ });+ }),});diff --git a/packages/api/src/router/pageSubscriber.ts b/packages/api/src/router/pageSubscriber.tsindex 873b51c58..cf5fb92f7 100644--- a/packages/api/src/router/pageSubscriber.ts+++ b/packages/api/src/router/pageSubscriber.ts@@ -1,6 +1,7 @@import { TRPCError } from "@trpc/server";import { z } from "zod";+import { Events } from "@openstatus/analytics";import { and, eq } from "@openstatus/db";import { page, pageSubscriber } from "@openstatus/db/src/schema";@@ -64,6 +65,7 @@ export const pageSubscriberRouter = createTRPCRouter({}),acceptSubscriberById: protectedProcedure+ .meta({ track: Events.SubscribePage }).input(z.object({ id: z.number() })).mutation(async (opts) => {const subscriber = await opts.ctx.db.query.pageSubscriber.findFirst({@@ -95,7 +97,79 @@ export const pageSubscriberRouter = createTRPCRouter({.update(pageSubscriber).set({acceptedAt: new Date(),+ updatedAt: new Date(),}).where(eq(pageSubscriber.id, subscriber.id));}),++ // DASHBOARD++ list: protectedProcedure+ .input(+ z.object({+ pageId: z.number(),+ order: z.enum(["asc", "desc"]).optional(),+ }),+ )+ .query(async (opts) => {+ const data = await opts.ctx.db.transaction(async (tx) => {+ const _page = await tx.query.page.findFirst({+ where: and(+ eq(page.workspaceId, opts.ctx.workspace.id),+ eq(page.id, opts.input.pageId),+ ),+ });++ if (!_page) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Page not found",+ });+ }++ return await tx.query.pageSubscriber.findMany({+ where: eq(pageSubscriber.pageId, _page.id),+ });+ });++ return data;+ }),++ delete: protectedProcedure+ .input(z.object({ id: z.number(), pageId: z.number() }))+ .mutation(async (opts) => {+ await opts.ctx.db.transaction(async (tx) => {+ const _page = await tx.query.page.findFirst({+ where: and(+ eq(page.workspaceId, opts.ctx.workspace.id),+ eq(page.id, opts.input.pageId),+ ),+ });++ if (!_page) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Page not found",+ });+ }++ const subscriber = await tx.query.pageSubscriber.findFirst({+ where: and(+ eq(pageSubscriber.id, opts.input.id),+ eq(pageSubscriber.pageId, opts.input.pageId),+ ),+ });++ if (!subscriber) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Subscriber not found",+ });+ }++ return await tx+ .delete(pageSubscriber)+ .where(eq(pageSubscriber.id, opts.input.id));+ });+ }),});diff --git a/packages/api/src/router/statusReport.ts b/packages/api/src/router/statusReport.tsindex 4af35e460..624b9aed7 100644--- a/packages/api/src/router/statusReport.ts+++ b/packages/api/src/router/statusReport.ts@@ -1,24 +1,38 @@import { z } from "zod";-import { and, eq, inArray, sql } from "@openstatus/db";+import {+ type SQL,+ and,+ asc,+ desc,+ eq,+ gte,+ inArray,+ sql,+} from "@openstatus/db";import {insertStatusReportSchema,insertStatusReportUpdateSchema,monitorsToStatusReport,page,selectMonitorSchema,+ selectPageSchema,selectPublicStatusReportSchemaWithRelation,selectStatusReportSchema,selectStatusReportUpdateSchema,statusReport,+ statusReportStatus,statusReportStatusSchema,statusReportUpdate,} from "@openstatus/db/src/schema";+import { Events } from "@openstatus/analytics";+import { TRPCError } from "@trpc/server";import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc";export const statusReportRouter = createTRPCRouter({createStatusReport: protectedProcedure+ .meta({ track: Events.CreateReport }).input(insertStatusReportSchema).mutation(async (opts) => {const { id, monitors, date, message, ...statusReportInput } = opts.input;@@ -78,6 +92,7 @@ export const statusReportRouter = createTRPCRouter({}),updateStatusReport: protectedProcedure+ .meta({ track: Events.UpdateReport }).input(insertStatusReportSchema).mutation(async (opts) => {const { monitors, ...statusReportInput } = opts.input;@@ -150,7 +165,7 @@ export const statusReportRouter = createTRPCRouter({const currentStatusReportUpdate = await opts.ctx.db.update(statusReportUpdate)- .set(statusReportUpdateInput)+ .set({ ...statusReportUpdateInput, updatedAt: new Date() }).where(eq(statusReportUpdate.id, statusReportUpdateInput.id)).returning().get();@@ -159,6 +174,7 @@ export const statusReportRouter = createTRPCRouter({}),deleteStatusReport: protectedProcedure+ .meta({ track: Events.DeleteReport }).input(z.object({ id: z.number() })).mutation(async (opts) => {const statusReportToDelete = await opts.ctx.db@@ -340,4 +356,206 @@ export const statusReportRouter = createTRPCRouter({return selectPublicStatusReportSchemaWithRelation.parse(_statusReport);}),++ // DASHBOARD++ list: protectedProcedure+ .input(+ z.object({+ createdAt: z+ .object({+ gte: z.date().optional(),+ })+ .optional(),+ order: z.enum(["asc", "desc"]).optional(),+ pageId: z.number().optional(),+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(statusReport.workspaceId, opts.ctx.workspace.id),+ ];++ if (opts.input?.createdAt?.gte) {+ whereConditions.push(+ gte(statusReport.createdAt, opts.input.createdAt.gte),+ );+ }++ if (opts.input?.pageId) {+ whereConditions.push(eq(statusReport.pageId, opts.input.pageId));+ }++ const result = await opts.ctx.db.query.statusReport.findMany({+ where: and(...whereConditions),+ with: {+ statusReportUpdates: true,+ monitorsToStatusReports: { with: { monitor: true } },+ page: true,+ },+ orderBy: (statusReport) => [+ opts.input.order === "asc"+ ? asc(statusReport.createdAt)+ : desc(statusReport.createdAt),+ ],+ });++ return selectStatusReportSchema+ .extend({+ updates: z.array(selectStatusReportUpdateSchema).default([]),+ monitors: z.array(selectMonitorSchema).default([]),+ page: selectPageSchema,+ })+ .array()+ .parse(+ result.map((report) => ({+ ...report,+ updates: report.statusReportUpdates,+ monitors: report.monitorsToStatusReports.map(+ ({ monitor }) => monitor,+ ),+ })),+ );+ }),++ create: protectedProcedure+ .meta({ track: Events.CreateReport })+ .input(+ z.object({+ title: z.string(),+ status: z.enum(statusReportStatus),+ pageId: z.number(),+ monitors: z.array(z.number()),+ date: z.coerce.date(),+ message: z.string(),+ }),+ )+ .mutation(async (opts) => {+ return opts.ctx.db.transaction(async (tx) => {+ const newStatusReport = await tx+ .insert(statusReport)+ .values({+ workspaceId: opts.ctx.workspace.id,+ title: opts.input.title,+ status: opts.input.status,+ pageId: opts.input.pageId,+ })+ .returning()+ .get();++ const newStatusReportUpdate = await tx+ .insert(statusReportUpdate)+ .values({+ statusReportId: newStatusReport.id,+ status: opts.input.status,+ date: opts.input.date,+ message: opts.input.message,+ })+ .returning()+ .get();++ if (opts.input.monitors.length > 0) {+ await tx+ .insert(monitorsToStatusReport)+ .values(+ opts.input.monitors.map((monitor) => ({+ monitorId: monitor,+ statusReportId: newStatusReport.id,+ })),+ )+ .returning()+ .get();+ }++ return newStatusReportUpdate;+ });+ }),++ updateStatus: protectedProcedure+ .meta({ track: Events.UpdateReport })+ .input(+ z.object({+ id: z.number(),+ monitors: z.array(z.number()),+ title: z.string(),+ status: z.enum(statusReportStatus),+ }),+ )+ .mutation(async (opts) => {+ opts.ctx.db.transaction(async (tx) => {+ await tx+ .update(statusReport)+ .set({+ title: opts.input.title,+ status: opts.input.status,+ updatedAt: new Date(),+ })+ .where(+ and(+ eq(statusReport.id, opts.input.id),+ eq(statusReport.workspaceId, opts.ctx.workspace.id),+ ),+ )+ .run();++ await tx+ .delete(monitorsToStatusReport)+ .where(eq(monitorsToStatusReport.statusReportId, opts.input.id))+ .run();++ if (opts.input.monitors.length > 0) {+ await tx+ .insert(monitorsToStatusReport)+ .values(+ opts.input.monitors.map((monitor) => ({+ monitorId: monitor,+ statusReportId: opts.input.id,+ })),+ )+ .run();+ }+ });+ }),++ delete: protectedProcedure+ .meta({ track: Events.DeleteReport })+ .input(z.object({ id: z.number() }))+ .mutation(async (opts) => {+ const whereConditions: SQL[] = [+ eq(statusReport.id, opts.input.id),+ eq(statusReport.workspaceId, opts.ctx.workspace.id),+ ];++ await opts.ctx.db.transaction(async (tx) => {+ await tx+ .delete(statusReport)+ .where(and(...whereConditions))+ .run();+ });+ }),++ deleteUpdate: protectedProcedure+ .input(z.object({ id: z.number() }))+ .mutation(async (opts) => {+ await opts.ctx.db.transaction(async (tx) => {+ const update = await tx.query.statusReportUpdate.findFirst({+ where: eq(statusReportUpdate.id, opts.input.id),+ with: {+ statusReport: true,+ },+ });++ if (update?.statusReport.workspaceId !== opts.ctx.workspace.id) {+ throw new TRPCError({+ code: "FORBIDDEN",+ message: "You are not allowed to delete this update",+ });+ }++ await tx+ .delete(statusReportUpdate)+ .where(eq(statusReportUpdate.id, opts.input.id))+ .run();+ });+ }),});diff --git a/packages/api/src/router/stripe/index.ts b/packages/api/src/router/stripe/index.tsindex de18ad367..721076f54 100644--- a/packages/api/src/router/stripe/index.ts+++ b/packages/api/src/router/stripe/index.ts@@ -22,7 +22,9 @@ export const stripeRouter = createTRPCRouter({webhooks: webhookRouter,getUserCustomerPortal: protectedProcedure- .input(z.object({ workspaceSlug: z.string() }))+ .input(+ z.object({ workspaceSlug: z.string(), returnUrl: z.string().optional() }),+ ).mutation(async (opts) => {const result = await opts.ctx.db.select()@@ -69,7 +71,8 @@ export const stripeRouter = createTRPCRouter({const session = await stripe.billingPortal.sessions.create({customer: stripeId,- return_url: `${url}/app/${result.slug}/settings`,+ return_url:+ opts.input.returnUrl || `${url}/app/${result.slug}/settings`,});return session.url;@@ -80,6 +83,8 @@ export const stripeRouter = createTRPCRouter({z.object({workspaceSlug: z.string(),plan: z.enum(workspacePlans),+ successUrl: z.string().optional(),+ cancelUrl: z.string().optional(),// TODO: plan: workspacePlanSchema}),)@@ -145,8 +150,11 @@ export const stripeRouter = createTRPCRouter({},],mode: "subscription",- success_url: `${url}/app/${result.slug}/settings/billing?success=true`,- cancel_url: `${url}/app/${result.slug}/settings/billing`,+ success_url:+ opts.input.successUrl ||+ `${url}/app/${result.slug}/settings/billing?success=true`,+ cancel_url:+ opts.input.cancelUrl || `${url}/app/${result.slug}/settings/billing`,});return session;diff --git a/packages/api/src/router/tinybird/index.ts b/packages/api/src/router/tinybird/index.tsindex beefabfd0..c0da8fa2f 100644--- a/packages/api/src/router/tinybird/index.ts+++ b/packages/api/src/router/tinybird/index.ts@@ -1,16 +1,156 @@import { z } from "zod";+import { flyRegions } from "@openstatus/db/src/schema/constants";import { OSTinybird } from "@openstatus/tinybird";-import { flyRegions } from "@openstatus/db/src/schema/constants";+import { type SQL, and, db, eq, inArray } from "@openstatus/db";+import { monitor } from "@openstatus/db/src/schema";+import { TRPCError } from "@trpc/server";import { env } from "../../env";import { createTRPCRouter, protectedProcedure } from "../../trpc";+import { calculatePeriod } from "./utils";const tb = new OSTinybird(env.TINY_BIRD_API_KEY);-// WORK IN PROGRESS - we can create a tb router to call it via TRPC server and client+const periods = ["1d", "7d", "14d"] as const;+const types = ["http", "tcp"] as const;+type Period = (typeof periods)[number];+type Type = (typeof types)[number];++// NEW: workspace-level counters helper+function getWorkspace30dProcedure(type: Type) {+ return type === "http" ? tb.httpWorkspace30d : tb.tcpWorkspace30d;+}+// Helper functions to get the right procedure based on period and type+function getListProcedure(period: Period, type: Type) {+ switch (period) {+ case "1d":+ return type === "http" ? tb.httpListDaily : tb.tcpListDaily;+ case "7d":+ return type === "http" ? tb.httpListWeekly : tb.tcpListWeekly;+ case "14d":+ return type === "http" ? tb.httpListBiweekly : tb.tcpListBiweekly;+ default:+ return type === "http" ? tb.httpListDaily : tb.tcpListDaily;+ }+}++function getMetricsProcedure(period: Period, type: Type) {+ switch (period) {+ case "1d":+ return type === "http" ? tb.httpMetricsDaily : tb.tcpMetricsDaily;+ case "7d":+ return type === "http" ? tb.httpMetricsWeekly : tb.tcpMetricsWeekly;+ case "14d":+ return type === "http" ? tb.httpMetricsBiweekly : tb.tcpMetricsBiweekly;+ default:+ return type === "http" ? tb.httpMetricsDaily : tb.tcpMetricsDaily;+ }+}++function getMetricsByRegionProcedure(period: Period, type: Type) {+ switch (period) {+ case "1d":+ return type === "http"+ ? tb.httpMetricsByRegionDaily+ : tb.tcpMetricsByRegionDaily;+ case "7d":+ return type === "http"+ ? tb.httpMetricsByRegionWeekly+ : tb.tcpMetricsByRegionWeekly;+ case "14d":+ return type === "http"+ ? tb.httpMetricsByRegionBiweekly+ : tb.tcpMetricsByRegionBiweekly;+ default:+ return type === "http"+ ? tb.httpMetricsByRegionDaily+ : tb.tcpMetricsByRegionDaily;+ }+}++function getMetricsByIntervalProcedure(period: Period, type: Type) {+ switch (period) {+ case "1d":+ return type === "http"+ ? tb.httpMetricsByIntervalDaily+ : tb.tcpMetricsByIntervalDaily;+ case "7d":+ return type === "http"+ ? tb.httpMetricsByIntervalWeekly+ : tb.tcpMetricsByIntervalWeekly;+ case "14d":+ return type === "http"+ ? tb.httpMetricsByIntervalBiweekly+ : tb.tcpMetricsByIntervalBiweekly;+ default:+ return type === "http"+ ? tb.httpMetricsByIntervalDaily+ : tb.tcpMetricsByIntervalDaily;+ }+}++// FIXME: tb pipes are deprecated, we need new ones+function getMetricsRegionsProcedure(period: Period, type: Type) {+ switch (period) {+ case "1d":+ return type === "http"+ ? tb.httpMetricsRegionsDaily+ : tb.tcpMetricsByIntervalDaily;+ case "7d":+ return type === "http"+ ? tb.httpMetricsRegionsWeekly+ : tb.tcpMetricsByIntervalWeekly;+ case "14d":+ return type === "http"+ ? tb.httpMetricsRegionsBiweekly+ : tb.tcpMetricsByIntervalBiweekly;+ default:+ return type === "http"+ ? tb.httpMetricsRegionsDaily+ : tb.tcpMetricsByIntervalDaily;+ }+}++function getStatusProcedure(period: "7d" | "45d", type: Type) {+ switch (period) {+ case "7d":+ return type === "http" ? tb.httpStatusWeekly : tb.tcpStatusWeekly;+ case "45d":+ return type === "http" ? tb.httpStatus45d : tb.tcpStatus45d;+ default:+ return type === "http" ? tb.httpStatusWeekly : tb.tcpStatusWeekly;+ }+}++function getGetProcedure(period: "14d", type: Type) {+ switch (period) {+ case "14d":+ return type === "http" ? tb.httpGetBiweekly : tb.tcpGetBiweekly;+ default:+ return type === "http" ? tb.httpGetBiweekly : tb.tcpGetBiweekly;+ }+}++function getGlobalMetricsProcedure(type: Type) {+ return type === "http" ? tb.httpGlobalMetricsDaily : tb.tcpGlobalMetricsDaily;+}++function getUptime30dProcedure(type: Type) {+ return type === "http" ? tb.httpUptime30d : tb.tcpUptime30d;+}++// TODO: missing pipes for other periods+function getMetricsLatencyProcedure(_period: Period, type: Type) {+ return type === "http" ? tb.httpMetricsLatency1d : tb.tcpMetricsLatency1d;+}++function getTimingPhasesProcedure(type: Type) {+ return type === "http" ? tb.httpTimingPhases14d : null;+}export const tinybirdRouter = createTRPCRouter({+ // Legacy procedure for backward compatibilityhttpGetMonthly: protectedProcedure.input(z.object({@@ -22,4 +162,400 @@ export const tinybirdRouter = createTRPCRouter({.query(async (opts) => {return await tb.httpGetMonthly(opts.input);}),++ // Simplified procedures that handle period/type logic on server+ list: protectedProcedure+ .input(+ z.object({+ monitorId: z.string(),+ region: z.enum(flyRegions).optional(),+ cronTimestamp: z.number().int().optional(),+ from: z.coerce.date().optional(),+ to: z.coerce.date().optional(),+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, Number.parseInt(opts.input.monitorId)),+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ ];++ const _monitor = await db.query.monitor.findFirst({+ where: and(...whereConditions),+ });++ if (!_monitor) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Monitor not found",+ });+ }++ const period = calculatePeriod(opts.input.from, opts.input.to);++ const procedure = getListProcedure(+ period,+ _monitor.jobType as "http" | "tcp",+ );+ return await procedure({+ ...opts.input,+ fromDate: opts.input.from?.getTime() ?? undefined,+ toDate: opts.input.to?.getTime(),+ });+ }),++ uptime: protectedProcedure+ .input(+ z.object({+ monitorId: z.string(),+ fromDate: z.string().optional(),+ toDate: z.string().optional(),+ interval: z.number().int().optional(), // in minutes, default 30+ regions: z.enum(flyRegions).array().optional(),+ type: z.enum(types).default("http"),+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, Number.parseInt(opts.input.monitorId)),+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ ];++ const _monitor = await db.query.monitor.findFirst({+ where: and(...whereConditions),+ });++ if (!_monitor) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Monitor not found",+ });+ }++ const procedure = getUptime30dProcedure(opts.input.type);+ return await procedure(opts.input);+ }),++ auditLog: protectedProcedure+ .input(+ z.object({+ monitorId: z.string(),+ interval: z.number().int().default(30), // in days+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, Number.parseInt(opts.input.monitorId)),+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ ];++ const _monitor = await db.query.monitor.findFirst({+ where: and(...whereConditions),+ });++ if (!_monitor) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Monitor not found",+ });+ }++ return await tb.getAuditLog({+ monitorId: `monitor:${opts.input.monitorId}`,+ interval: opts.input.interval,+ });+ }),++ metrics: protectedProcedure+ .input(+ z.object({+ monitorId: z.string(),+ period: z.enum(periods),+ type: z.enum(types).default("http"),+ regions: z.array(z.enum(flyRegions)).optional(),+ cronTimestamp: z.number().int().optional(),+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, Number.parseInt(opts.input.monitorId)),+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ ];++ const _monitor = await db.query.monitor.findFirst({+ where: and(...whereConditions),+ });++ if (opts.ctx.workspace.plan === "free") {+ opts.input.regions = undefined;+ }++ if (!_monitor) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Monitor not found",+ });+ }++ const procedure = getMetricsProcedure(opts.input.period, opts.input.type);+ return await procedure(opts.input);+ }),++ metricsByRegion: protectedProcedure+ .input(+ z.object({+ monitorId: z.string(),+ period: z.enum(periods),+ type: z.enum(types).default("http"),+ region: z.enum(flyRegions).optional(),+ cronTimestamp: z.number().int().optional(),+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, Number.parseInt(opts.input.monitorId)),+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ ];++ const _monitor = await db.query.monitor.findFirst({+ where: and(...whereConditions),+ });++ if (!_monitor) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Monitor not found",+ });+ }++ const procedure = getMetricsByRegionProcedure(+ opts.input.period,+ opts.input.type,+ );+ return await procedure(opts.input);+ }),++ metricsByInterval: protectedProcedure+ .input(+ z.object({+ monitorId: z.string(),+ period: z.enum(periods),+ type: z.enum(types).default("http"),+ region: z.enum(flyRegions).optional(),+ cronTimestamp: z.number().int().optional(),+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, Number.parseInt(opts.input.monitorId)),+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ ];++ const _monitor = await db.query.monitor.findFirst({+ where: and(...whereConditions),+ });++ if (!_monitor) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Monitor not found",+ });+ }++ const procedure = getMetricsByIntervalProcedure(+ opts.input.period,+ opts.input.type,+ );+ return await procedure(opts.input);+ }),++ metricsRegions: protectedProcedure+ .input(+ z.object({+ monitorId: z.string(),+ period: z.enum(periods),+ type: z.enum(types).default("http"),+ // Additional filters+ interval: z.number().int().optional(),+ regions: z.array(z.enum(flyRegions)).optional(),+ cronTimestamp: z.number().int().optional(),+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, Number.parseInt(opts.input.monitorId)),+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ ];++ const _monitor = await db.query.monitor.findFirst({+ where: and(...whereConditions),+ });++ if (!_monitor) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Monitor not found",+ });+ }++ if (opts.ctx.workspace.plan === "free") {+ opts.input.regions = undefined;+ }++ const procedure = getMetricsRegionsProcedure(+ opts.input.period,+ opts.input.type,+ );+ return await procedure(opts.input);+ }),++ status: protectedProcedure+ .input(+ z.object({+ monitorId: z.string(),+ period: z.enum(["7d", "45d"]),+ type: z.enum(types).default("http"),+ region: z.enum(flyRegions).optional(),+ cronTimestamp: z.number().int().optional(),+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, Number.parseInt(opts.input.monitorId)),+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ ];++ const _monitor = await db.query.monitor.findFirst({+ where: and(...whereConditions),+ });++ if (!_monitor) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Monitor not found",+ });+ }++ const procedure = getStatusProcedure(opts.input.period, opts.input.type);+ return await procedure(opts.input);+ }),++ get: protectedProcedure+ .input(+ z.object({+ id: z.string().nullable(),+ monitorId: z.string(),+ period: z.enum(["14d"]).default("14d"),+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.id, Number.parseInt(opts.input.monitorId)),+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ ];++ const _monitor = await db.query.monitor.findFirst({+ where: and(...whereConditions),+ });++ if (!_monitor) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Monitor not found",+ });+ }++ const procedure = getGetProcedure(+ opts.input.period,+ _monitor.jobType as "http" | "tcp",+ );+ return await procedure(opts.input);+ }),++ globalMetrics: protectedProcedure+ .input(+ z.object({+ monitorIds: z.string().array(),+ type: z.enum(types).default("http"),+ }),+ )+ .query(async (opts) => {+ const whereConditions: SQL[] = [+ eq(monitor.workspaceId, opts.ctx.workspace.id),+ inArray(monitor.id, opts.input.monitorIds.map(Number)),+ ];++ const _monitors = await db.query.monitor.findMany({+ where: and(...whereConditions),+ });++ if (_monitors.length !== opts.input.monitorIds.length) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Some monitors not found",+ });+ }++ const procedure = getGlobalMetricsProcedure(opts.input.type);+ return await procedure(opts.input);+ }),++ metricsLatency: protectedProcedure+ .input(+ z.object({+ monitorId: z.string(),+ period: z.enum(periods),+ regions: z.array(z.enum(flyRegions)).optional(),+ type: z.enum(types).default("http"),+ }),+ )+ .query(async (opts) => {+ if (opts.ctx.workspace.plan === "free") {+ opts.input.regions = undefined;+ }++ const procedure = getMetricsLatencyProcedure(+ opts.input.period,+ opts.input.type,+ );+ return await procedure(opts.input);+ }),++ metricsTimingPhases: protectedProcedure+ .input(+ z.object({+ monitorId: z.string(),+ period: z.enum(periods),+ interval: z.number().int().optional(),+ regions: z.array(z.enum(flyRegions)).optional(),+ type: z.literal("http"),+ }),+ )+ .query(async (opts) => {+ if (opts.ctx.workspace.plan === "free") {+ opts.input.regions = undefined;+ }++ const procedure = getTimingPhasesProcedure(opts.input.type);++ if (!procedure) {+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Timing phases not supported for this type",+ });+ }++ return await procedure(opts.input);+ }),++ workspace30d: protectedProcedure+ .input(+ z.object({+ type: z.enum(types).default("http"),+ }),+ )+ .query(async (opts) => {+ const procedure = getWorkspace30dProcedure(opts.input.type);+ return await procedure({ workspaceId: String(opts.ctx.workspace.id) });+ }),});diff --git a/packages/api/src/router/tinybird/utils.ts b/packages/api/src/router/tinybird/utils.tsnew file mode 100644index 000000000..479f5704b--- /dev/null+++ b/packages/api/src/router/tinybird/utils.ts@@ -0,0 +1,10 @@+export function calculatePeriod(from: Date | undefined, _to: Date | undefined) {+ const today = new Date();+ const diffTime = Math.abs(today.getTime() - (from?.getTime() ?? 0));+ const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));+ console.log({ diffDays });+ if (diffDays <= 1) return "1d";+ if (diffDays <= 7) return "7d";+ if (diffDays <= 14) return "14d";+ return "14d";+}diff --git a/packages/api/src/router/user.ts b/packages/api/src/router/user.tsindex 540a01530..112ac8675 100644--- a/packages/api/src/router/user.ts+++ b/packages/api/src/router/user.ts@@ -4,12 +4,11 @@ import { user } from "@openstatus/db/src/schema";import { createTRPCRouter, protectedProcedure } from "../trpc";export const userRouter = createTRPCRouter({- getCurrentUser: protectedProcedure.query(async (opts) => {- const currentUser = await opts.ctx.db+ get: protectedProcedure.query(async (opts) => {+ return await opts.ctx.db.select().from(user).where(eq(user.id, opts.ctx.user.id)).get();- return currentUser;}),});diff --git a/packages/api/src/router/workspace.ts b/packages/api/src/router/workspace.tsindex d93a5b5ee..b436ec5ba 100644--- a/packages/api/src/router/workspace.ts+++ b/packages/api/src/router/workspace.ts@@ -2,7 +2,8 @@ import { TRPCError } from "@trpc/server";import * as randomWordSlugs from "random-word-slugs";import { z } from "zod";-import { and, eq, gte, isNull, sql } from "@openstatus/db";+import { Events } from "@openstatus/analytics";+import { type SQL, and, eq, gte, isNull, sql } from "@openstatus/db";import {application,monitor,@@ -10,11 +11,13 @@ import {notification,page,selectApplicationSchema,+ selectUserSchema,selectWorkspaceSchema,user,usersToWorkspaces,workspace,workspacePlanSchema,+ workspaceRole,} from "@openstatus/db/src/schema";import type { Limits } from "@openstatus/db/src/schema/plan/schema";@@ -109,11 +112,12 @@ export const workspaceRouter = createTRPCRouter({}),updateWorkspace: protectedProcedure+ .meta({ track: Events.UpdateWorkspace }).input(z.object({ name: z.string() })).mutation(async (opts) => {return await opts.ctx.db.update(workspace)- .set({ name: opts.input.name })+ .set({ name: opts.input.name, updatedAt: new Date() }).where(eq(workspace.id, opts.ctx.workspace.id));}),@@ -190,7 +194,7 @@ export const workspaceRouter = createTRPCRouter({await opts.ctx.db.update(workspace)- .set({ plan: opts.input.plan })+ .set({ plan: opts.input.plan, updatedAt: new Date() }).where(eq(workspace.id, opts.ctx.workspace.id));}),@@ -237,4 +241,75 @@ export const workspaceRouter = createTRPCRouter({return currentNumbers;}),++ // DASHBOARD++ get: protectedProcedure.query(async (opts) => {+ const whereConditions: SQL[] = [eq(workspace.id, opts.ctx.workspace.id)];++ const result = await opts.ctx.db.query.workspace.findFirst({+ where: and(...whereConditions),+ with: {+ pages: true,+ monitors: {+ where: isNull(monitor.deletedAt),+ },+ notifications: true,+ },+ });++ return selectWorkspaceSchema.parse({+ ...result,+ usage: {+ monitors: result?.monitors?.length || 0,+ notifications: result?.notifications?.length || 0,+ pages: result?.pages?.length || 0,+ // checks: result?.checks?.length || 0,+ checks: 0,+ },+ });+ }),++ getMembers: protectedProcedure.query(async (opts) => {+ const result = await opts.ctx.db.query.usersToWorkspaces.findMany({+ where: eq(usersToWorkspaces.userId, opts.ctx.workspace.id),+ with: {+ user: true,+ },+ });++ return z+ .object({+ role: z.enum(workspaceRole),+ createdAt: z.coerce.date(),+ user: selectUserSchema,+ })+ .array()+ .parse(result);+ }),++ list: protectedProcedure.query(async (opts) => {+ const result = await opts.ctx.db.query.usersToWorkspaces.findMany({+ where: eq(usersToWorkspaces.userId, opts.ctx.user.id),+ with: {+ workspace: true,+ },+ });++ return selectWorkspaceSchema+ .array()+ .parse(result.map(({ workspace }) => workspace));+ }),++ updateName: protectedProcedure+ .meta({ track: Events.UpdateWorkspace })+ .input(z.object({ name: z.string() }))+ .mutation(async (opts) => {+ const whereConditions: SQL[] = [eq(workspace.id, opts.ctx.workspace.id)];++ await opts.ctx.db+ .update(workspace)+ .set({ name: opts.input.name, updatedAt: new Date() })+ .where(and(...whereConditions));+ }),});diff --git a/packages/assertions/package.json b/packages/assertions/package.jsonindex e2154e81a..5af947bf0 100644--- a/packages/assertions/package.json+++ b/packages/assertions/package.json@@ -10,7 +10,7 @@"devDependencies": {"@openstatus/tsconfig": "workspace:*","typescript": "5.7.2",- "zod": "3.24.4"+ "zod": "3.24.1"},"keywords": [],"author": "",diff --git a/packages/db/package.json b/packages/db/package.jsonindex a4553cb55..e9b38342a 100644--- a/packages/db/package.json+++ b/packages/db/package.json@@ -14,10 +14,10 @@},"dependencies": {"@libsql/client": "0.14.0",- "@t3-oss/env-core": "0.7.0",+ "@t3-oss/env-core": "0.7.1","drizzle-orm": "0.35.3","drizzle-zod": "0.5.1",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/assertions": "workspace:*",diff --git a/packages/db/src/schema/constants.ts b/packages/db/src/schema/constants.tsindex be335a7b8..d0214efa8 100644--- a/packages/db/src/schema/constants.ts+++ b/packages/db/src/schema/constants.ts@@ -38,6 +38,15 @@ export const flyRegions = ["yyz",] as const;+export const freeFlyRegions = [+ "iad",+ "ams",+ "gru",+ "syd",+ "hkg",+ "jnb",+] as const satisfies (typeof flyRegions)[number][];+export const monitorPeriodicity = ["30s","1m",diff --git a/packages/db/src/schema/incidents/incident.ts b/packages/db/src/schema/incidents/incident.tsindex 9a17b5857..b3d001711 100644--- a/packages/db/src/schema/incidents/incident.ts+++ b/packages/db/src/schema/incidents/incident.ts@@ -1,4 +1,5 @@import { sql } from "drizzle-orm";+import { relations } from "drizzle-orm";import { integer, sqliteTable, text, unique } from "drizzle-orm/sqlite-core";import { monitor } from "../monitors";@@ -61,3 +62,22 @@ export const incidentTable = sqliteTable(};},);++export const incidentRelations = relations(incidentTable, ({ one }) => ({+ monitor: one(monitor, {+ fields: [incidentTable.monitorId],+ references: [monitor.id],+ }),+ workspace: one(workspace, {+ fields: [incidentTable.workspaceId],+ references: [workspace.id],+ }),+ acknowledgedByUser: one(user, {+ fields: [incidentTable.acknowledgedBy],+ references: [user.id],+ }),+ resolvedByUser: one(user, {+ fields: [incidentTable.resolvedBy],+ references: [user.id],+ }),+}));diff --git a/packages/db/src/schema/index.ts b/packages/db/src/schema/index.tsindex 1c6fea212..5b1c0e280 100644--- a/packages/db/src/schema/index.ts+++ b/packages/db/src/schema/index.ts@@ -1,9 +1,9 @@+export * from "./workspaces";+export * from "./users";export * from "./status_reports";export * from "./integration";export * from "./pages";export * from "./monitors";-export * from "./workspaces";-export * from "./users";export * from "./page_subscribers";export * from "./shared";export * from "./notifications";diff --git a/packages/db/src/schema/monitors/monitor.ts b/packages/db/src/schema/monitors/monitor.tsindex 128e88137..c3684c651 100644--- a/packages/db/src/schema/monitors/monitor.ts+++ b/packages/db/src/schema/monitors/monitor.ts@@ -7,7 +7,9 @@ import {} from "drizzle-orm/sqlite-core";import { monitorPeriodicity } from "../constants";+import { incidentTable } from "../incidents/incident";import { maintenancesToMonitors } from "../maintenances";+import { monitorStatusTable } from "../monitor_status/monitor_status";import { monitorTagsToMonitors } from "../monitor_tags";import { notificationsToMonitors } from "../notifications";import { page } from "../pages";@@ -74,6 +76,8 @@ export const monitorRelation = relations(monitor, ({ one, many }) => ({}),monitorsToNotifications: many(notificationsToMonitors),maintenancesToMonitors: many(maintenancesToMonitors),+ incidents: many(incidentTable),+ monitorStatus: many(monitorStatusTable),}));export const monitorsToPages = sqliteTable(diff --git a/packages/db/src/schema/plan/config.ts b/packages/db/src/schema/plan/config.tsindex 57925135e..79272a24f 100644--- a/packages/db/src/schema/plan/config.ts+++ b/packages/db/src/schema/plan/config.ts@@ -27,6 +27,7 @@ export const allPlans: Record<"status-pages": 1,maintenance: true,"monitor-values-visibility": true,+ "response-logs": false,screenshots: false,otel: false,"status-subscribers": false,@@ -50,15 +51,16 @@ export const allPlans: Record<description: "Perfect for uptime monitoring",price: 30,limits: {- monitors: 5,+ monitors: 20,"synthetic-checks": 100,periodicity: ["1m", "5m", "10m", "30m", "1h"],"multi-region": true,- "max-regions": 35,+ "max-regions": 6,"data-retention": "3 months","status-pages": 1,maintenance: true,"monitor-values-visibility": true,+ "response-logs": true,screenshots: true,otel: false,"status-subscribers": true,@@ -118,7 +120,7 @@ export const allPlans: Record<description: "Perfect for global synthetic monitoring",price: 100,limits: {- monitors: 15,+ monitors: 50,"synthetic-checks": 300,periodicity: ["30s", "1m", "5m", "10m", "30m", "1h"],"multi-region": true,@@ -127,6 +129,7 @@ export const allPlans: Record<"status-pages": 5,maintenance: true,"monitor-values-visibility": true,+ "response-logs": true,screenshots: true,otel: true,"status-subscribers": true,diff --git a/packages/db/src/schema/plan/schema.ts b/packages/db/src/schema/plan/schema.tsindex 70636051d..5b55be481 100644--- a/packages/db/src/schema/plan/schema.ts+++ b/packages/db/src/schema/plan/schema.ts@@ -22,6 +22,7 @@ export const limitsSchema = z.object({.default(["ams", "gru", "iad", "jnb", "hkg", "syd"]),"private-locations": z.boolean().default(false),screenshots: z.boolean().default(false),+ "response-logs": z.boolean().default(false),otel: z.boolean().default(false),/*** Status page limitsdiff --git a/packages/db/src/schema/workspaces/validation.ts b/packages/db/src/schema/workspaces/validation.tsindex 8c4c74857..eeca961bb 100644--- a/packages/db/src/schema/workspaces/validation.ts+++ b/packages/db/src/schema/workspaces/validation.ts@@ -25,6 +25,15 @@ export const selectWorkspaceSchema = createSelectSchema(workspace).nullable().default("free").transform((val) => val ?? "free"),+ // REMINDER: workspace usage+ usage: z+ .object({+ monitors: z.number().default(0),+ notifications: z.number().default(0),+ pages: z.number().default(0),+ // checks: z.number().default(0),+ })+ .nullish(),}).transform((val) => {return {diff --git a/packages/db/src/schema/workspaces/workspace.ts b/packages/db/src/schema/workspaces/workspace.tsindex bb2f8ed29..5b529af20 100644--- a/packages/db/src/schema/workspaces/workspace.ts+++ b/packages/db/src/schema/workspaces/workspace.ts@@ -1,6 +1,8 @@import { relations, sql } from "drizzle-orm";import { integer, sqliteTable, text, unique } from "drizzle-orm/sqlite-core";+import { monitor } from "../monitors";+import { notification } from "../notifications";import { page } from "../pages";import { usersToWorkspaces } from "../users";import { workspacePlans } from "./constants";@@ -35,4 +37,7 @@ export const workspace = sqliteTable(export const workspaceRelations = relations(workspace, ({ many }) => ({usersToWorkspaces: many(usersToWorkspaces),pages: many(page),+ monitors: many(monitor),+ notifications: many(notification),+ // TODO: add checks or monitorRuns}));diff --git a/packages/emails/emails/team-invitation.tsx b/packages/emails/emails/team-invitation.tsxindex c6df6a76a..305d5fbf7 100644--- a/packages/emails/emails/team-invitation.tsx+++ b/packages/emails/emails/team-invitation.tsx@@ -13,10 +13,13 @@ import { z } from "zod";import { Layout } from "./_components/layout";import { styles } from "./_components/styles";+const BASE_URL = "https://openstatus.dev/app/invite";+export const TeamInvitationSchema = z.object({invitedBy: z.string(),workspaceName: z.string().optional().nullable(),token: z.string(),+ baseUrl: z.string().optional(),});export type TeamInvitationProps = z.infer<typeof TeamInvitationSchema>;@@ -25,6 +28,7 @@ const TeamInvitationEmail = ({token,workspaceName,invitedBy,+ baseUrl = BASE_URL,}: TeamInvitationProps) => {return (<Html>@@ -38,10 +42,7 @@ const TeamInvitationEmail = ({</Heading><Text>Click here to access the workspace:{" "}- <Link- style={styles.link}- href={`https://openstatus.dev/app/invite?token=${token}`}- >+ <Link style={styles.link} href={`${baseUrl}?token=${token}`}>accept invitation</Link></Text>diff --git a/packages/emails/package.json b/packages/emails/package.jsonindex 57b8d7c5c..874398923 100644--- a/packages/emails/package.json+++ b/packages/emails/package.json@@ -10,21 +10,21 @@"author": "","license": "ISC","dependencies": {- "@react-email/button": "0.0.19",- "@react-email/components": "0.0.36",+ "@react-email/button": "0.1.0",+ "@react-email/components": "0.1.1","@react-email/head": "0.0.12","@react-email/html": "0.0.11",- "@react-email/render": "1.0.6",- "@react-email/tailwind": "1.0.4",- "@t3-oss/env-core": "0.7.0",- "react-email": "4.0.7",- "resend": "4.3.0",- "zod": "3.24.4"+ "@react-email/render": "1.1.3",+ "@react-email/tailwind": "1.0.5",+ "@t3-oss/env-core": "0.7.1",+ "react-email": "4.0.17",+ "resend": "4.6.0",+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*","@types/node": "22.10.2",- "@types/react": "19.1.0",+ "@types/react": "19.1.6","react": "19.1.0","typescript": "5.7.2"}diff --git a/packages/emails/src/client.tsx b/packages/emails/src/client.tsxindex 8501937f4..1041c97e7 100644--- a/packages/emails/src/client.tsx+++ b/packages/emails/src/client.tsx@@ -20,7 +20,10 @@ export class EmailClient {}public async sendFollowUp(req: { to: string }) {- if (process.env.NODE_ENV === "development") return;+ if (process.env.NODE_ENV === "development") {+ console.log(`Sending follow up email to ${req.to}`);+ return;+ }try {const html = await render(<FollowUpEmail />);@@ -43,7 +46,10 @@ export class EmailClient {}public async sendFollowUpBatched(req: { to: string[] }) {- if (process.env.NODE_ENV === "development") return;+ if (process.env.NODE_ENV === "development") {+ console.log(`Sending follow up emails to ${req.to.join(", ")}`);+ return;+ }const html = await render(<FollowUpEmail />);const result = await this.client.batch.send(@@ -73,7 +79,12 @@ export class EmailClient {public async sendStatusReportUpdate(req: StatusReportProps & { to: string[] },) {- if (process.env.NODE_ENV === "development") return;+ if (process.env.NODE_ENV === "development") {+ console.log(+ `Sending status report update emails to ${req.to.join(", ")}`,+ );+ return;+ }try {const html = await render(<StatusReportEmail {...req} />);@@ -101,7 +112,10 @@ export class EmailClient {}public async sendTeamInvitation(req: TeamInvitationProps & { to: string }) {- if (process.env.NODE_ENV === "development") return;+ if (process.env.NODE_ENV === "development") {+ console.log(`Sending team invitation email to ${req.to}`);+ return;+ }try {const html = await render(<TeamInvitationEmail {...req} />);@@ -128,7 +142,10 @@ export class EmailClient {}public async sendMonitorAlert(req: MonitorAlertProps & { to: string }) {- if (process.env.NODE_ENV === "development") return;+ if (process.env.NODE_ENV === "development") {+ console.log(`Sending monitor alert email to ${req.to}`);+ return;+ }try {const html = await render(<MonitorAlertEmail {...req} />);@@ -153,7 +170,10 @@ export class EmailClient {public async sendPageSubscription(req: PageSubscriptionProps & { to: string },) {- if (process.env.NODE_ENV === "development") return;+ if (process.env.NODE_ENV === "development") {+ console.log(`Sending page subscription email to ${req.to}`);+ return;+ }try {const html = await render(<PageSubscriptionEmail {...req} />);diff --git a/packages/error/package.json b/packages/error/package.jsonindex c5cb4789a..78d02d117 100644--- a/packages/error/package.json+++ b/packages/error/package.json@@ -5,7 +5,7 @@"main": "index.ts","scripts": {},"dependencies": {- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/notifications/discord/package.json b/packages/notifications/discord/package.jsonindex a30986db3..8dcc4c5e8 100644--- a/packages/notifications/discord/package.json+++ b/packages/notifications/discord/package.json@@ -4,7 +4,7 @@"main": "src/index.ts","dependencies": {"@openstatus/db": "workspace:*",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/notifications/email/package.json b/packages/notifications/email/package.jsonindex 3be95714a..5a91e7202 100644--- a/packages/notifications/email/package.json+++ b/packages/notifications/email/package.json@@ -12,7 +12,7 @@"@react-email/render": "1.0.6","@t3-oss/env-core": "0.7.0","resend": "4.0.1",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/notifications/ntfy/package.json b/packages/notifications/ntfy/package.jsonindex 9d0a6a026..6cf49f13e 100644--- a/packages/notifications/ntfy/package.json+++ b/packages/notifications/ntfy/package.json@@ -4,7 +4,7 @@"main": "src/index.ts","dependencies": {"@openstatus/db": "workspace:*",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/notifications/opsgenie/package.json b/packages/notifications/opsgenie/package.jsonindex 21e440d0b..720715901 100644--- a/packages/notifications/opsgenie/package.json+++ b/packages/notifications/opsgenie/package.json@@ -7,7 +7,7 @@"@t3-oss/env-core": "0.7.1","@types/validator": "13.11.6","validator": "13.12.0",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/notifications/pagerduty/package.json b/packages/notifications/pagerduty/package.jsonindex 8ef21afad..2500c3863 100644--- a/packages/notifications/pagerduty/package.json+++ b/packages/notifications/pagerduty/package.json@@ -7,13 +7,13 @@"@t3-oss/env-core": "0.7.1","@types/validator": "13.11.6","validator": "13.12.0",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*","@types/node": "20.8.0",- "@types/react": "19.1.0",- "@types/react-dom": "19.1.1",+ "@types/react": "19.1.6",+ "@types/react-dom": "19.1.6","typescript": "5.7.2"}}diff --git a/packages/notifications/slack/package.json b/packages/notifications/slack/package.jsonindex abfcf629a..c919a697a 100644--- a/packages/notifications/slack/package.json+++ b/packages/notifications/slack/package.json@@ -4,7 +4,7 @@"main": "src/index.ts","dependencies": {"@openstatus/db": "workspace:*",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/notifications/twillio-sms/package.json b/packages/notifications/twillio-sms/package.jsonindex 23cbecc24..6d58771ae 100644--- a/packages/notifications/twillio-sms/package.json+++ b/packages/notifications/twillio-sms/package.json@@ -6,7 +6,7 @@"@openstatus/db": "workspace:*","@t3-oss/env-core": "0.7.1","validator": "13.12.0",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/notifications/webhook/package.json b/packages/notifications/webhook/package.jsonindex b6dc9218e..f78edef7c 100644--- a/packages/notifications/webhook/package.json+++ b/packages/notifications/webhook/package.json@@ -5,7 +5,7 @@"dependencies": {"@openstatus/db": "workspace:*","@openstatus/utils": "workspace:*",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/tinybird/datasources/mv__http_14d__v1.datasource b/packages/tinybird/datasources/mv__http_14d__v1.datasourcenew file mode 100644index 000000000..031d6d943--- /dev/null+++ b/packages/tinybird/datasources/mv__http_14d__v1.datasource@@ -0,0 +1,19 @@+# Data Source created from Pipe 'aggregate__http_14d__v1'++SCHEMA >+ `time` DateTime,+ `id` Nullable(String),+ `latency` Int64,+ `region` LowCardinality(String),+ `trigger` Nullable(String),+ `statusCode` Nullable(Int16),+ `timestamp` Int64,+ `cronTimestamp` Int64,+ `monitorId` String,+ `requestStatus` Nullable(String),+ `timing` Nullable(String)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(14)"diff --git a/packages/tinybird/datasources/mv__http_1d__v1.datasource b/packages/tinybird/datasources/mv__http_1d__v1.datasourcenew file mode 100644index 000000000..243c2e281--- /dev/null+++ b/packages/tinybird/datasources/mv__http_1d__v1.datasource@@ -0,0 +1,19 @@+# Data Source created from Pipe 'aggregate__http_1d__v1'++SCHEMA >+ `time` DateTime,+ `id` Nullable(String),+ `latency` Int64,+ `requestStatus` Nullable(String),+ `region` LowCardinality(String),+ `trigger` Nullable(String),+ `statusCode` Nullable(Int16),+ `timestamp` Int64,+ `cronTimestamp` Int64,+ `monitorId` String,+ `timing` Nullable(String)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(1)"diff --git a/packages/tinybird/datasources/mv__http_30d__v1.datasource b/packages/tinybird/datasources/mv__http_30d__v1.datasourcenew file mode 100644index 000000000..6a92b18df--- /dev/null+++ b/packages/tinybird/datasources/mv__http_30d__v1.datasource@@ -0,0 +1,19 @@+# Data Source created from Pipe 'aggregate__http_30d__v1'++SCHEMA >+ `time` DateTime,+ `id` Nullable(String),+ `latency` Int64,+ `region` LowCardinality(String),+ `trigger` Nullable(String),+ `statusCode` Nullable(Int16),+ `timestamp` Int64,+ `cronTimestamp` Int64,+ `monitorId` String,+ `requestStatus` Nullable(String),+ `timing` Nullable(String)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(30)"diff --git a/packages/tinybird/datasources/mv__http_7d__v1.datasource b/packages/tinybird/datasources/mv__http_7d__v1.datasourcenew file mode 100644index 000000000..286dffd3f--- /dev/null+++ b/packages/tinybird/datasources/mv__http_7d__v1.datasource@@ -0,0 +1,19 @@+# Data Source created from Pipe 'aggregate__http_7d__v1'++SCHEMA >+ `time` DateTime,+ `id` Nullable(String),+ `latency` Int64,+ `region` LowCardinality(String),+ `trigger` Nullable(String),+ `statusCode` Nullable(Int16),+ `timestamp` Int64,+ `cronTimestamp` Int64,+ `monitorId` String,+ `requestStatus` Nullable(String),+ `timing` Nullable(String)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(7)"diff --git a/packages/tinybird/datasources/mv__http_full_14d__v0.datasource b/packages/tinybird/datasources/mv__http_full_14d__v0.datasourcenew file mode 100644index 000000000..3b3df7108--- /dev/null+++ b/packages/tinybird/datasources/mv__http_full_14d__v0.datasource@@ -0,0 +1,26 @@+# Data Source created from Pipe 'aggregate__http_full_14d__v0'++SCHEMA >+ `time` DateTime,+ `latency` Int64,+ `monitorId` String,+ `region` LowCardinality(String),+ `statusCode` Nullable(Int16),+ `error` Int8,+ `timestamp` Int64,+ `url` String,+ `workspaceId` String,+ `cronTimestamp` Int64,+ `message` Nullable(String),+ `timing` Nullable(String),+ `headers` Nullable(String),+ `assertions` Nullable(String),+ `body` Nullable(String),+ `trigger` Nullable(String),+ `id` Nullable(String),+ `requestStatus` Nullable(String)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(14)"diff --git a/packages/tinybird/datasources/mv__http_timing_phases_14d.datasource b/packages/tinybird/datasources/mv__http_timing_phases_14d.datasourcenew file mode 100644index 000000000..b767183d9--- /dev/null+++ b/packages/tinybird/datasources/mv__http_timing_phases_14d.datasource@@ -0,0 +1,21 @@+# Data Source created from Pipe 'aggregate__http_timing_phases_14d__v1'++SCHEMA >+ `time` DateTime,+ `latency` Int64,+ `region` LowCardinality(String),+ `trigger` Nullable(String),+ `statusCode` Nullable(Int16),+ `monitorId` String,+ `workspaceId` String,+ `requestStatus` Nullable(String),+ `dns` Nullable(Int64),+ `connect` Nullable(Int64),+ `tls` Nullable(Int64),+ `firstByte` Nullable(Int64),+ `transfer` Nullable(Int64)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(14)"diff --git a/packages/tinybird/datasources/mv__http_uptime_30d.datasource b/packages/tinybird/datasources/mv__http_uptime_30d.datasourcenew file mode 100644index 000000000..617982619--- /dev/null+++ b/packages/tinybird/datasources/mv__http_uptime_30d.datasource@@ -0,0 +1,14 @@+# Data Source created from Pipe 'aggregate__http_uptime_30d__v1'+VERSION 1++SCHEMA >+ `time` DateTime,+ `region` LowCardinality(String),+ `requestStatus` Nullable(String),+ `monitorId` String,+ `workspaceId` String++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(30)"diff --git a/packages/tinybird/datasources/mv__http_workspace_30d__v0.datasource b/packages/tinybird/datasources/mv__http_workspace_30d__v0.datasourcenew file mode 100644index 000000000..621a99b9a--- /dev/null+++ b/packages/tinybird/datasources/mv__http_workspace_30d__v0.datasource@@ -0,0 +1,12 @@+# Data Source created from Pipe 'aggregate__http_workspace_30d__v0'++SCHEMA >+ `time` DateTime('UTC'),+ `workspaceId` String,+ `trigger` String,+ `count_state` AggregateFunction(count)++ENGINE "AggregatingMergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "workspaceId, time, trigger"+ENGINE_TTL "time + toIntervalDay(30)"diff --git a/packages/tinybird/datasources/mv__tcp_14d__v1.datasource b/packages/tinybird/datasources/mv__tcp_14d__v1.datasourcenew file mode 100644index 000000000..3766f2477--- /dev/null+++ b/packages/tinybird/datasources/mv__tcp_14d__v1.datasource@@ -0,0 +1,18 @@+# Data Source created from Pipe 'aggregate__tcp_14d__v1'++SCHEMA >+ `time` DateTime,+ `latency` Int64,+ `error` Int16,+ `region` String,+ `trigger` Nullable(String),+ `timestamp` Int64,+ `cronTimestamp` Int64,+ `monitorId` Int32,+ `requestStatus` Nullable(String),+ `id` Nullable(String)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(14)"diff --git a/packages/tinybird/datasources/mv__tcp_1d__v1.datasource b/packages/tinybird/datasources/mv__tcp_1d__v1.datasourcenew file mode 100644index 000000000..9f00d23ef--- /dev/null+++ b/packages/tinybird/datasources/mv__tcp_1d__v1.datasource@@ -0,0 +1,18 @@+# Data Source created from Pipe 'aggregate__tcp_1d__v1'++SCHEMA >+ `time` DateTime,+ `latency` Int64,+ `error` Int16,+ `region` String,+ `trigger` Nullable(String),+ `timestamp` Int64,+ `cronTimestamp` Int64,+ `monitorId` Int32,+ `requestStatus` Nullable(String),+ `id` Nullable(String)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(1)"diff --git a/packages/tinybird/datasources/mv__tcp_30d__v1.datasource b/packages/tinybird/datasources/mv__tcp_30d__v1.datasourcenew file mode 100644index 000000000..ddb8e1016--- /dev/null+++ b/packages/tinybird/datasources/mv__tcp_30d__v1.datasource@@ -0,0 +1,18 @@+# Data Source created from Pipe 'aggregate__tcp_30d__v1'++SCHEMA >+ `time` DateTime,+ `latency` Int64,+ `error` Int16,+ `region` String,+ `trigger` Nullable(String),+ `timestamp` Int64,+ `cronTimestamp` Int64,+ `monitorId` Int32,+ `requestStatus` Nullable(String),+ `id` Nullable(String)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(30)"diff --git a/packages/tinybird/datasources/mv__tcp_7d__v1.datasource b/packages/tinybird/datasources/mv__tcp_7d__v1.datasourcenew file mode 100644index 000000000..eccd44dfa--- /dev/null+++ b/packages/tinybird/datasources/mv__tcp_7d__v1.datasource@@ -0,0 +1,18 @@+# Data Source created from Pipe 'aggregate__tcp_7d__v1'++SCHEMA >+ `time` DateTime,+ `latency` Int64,+ `error` Int16,+ `region` String,+ `trigger` Nullable(String),+ `timestamp` Int64,+ `cronTimestamp` Int64,+ `monitorId` Int32,+ `requestStatus` Nullable(String),+ `id` Nullable(String)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(7)"diff --git a/packages/tinybird/datasources/mv__tcp_full_14d__v0.datasource b/packages/tinybird/datasources/mv__tcp_full_14d__v0.datasourcenew file mode 100644index 000000000..67de541a3--- /dev/null+++ b/packages/tinybird/datasources/mv__tcp_full_14d__v0.datasource@@ -0,0 +1,22 @@+# Data Source created from Pipe 'aggregate__tcp_full_14d__v0'++SCHEMA >+ `time` DateTime,+ `monitorId` Int32,+ `region` String,+ `timestamp` Int64,+ `cronTimestamp` Int64,+ `timing` String,+ `workspaceId` Int32,+ `latency` Int64,+ `errorMessage` Nullable(String),+ `error` Int16,+ `trigger` Nullable(String),+ `uri` Nullable(String),+ `id` Nullable(String),+ `requestStatus` Nullable(String)++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(14)"diff --git a/packages/tinybird/datasources/mv__tcp_uptime_30d__v1.datasource b/packages/tinybird/datasources/mv__tcp_uptime_30d__v1.datasourcenew file mode 100644index 000000000..7fb6ba01f--- /dev/null+++ b/packages/tinybird/datasources/mv__tcp_uptime_30d__v1.datasource@@ -0,0 +1,13 @@+# Data Source created from Pipe 'aggregate__tcp_uptime_30d__v1'++SCHEMA >+ `time` DateTime,+ `region` String,+ `requestStatus` Nullable(String),+ `monitorId` Int32,+ `workspaceId` Int32++ENGINE "MergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(30)"diff --git a/packages/tinybird/datasources/mv__tcp_workspace_30d__v0.datasource b/packages/tinybird/datasources/mv__tcp_workspace_30d__v0.datasourcenew file mode 100644index 000000000..e95ec7e55--- /dev/null+++ b/packages/tinybird/datasources/mv__tcp_workspace_30d__v0.datasource@@ -0,0 +1,12 @@+# Data Source created from Pipe 'aggregate__tcp_workspace_30d__v0'++SCHEMA >+ `time` DateTime('UTC'),+ `workspaceId` Int32,+ `trigger` String,+ `count_state` AggregateFunction(count)++ENGINE "AggregatingMergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "workspaceId, time, trigger"+ENGINE_TTL "time + toIntervalDay(30)"diff --git a/packages/tinybird/datasources/mv_http_status_14d.datasource b/packages/tinybird/datasources/mv_http_status_14d.datasourcenew file mode 100644index 000000000..ab57875b4--- /dev/null+++ b/packages/tinybird/datasources/mv_http_status_14d.datasource@@ -0,0 +1,15 @@+# Data Source created from Pipe 'aggregate__http_status_14d__v0'+VERSION 0++SCHEMA >+ `time` DateTime('UTC'),+ `monitorId` String,+ `total` AggregateFunction(count),+ `success` AggregateFunction(count, Nullable(UInt8)),+ `degraded` AggregateFunction(count, Nullable(UInt8)),+ `error` AggregateFunction(count, Nullable(UInt8))++ENGINE "AggregatingMergeTree"+ENGINE_PARTITION_KEY "toYYYYMM(time)"+ENGINE_SORTING_KEY "monitorId, time"+ENGINE_TTL "time + toIntervalDay(14)"diff --git a/packages/tinybird/package.json b/packages/tinybird/package.jsonindex c265921f4..650f116dc 100644--- a/packages/tinybird/package.json+++ b/packages/tinybird/package.json@@ -5,7 +5,7 @@"license": "MIT","dependencies": {"@chronark/zod-bird": "0.3.6",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/tinybird/pipes/aggregate__http_14d__v1.pipe b/packages/tinybird/pipes/aggregate__http_14d__v1.pipenew file mode 100644index 000000000..5fc61ca84--- /dev/null+++ b/packages/tinybird/pipes/aggregate__http_14d__v1.pipe@@ -0,0 +1,23 @@+TAGS "http"++NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ id,+ latency,+ region,+ trigger,+ statusCode,+ timestamp,+ cronTimestamp,+ monitorId,+ requestStatus,+ timing+ FROM ping_response__v8++TYPE materialized+DATASOURCE mv__http_14d__v1++diff --git a/packages/tinybird/pipes/aggregate__http_1d.pipe b/packages/tinybird/pipes/aggregate__http_1d.pipeindex cfb10ba85..3004300a6 100644--- a/packages/tinybird/pipes/aggregate__http_1d.pipe+++ b/packages/tinybird/pipes/aggregate__http_1d.pipe@@ -1,6 +1,4 @@-VERSION 0--TAGS http+TAGS "http"NODE aggregateSQL >@@ -9,6 +7,7 @@ SQL >toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,latency,error,+ requestStatus,region,trigger,statusCode,@@ -19,10 +18,6 @@ SQL >FROM ping_response__v8TYPE materialized-DATASOURCE mv__http_1d__v0-ENGINE "MergeTree"-ENGINE_PARTITION_KEY "toYYYYMM(time)"-ENGINE_SORTING_KEY "monitorId, time"-ENGINE_TTL "time + toIntervalDay(1)"+DATASOURCE mv__http_1d__v1diff --git a/packages/tinybird/pipes/aggregate__http_1d__v1.pipe b/packages/tinybird/pipes/aggregate__http_1d__v1.pipenew file mode 100644index 000000000..ef054ccd6--- /dev/null+++ b/packages/tinybird/pipes/aggregate__http_1d__v1.pipe@@ -0,0 +1,23 @@+TAGS "http"++NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ id,+ latency,+ region,+ trigger,+ statusCode,+ timestamp,+ cronTimestamp,+ monitorId,+ requestStatus,+ timing+ FROM ping_response__v8++TYPE materialized+DATASOURCE mv__http_1d__v1++diff --git a/packages/tinybird/pipes/aggregate__http_30d__v1.pipe b/packages/tinybird/pipes/aggregate__http_30d__v1.pipenew file mode 100644index 000000000..00ed0e7bd--- /dev/null+++ b/packages/tinybird/pipes/aggregate__http_30d__v1.pipe@@ -0,0 +1,21 @@+NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ id,+ latency,+ region,+ trigger,+ statusCode,+ timestamp,+ cronTimestamp,+ monitorId,+ requestStatus,+ timing+ FROM ping_response__v8++TYPE materialized+DATASOURCE mv__http_30d__v1++diff --git a/packages/tinybird/pipes/aggregate__http_7d__v1.pipe b/packages/tinybird/pipes/aggregate__http_7d__v1.pipenew file mode 100644index 000000000..52ea27de6--- /dev/null+++ b/packages/tinybird/pipes/aggregate__http_7d__v1.pipe@@ -0,0 +1,21 @@+NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ id,+ latency,+ region,+ trigger,+ statusCode,+ timestamp,+ cronTimestamp,+ monitorId,+ requestStatus,+ timing+ FROM ping_response__v8++TYPE materialized+DATASOURCE mv__http_7d__v1++diff --git a/packages/tinybird/pipes/aggregate__http_full_14d__v0.pipe b/packages/tinybird/pipes/aggregate__http_full_14d__v0.pipenew file mode 100644index 000000000..b4272edaf--- /dev/null+++ b/packages/tinybird/pipes/aggregate__http_full_14d__v0.pipe@@ -0,0 +1,18 @@+DESCRIPTION >+ Stores all the data from the http_response table for the last 30 days, mainly used for accessing the data details.+++TAGS "http, full"++NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ *+ FROM ping_response__v8++TYPE materialized+DATASOURCE mv__http_full_14d__v0++diff --git a/packages/tinybird/pipes/aggregate__http_status_14d.pipe b/packages/tinybird/pipes/aggregate__http_status_14d.pipenew file mode 100644index 000000000..302131057--- /dev/null+++ b/packages/tinybird/pipes/aggregate__http_status_14d.pipe@@ -0,0 +1,27 @@+VERSION 0++TAGS "http, statuspage"++NODE aggregate+SQL >++ WITH+ if(requestStatus = 'success', 1, NULL) AS is_success,+ if(requestStatus = 'degraded', 1, NULL) AS is_degraded,+ if(requestStatus = 'error', 1, NULL) AS is_error+ SELECT+ toStartOfDay(toTimeZone(fromUnixTimestamp64Milli(cronTimestamp), 'UTC')) AS time,+ monitorId,+ countState() AS total,+ countState(is_success) AS success,+ countState(is_degraded) AS degraded,+ countState(is_error) AS error+ FROM ping_response__v8+ GROUP BY+ time,+ monitorId++TYPE materialized+DATASOURCE mv_http_status_14d__v0++diff --git a/packages/tinybird/pipes/aggregate__http_timing_phases_14d.pipe b/packages/tinybird/pipes/aggregate__http_timing_phases_14d.pipenew file mode 100644index 000000000..e21a62a27--- /dev/null+++ b/packages/tinybird/pipes/aggregate__http_timing_phases_14d.pipe@@ -0,0 +1,35 @@+NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ latency,+ region,+ trigger,+ statusCode,+ monitorId,+ workspaceId,+ requestStatus,++ -- Compute actual durations from timing phases+ if(isNull(JSONExtractInt(timing, 'dnsStart')) OR isNull(JSONExtractInt(timing, 'dnsDone')), NULL,+ JSONExtractInt(timing, 'dnsDone') - JSONExtractInt(timing, 'dnsStart')) AS dns,++ if(isNull(JSONExtractInt(timing, 'connectStart')) OR isNull(JSONExtractInt(timing, 'connectDone')), NULL,+ JSONExtractInt(timing, 'connectDone') - JSONExtractInt(timing, 'connectStart')) AS connect,++ if(isNull(JSONExtractInt(timing, 'tlsHandshakeStart')) OR isNull(JSONExtractInt(timing, 'tlsHandshakeDone')), NULL,+ JSONExtractInt(timing, 'tlsHandshakeDone') - JSONExtractInt(timing, 'tlsHandshakeStart')) AS tls,++ if(isNull(JSONExtractInt(timing, 'firstByteStart')) OR isNull(JSONExtractInt(timing, 'firstByteDone')), NULL,+ JSONExtractInt(timing, 'firstByteDone') - JSONExtractInt(timing, 'firstByteStart')) AS firstByte,++ if(isNull(JSONExtractInt(timing, 'transferStart')) OR isNull(JSONExtractInt(timing, 'transferDone')), NULL,+ JSONExtractInt(timing, 'transferDone') - JSONExtractInt(timing, 'transferStart')) AS transfer++ FROM ping_response__v8++TYPE materialized+DATASOURCE mv__http_timing_phases_14d__v1++diff --git a/packages/tinybird/pipes/aggregate__http_uptime_30d.pipe b/packages/tinybird/pipes/aggregate__http_uptime_30d.pipenew file mode 100644index 000000000..f00cf372a--- /dev/null+++ b/packages/tinybird/pipes/aggregate__http_uptime_30d.pipe@@ -0,0 +1,19 @@+VERSION 1++TAGS http++NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ region,+ requestStatus,+ monitorId,+ workspaceId+ FROM ping_response__v8++TYPE materialized+DATASOURCE mv__http_uptime_30d__v1++diff --git a/packages/tinybird/pipes/aggregate__http_workspace_30d__v0.pipe b/packages/tinybird/pipes/aggregate__http_workspace_30d__v0.pipenew file mode 100644index 000000000..17f7f5907--- /dev/null+++ b/packages/tinybird/pipes/aggregate__http_workspace_30d__v0.pipe@@ -0,0 +1,20 @@+TAGS "http"++NODE aggregate+SQL >++ SELECT+ toStartOfDay(toTimeZone(fromUnixTimestamp64Milli(cronTimestamp), 'UTC')) AS time,+ workspaceId,+ ifNull(trigger, 'cron') AS trigger,+ countState() AS count_state+ FROM ping_response__v8+ GROUP BY+ time,+ workspaceId,+ trigger++TYPE materialized+DATASOURCE mv__http_workspace_30d__v0++diff --git a/packages/tinybird/pipes/aggregate__tcp_14d__v1.pipe b/packages/tinybird/pipes/aggregate__tcp_14d__v1.pipenew file mode 100644index 000000000..0e6eea1a2--- /dev/null+++ b/packages/tinybird/pipes/aggregate__tcp_14d__v1.pipe@@ -0,0 +1,22 @@+TAGS "tcp"++NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ latency,+ error,+ region,+ trigger,+ timestamp,+ cronTimestamp,+ monitorId,+ requestStatus,+ id+ FROM tcp_response__v0++TYPE materialized+DATASOURCE mv__tcp_14d__v1++diff --git a/packages/tinybird/pipes/aggregate__tcp_1d__v1.pipe b/packages/tinybird/pipes/aggregate__tcp_1d__v1.pipenew file mode 100644index 000000000..8440427c2--- /dev/null+++ b/packages/tinybird/pipes/aggregate__tcp_1d__v1.pipe@@ -0,0 +1,22 @@+TAGS "tcp"++NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ latency,+ error,+ region,+ trigger,+ timestamp,+ cronTimestamp,+ monitorId,+ requestStatus,+ id+ FROM tcp_response__v0++TYPE materialized+DATASOURCE mv__tcp_1d__v1++diff --git a/packages/tinybird/pipes/aggregate__tcp_30d__v1.pipe b/packages/tinybird/pipes/aggregate__tcp_30d__v1.pipenew file mode 100644index 000000000..563f961a5--- /dev/null+++ b/packages/tinybird/pipes/aggregate__tcp_30d__v1.pipe@@ -0,0 +1,22 @@+TAGS "tcp"++NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ latency,+ error,+ region,+ trigger,+ timestamp,+ cronTimestamp,+ monitorId,+ requestStatus,+ id+ FROM tcp_response__v0++TYPE materialized+DATASOURCE mv__tcp_30d__v1++diff --git a/packages/tinybird/pipes/aggregate__tcp_7d__v1.pipe b/packages/tinybird/pipes/aggregate__tcp_7d__v1.pipenew file mode 100644index 000000000..f762815c1--- /dev/null+++ b/packages/tinybird/pipes/aggregate__tcp_7d__v1.pipe@@ -0,0 +1,22 @@+TAGS "tcp"++NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ latency,+ error,+ region,+ trigger,+ timestamp,+ cronTimestamp,+ monitorId,+ requestStatus,+ id+ FROM tcp_response__v0++TYPE materialized+DATASOURCE mv__tcp_7d__v1++diff --git a/packages/tinybird/pipes/aggregate__tcp_full_14d__v0.pipe b/packages/tinybird/pipes/aggregate__tcp_full_14d__v0.pipenew file mode 100644index 000000000..ca9c70f57--- /dev/null+++ b/packages/tinybird/pipes/aggregate__tcp_full_14d__v0.pipe@@ -0,0 +1,18 @@+DESCRIPTION >+ Stores all the data from the http_response table for the last 30 days, mainly used for accessing the data details.+++TAGS "tcp, full"++NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ *+ FROM tcp_response__v0++TYPE materialized+DATASOURCE mv__tcp_full_14d__v0++diff --git a/packages/tinybird/pipes/aggregate__tcp_uptime_30d__v1.pipe b/packages/tinybird/pipes/aggregate__tcp_uptime_30d__v1.pipenew file mode 100644index 000000000..e3a2972e7--- /dev/null+++ b/packages/tinybird/pipes/aggregate__tcp_uptime_30d__v1.pipe@@ -0,0 +1,15 @@+NODE aggregate+SQL >++ SELECT+ toDateTime(fromUnixTimestamp64Milli(cronTimestamp)) AS time,+ region,+ requestStatus,+ monitorId,+ workspaceId+ FROM tcp_response__v0++TYPE materialized+DATASOURCE mv__tcp_uptime_30d__v1++diff --git a/packages/tinybird/pipes/aggregate__tcp_workspace_30d__v0.pipe b/packages/tinybird/pipes/aggregate__tcp_workspace_30d__v0.pipenew file mode 100644index 000000000..8430c9e33--- /dev/null+++ b/packages/tinybird/pipes/aggregate__tcp_workspace_30d__v0.pipe@@ -0,0 +1,20 @@+TAGS "tcp"++NODE aggregate+SQL >++ SELECT+ toStartOfDay(toTimeZone(fromUnixTimestamp64Milli(cronTimestamp), 'UTC')) AS time,+ workspaceId,+ ifNull(trigger, 'cron') AS trigger,+ countState() AS count_state+ FROM tcp_response__v0+ GROUP BY+ time,+ workspaceId,+ trigger++TYPE materialized+DATASOURCE mv__tcp_workspace_30d__v0++diff --git a/packages/tinybird/pipes/endpoint__audit_log.pipe b/packages/tinybird/pipes/endpoint__audit_log.pipenew file mode 100644index 000000000..a5eed224e--- /dev/null+++ b/packages/tinybird/pipes/endpoint__audit_log.pipe@@ -0,0 +1,17 @@+VERSION 1++TAGS endpoint+++NODE endpoint+SQL >++ %+ SELECT action, id, metadata, timestamp+ FROM audit_log__v0+ WHERE+ id = {{String(monitorId, 'monitor:1', required=True)}}+ AND timestamp > toUnixTimestamp(now() - INTERVAL {{ Int64(interval, 30) }} day) * 1000+ ORDER BY timestamp DESC++diff --git a/packages/tinybird/pipes/endpoint__http_get_14d__v0.pipe b/packages/tinybird/pipes/endpoint__http_get_14d__v0.pipenew file mode 100644index 000000000..046358b6a--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_get_14d__v0.pipe@@ -0,0 +1,14 @@+TAGS "http"++NODE endpoint+SQL >++ %+ SELECT *+ FROM mv__http_full_14d__v0+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ AND id = {{ String(id, '', required=True) }}+ ORDER BY time DESC++diff --git a/packages/tinybird/pipes/endpoint__http_list_14d__v1.pipe b/packages/tinybird/pipes/endpoint__http_list_14d__v1.pipenew file mode 100644index 000000000..a05f372b0--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_list_14d__v1.pipe@@ -0,0 +1,18 @@+TAGS "http"++NODE endpoint+SQL >++ %+ SELECT * FROM mv__http_14d__v1+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ {% if defined(fromDate) %}+ AND time >= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(fromDate) }})))+ {% end %}+ {% if defined(toDate) %}+ AND time <= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(toDate) }})))+ {% end %}+ ORDER BY time DESC++diff --git a/packages/tinybird/pipes/endpoint__http_list_1d__v1.pipe b/packages/tinybird/pipes/endpoint__http_list_1d__v1.pipenew file mode 100644index 000000000..343a4f0cc--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_list_1d__v1.pipe@@ -0,0 +1,18 @@+TAGS "http"++NODE endpoint+SQL >++ %+ SELECT * FROM mv__http_1d__v1+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ {% if defined(fromDate) %}+ AND time >= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(fromDate) }})))+ {% end %}+ {% if defined(toDate) %}+ AND time <= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(toDate) }})))+ {% end %}+ ORDER BY time DESC++diff --git a/packages/tinybird/pipes/endpoint__http_list_7d__v1.pipe b/packages/tinybird/pipes/endpoint__http_list_7d__v1.pipenew file mode 100644index 000000000..377104b7a--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_list_7d__v1.pipe@@ -0,0 +1,18 @@+TAGS "http"++NODE endpoint+SQL >++ %+ SELECT * FROM mv__http_7d__v1+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ {% if defined(fromDate) %}+ AND time >= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(fromDate) }})))+ {% end %}+ {% if defined(toDate) %}+ AND time <= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(toDate) }})))+ {% end %}+ ORDER BY time DESC++diff --git a/packages/tinybird/pipes/endpoint__http_metrics_14d__v1.pipe b/packages/tinybird/pipes/endpoint__http_metrics_14d__v1.pipenew file mode 100644index 000000000..56ac581dc--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_metrics_14d__v1.pipe@@ -0,0 +1,42 @@+TAGS "http"++NODE endpoint+SQL >++ %+ SELECT+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ max(cronTimestamp) AS lastTimestamp+ FROM mv__http_14d__v1+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 14 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}+ UNION ALL+ SELECT+ round(quantile(0.50)(latency)) AS p50Latency,+ round(quantile(0.75)(latency)) AS p75Latency,+ round(quantile(0.90)(latency)) AS p90Latency,+ round(quantile(0.95)(latency)) AS p95Latency,+ round(quantile(0.99)(latency)) AS p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant+ FROM mv__http_30d__v1+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 28 DAY, 3)+ AND time < toDateTime64(now() - INTERVAL 14 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}++diff --git a/packages/tinybird/pipes/endpoint__http_metrics_1d__v1.pipe b/packages/tinybird/pipes/endpoint__http_metrics_1d__v1.pipenew file mode 100644index 000000000..3e68df5d2--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_metrics_1d__v1.pipe@@ -0,0 +1,42 @@+TAGS "http"++NODE endpoint+SQL >++ %+ SELECT+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ max(cronTimestamp) AS lastTimestamp+ FROM mv__http_1d__v1+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 1 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}+ UNION ALL+ SELECT+ round(quantile(0.50)(latency)) AS p50Latency,+ round(quantile(0.75)(latency)) AS p75Latency,+ round(quantile(0.90)(latency)) AS p90Latency,+ round(quantile(0.95)(latency)) AS p95Latency,+ round(quantile(0.99)(latency)) AS p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant+ FROM mv__http_7d__v1+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 2 DAY, 3)+ AND time < toDateTime64(now() - INTERVAL 1 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}++diff --git a/packages/tinybird/pipes/endpoint__http_metrics_7d__v1.pipe b/packages/tinybird/pipes/endpoint__http_metrics_7d__v1.pipenew file mode 100644index 000000000..25cd0ada0--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_metrics_7d__v1.pipe@@ -0,0 +1,42 @@+TAGS "http"++NODE endpoint+SQL >++ %+ SELECT+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ max(cronTimestamp) AS lastTimestamp+ FROM mv__http_7d__v1+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 7 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}+ UNION ALL+ SELECT+ round(quantile(0.50)(latency)) AS p50Latency,+ round(quantile(0.75)(latency)) AS p75Latency,+ round(quantile(0.90)(latency)) AS p90Latency,+ round(quantile(0.95)(latency)) AS p95Latency,+ round(quantile(0.99)(latency)) AS p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant+ FROM mv__http_14d__v1+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 14 DAY, 3)+ AND time < toDateTime64(now() - INTERVAL 7 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}++diff --git a/packages/tinybird/pipes/endpoint__http_metrics_global_1d.pipe b/packages/tinybird/pipes/endpoint__http_metrics_global_1d.pipenew file mode 100644index 000000000..11fd2feed--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_metrics_global_1d.pipe@@ -0,0 +1,24 @@+VERSION 0++TAGS "http"++NODE endpoint+SQL >++ %+ SELECT+ round(min(latency), 0) as minLatency,+ round(max(latency), 0) as maxLatency,+ round(quantile(0.5)(latency), 0) as p50Latency,+ round(quantile(0.75)(latency), 0) as p75Latency,+ round(quantile(0.9)(latency), 0) as p90Latency,+ round(quantile(0.95)(latency), 0) as p95Latency,+ round(quantile(0.99)(latency), 0) as p99Latency,+ max(cronTimestamp) as lastTimestamp,+ count() as count,+ monitorId+ FROM mv__http_1d__v0+ WHERE monitorId IN {{ Array(monitorIds, 'String', '1') }}+ GROUP BY monitorId++diff --git a/packages/tinybird/pipes/endpoint__http_metrics_latency_1d__v1.pipe b/packages/tinybird/pipes/endpoint__http_metrics_latency_1d__v1.pipenew file mode 100644index 000000000..59ee7cf68--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_metrics_latency_1d__v1.pipe@@ -0,0 +1,23 @@+TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT+ toStartOfInterval(+ toDateTime(cronTimestamp / 1000), INTERVAL {{ Int64(interval, 30) }} MINUTE+ ) as h,+ toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency+ FROM mv__http_1d__v0+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ GROUP BY h+ ORDER BY h DESC++diff --git a/packages/tinybird/pipes/endpoint__http_metrics_regions_14d__v0.pipe b/packages/tinybird/pipes/endpoint__http_metrics_regions_14d__v0.pipenew file mode 100644index 000000000..81fc0024f--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_metrics_regions_14d__v0.pipe@@ -0,0 +1,23 @@+NODE endpoint+SQL >++ %+ SELECT+ region,+ toStartOfInterval(+ toDateTime(cronTimestamp / 1000), INTERVAL {{ Int64(interval, 30) }} MINUTE+ ) as h,+ toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency+ FROM mv__http_14d__v0+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ AND region IN {{ Array(regions, 'String', 'ams,fra') }}+ GROUP BY h, region+ ORDER BY h DESC++diff --git a/packages/tinybird/pipes/endpoint__http_metrics_regions_1d__v0.pipe b/packages/tinybird/pipes/endpoint__http_metrics_regions_1d__v0.pipenew file mode 100644index 000000000..831e09307--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_metrics_regions_1d__v0.pipe@@ -0,0 +1,23 @@+NODE endpoint+SQL >++ %+ SELECT+ region,+ toStartOfInterval(+ toDateTime(cronTimestamp / 1000), INTERVAL {{ Int64(interval, 30) }} MINUTE+ ) as h,+ toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency+ FROM mv__http_1d__v0+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ AND region IN {{ Array(regions, 'String', 'ams,fra') }}+ GROUP BY h, region+ ORDER BY h DESC++diff --git a/packages/tinybird/pipes/endpoint__http_metrics_regions_7d__v0.pipe b/packages/tinybird/pipes/endpoint__http_metrics_regions_7d__v0.pipenew file mode 100644index 000000000..614a93191--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_metrics_regions_7d__v0.pipe@@ -0,0 +1,23 @@+NODE endpoint+SQL >++ %+ SELECT+ region,+ toStartOfInterval(+ toDateTime(cronTimestamp / 1000), INTERVAL {{ Int64(interval, 30) }} MINUTE+ ) as h,+ toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency+ FROM mv__http_7d__v0+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ AND region IN {{ Array(regions, 'String', 'ams,fra') }}+ GROUP BY h, region+ ORDER BY h DESC++diff --git a/packages/tinybird/pipes/endpoint__http_status_14d.pipe b/packages/tinybird/pipes/endpoint__http_status_14d.pipenew file mode 100644index 000000000..a384e6564--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_status_14d.pipe@@ -0,0 +1,25 @@+VERSION 0++TAGS "http"++NODE endpoint+SQL >++ %+ SELECT+ time as day,+ countMerge(total) as total,+ countMerge(success) as success,+ countMerge(error) as error,+ countMerge(degraded) as degraded+ FROM mv__http_status_14d__v0+ WHERE monitorId = {{ String(monitorId, '1', required=True) }}+ GROUP BY day+ ORDER BY day DESC+ WITH FILL+ FROM+ toStartOfDay(toStartOfDay(toTimeZone(now(), 'UTC')))+ TO toStartOfDay(date_sub(DAY, 14, now())) STEP INTERVAL -1 DAY+ LIMIT {{ Int16(days, 14) }}++diff --git a/packages/tinybird/pipes/endpoint__http_timing_phases_14d__v1.pipe b/packages/tinybird/pipes/endpoint__http_timing_phases_14d__v1.pipenew file mode 100644index 000000000..7d91fdb41--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_timing_phases_14d__v1.pipe@@ -0,0 +1,38 @@+NODE endpoint__http_timing_phases_14d__v1_0+SQL >++ %+ SELECT+ toStartOfInterval(time, INTERVAL {{ Int64(interval, 30) }} MINUTE) as h,+ toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,+ round(quantile(0.5)(dns)) as p50Dns,+ round(quantile(0.5)(firstByte)) as p50Ttfb,+ round(quantile(0.5)(transfer)) as p50Transfer,+ round(quantile(0.5)(connect)) as p50Connect,+ round(quantile(0.5)(tls)) as p50Tls,+ round(quantile(0.75)(dns)) as p75Dns,+ round(quantile(0.75)(firstByte)) as p75Ttfb,+ round(quantile(0.75)(transfer)) as p75Transfer,+ round(quantile(0.75)(connect)) as p75Connect,+ round(quantile(0.75)(tls)) as p75Tls,+ round(quantile(0.90)(dns)) as p90Dns,+ round(quantile(0.90)(firstByte)) as p90Ttfb,+ round(quantile(0.90)(transfer)) as p90Transfer,+ round(quantile(0.90)(connect)) as p90Connect,+ round(quantile(0.90)(tls)) as p90Tls,+ round(quantile(0.95)(dns)) as p95Dns,+ round(quantile(0.95)(firstByte)) as p95Ttfb,+ round(quantile(0.95)(transfer)) as p95Transfer,+ round(quantile(0.95)(connect)) as p95Connect,+ round(quantile(0.95)(tls)) as p95Tls,+ round(quantile(0.99)(dns)) as p99Dns,+ round(quantile(0.99)(firstByte)) as p99Ttfb,+ round(quantile(0.99)(transfer)) as p99Transfer,+ round(quantile(0.99)(connect)) as p99Connect,+ round(quantile(0.99)(tls)) as p99Tls+ FROM mv__http_timing_phases_14d__v1+ WHERE monitorId = {{ String(monitorId, '141', required=True) }}+ GROUP BY h+ ORDER BY h ASC++diff --git a/packages/tinybird/pipes/endpoint__http_uptime_30d.pipe b/packages/tinybird/pipes/endpoint__http_uptime_30d.pipenew file mode 100644index 000000000..79266ded6--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_uptime_30d.pipe@@ -0,0 +1,21 @@+VERSION 1++TAGS "http"++NODE endpoint+SQL >++ %+ SELECT+ toStartOfInterval(time, INTERVAL {{ String(interval, '30', required=True) }} minute) AS interval,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error+ FROM mv__http_uptime_30d__v1+ WHERE+ monitorId = {{ String(monitorId, '1', required=True) }}+ {% if fromDate %} AND time >= toDateTime({{ String(fromDate) }}) {% end %}+ {% if toDate %} AND time <= toDateTime({{ String(toDate) }}) {% end %}+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}+ GROUP BY interval+ ORDER BY interval DESC\ No newline at end of filediff --git a/packages/tinybird/pipes/endpoint__http_workspace_30d__v0.pipe b/packages/tinybird/pipes/endpoint__http_workspace_30d__v0.pipenew file mode 100644index 000000000..67149c4ff--- /dev/null+++ b/packages/tinybird/pipes/endpoint__http_workspace_30d__v0.pipe@@ -0,0 +1,15 @@+TAGS "http"++NODE endpoint+SQL >++ %+ SELECT+ time as day,+ countMerge(count_state) as count+ FROM mv__http_workspace_30d__v0+ WHERE workspaceId = {{ String(workspaceId, '1', required=True) }}+ GROUP BY day+ ORDER BY day DESC++diff --git a/packages/tinybird/pipes/endpoint__tcp_get_14d__v0.pipe b/packages/tinybird/pipes/endpoint__tcp_get_14d__v0.pipenew file mode 100644index 000000000..961bd48ad--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_get_14d__v0.pipe@@ -0,0 +1,14 @@+TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT *+ FROM mv__tcp_full_14d__v0+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ AND id = {{ String(id, '', required=True) }}+ ORDER BY time DESC++diff --git a/packages/tinybird/pipes/endpoint__tcp_list_14d__v1.pipe b/packages/tinybird/pipes/endpoint__tcp_list_14d__v1.pipenew file mode 100644index 000000000..5c6341bd7--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_list_14d__v1.pipe@@ -0,0 +1,18 @@+TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT * FROM mv__tcp_14d__v1+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ {% if defined(fromDate) %}+ AND time >= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(fromDate) }})))+ {% end %}+ {% if defined(toDate) %}+ AND time <= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(toDate) }})))+ {% end %}+ ORDER BY time DESC++diff --git a/packages/tinybird/pipes/endpoint__tcp_list_1d__v1.pipe b/packages/tinybird/pipes/endpoint__tcp_list_1d__v1.pipenew file mode 100644index 000000000..412f0503a--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_list_1d__v1.pipe@@ -0,0 +1,18 @@+TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT * FROM mv__tcp_1d__v1+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ {% if defined(fromDate) %}+ AND time >= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(fromDate) }})))+ {% end %}+ {% if defined(toDate) %}+ AND time <= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(toDate) }})))+ {% end %}+ ORDER BY time DESC++diff --git a/packages/tinybird/pipes/endpoint__tcp_list_7d__v1.pipe b/packages/tinybird/pipes/endpoint__tcp_list_7d__v1.pipenew file mode 100644index 000000000..33adaffe3--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_list_7d__v1.pipe@@ -0,0 +1,18 @@+TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT * FROM mv__tcp_7d__v1+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ {% if defined(fromDate) %}+ AND time >= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(fromDate) }})))+ {% end %}+ {% if defined(toDate) %}+ AND time <= toDateTime(fromUnixTimestamp64Milli(toInt64({{ String(toDate) }})))+ {% end %}+ ORDER BY time DESC++diff --git a/packages/tinybird/pipes/endpoint__tcp_metrics_14d__v1.pipe b/packages/tinybird/pipes/endpoint__tcp_metrics_14d__v1.pipenew file mode 100644index 000000000..d9fbd9c81--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_metrics_14d__v1.pipe@@ -0,0 +1,42 @@+TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ max(cronTimestamp) AS lastTimestamp+ FROM mv__tcp_14d__v1+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 14 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}+ UNION ALL+ SELECT+ round(quantile(0.50)(latency)) AS p50Latency,+ round(quantile(0.75)(latency)) AS p75Latency,+ round(quantile(0.90)(latency)) AS p90Latency,+ round(quantile(0.95)(latency)) AS p95Latency,+ round(quantile(0.99)(latency)) AS p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant+ FROM mv__tcp_30d__v1+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 28 DAY, 3)+ AND time < toDateTime64(now() - INTERVAL 14 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}++diff --git a/packages/tinybird/pipes/endpoint__tcp_metrics_1d__v1.pipe b/packages/tinybird/pipes/endpoint__tcp_metrics_1d__v1.pipenew file mode 100644index 000000000..a2be394f2--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_metrics_1d__v1.pipe@@ -0,0 +1,42 @@+TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ max(cronTimestamp) AS lastTimestamp+ FROM mv__tcp_1d__v1+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 1 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}+ UNION ALL+ SELECT+ round(quantile(0.50)(latency)) AS p50Latency,+ round(quantile(0.75)(latency)) AS p75Latency,+ round(quantile(0.90)(latency)) AS p90Latency,+ round(quantile(0.95)(latency)) AS p95Latency,+ round(quantile(0.99)(latency)) AS p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant+ FROM mv__tcp_7d__v1+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 2 DAY, 3)+ AND time < toDateTime64(now() - INTERVAL 1 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}++diff --git a/packages/tinybird/pipes/endpoint__tcp_metrics_7d__v1.pipe b/packages/tinybird/pipes/endpoint__tcp_metrics_7d__v1.pipenew file mode 100644index 000000000..862d38c7b--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_metrics_7d__v1.pipe@@ -0,0 +1,42 @@+TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ max(cronTimestamp) AS lastTimestamp+ FROM mv__tcp_7d__v1+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 7 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}+ UNION ALL+ SELECT+ round(quantile(0.50)(latency)) AS p50Latency,+ round(quantile(0.75)(latency)) AS p75Latency,+ round(quantile(0.90)(latency)) AS p90Latency,+ round(quantile(0.95)(latency)) AS p95Latency,+ round(quantile(0.99)(latency)) AS p99Latency,+ count() as count,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error,+ NULL as lastTimestamp -- no need to query the `lastTimestamp` as not relevant+ FROM mv__tcp_14d__v1+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ AND time >= toDateTime64(now() - INTERVAL 14 DAY, 3)+ AND time < toDateTime64(now() - INTERVAL 7 DAY, 3)+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}++diff --git a/packages/tinybird/pipes/endpoint__tcp_metrics_global_1d.pipe b/packages/tinybird/pipes/endpoint__tcp_metrics_global_1d.pipenew file mode 100644index 000000000..8742e3a6a--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_metrics_global_1d.pipe@@ -0,0 +1,24 @@+VERSION 0++TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT+ round(min(latency), 0) as minLatency,+ round(max(latency), 0) as maxLatency,+ round(quantile(0.5)(latency), 0) as p50Latency,+ round(quantile(0.75)(latency), 0) as p75Latency,+ round(quantile(0.9)(latency), 0) as p90Latency,+ round(quantile(0.95)(latency), 0) as p95Latency,+ round(quantile(0.99)(latency), 0) as p99Latency,+ max(cronTimestamp) as lastTimestamp,+ count() as count,+ monitorId+ FROM mv__tcp_1d__v0+ WHERE monitorId IN {{ Array(monitorIds, 'String', '4433') }}+ GROUP BY monitorId++diff --git a/packages/tinybird/pipes/endpoint__tcp_metrics_latency_1d__v1.pipe b/packages/tinybird/pipes/endpoint__tcp_metrics_latency_1d__v1.pipenew file mode 100644index 000000000..6ef3e2260--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_metrics_latency_1d__v1.pipe@@ -0,0 +1,23 @@+TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT+ toStartOfInterval(+ toDateTime(cronTimestamp / 1000), INTERVAL {{ Int64(interval, 30) }} MINUTE+ ) as h,+ toUnixTimestamp64Milli(toDateTime64(h, 3)) as timestamp,+ round(quantile(0.50)(latency)) as p50Latency,+ round(quantile(0.75)(latency)) as p75Latency,+ round(quantile(0.90)(latency)) as p90Latency,+ round(quantile(0.95)(latency)) as p95Latency,+ round(quantile(0.99)(latency)) as p99Latency+ FROM mv__tcp_1d__v0+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ GROUP BY h+ ORDER BY h DESC++diff --git a/packages/tinybird/pipes/endpoint__tcp_uptime_30d__v1.pipe b/packages/tinybird/pipes/endpoint__tcp_uptime_30d__v1.pipenew file mode 100644index 000000000..cac39d9ea--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_uptime_30d__v1.pipe@@ -0,0 +1,21 @@+TAGS "http"++NODE endpoint+SQL >++ %+ SELECT+ toStartOfInterval(time, INTERVAL {{ String(interval, '30', required=True) }} minute) AS interval,+ countIf(requestStatus = 'success') AS success,+ countIf(requestStatus = 'degraded') AS degraded,+ countIf(requestStatus = 'error') AS error+ FROM mv__tcp_uptime_30d__v1+ WHERE+ monitorId = {{ String(monitorId, '4433', required=True) }}+ {% if fromDate %} AND time >= parseDateTimeBestEffortOrNull({{ String(fromDate) }}) {% end %}+ {% if toDate %} AND time <= parseDateTimeBestEffortOrNull({{ String(toDate) }}) {% end %}+ {% if regions %} AND region IN {{ Array(regions, 'String', 'ams,fra') }} {% end %}+ GROUP BY interval+ ORDER BY interval DESC++diff --git a/packages/tinybird/pipes/endpoint__tcp_workspace_30d__v0.pipe b/packages/tinybird/pipes/endpoint__tcp_workspace_30d__v0.pipenew file mode 100644index 000000000..bdf5a7b87--- /dev/null+++ b/packages/tinybird/pipes/endpoint__tcp_workspace_30d__v0.pipe@@ -0,0 +1,15 @@+TAGS "tcp"++NODE endpoint+SQL >++ %+ SELECT+ time as day,+ countMerge(count_state) as count+ FROM mv__tcp_workspace_30d__v0+ WHERE workspaceId = {{ Int32(workspaceId, 1, required=True) }}+ GROUP BY day+ ORDER BY day DESC++diff --git a/packages/tinybird/src/client.ts b/packages/tinybird/src/client.tsindex f42ef98b3..5acf893d7 100644--- a/packages/tinybird/src/client.ts+++ b/packages/tinybird/src/client.ts@@ -1,19 +1,27 @@import { Tinybird as Client, NoopTinybird } from "@chronark/zod-bird";import { z } from "zod";import { flyRegions } from "../../db/src/schema/constants";-import { headersSchema, timingSchema, triggers } from "./schema";+import {+ headersSchema,+ timingPhasesSchema,+ timingSchema,+ triggers,+} from "./schema";const PUBLIC_CACHE = 300; // 5 * 60 = 300s = 5m+const DEV_CACHE = 10 * 60; // 10m+const REVALIDATE = process.env.NODE_ENV === "development" ? DEV_CACHE : 0;export class OSTinybird {private readonly tb: Client;constructor(token: string) {+ // this.tb = new Client({ token });if (process.env.NODE_ENV === "development") {this.tb = new NoopTinybird();} else {- this.tb = new Client({ token });}+ this.tb = new Client({ token });}public get homeStats() {@@ -31,7 +39,7 @@ export class OSTinybird {});}- public get httpListDaily() {+ public get legacy_httpListDaily() {return this.tb.buildPipe({pipe: "endpoint__http_list_1d__v0",parameters: z.object({@@ -49,11 +57,36 @@ export class OSTinybird {timestamp: z.number(),workspaceId: z.string(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}- public get httpListWeekly() {+ public get httpListDaily() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_list_1d__v1",+ parameters: z.object({+ monitorId: z.string(),+ fromDate: z.number().int().optional(),+ toDate: z.number().int().optional(),+ }),+ data: z.object({+ type: z.literal("http").default("http"),+ id: z.string().nullable(),+ latency: z.number().int(),+ statusCode: z.number().int().nullable(),+ monitorId: z.string(),+ requestStatus: z.enum(["error", "success", "degraded"]).nullable(),+ region: z.enum(flyRegions),+ cronTimestamp: z.number().int(),+ trigger: z.enum(triggers).nullable().default("cron"),+ timestamp: z.number(),+ timing: timingPhasesSchema,+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get legacy_httpListWeekly() {return this.tb.buildPipe({pipe: "endpoint__http_list_7d__v0",parameters: z.object({@@ -71,11 +104,36 @@ export class OSTinybird {timestamp: z.number(),workspaceId: z.string(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}- public get httpListBiweekly() {+ public get httpListWeekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_list_7d__v1",+ parameters: z.object({+ monitorId: z.string(),+ fromDate: z.number().int().optional(),+ toDate: z.number().int().optional(),+ }),+ data: z.object({+ type: z.literal("http").default("http"),+ id: z.string().nullable(),+ latency: z.number().int(),+ statusCode: z.number().int().nullable(),+ monitorId: z.string(),+ requestStatus: z.enum(["error", "success", "degraded"]).nullable(),+ region: z.enum(flyRegions),+ cronTimestamp: z.number().int(),+ trigger: z.enum(triggers).nullable().default("cron"),+ timestamp: z.number(),+ timing: timingPhasesSchema,+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get legacy_httpListBiweekly() {return this.tb.buildPipe({pipe: "endpoint__http_list_14d__v0",parameters: z.object({@@ -93,11 +151,36 @@ export class OSTinybird {timestamp: z.number(),workspaceId: z.string(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}- public get httpMetricsDaily() {+ public get httpListBiweekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_list_14d__v1",+ parameters: z.object({+ monitorId: z.string(),+ fromDate: z.number().int().optional(),+ toDate: z.number().int().optional(),+ }),+ data: z.object({+ type: z.literal("http").default("http"),+ id: z.string().nullable(),+ latency: z.number().int(),+ statusCode: z.number().int().nullable(),+ monitorId: z.string(),+ requestStatus: z.enum(["error", "success", "degraded"]).nullable(),+ region: z.enum(flyRegions),+ cronTimestamp: z.number().int(),+ trigger: z.enum(triggers).nullable().default("cron"),+ timestamp: z.number(),+ timing: timingPhasesSchema,+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get legacy_httpMetricsDaily() {return this.tb.buildPipe({pipe: "endpoint__http_metrics_1d__v0",parameters: z.object({@@ -114,11 +197,35 @@ export class OSTinybird {ok: z.number().int(),lastTimestamp: z.number().int().nullable(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}- public get httpMetricsWeekly() {+ public get httpMetricsDaily() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_metrics_1d__v1",+ parameters: z.object({+ interval: z.number().int().optional(),+ regions: z.array(z.enum(flyRegions)).optional(),+ monitorId: z.string(),+ }),+ data: z.object({+ p50Latency: z.number().nullable().default(0),+ p75Latency: z.number().nullable().default(0),+ p90Latency: z.number().nullable().default(0),+ p95Latency: z.number().nullable().default(0),+ p99Latency: z.number().nullable().default(0),+ count: z.number().int().default(0),+ success: z.number().int().default(0),+ degraded: z.number().int().default(0),+ error: z.number().int().default(0),+ lastTimestamp: z.number().int().nullable(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get legacy_httpMetricsWeekly() {return this.tb.buildPipe({pipe: "endpoint__http_metrics_7d__v0",parameters: z.object({@@ -135,11 +242,35 @@ export class OSTinybird {ok: z.number().int(),lastTimestamp: z.number().int().nullable(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}- public get httpMetricsBiweekly() {+ public get httpMetricsWeekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_metrics_7d__v1",+ parameters: z.object({+ interval: z.number().int().optional(),+ regions: z.array(z.enum(flyRegions)).optional(),+ monitorId: z.string(),+ }),+ data: z.object({+ p50Latency: z.number().nullable().default(0),+ p75Latency: z.number().nullable().default(0),+ p90Latency: z.number().nullable().default(0),+ p95Latency: z.number().nullable().default(0),+ p99Latency: z.number().nullable().default(0),+ count: z.number().int().default(0),+ success: z.number().int().default(0),+ degraded: z.number().int().default(0),+ error: z.number().int().default(0),+ lastTimestamp: z.number().int().nullable(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get legacy_httpMetricsBiweekly() {return this.tb.buildPipe({pipe: "endpoint__http_metrics_14d__v0",parameters: z.object({@@ -156,7 +287,31 @@ export class OSTinybird {ok: z.number().int(),lastTimestamp: z.number().int().nullable(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get httpMetricsBiweekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_metrics_14d__v1",+ parameters: z.object({+ interval: z.number().int().optional(),+ regions: z.array(z.enum(flyRegions)).optional(),+ monitorId: z.string(),+ }),+ data: z.object({+ p50Latency: z.number().nullable().default(0),+ p75Latency: z.number().nullable().default(0),+ p90Latency: z.number().nullable().default(0),+ p95Latency: z.number().nullable().default(0),+ p99Latency: z.number().nullable().default(0),+ count: z.number().int().default(0),+ success: z.number().int().default(0),+ degraded: z.number().int().default(0),+ error: z.number().int().default(0),+ lastTimestamp: z.number().int().nullable(),+ }),+ opts: { next: { revalidate: REVALIDATE } },});}@@ -176,7 +331,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -196,7 +351,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -216,7 +371,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -236,7 +391,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -256,7 +411,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -276,7 +431,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -294,7 +449,7 @@ export class OSTinybird {count: z.number().default(0),ok: z.number().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -321,6 +476,37 @@ export class OSTinybird {});}+ public get httpGetBiweekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_get_14d__v0",+ parameters: z.object({+ id: z.string().nullable(),+ monitorId: z.string(),+ }),+ data: z.object({+ type: z.literal("http").default("http"),+ latency: z.number().int(),+ statusCode: z.number().int().nullable(),+ requestStatus: z.enum(["error", "success", "degraded"]).nullable(),+ monitorId: z.string(),+ url: z.string().url(),+ error: z.coerce.boolean(),+ region: z.enum(flyRegions),+ cronTimestamp: z.number().int(),+ message: z.string().nullable(),+ headers: headersSchema,+ timing: timingPhasesSchema,+ assertions: z.string().nullable(),+ trigger: z.enum(triggers).nullable().default("cron"),+ timestamp: z.number(),+ workspaceId: z.string(),+ id: z.string().nullable(),+ }),+ // REMINDER: cache the result for accessing the data for a check as it won't change+ opts: { cache: "force-cache" },+ });+ }+public get httpGetMonthly() {return this.tb.buildPipe({pipe: "endpoint__http_get_30d__v0",@@ -380,7 +566,7 @@ export class OSTinybird {}// TODO: add tcpChartDaily, tcpChartWeekly- public get tcpListDaily() {+ public get legacy_tcpListDaily() {return this.tb.buildPipe({pipe: "endpoint__tcp_list_1d__v0",parameters: z.object({@@ -397,11 +583,34 @@ export class OSTinybird {timestamp: z.number(),workspaceId: z.coerce.string(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}- public get tcpListWeekly() {+ public get tcpListDaily() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_list_1d__v1",+ parameters: z.object({+ monitorId: z.string(),+ fromDate: z.number().int().optional(),+ toDate: z.number().int().optional(),+ }),+ data: z.object({+ type: z.literal("tcp").default("tcp"),+ id: z.string().nullable(),+ latency: z.number().int(),+ monitorId: z.coerce.string(),+ requestStatus: z.enum(["error", "success", "degraded"]).nullable(),+ region: z.enum(flyRegions),+ cronTimestamp: z.number().int(),+ trigger: z.enum(triggers).nullable().default("cron"),+ timestamp: z.number(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get legacy_tcpListWeekly() {return this.tb.buildPipe({pipe: "endpoint__tcp_list_7d__v0",parameters: z.object({@@ -418,11 +627,34 @@ export class OSTinybird {timestamp: z.number(),workspaceId: z.coerce.string(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}- public get tcpListBiweekly() {+ public get tcpListWeekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_list_7d__v1",+ parameters: z.object({+ monitorId: z.string(),+ fromDate: z.number().int().optional(),+ toDate: z.number().int().optional(),+ }),+ data: z.object({+ type: z.literal("tcp").default("tcp"),+ id: z.string().nullable(),+ latency: z.number().int(),+ monitorId: z.coerce.string(),+ requestStatus: z.enum(["error", "success", "degraded"]).nullable(),+ region: z.enum(flyRegions),+ cronTimestamp: z.number().int(),+ trigger: z.enum(triggers).nullable().default("cron"),+ timestamp: z.number(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get legacy_tcpListBiweekly() {return this.tb.buildPipe({pipe: "endpoint__tcp_list_14d__v0",parameters: z.object({@@ -439,11 +671,34 @@ export class OSTinybird {timestamp: z.number(),workspaceId: z.coerce.string(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}- public get tcpMetricsDaily() {+ public get tcpListBiweekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_list_14d__v1",+ parameters: z.object({+ monitorId: z.string(),+ fromDate: z.number().int().optional(),+ toDate: z.number().int().optional(),+ }),+ data: z.object({+ type: z.literal("tcp").default("tcp"),+ id: z.string().nullable(),+ latency: z.number().int(),+ monitorId: z.coerce.string(),+ requestStatus: z.enum(["error", "success", "degraded"]).nullable(),+ region: z.enum(flyRegions),+ cronTimestamp: z.number().int(),+ trigger: z.enum(triggers).nullable().default("cron"),+ timestamp: z.number(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get legacy_tcpMetricsDaily() {return this.tb.buildPipe({pipe: "endpoint__tcp_metrics_1d__v0",parameters: z.object({@@ -460,11 +715,35 @@ export class OSTinybird {ok: z.number().int(),lastTimestamp: z.number().int().nullable(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}- public get tcpMetricsWeekly() {+ public get tcpMetricsDaily() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_metrics_1d__v1",+ parameters: z.object({+ interval: z.number().int().optional(),+ regions: z.array(z.enum(flyRegions)).optional(),+ monitorId: z.string(),+ }),+ data: z.object({+ p50Latency: z.number().nullable().default(0),+ p75Latency: z.number().nullable().default(0),+ p90Latency: z.number().nullable().default(0),+ p95Latency: z.number().nullable().default(0),+ p99Latency: z.number().nullable().default(0),+ count: z.number().int().default(0),+ success: z.number().int().default(0),+ degraded: z.number().int().default(0),+ error: z.number().int().default(0),+ lastTimestamp: z.number().int().nullable(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get legacy_tcpMetricsWeekly() {return this.tb.buildPipe({pipe: "endpoint__tcp_metrics_7d__v0",parameters: z.object({@@ -481,11 +760,35 @@ export class OSTinybird {ok: z.number().int(),lastTimestamp: z.number().int().nullable(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}- public get tcpMetricsBiweekly() {+ public get tcpMetricsWeekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_metrics_7d__v1",+ parameters: z.object({+ interval: z.number().int().optional(),+ regions: z.array(z.enum(flyRegions)).optional(),+ monitorId: z.string(),+ }),+ data: z.object({+ p50Latency: z.number().nullable().default(0),+ p75Latency: z.number().nullable().default(0),+ p90Latency: z.number().nullable().default(0),+ p95Latency: z.number().nullable().default(0),+ p99Latency: z.number().nullable().default(0),+ count: z.number().int().default(0),+ success: z.number().int().default(0),+ degraded: z.number().int().default(0),+ error: z.number().int().default(0),+ lastTimestamp: z.number().int().nullable(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get legacy_tcpMetricsBiweekly() {return this.tb.buildPipe({pipe: "endpoint__tcp_metrics_14d__v0",parameters: z.object({@@ -502,7 +805,31 @@ export class OSTinybird {ok: z.number().int(),lastTimestamp: z.number().int().nullable(),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get tcpMetricsBiweekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_metrics_14d__v1",+ parameters: z.object({+ interval: z.number().int().optional(),+ regions: z.array(z.enum(flyRegions)).optional(),+ monitorId: z.string(),+ }),+ data: z.object({+ p50Latency: z.number().nullable().default(0),+ p75Latency: z.number().nullable().default(0),+ p90Latency: z.number().nullable().default(0),+ p95Latency: z.number().nullable().default(0),+ p99Latency: z.number().nullable().default(0),+ count: z.number().int().default(0),+ success: z.number().int().default(0),+ degraded: z.number().int().default(0),+ error: z.number().int().default(0),+ lastTimestamp: z.number().int().nullable(),+ }),+ opts: { next: { revalidate: REVALIDATE } },});}@@ -522,7 +849,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -542,7 +869,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -562,7 +889,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -582,7 +909,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -602,7 +929,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -622,7 +949,7 @@ export class OSTinybird {p95Latency: z.number().nullable().default(0),p99Latency: z.number().nullable().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -640,7 +967,7 @@ export class OSTinybird {count: z.number().default(0),ok: z.number().default(0),}),- opts: { cache: "no-store" },+ opts: { next: { revalidate: REVALIDATE } },});}@@ -667,6 +994,64 @@ export class OSTinybird {});}+ public get httpWorkspace30d() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_workspace_30d__v0",+ parameters: z.object({+ workspaceId: z.string(),+ }),+ data: z.object({+ day: z+ .string()+ .transform((val) => new Date(`${val} GMT`).toISOString()),+ count: z.number().int(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get tcpWorkspace30d() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_workspace_30d__v0",+ parameters: z.object({+ workspaceId: z.string(),+ }),+ data: z.object({+ day: z+ .string()+ .transform((val) => new Date(`${val} GMT`).toISOString()),+ count: z.number().int(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get tcpGetBiweekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_get_14d__v0",+ parameters: z.object({+ id: z.string().nullable(),+ monitorId: z.string(),+ }),+ data: z.object({+ type: z.literal("tcp").default("tcp"),+ id: z.string().nullable(),+ uri: z.string(),+ latency: z.number().int(),+ monitorId: z.coerce.string(),+ error: z.coerce.boolean(),+ region: z.enum(flyRegions),+ cronTimestamp: z.number().int(),+ trigger: z.enum(triggers).nullable().default("cron"),+ timestamp: z.number(),+ requestStatus: z.enum(["error", "success", "degraded"]).nullable(),+ errorMessage: z.string().nullable(),+ }),+ // REMINDER: cache the result for accessing the data for a check as it won't change+ opts: { next: { revalidate: REVALIDATE } },+ });+ }+public get tcpGetMonthly() {return this.tb.buildPipe({pipe: "endpoint__tcp_get_30d__v0",@@ -687,7 +1072,255 @@ export class OSTinybird {workspaceId: z.string(),}),// REMINDER: cache the result for accessing the data for a check as it won't change- opts: { cache: "force-cache" },+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ /**+ * Region + timestamp metrics (quantiles) – aggregated by interval.+ * NOTE: The Tinybird pipe returns one row per region & interval with latency quantiles.+ */+ public get httpMetricsRegionsDaily() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_metrics_regions_1d__v0",+ parameters: z.object({+ monitorId: z.string(),+ interval: z.number().int().optional(),+ // Comma-separated list of regions, e.g. "ams,fra". Keeping string to pass directly.+ regions: z.string().array().optional(),+ }),+ data: z.object({+ region: z.enum(flyRegions),+ timestamp: z.number().int(),+ p50Latency: z.number().nullable().default(0),+ p75Latency: z.number().nullable().default(0),+ p90Latency: z.number().nullable().default(0),+ p95Latency: z.number().nullable().default(0),+ p99Latency: z.number().nullable().default(0),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get httpMetricsRegionsWeekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_metrics_regions_7d__v0",+ parameters: z.object({+ monitorId: z.string(),+ interval: z.number().int().optional(),+ regions: z.string().array().optional(),+ }),+ data: z.object({+ region: z.enum(flyRegions),+ timestamp: z.number().int(),+ p50Latency: z.number().nullable().default(0),+ p75Latency: z.number().nullable().default(0),+ p90Latency: z.number().nullable().default(0),+ p95Latency: z.number().nullable().default(0),+ p99Latency: z.number().nullable().default(0),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get httpMetricsRegionsBiweekly() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_metrics_regions_14d__v0",+ parameters: z.object({+ monitorId: z.string(),+ interval: z.number().int().optional(),+ regions: z.string().array().optional(),+ }),+ data: z.object({+ region: z.enum(flyRegions),+ timestamp: z.number().int(),+ p50Latency: z.number().nullable().default(0),+ p75Latency: z.number().nullable().default(0),+ p90Latency: z.number().nullable().default(0),+ p95Latency: z.number().nullable().default(0),+ p99Latency: z.number().nullable().default(0),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get httpUptime30d() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_uptime_30d__v1",+ parameters: z.object({+ monitorId: z.string(),+ fromDate: z.string().optional(),+ toDate: z.string().optional(),+ regions: z.enum(flyRegions).array().optional(),+ interval: z.number().int().optional(),+ }),+ data: z.object({+ interval: z.coerce.date(),+ success: z.number().int(),+ degraded: z.number().int(),+ error: z.number().int(),+ }),+ });+ }++ public get tcpUptime30d() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_uptime_30d__v1",+ parameters: z.object({+ monitorId: z.string(),+ fromDate: z.string().optional(),+ toDate: z.string().optional(),+ regions: z.enum(flyRegions).array().optional(),+ interval: z.number().int().optional(),+ }),+ data: z.object({+ interval: z.coerce.date(),+ success: z.number().int(),+ degraded: z.number().int(),+ error: z.number().int(),+ }),+ });+ }++ public get getAuditLog() {+ return this.tb.buildPipe({+ pipe: "endpoint__audit_log__v1",+ parameters: z.object({+ monitorId: z.string(),+ interval: z.number().int().default(30), // in days+ }),+ data: z.object({+ action: z.string(),+ id: z.string(),+ metadata: z.string().transform((str) => {+ try {+ return JSON.parse(str) as Record<string, unknown>;+ } catch (error) {+ console.error(error);+ return {};+ }+ }),+ timestamp: z.number().int(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get httpGlobalMetricsDaily() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_metrics_global_1d__v0",+ parameters: z.object({+ monitorIds: z.string().array(),+ }),+ data: z.object({+ minLatency: z.number().int(),+ maxLatency: z.number().int(),+ p50Latency: z.number().int(),+ p75Latency: z.number().int(),+ p90Latency: z.number().int(),+ p95Latency: z.number().int(),+ p99Latency: z.number().int(),+ lastTimestamp: z.number().int(),+ count: z.number().int(),+ monitorId: z.string(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get tcpGlobalMetricsDaily() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_metrics_global_1d__v0",+ parameters: z.object({+ monitorIds: z.string().array(),+ }),+ data: z.object({+ minLatency: z.number().int(),+ maxLatency: z.number().int(),+ p50Latency: z.number().int(),+ p75Latency: z.number().int(),+ p90Latency: z.number().int(),+ p95Latency: z.number().int(),+ p99Latency: z.number().int(),+ lastTimestamp: z.number().int(),+ count: z.number().int(),+ monitorId: z.coerce.string(),+ }),+ opts: { next: { revalidate: REVALIDATE } },+ });+ }++ public get httpTimingPhases14d() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_timing_phases_14d__v1",+ parameters: z.object({+ monitorId: z.string(),+ interval: z.number().int().optional(),+ regions: z.array(z.enum(flyRegions)).optional(),+ }),+ data: z.object({+ timestamp: z.number().int(),+ p50Dns: z.number().int(),+ p50Ttfb: z.number().int(),+ p50Transfer: z.number().int(),+ p50Connect: z.number().int(),+ p50Tls: z.number().int(),+ p75Dns: z.number().int(),+ p75Ttfb: z.number().int(),+ p75Transfer: z.number().int(),+ p75Connect: z.number().int(),+ p75Tls: z.number().int(),+ p90Dns: z.number().int(),+ p90Ttfb: z.number().int(),+ p90Transfer: z.number().int(),+ p90Connect: z.number().int(),+ p90Tls: z.number().int(),+ p95Dns: z.number().int(),+ p95Ttfb: z.number().int(),+ p95Transfer: z.number().int(),+ p95Connect: z.number().int(),+ p95Tls: z.number().int(),+ p99Dns: z.number().int(),+ p99Ttfb: z.number().int(),+ p99Transfer: z.number().int(),+ p99Connect: z.number().int(),+ p99Tls: z.number().int(),+ }),+ });+ }++ public get httpMetricsLatency1d() {+ return this.tb.buildPipe({+ pipe: "endpoint__http_metrics_latency_1d__v1",+ parameters: z.object({+ monitorId: z.string(),+ }),+ data: z.object({+ timestamp: z.number().int(),+ p50Latency: z.number().int(),+ p75Latency: z.number().int(),+ p90Latency: z.number().int(),+ p95Latency: z.number().int(),+ p99Latency: z.number().int(),+ }),+ });+ }++ public get tcpMetricsLatency1d() {+ return this.tb.buildPipe({+ pipe: "endpoint__tcp_metrics_latency_1d__v1",+ parameters: z.object({+ monitorId: z.string(),+ regions: z.array(z.enum(flyRegions)).optional(),+ }),+ data: z.object({+ timestamp: z.number().int(),+ p50Latency: z.number().int(),+ p75Latency: z.number().int(),+ p90Latency: z.number().int(),+ p95Latency: z.number().int(),+ p99Latency: z.number().int(),+ }),});}}diff --git a/packages/tinybird/src/schema.ts b/packages/tinybird/src/schema.tsindex 9fd895bda..f3dccc3c7 100644--- a/packages/tinybird/src/schema.ts+++ b/packages/tinybird/src/schema.ts@@ -36,6 +36,25 @@ export const httpTimingSchema = z.object({transferDone: z.number(),});+export function transformTiming(val: string) {+ if (!val) return null;+ const value = httpTimingSchema.safeParse(JSON.parse(val));+ if (value.success) return value.data;+ return null;+}++export function calculateTiming(obj: z.infer<typeof httpTimingSchema>) {+ if (!obj) return null;++ return {+ dns: obj.dnsDone - obj.dnsStart,+ connect: obj.connectDone - obj.connectStart,+ tls: obj.tlsHandshakeDone - obj.tlsHandshakeStart,+ ttfb: obj.firstByteDone - obj.firstByteStart,+ transfer: obj.transferDone - obj.transferStart,+ };+}+export const timingSchema = z.string().nullable()@@ -46,3 +65,14 @@ export const timingSchema = zif (value.success) return value.data;return null;});++export const timingPhasesSchema = z+ .string()+ .nullable()+ .optional()+ .transform((val) => {+ if (!val) return null;+ const value = httpTimingSchema.safeParse(JSON.parse(val));+ if (value.success) return calculateTiming(value.data);+ return null;+ });diff --git a/packages/tracker/package.json b/packages/tracker/package.jsonindex bfbf665e5..216e7d541 100644--- a/packages/tracker/package.json+++ b/packages/tracker/package.json@@ -7,7 +7,7 @@"dependencies": {"@openstatus/db": "workspace:*","@openstatus/tinybird": "workspace:*",- "zod": "3.24.4"+ "zod": "3.24.1"},"devDependencies": {"@openstatus/tsconfig": "workspace:*",diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 9682c20b4..43777dc85 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -12,8 +12,8 @@"@openstatus/tsconfig": "workspace:*","@types/luxon": "3.4.2","@types/node": "22.10.2",- "@types/react": "19.1.0",- "@types/react-dom": "19.1.1",+ "@types/react": "19.1.6",+ "@types/react-dom": "19.1.6","tailwindcss": "4.1.8","typescript": "5.7.2"},@@ -22,7 +22,7 @@"@dnd-kit/modifiers": "9.0.0","@dnd-kit/sortable": "10.0.0","@dnd-kit/utilities": "3.2.2",- "@hookform/resolvers": "4.1.3",+ "@hookform/resolvers": "3.9.1","@radix-ui/react-accordion": "1.2.2","@radix-ui/react-alert-dialog": "1.1.4","@radix-ui/react-avatar": "1.1.2",@@ -51,14 +51,14 @@"date-fns": "2.30.0","lucide-react": "0.468.0","luxon": "3.5.0",- "next": "15.2.4",+ "next": "15.3.1","react": "19.1.0","react-day-picker": "8.10.1",- "react-hook-form": "7.56.2",+ "react-hook-form": "7.54.1","recharts": "2.15.0","tailwind-merge": "2.5.5","tailwindcss-animate": "1.0.7",- "zod": "3.24.4"+ "zod": "3.24.1"},"peerDependencies": {"next-themes": "0.2.1",diff --git a/packages/ui/tailwind.config.ts b/packages/ui/tailwind.config.tsindex 0e59d2096..4804b7113 100644--- a/packages/ui/tailwind.config.ts+++ b/packages/ui/tailwind.config.ts@@ -64,7 +64,8 @@ module.exports = {sm: "calc(var(--radius) - 4px)",},fontFamily: {- sans: ["var(--font-sans)", ...fontFamily.sans],+ sans: ["var(--font-geist-sans)", ...fontFamily.sans],+ mono: ["var(--font-geist-mono)", ...fontFamily.mono],cal: ["var(--font-calsans)"],},keyframes: {diff --git a/packages/utils/package.json b/packages/utils/package.jsonindex 57ab2b961..f027691cd 100644--- a/packages/utils/package.json+++ b/packages/utils/package.json@@ -10,7 +10,7 @@"@openstatus/db": "workspace:*","@openstatus/tsconfig": "workspace:*","typescript": "5.7.2",- "zod": "3.24.4"+ "zod": "3.24.1"},"keywords": [],"author": "",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 1c8860b56..3125725ea 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -27,44 +27,327 @@ importers:specifier: 5.7.2version: 5.7.2+ apps/dashboard:+ dependencies:+ '@auth/core':+ specifier: 0.40.0+ version: 0.40.0+ '@auth/drizzle-adapter':+ specifier: 1.10.0+ version: 1.10.0+ '@date-fns/tz':+ specifier: 1.2.0+ version: 1.2.0+ '@date-fns/utc':+ specifier: 2.1.0+ version: 2.1.0+ '@dnd-kit/core':+ specifier: 6.3.1+ '@dnd-kit/modifiers':+ specifier: 9.0.0+ version: 9.0.0(@dnd-kit/[email protected]([email protected]([email protected]))([email protected]))([email protected])+ '@dnd-kit/sortable':+ specifier: 10.0.0+ version: 10.0.0(@dnd-kit/[email protected]([email protected]([email protected]))([email protected]))([email protected])+ '@dnd-kit/utilities':+ specifier: 3.2.2+ version: 3.2.2([email protected])+ '@hookform/devtools':+ specifier: 4.4.0+ '@hookform/resolvers':+ specifier: 3.9.1+ version: 3.9.1([email protected]([email protected]))+ '@libsql/client':+ specifier: 0.15.9+ version: 0.15.9([email protected])([email protected])+ '@openpanel/nextjs':+ specifier: 1.0.8+ version: 1.0.8([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ '@openstatus/analytics':+ specifier: workspace:*+ version: link:../../packages/analytics+ '@openstatus/api':+ specifier: workspace:*+ version: link:../../packages/api+ '@openstatus/assertions':+ specifier: workspace:*+ version: link:../../packages/assertions+ '@openstatus/db':+ specifier: workspace:*+ version: link:../../packages/db+ '@openstatus/emails':+ specifier: workspace:*+ version: link:../../packages/emails+ '@openstatus/error':+ specifier: workspace:*+ version: link:../../packages/error+ '@openstatus/header-analysis':+ specifier: workspace:*+ version: link:../../packages/header-analysis+ '@openstatus/notification-discord':+ specifier: workspace:*+ version: link:../../packages/notifications/discord+ '@openstatus/notification-emails':+ specifier: workspace:*+ version: link:../../packages/notifications/email+ '@openstatus/notification-ntfy':+ specifier: workspace:*+ version: link:../../packages/notifications/ntfy+ '@openstatus/notification-opsgenie':+ specifier: workspace:*+ version: link:../../packages/notifications/opsgenie+ '@openstatus/notification-pagerduty':+ specifier: workspace:*+ version: link:../../packages/notifications/pagerduty+ '@openstatus/notification-slack':+ specifier: workspace:*+ version: link:../../packages/notifications/slack+ '@openstatus/notification-webhook':+ specifier: workspace:*+ version: link:../../packages/notifications/webhook+ '@openstatus/react':+ specifier: workspace:*+ version: link:../../packages/react+ '@openstatus/tinybird':+ specifier: workspace:*+ version: link:../../packages/tinybird+ '@openstatus/tracker':+ specifier: workspace:*+ version: link:../../packages/tracker+ '@openstatus/upstash':+ specifier: workspace:*+ version: link:../../packages/upstash+ '@openstatus/utils':+ specifier: workspace:*+ version: link:../../packages/utils+ '@radix-ui/react-alert-dialog':+ specifier: 1.1.14+ version: 1.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-avatar':+ specifier: 1.1.10+ version: 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-checkbox':+ specifier: 1.3.2+ version: 1.3.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collapsible':+ specifier: 1.1.11+ version: 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog':+ specifier: 1.1.14+ version: 1.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dropdown-menu':+ specifier: 2.1.15+ version: 2.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-hover-card':+ specifier: 1.1.14+ version: 1.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-label':+ specifier: 2.1.7+ version: 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover':+ specifier: 1.1.14+ version: 1.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal':+ specifier: 1.1.9+ version: 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-progress':+ specifier: 1.1.7+ version: 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-radio-group':+ specifier: 1.3.7+ version: 1.3.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-select':+ specifier: 2.2.5+ version: 2.2.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator':+ specifier: 1.1.7+ version: 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slider':+ specifier: 1.3.5+ version: 1.3.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot':+ specifier: 1.2.3+ version: 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-switch':+ specifier: 1.2.5+ version: 1.2.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tabs':+ specifier: 1.1.12+ version: 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tooltip':+ specifier: 1.2.7+ version: 1.2.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@sentry/nextjs':+ specifier: 8.46.0+ version: 8.46.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])+ '@stripe/stripe-js':+ specifier: 2.1.6+ version: 2.1.6+ '@tanstack/react-query':+ specifier: 5.81.5+ version: 5.81.5([email protected])+ '@tanstack/react-table':+ specifier: 8.21.3+ '@trpc/client':+ specifier: 11.4.3+ '@trpc/next':+ specifier: 11.4.3+ version: 11.4.3(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected]))(@trpc/[email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])+ '@trpc/react-query':+ specifier: 11.4.3+ version: 11.4.3(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])+ '@trpc/server':+ specifier: 11.4.3+ version: 11.4.3([email protected])+ '@trpc/tanstack-react-query':+ specifier: 11.4.3+ version: 11.4.3(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])+ class-variance-authority:+ specifier: 0.7.1+ version: 0.7.1+ clsx:+ specifier: 2.1.1+ version: 2.1.1+ cmdk:+ specifier: 1.1.1+ version: 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ date-fns:+ specifier: 4.1.0+ version: 4.1.0+ lucide-react:+ specifier: 0.525.0+ version: 0.525.0([email protected])+ next:+ specifier: 15.3.4+ version: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next-auth:+ specifier: 5.0.0-beta.28+ version: 5.0.0-beta.28([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ next-themes:+ specifier: 0.4.6+ nuqs:+ specifier: 2.4.3+ version: 2.4.3([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ random-word-slugs:+ specifier: 0.1.7+ version: 0.1.7+ react:+ specifier: 19.1.0+ version: 19.1.0+ react-day-picker:+ specifier: 8.10.1+ version: 8.10.1([email protected])([email protected])+ react-dom:+ specifier: 19.1.0+ version: 19.1.0([email protected])+ react-hook-form:+ specifier: 7.54.1+ version: 7.54.1([email protected])+ recharts:+ specifier: 2.15.0+ rehype-react:+ specifier: 8.0.0+ version: 8.0.0+ remark-gfm:+ specifier: 4.0.1+ version: 4.0.1+ remark-parse:+ specifier: 11.0.0+ version: 11.0.0+ remark-rehype:+ specifier: 11.1.2+ version: 11.1.2+ sonner:+ specifier: 2.0.5+ stripe:+ specifier: 13.8.0+ version: 13.8.0+ superjson:+ specifier: 2.2.2+ version: 2.2.2+ tailwind-merge:+ specifier: 3.3.1+ version: 3.3.1+ unified:+ specifier: 11.0.5+ version: 11.0.5+ zod:+ specifier: 3.24.1+ version: 3.24.1+ devDependencies:+ '@tailwindcss/postcss':+ specifier: 4.1.11+ version: 4.1.11+ '@types/dom-speech-recognition':+ specifier: 0.0.6+ version: 0.0.6+ '@types/node':+ specifier: 24.0.8+ version: 24.0.8+ '@types/react':+ specifier: 19.1.6+ version: 19.1.6+ '@types/react-dom':+ specifier: 19.1.6+ version: 19.1.6(@types/[email protected])+ shadcn:+ specifier: 2.7.0+ version: 2.7.0(@types/[email protected])([email protected])+ tailwindcss:+ specifier: 4.1.11+ version: 4.1.11+ tw-animate-css:+ specifier: 1.3.4+ version: 1.3.4+ typescript:+ specifier: 5.7.2+ version: 5.7.2+apps/docs:dependencies:'@astrojs/check':specifier: 0.9.4- version: 0.9.4([email protected])([email protected])+ version: 0.9.4([email protected])([email protected])'@astrojs/react':specifier: 4.2.3- version: 4.2.3(@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ version: 4.2.3(@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])'@astrojs/sitemap':specifier: 3.4.1version: 3.4.1'@astrojs/starlight':specifier: 0.35.1- version: 0.35.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 0.35.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@astrojs/starlight-tailwind':specifier: 4.0.1- version: 4.0.1(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected])+ version: 4.0.1(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected])'@openpanel/astro':specifier: 1.0.1- version: 1.0.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 1.0.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@tailwindcss/vite':specifier: 4.1.8- version: 4.1.8([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))astro:specifier: 5.12.2- version: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])sharp:specifier: 0.33.5version: 0.33.5starlight-llms-txt:specifier: 0.5.1- version: 0.5.1(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 0.5.1(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))starlight-showcases:specifier: 0.3.0- version: 0.3.0(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 0.3.0(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))starlight-sidebar-topics:specifier: 0.6.0- version: 0.6.0(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))+ version: 0.6.0(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))tailwindcss:specifier: 4.1.8version: 4.1.8@@ -86,7 +369,7 @@ importers:version: 3.550.0'@hono/zod-validator':specifier: 0.2.1- version: 0.2.1([email protected])([email protected])+ version: 0.2.1([email protected])([email protected])'@libsql/client':specifier: 0.14.0version: 0.14.0([email protected])([email protected])@@ -98,13 +381,13 @@ importers:version: link:../../packages/utils'@t3-oss/env-core':specifier: 0.7.1- version: 0.7.1([email protected])([email protected])+ version: 0.7.1([email protected])([email protected])'@upstash/qstash':specifier: 2.6.2version: 2.6.2drizzle-orm:specifier: 0.35.3- version: 0.35.3(@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])+ version: 0.35.3(@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])hono:specifier: 4.5.3version: 4.5.3@@ -112,8 +395,8 @@ importers:specifier: 1.46.0version: 1.46.0zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -129,10 +412,10 @@ importers:version: 1.2.0([email protected])'@hono/zod-openapi':specifier: 0.15.1- version: 0.15.1([email protected])([email protected])+ version: 0.15.1([email protected])([email protected])'@hono/zod-validator':specifier: 0.2.2- version: 0.2.2([email protected])([email protected])+ version: 0.2.2([email protected])([email protected])'@openstatus/analytics':specifier: workspace:*version: link:../../packages/analytics@@ -165,7 +448,7 @@ importers:version: 0.8.5([email protected])'@t3-oss/env-core':specifier: 0.7.1- version: 0.7.1([email protected])([email protected])+ version: 0.7.1([email protected])([email protected])'@unkey/api':specifier: 0.26.1version: 0.26.1@@ -185,8 +468,8 @@ importers:specifier: 13.12.0version: 13.12.0zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -213,14 +496,14 @@ importers:specifier: 4.0.1version: 4.0.1([email protected])'@hookform/resolvers':- specifier: 4.1.3- version: 4.1.3([email protected]([email protected]))+ specifier: 3.9.1+ version: 3.9.1([email protected]([email protected]))'@libsql/client':specifier: 0.14.0version: 0.14.0([email protected])([email protected])'@openpanel/nextjs':specifier: ^1.0.8- version: 1.0.8([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 1.0.8([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])'@openstatus/analytics':specifier: workspace:*version: link:../../packages/analytics@@ -283,16 +566,16 @@ importers:version: link:../../packages/utils'@radix-ui/react-portal':specifier: 1.1.3- version: 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@sentry/nextjs':specifier: 8.46.0- version: 8.46.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))+ version: 8.46.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))'@stripe/stripe-js':specifier: 2.1.6version: 2.1.6'@t3-oss/env-nextjs':specifier: 0.7.0- version: 0.7.0([email protected])([email protected])+ version: 0.7.0([email protected])([email protected])'@tailwindcss/container-queries':specifier: 0.1.1version: 0.1.1([email protected])@@ -309,17 +592,17 @@ importers:specifier: 8.10.3'@trpc/client':- specifier: 11.4.0+ specifier: 11.4.3'@trpc/next':- specifier: 11.4.0- version: 11.4.0(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected]))(@trpc/[email protected]([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])+ specifier: 11.4.3+ version: 11.4.3(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected]))(@trpc/[email protected]([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])'@trpc/react-query':- specifier: 11.4.0- version: 11.4.0(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])+ specifier: 11.4.3+ version: 11.4.3(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])'@trpc/server':- specifier: 11.4.0- version: 11.4.0([email protected])+ specifier: 11.4.3+ version: 11.4.3([email protected])'@unkey/api':specifier: 0.26.1version: 0.26.1@@ -340,7 +623,7 @@ importers:version: 2.1.1cmdk:specifier: 1.0.4- version: 1.0.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.0.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])cobe:specifier: 0.6.3version: 0.6.3@@ -360,20 +643,20 @@ importers:specifier: 5.0.7version: 5.0.7next:- specifier: 15.2.4- version: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ specifier: 15.3.4+ version: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])next-auth:specifier: 5.0.0-beta.28- version: 5.0.0-beta.28([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ version: 5.0.0-beta.28([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])next-plausible:specifier: 3.12.4- version: 3.12.4([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 3.12.4([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])next-themes:specifier: 0.2.1- version: 0.2.1([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 0.2.1([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])nuqs:specifier: 2.2.3- version: 2.2.3([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ version: 2.2.3([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])random-word-slugs:specifier: 0.1.7version: 0.1.7@@ -387,8 +670,8 @@ importers:specifier: 19.1.0version: 19.1.0([email protected])react-hook-form:- specifier: 7.56.2- version: 7.56.2([email protected])+ specifier: 7.54.1+ version: 7.54.1([email protected])react-tweet:specifier: 3.2.1@@ -403,7 +686,7 @@ importers:version: 0.10.0([email protected])rehype-react:specifier: 7.2.0- version: 7.2.0(@types/[email protected])+ version: 7.2.0(@types/[email protected])remark-gfm:specifier: 4.0.1version: 4.0.1@@ -435,33 +718,33 @@ importers:specifier: 1.0.7version: 1.0.7([email protected])zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@content-collections/core':specifier: 0.7.3version: 0.7.3([email protected])'@content-collections/mdx':specifier: 0.2.0- version: 0.2.0(@content-collections/[email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 0.2.0(@content-collections/[email protected]([email protected]))([email protected]([email protected]))([email protected])'@content-collections/next':specifier: 0.2.4- version: 0.2.4(@content-collections/[email protected]([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))+ version: 0.2.4(@content-collections/[email protected]([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))'@openstatus/tsconfig':specifier: workspace:*version: link:../../packages/tsconfig'@tailwindcss/postcss':specifier: ^4.1.8- version: 4.1.8+ version: 4.1.11'@types/node':specifier: 20.14.8version: 20.14.8'@types/react':- specifier: 19.1.0- version: 19.1.0+ specifier: 19.1.6+ version: 19.1.6'@types/react-dom':- specifier: 19.1.1- version: 19.1.1(@types/[email protected])+ specifier: 19.1.6+ version: 19.1.6(@types/[email protected])postcss:specifier: 8.4.38version: 8.4.38@@ -538,15 +821,15 @@ importers:specifier: ^3.0.0version: 3.0.0zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*version: link:../../packages/tsconfig'@types/bun':specifier: latest- version: 1.2.19(@types/[email protected])+ version: 1.2.17typescript:specifier: 5.7.2version: 5.7.2@@ -557,11 +840,11 @@ importers:specifier: 1.0.0version: 1.0.0'@t3-oss/env-core':- specifier: 0.7.0- version: 0.7.0([email protected])([email protected])+ specifier: 0.7.1+ version: 0.7.1([email protected])([email protected])zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -594,14 +877,20 @@ importers:specifier: workspace:*version: link:../tinybird'@t3-oss/env-core':- specifier: 0.7.0- version: 0.7.0([email protected])([email protected])+ specifier: 0.7.1+ version: 0.7.1([email protected])([email protected])'@trpc/client':- specifier: 11.4.0+ specifier: 11.4.3'@trpc/server':- specifier: 11.4.0- version: 11.4.0([email protected])+ specifier: 11.4.3+ version: 11.4.3([email protected])+ '@unkey/api':+ specifier: 0.26.1+ version: 0.26.1+ '@vercel/blob':+ specifier: 0.23.3+ version: 0.23.3nanoid:specifier: 5.0.7version: 5.0.7@@ -609,8 +898,8 @@ importers:specifier: 5.0.0-beta.1version: 5.0.0-beta.1next:- specifier: 15.2.4- version: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ specifier: 15.3.4+ version: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])random-word-slugs:specifier: 0.1.7version: 0.1.7@@ -621,8 +910,8 @@ importers:specifier: 1.13.3version: 1.13.3zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -647,8 +936,8 @@ importers:specifier: 5.7.2version: 5.7.2zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1packages/db:dependencies:@@ -656,17 +945,17 @@ importers:specifier: 0.14.0version: 0.14.0([email protected])([email protected])'@t3-oss/env-core':- specifier: 0.7.0- version: 0.7.0([email protected])([email protected])+ specifier: 0.7.1+ version: 0.7.1([email protected])([email protected])drizzle-orm:specifier: 0.35.3- version: 0.35.3(@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])+ version: 0.35.3(@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])drizzle-zod:specifier: 0.5.1- version: 0.5.1([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected]))([email protected]))([email protected])+ version: 0.5.1([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/assertions':specifier: workspace:*@@ -691,7 +980,7 @@ importers:version: 0.1.13next-auth:specifier: 5.0.0-beta.25- version: 5.0.0-beta.25([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ version: 5.0.0-beta.25([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])typescript:specifier: 5.7.2version: 5.7.2@@ -702,11 +991,11 @@ importers:packages/emails:dependencies:'@react-email/button':- specifier: 0.0.19- version: 0.0.19([email protected])+ specifier: 0.1.0+ version: 0.1.0([email protected])'@react-email/components':- specifier: 0.0.36+ specifier: 0.1.1'@react-email/head':specifier: 0.0.12version: 0.0.12([email protected])@@ -714,23 +1003,23 @@ importers:specifier: 0.0.11version: 0.0.11([email protected])'@react-email/render':- specifier: 1.0.6+ specifier: 1.1.3'@react-email/tailwind':- specifier: 1.0.4- version: 1.0.4([email protected])+ specifier: 1.0.5+ version: 1.0.5([email protected])'@t3-oss/env-core':- specifier: 0.7.0- version: 0.7.0([email protected])([email protected])+ specifier: 0.7.1+ version: 0.7.1([email protected])([email protected])react-email:- specifier: 4.0.7- version: 4.0.7(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ specifier: 4.0.17+ version: 4.0.17(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])resend:- specifier: 4.3.0+ specifier: 4.6.0zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -739,8 +1028,8 @@ importers:specifier: 22.10.2version: 22.10.2'@types/react':- specifier: 19.1.0- version: 19.1.0+ specifier: 19.1.6+ version: 19.1.6react:specifier: 19.1.0version: 19.1.0@@ -751,8 +1040,8 @@ importers:packages/error:dependencies:zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -776,8 +1065,8 @@ importers:specifier: workspace:*version: link:../../dbzod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -811,13 +1100,13 @@ importers:'@t3-oss/env-core':specifier: 0.7.0- version: 0.7.0([email protected])([email protected])+ version: 0.7.0([email protected])([email protected])resend:specifier: 4.0.1zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -835,8 +1124,8 @@ importers:specifier: workspace:*version: link:../../dbzod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -855,7 +1144,7 @@ importers:version: link:../../db'@t3-oss/env-core':specifier: 0.7.1- version: 0.7.1([email protected])([email protected])+ version: 0.7.1([email protected])([email protected])'@types/validator':specifier: 13.11.6version: 13.11.6@@ -863,8 +1152,8 @@ importers:specifier: 13.12.0version: 13.12.0zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -889,7 +1178,7 @@ importers:version: link:../../db'@t3-oss/env-core':specifier: 0.7.1- version: 0.7.1([email protected])([email protected])+ version: 0.7.1([email protected])([email protected])'@types/validator':specifier: 13.11.6version: 13.11.6@@ -897,8 +1186,8 @@ importers:specifier: 13.12.0version: 13.12.0zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -907,11 +1196,11 @@ importers:specifier: 20.8.0version: 20.8.0'@types/react':- specifier: 19.1.0- version: 19.1.0+ specifier: 19.1.6+ version: 19.1.6'@types/react-dom':- specifier: 19.1.1- version: 19.1.1(@types/[email protected])+ specifier: 19.1.6+ version: 19.1.6(@types/[email protected])typescript:specifier: 5.7.2version: 5.7.2@@ -922,8 +1211,8 @@ importers:specifier: workspace:*version: link:../../dbzod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -942,13 +1231,13 @@ importers:version: link:../../db'@t3-oss/env-core':specifier: 0.7.1- version: 0.7.1([email protected])([email protected])+ version: 0.7.1([email protected])([email protected])validator:specifier: 13.12.0version: 13.12.0zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -972,8 +1261,8 @@ importers:specifier: workspace:*version: link:../../utilszod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -989,7 +1278,7 @@ importers:dependencies:react:specifier: ^18.0.0- version: 18.2.0+ version: 18.3.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -1008,7 +1297,7 @@ importers:version: 4.1.8tsup:specifier: 7.2.0- version: 7.2.0([email protected])([email protected](@types/[email protected])([email protected]))([email protected])+ version: 7.2.0([email protected])([email protected](@types/[email protected])([email protected]))([email protected])typescript:specifier: 5.7.2version: 5.7.2@@ -1019,8 +1308,8 @@ importers:specifier: 0.3.6version: 0.3.6zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -1044,8 +1333,8 @@ importers:specifier: workspace:*version: link:../tinybirdzod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@openstatus/tsconfig':specifier: workspace:*@@ -1071,74 +1360,74 @@ importers:specifier: 3.2.2version: 3.2.2([email protected])'@hookform/resolvers':- specifier: 4.1.3- version: 4.1.3([email protected]([email protected]))+ specifier: 3.9.1+ version: 3.9.1([email protected]([email protected]))'@radix-ui/react-accordion':specifier: 1.2.2- version: 1.2.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.2.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-alert-dialog':specifier: 1.1.4- version: 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-avatar':specifier: 1.1.2- version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-checkbox':specifier: 1.1.3- version: 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-collapsible':specifier: 1.1.2- version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-context-menu':specifier: 2.2.4- version: 2.2.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 2.2.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-dialog':specifier: 1.1.4- version: 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-dropdown-menu':specifier: 2.1.4- version: 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-hover-card':specifier: 1.1.4- version: 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-label':specifier: 2.1.1- version: 2.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 2.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-navigation-menu':specifier: 1.2.3- version: 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-popover':specifier: 1.1.4- version: 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-progress':specifier: 1.1.1- version: 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-radio-group':specifier: 1.2.2- version: 1.2.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.2.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-select':specifier: 2.1.4- version: 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-separator':specifier: 1.1.1- version: 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-slider':specifier: 1.2.2- version: 1.2.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.2.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-slot':specifier: 1.1.1- version: 1.1.1(@types/[email protected])([email protected])+ version: 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-switch':specifier: 1.1.2- version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-tabs':specifier: 1.1.2- version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-toggle':specifier: 1.1.1- version: 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-tooltip':specifier: 1.1.6- version: 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])class-variance-authority:specifier: 0.7.1version: 0.7.1@@ -1147,7 +1436,7 @@ importers:version: 2.1.1cmdk:specifier: 1.0.4- version: 1.0.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.0.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])date-fns:specifier: 2.30.0version: 2.30.0@@ -1158,11 +1447,11 @@ importers:specifier: 3.5.0version: 3.5.0next:- specifier: 15.2.4- version: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ specifier: 15.3.1+ version: 15.3.1(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])next-themes:specifier: 0.2.1- version: 0.2.1([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 0.2.1([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])react:specifier: 19.1.0version: 19.1.0@@ -1170,8 +1459,8 @@ importers:specifier: 8.10.1version: 8.10.1([email protected])([email protected])react-hook-form:- specifier: 7.56.2- version: 7.56.2([email protected])+ specifier: 7.54.1+ version: 7.54.1([email protected])recharts:specifier: 2.15.0@@ -1185,8 +1474,8 @@ importers:specifier: 1.0.7version: 1.0.7([email protected])zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1devDependencies:'@biomejs/biome':specifier: 1.9.4@@ -1201,11 +1490,11 @@ importers:specifier: 22.10.2version: 22.10.2'@types/react':- specifier: 19.1.0- version: 19.1.0+ specifier: 19.1.6+ version: 19.1.6'@types/react-dom':- specifier: 19.1.1- version: 19.1.1(@types/[email protected])+ specifier: 19.1.6+ version: 19.1.6(@types/[email protected])tailwindcss:specifier: 4.1.8version: 4.1.8@@ -1236,7 +1525,7 @@ importers:version: 22.10.2tsup:specifier: 7.2.0- version: 7.2.0([email protected])([email protected](@types/[email protected])([email protected]))([email protected])+ version: 7.2.0([email protected])([email protected](@types/[email protected])([email protected]))([email protected])typescript:specifier: 5.7.2version: 5.7.2@@ -1256,8 +1545,8 @@ importers:specifier: 5.7.2version: 5.7.2zod:- specifier: 3.24.4- version: 3.24.4+ specifier: 3.24.1+ version: 3.24.1packages:@@ -1272,6 +1561,10 @@ packages:'@antfu/[email protected]':resolution: {integrity: sha512-xvX6P/lo1B3ej0OsaErAjqgFYzYVcJpamjLAFLYh9vRJngBrMoUG7aVnrGTeqM7yxbyTD5p3F2+0/QUEh8Vzhw==}+ '@antfu/[email protected]':+ resolution: {integrity: sha512-C90iyzm/jLV7Lomv2UzwWUzRv9WZr1oRsFRKsX5HjQL4EXrbi9H/RtBkjCP+NF+ABZXUKpAa4F1dkoTaea4zHg==}+ hasBin: true+'@antfu/[email protected]':resolution: {integrity: sha512-Mex9nXf9vR6AhcXmMrlz/HVgYYZpVGJ6YlPgwl7UnaFpnshXs6EK/oa5Gpf3CzENMjkvEx2tQtntGnb7UtSTOQ==}@@ -1408,6 +1701,23 @@ packages:nodemailer:optional: true+ '@auth/[email protected]':+ resolution: {integrity: sha512-n53uJE0RH5SqZ7N1xZoMKekbHfQgjd0sAEyUbE+IYJnmuQkbvuZnXItCU7d+i7Fj8VGOgqvNO7Mw4YfBTlZeQw==}+ peerDependencies:+ '@simplewebauthn/browser': ^9.0.1+ '@simplewebauthn/server': ^9.0.2+ nodemailer: ^6.8.0+ peerDependenciesMeta:+ '@simplewebauthn/browser':+ optional: true+ '@simplewebauthn/server':+ optional: true+ nodemailer:+ optional: true++ '@auth/[email protected]':+ resolution: {integrity: sha512-3MKsdAINTfvV4QKev8PFMNG93HJEUHh9sggDXnmUmriFogRf8qLvgqnPsTlfUyWcLwTzzrrYjeu8CGM+4IxHwQ==}+'@auth/[email protected]':resolution: {integrity: sha512-WQ4vtDxpo3jAPfSLJbrjFx++/lMO1HJbV7ZwzCUBEkhqYMTrqQBJhLb+vcusDu95wiekVOUCPe1y6QSNbMeeYA==}@@ -1582,6 +1892,10 @@ packages:resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-Z0WgzSEa+aUcdiJuCIqgujCshpMWgUpgOxXotrYPSA53hA3qopNaqcJpyr0hVb1FeWdnqFA35/fUtXgBK8srQg==}engines: {node: '>=6.9.0'}@@ -1594,10 +1908,28 @@ packages:resolution: {integrity: sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-ZGhA37l0e/g2s1Cnzdix0O3aLYm66eF8aufiVteOgnwxgnRP8GoyMj7VWsgWnQbVKXyge7hqrFh2K2TQM6t1Hw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-QwGAmuvM17btKU5VqXfb+Giw4JcN0hjuufz3DYnpeVDvZLAObloM77bhMXiqry3Iio+Ai4phVRDwl6WU10+r5A==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0++ '@babel/[email protected]':+ resolution: {integrity: sha512-E5chM8eWjTp/aNoVpcbfM7mLxu9XGLWYise2eBKGQomAk/Mb4XoxyqXTZbuTohbsl8EKqdlMhnDI2CCLfcs9wA==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==}engines: {node: '>=6.9.0'}@@ -1608,18 +1940,44 @@ packages:peerDependencies:'@babel/core': ^7.0.0+ '@babel/[email protected]':+ resolution: {integrity: sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0++ '@babel/[email protected]':+ resolution: {integrity: sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==}engines: {node: '>=6.9.0'}@@ -1628,16 +1986,27 @@ packages:resolution: {integrity: sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==}engines: {node: '>=6.0.0'}hasBin: true- '@babel/[email protected]':- resolution: {integrity: sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-OsQd175SxWkGlzbny8J3K8TnnDD0N3lrIUtB92xwyRpzaenGZhxDvxN/JgU00U3CDZNj9tPuDJ5H0WS4Nt3vKg==}+ engines: {node: '>=6.0.0'}+ hasBin: true++ '@babel/[email protected]':+ resolution: {integrity: sha512-qnzXzDXdr/po3bOTbTIQZ7+TxNKxpkN5IifVLXS+r7qwynkZfPyjZfE7hCXbo7IoO9TNcSyibgONsf2HauUd3Q==}engines: {node: '>=6.0.0'}hasBin: true+ '@babel/[email protected]':+ resolution: {integrity: sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0+'@babel/[email protected]':resolution: {integrity: sha512-y8quW6p0WHkEhmErnfe58r7x0A70uKphQm8Sp8cV7tjNQwK56sNVK0M73LK3WuYmsuyrftut4xAkjjgU0twaMg==}engines: {node: '>=6.9.0'}@@ -1650,6 +2019,12 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0+ '@babel/[email protected]':+ resolution: {integrity: sha512-Q5sT5+O4QUebHdbwKedFBEwRLb02zJ7r4A5Gg2hUoLuU3FjdMcyqcywqUrLCaDsFCxzokf7u9kuy7qz51YUuAg==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0+'@babel/[email protected]':resolution: {integrity: sha512-54cIh74Z1rp4oIjsHjqN+WM4fMyCBYe+LpZ9jWm51CZ1fbH3SkAzQD/3XLoNkjbJ7YEmjobLXyvQrFypRHOrXw==}engines: {node: '>=6.9.0'}@@ -1662,18 +2037,34 @@ packages:resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==}engines: {node: '>=6.9.0'}'@babel/[email protected]':resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-oNcu2QbHqts9BtOWJosOVJapWjBDSxGCpFvikNR5TGDYDQf3JwpIoMzIKrvfoti93cLfPJEG4tH9SPVeyCGgdA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-X6ZlfR/O/s5EQ/SnUSLzr+6kGnkg8HXGMzpgsMsrJVcfDtH1vIp6ctCN4eZ1LS5c0+te5Cb6Y514fASjMRJ1nw==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-ETyHEk2VHHvl9b9jZP5IHPavHYk57EhanlRRuae9XCpb/j5bDCbPPMOBfCWhnl/7EDJz0jEMCi/RhccCE8r1+Q==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-8OLQgDScAOHXnAz2cV+RfzzNMipuLVBz2biuAJFMV9bfkNf393je3VM8CLkjQodW5+iWsSJdSgSWT6rsZoXHPw==}+ engines: {node: '>=6.9.0'}+'@biomejs/[email protected]':resolution: {integrity: sha512-/uUV3MV+vyAczO+vKrPdOW0Iaet7UnJMU4bNMinggGJTAnBPjCoLEYcyYtYHNnUNYlv4xZMH6hVIQCAozq8d5w==}engines: {node: '>=14.21.3'}@@ -1780,6 +2171,15 @@ packages:cpu: [x64]os: [win32]+ '@bundled-es-modules/[email protected]':+ resolution: {integrity: sha512-8o+5fRPLNbjbdGRRmJj3h6Hh1AQJf2dk3qQ/5ZFb+PXkRNiSoMGGUKlsgLfrxneb72axVJyIYji64E2+nNfYyw==}++ '@bundled-es-modules/[email protected]':+ resolution: {integrity: sha512-yn7BklA5acgcBr+7w064fGV+SGIFySjCKpqjcWgBAIfrAkY+4GQTJJHQMeT3V/sgz23VTEVV8TtOmkvJAhFVfg==}++ '@bundled-es-modules/[email protected]':+ resolution: {integrity: sha512-dvMHbL464C0zI+Yqxbz6kZ5TOEp7GLW+pry/RWndAR8MJQAXZ2rPmIs8tziTZjeIyhSNZgZbCePtfSbdWqStJw==}+'@capsizecss/[email protected]':resolution: {integrity: sha512-GrSU71meACqcmIUxPYOJvGKF0yryjN/L1aCuE9DViCTJI7bfkjgYDPD1zbNDcINJwSSP6UaBZY9GAbYDO7re0Q==}@@ -1820,6 +2220,12 @@ packages:resolution: {integrity: sha512-WyOx8cJQ+FQus4Mm4uPIZA64gbk3Wxh0so5Lcii0aJifqwoVOlfFtorjLE0Hen4OYyHZMXDWqMmaQemBhgxFRQ==}engines: {node: '>=14'}+ '@date-fns/[email protected]':+ resolution: {integrity: sha512-LBrd7MiJZ9McsOgxqWX7AaxrDjcFVjWH/tIKJd7pnR7McaslGYOP1QmmiBXdJH/H/yLCT+rcQ7FaPBUxRGUtrg==}++ '@date-fns/[email protected]':+ resolution: {integrity: sha512-176grgAgU2U303rD2/vcOmNg0kGPbhzckuH1TEP2al7n0AQipZIy9P15usd2TKQCG1g+E1jX/ZVQSzs4sUDwgA==}+'@dnd-kit/[email protected]':resolution: {integrity: sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==}peerDependencies:@@ -1875,6 +2281,63 @@ packages:'@emnapi/[email protected]':resolution: {integrity: sha512-kEBmG8KyqtxJZv+ygbEim+KCGtIq1fC22Ms3S4ziXmYKm8uyoLX0MHONVKwp+9opg390VaKRNt4a7A9NwmpNhw==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-pBPWdu6MLKROBX05wSNKcNb++m5Er+KQ9QkB+WVM+pW2Kx9hoSrVTnu3BdkI5eBLZoKu/J6mW/B6i6bJB2ytXQ==}++ '@emotion/[email protected]':+ resolution: {integrity: sha512-pxHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ==}++ '@emotion/[email protected]':+ resolution: {integrity: sha512-L/B1lc/TViYk4DcpGxtAVbx0ZyiKM5ktoIyafGkH6zg/tj+mA+NE//aPYKG0k8kCHSHVJrpLpcAlOBEXQ3SavA==}++ '@emotion/[email protected]':+ resolution: {integrity: sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==}++ '@emotion/[email protected]':+ resolution: {integrity: sha512-/ACwoqx7XQi9knQs/G0qKvv5teDMhD7bXYns9N/wM8ah8iNb8jZ2uNO0YOgiq2o2poIvVtJS2YALasQuMSQ7Kw==}++ '@emotion/[email protected]':+ resolution: {integrity: sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==}++ '@emotion/[email protected]':+ resolution: {integrity: sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==}+ peerDependencies:+ '@types/react': '*'+ react: '>=16.8.0'+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@emotion/[email protected]':+ resolution: {integrity: sha512-EISGqt7sSNWHGI76hC7x1CksiXPahbxEOrC5RjmFRJTqLyEK9/9hZvBbiYn70dw4wuwMKiEMCUlR6ZXTSWQqxA==}++ '@emotion/[email protected]':+ resolution: {integrity: sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==}++ '@emotion/[email protected]':+ resolution: {integrity: sha512-XxfOnXFffatap2IyCeJyNov3kiDQWoR08gPUQxvbL7fxKryGBKUZUkG6Hz48DZwVrJSVh9sJboyV1Ds4OW6SgA==}+ peerDependencies:+ '@emotion/react': ^11.0.0-rc.0+ '@types/react': '*'+ react: '>=16.8.0'+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@emotion/[email protected]':+ resolution: {integrity: sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==}++ '@emotion/[email protected]':+ resolution: {integrity: sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg==}+ peerDependencies:+ react: '>=16.8.0'++ '@emotion/[email protected]':+ resolution: {integrity: sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA==}++ '@emotion/[email protected]':+ resolution: {integrity: sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==}+'@ericcornelissen/[email protected]':resolution: {integrity: sha512-4pIMTa1nEFfMXitv7oaNEWOdM+zpOZavesa5GaiWTgda6Zk32CFGxjUp/iIaN0PwgUW1yTq/fztSjbpE8SLGZQ==}engines: {node: '>=4'}@@ -1904,14 +2367,14 @@ packages:cpu: [ppc64]os: [aix]- '@esbuild/[email protected]':- resolution: {integrity: sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==}engines: {node: '>=18'}cpu: [ppc64]os: [aix]- '@esbuild/[email protected]':- resolution: {integrity: sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==}engines: {node: '>=18'}cpu: [ppc64]os: [aix]@@ -1934,14 +2397,14 @@ packages:cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==}engines: {node: '>=18'}cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==}engines: {node: '>=18'}cpu: [arm64]os: [android]@@ -1964,14 +2427,14 @@ packages:cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==}engines: {node: '>=18'}cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==}engines: {node: '>=18'}cpu: [arm]os: [android]@@ -1994,14 +2457,14 @@ packages:cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==}engines: {node: '>=18'}cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==}engines: {node: '>=18'}cpu: [x64]os: [android]@@ -2024,14 +2487,14 @@ packages:cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==}engines: {node: '>=18'}cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==}engines: {node: '>=18'}cpu: [arm64]os: [darwin]@@ -2054,14 +2517,14 @@ packages:cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==}engines: {node: '>=18'}cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==}engines: {node: '>=18'}cpu: [x64]os: [darwin]@@ -2084,14 +2547,14 @@ packages:cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==}engines: {node: '>=18'}cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==}engines: {node: '>=18'}cpu: [arm64]os: [freebsd]@@ -2114,14 +2577,14 @@ packages:cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==}engines: {node: '>=18'}cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==}engines: {node: '>=18'}cpu: [x64]os: [freebsd]@@ -2144,14 +2607,14 @@ packages:cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==}engines: {node: '>=18'}cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==}engines: {node: '>=18'}cpu: [arm64]os: [linux]@@ -2174,14 +2637,14 @@ packages:cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==}engines: {node: '>=18'}cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==}engines: {node: '>=18'}cpu: [arm]os: [linux]@@ -2204,14 +2667,14 @@ packages:cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==}engines: {node: '>=18'}cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==}engines: {node: '>=18'}cpu: [ia32]os: [linux]@@ -2234,14 +2697,14 @@ packages:cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==}engines: {node: '>=18'}cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==}engines: {node: '>=18'}cpu: [loong64]os: [linux]@@ -2264,14 +2727,14 @@ packages:cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==}engines: {node: '>=18'}cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==}engines: {node: '>=18'}cpu: [mips64el]os: [linux]@@ -2294,14 +2757,14 @@ packages:cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==}engines: {node: '>=18'}cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==}engines: {node: '>=18'}cpu: [ppc64]os: [linux]@@ -2324,14 +2787,14 @@ packages:cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==}engines: {node: '>=18'}cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==}engines: {node: '>=18'}cpu: [riscv64]os: [linux]@@ -2354,14 +2817,14 @@ packages:cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==}engines: {node: '>=18'}cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==}engines: {node: '>=18'}cpu: [s390x]os: [linux]@@ -2384,26 +2847,26 @@ packages:cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==}engines: {node: '>=18'}cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==}engines: {node: '>=18'}cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==}engines: {node: '>=18'}cpu: [arm64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==}engines: {node: '>=18'}cpu: [arm64]os: [netbsd]@@ -2426,26 +2889,26 @@ packages:cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==}engines: {node: '>=18'}cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==}engines: {node: '>=18'}cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==}engines: {node: '>=18'}cpu: [arm64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==}engines: {node: '>=18'}cpu: [arm64]os: [openbsd]@@ -2468,14 +2931,14 @@ packages:cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==}engines: {node: '>=18'}cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==}engines: {node: '>=18'}cpu: [x64]os: [openbsd]@@ -2498,14 +2961,14 @@ packages:cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==}engines: {node: '>=18'}cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==}engines: {node: '>=18'}cpu: [x64]os: [sunos]@@ -2528,14 +2991,14 @@ packages:cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==}engines: {node: '>=18'}cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==}engines: {node: '>=18'}cpu: [arm64]os: [win32]@@ -2558,14 +3021,14 @@ packages:cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==}engines: {node: '>=18'}cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==}engines: {node: '>=18'}cpu: [ia32]os: [win32]@@ -2588,14 +3051,14 @@ packages:cpu: [x64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==}engines: {node: '>=18'}cpu: [x64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==}engines: {node: '>=18'}cpu: [x64]os: [win32]@@ -2622,15 +3085,30 @@ packages:'@floating-ui/[email protected]':resolution: {integrity: sha512-7XJ9cPU+yI2QeLS+FCSlqNFZJq8arvswefkZrYI1yQBbftw6FyrZOxYSh+9S7z7TpeWlRt9zJ5IhM1WIL334jA==}+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-wNB5ooIKHQc+Kui96jE/n69rHFWAVoxn5CAzL1Xdd8FG03cgY3MLO+GF9U3W737fYDSgPWA6MReKhBQBop6Pcw==}+'@floating-ui/[email protected]':resolution: {integrity: sha512-NP83c0HjokcGVEMeoStg317VD9W7eDlGK7457dMBANbKA6GJZdc7rjujdgqzTaz93jkGgc5P/jeWbaCHnMNc+w==}+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-7cfaOQuCS27HD7DX+6ib2OrnW+b4ZBwDNnCcT0uTyidcmyWb03FnQqJybDBoCnpdxwBSfA94UAYlRCt7mV+TbA==}+'@floating-ui/[email protected]':resolution: {integrity: sha512-06okr5cgPzMNBy+Ycse2A6udMi4bqwW/zgBF/rwjcNqWkyr82Mcg8b0vjX8OJpZFy/FKjJmw6wV7t44kK6kW7A==}peerDependencies:react: '>=16.8.0'react-dom: '>=16.8.0'+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-JbbpPhp38UmXDDAu60RJmbeme37Jbgsm7NrHGgzYYFKmblzRUh6Pa641dII6LsjwF4XlScDrde2UAzDo/b9KPw==}+ peerDependencies:+ react: '>=16.8.0'+ react-dom: '>=16.8.0'++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}+'@floating-ui/[email protected]':resolution: {integrity: sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==}@@ -2671,8 +3149,14 @@ packages:hono: '>=3.9.0'zod: ^3.19.1- '@hookform/[email protected]':- resolution: {integrity: sha512-Jsv6UOWYTrEFJ/01ZrnwVXs7KDvP8XIo115i++5PWvNkNvkrsTfGiLS6w+eJ57CYtUtDQalUWovCZDHFJ8u1VQ==}+ '@hookform/[email protected]':+ resolution: {integrity: sha512-Mtlic+uigoYBPXlfvPBfiYYUZuyMrD3pTjDpVIhL6eCZTvQkHsKBSKeZCvXWUZr8fqrkzDg27N+ZuazLKq6Vmg==}+ peerDependencies:+ react: ^16.8.0 || ^17 || ^18 || ^19+ react-dom: ^16.8.0 || ^17 || ^18 || ^19++ '@hookform/[email protected]':+ resolution: {integrity: sha512-ud2HqmGBM0P0IABqoskKWI6PEf6ZDDBZkFqe2Vnl+mTHCEHzr3ISjjZyCwTjC/qpL25JC9aIDkloQejvMeq0ug==}peerDependencies:react-hook-form: ^7.0.0@@ -2691,105 +3175,260 @@ packages:cpu: [arm64]os: [darwin]+ '@img/[email protected]':+ resolution: {integrity: sha512-OfXHZPppddivUJnqyKoi5YVeHRkkNE2zUFT2gbpKxp/JZCFYEYubnMg+gOp6lWfasPrTS+KPosKqdI+ELYVDtg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [darwin]+'@img/[email protected]':resolution: {integrity: sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [x64]os: [darwin]+ '@img/[email protected]':+ resolution: {integrity: sha512-dYvWqmjU9VxqXmjEtjmvHnGqF8GrVjM2Epj9rJ6BUIXvk8slvNDJbhGFvIoXzkDhrJC2jUxNLz/GUjjvSzfw+g==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [darwin]+'@img/[email protected]':resolution: {integrity: sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg==}cpu: [arm64]os: [darwin]+ '@img/[email protected]':+ resolution: {integrity: sha512-HZ/JUmPwrJSoM4DIQPv/BfNh9yrOA8tlBbqbLz4JZ5uew2+o22Ik+tHQJcih7QJuSa0zo5coHTfD5J8inqj9DA==}+ cpu: [arm64]+ os: [darwin]+'@img/[email protected]':resolution: {integrity: sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ==}cpu: [x64]os: [darwin]+ '@img/[email protected]':+ resolution: {integrity: sha512-Xzc2ToEmHN+hfvsl9wja0RlnXEgpKNmftriQp6XzY/RaSfwD9th+MSh0WQKzUreLKKINb3afirxW7A0fz2YWuQ==}+ cpu: [x64]+ os: [darwin]+'@img/[email protected]':resolution: {integrity: sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==}cpu: [arm64]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-IVfGJa7gjChDET1dK9SekxFFdflarnUB8PwW8aGwEoF3oAsSDuNUTYS+SKDOyOJxQyDC1aPFMuRYLoDInyV9Ew==}+ cpu: [arm64]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==}cpu: [arm]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-s8BAd0lwUIvYCJyRdFqvsj+BJIpDBSxs6ivrOPm/R7piTs5UIwY5OjXrP2bqXC9/moGsyRa37eYWYCOGVXxVrA==}+ cpu: [arm]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-tiXxFZFbhnkWE2LA8oQj7KYR+bWBkiV2nilRldT7bqoEZ4HiDOcePr9wVDAZPi/Id5fT1oY9iGnDq20cwUz8lQ==}+ cpu: [ppc64]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==}cpu: [s390x]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-xukSwvhguw7COyzvmjydRb3x/09+21HykyapcZchiCUkTThEQEOMtBj9UhkaBRLuBrgLFzQ2wbxdeCCJW/jgJA==}+ cpu: [s390x]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==}cpu: [x64]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-yRj2+reB8iMg9W5sULM3S74jVS7zqSzHG3Ol/twnAAkAhnGQnpjj6e4ayUz7V+FpKypwgs82xbRdYtchTTUB+Q==}+ cpu: [x64]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==}cpu: [arm64]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-jYZdG+whg0MDK+q2COKbYidaqW/WTz0cc1E+tMAusiDygrM4ypmSCjOJPmFTvHHJ8j/6cAGyeDWZOsK06tP33w==}+ cpu: [arm64]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==}cpu: [x64]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-wK7SBdwrAiycjXdkPnGCPLjYb9lD4l6Ze2gSdAGVZrEL05AOUJESWU2lhlC+Ffn5/G+VKuSm6zzbQSzFX/P65A==}+ cpu: [x64]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [arm64]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-D8n8wgWmPDakc83LORcfJepdOSN6MvWNzzz2ux0MnIbOqdieRZwVYY32zxVx+IFUT8er5KPcyU3XXsn+GzG/0Q==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [arm]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-0DZzkvuEOqQUP9mo2kjjKNok5AmnOr1jB2XYjkaoNRwpAYMDzRmAqUIa1nRi58S2WswqSfPOWLNOr0FDT3H5RQ==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [s390x]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-EGZ1xwhBI7dNISwxjChqBGELCWMGDvmxZXKjQRuqMrakhO8QoMgqCrdjnAqJq/CScxfRn+Bb7suXBElKQpPDiw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [s390x]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [x64]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-sD7J+h5nFLMMmOXYH4DD9UtSNBD05tWSSdWAcEyzqW8Cn5UxXvsHAxmxSesYUsTOBmUnjtxghKDl15EvfqLFbQ==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [arm64]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-NEE2vQ6wcxYav1/A22OOxoSOGiKnNmDzCYFOZ949xFmrWZOVII1Bp3NqVVpvj+3UeHMFyN5eP/V5hzViQ5CZNA==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [x64]os: [linux]+ '@img/[email protected]':+ resolution: {integrity: sha512-DOYMrDm5E6/8bm/yQLCWyuDJwUnlevR8xtF8bs+gjZ7cyUNYXiSf/E8Kp0Ss5xasIaXSHzb888V1BE4i1hFhAA==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [linux]+'@img/[email protected]':resolution: {integrity: sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [wasm32]+ '@img/[email protected]':+ resolution: {integrity: sha512-/VI4mdlJ9zkaq53MbIG6rZY+QRN3MLbR6usYlgITEzi4Rpx5S6LFKsycOQjkOGmqTNmkIdLjEvooFKwww6OpdQ==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [wasm32]++ '@img/[email protected]':+ resolution: {integrity: sha512-cfP/r9FdS63VA5k0xiqaNaEoGxBg9k7uE+RQGzuK9fHt7jib4zAVVseR9LsE4gJcNWgT6APKMNnCcnyOtmSEUQ==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [win32]+'@img/[email protected]':resolution: {integrity: sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [ia32]os: [win32]+ '@img/[email protected]':+ resolution: {integrity: sha512-QLjGGvAbj0X/FXl8n1WbtQ6iVBpWU7JO94u/P2M4a8CFYsvQi4GW2mRy/JqkRx0qpBzaOdKJKw8uc930EX2AHw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [ia32]+ os: [win32]+'@img/[email protected]':resolution: {integrity: sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}cpu: [x64]os: [win32]+ '@img/[email protected]':+ resolution: {integrity: sha512-aUdT6zEYtDKCaxkofmmJDJYGCf0+pJg3eU9/oBuqvEeoB9dKI6ZLc/1iLJCTuJQDO4ptntAlkUmHgGjyuobZbw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [win32]++ '@inquirer/[email protected]':+ resolution: {integrity: sha512-dpq+ielV9/bqgXRUbNH//KsY6WEw9DrGPmipkpmgC1Y46cwuBTNx7PXFWTjc3MQ+urcc0QxoVHcMI0FW4Ok0hg==}+ engines: {node: '>=18'}+ peerDependencies:+ '@types/node': '>=18'+ peerDependenciesMeta:+ '@types/node':+ optional: true++ '@inquirer/[email protected]':+ resolution: {integrity: sha512-1viSxebkYN2nJULlzCxES6G9/stgHSepZ9LqqfdIGPHj5OHhiBUXVS0a6R0bEC2A+VL4D9w6QB66ebCr6HGllA==}+ engines: {node: '>=18'}+ peerDependencies:+ '@types/node': '>=18'+ peerDependenciesMeta:+ '@types/node':+ optional: true++ '@inquirer/[email protected]':+ resolution: {integrity: sha512-MJttijd8rMFcKJC8NYmprWr6hD3r9Gd9qUC0XwPNwoEPWSMVJwA2MlXxF+nhZZNMY+HXsWa+o7KY2emWYIn0jQ==}+ engines: {node: '>=18'}++ '@inquirer/[email protected]':+ resolution: {integrity: sha512-PfunHQcjwnju84L+ycmcMKB/pTPIngjUJvfnRhKY6FKPuYXlM4aQCb/nIdTFR6BEhMjFvngzvng/vBAJMZpLSA==}+ engines: {node: '>=18'}+ peerDependencies:+ '@types/node': '>=18'+ peerDependenciesMeta:+ '@types/node':+ optional: true++ '@isaacs/[email protected]':+ resolution: {integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==}+ engines: {node: 20 || >=22}++ '@isaacs/[email protected]':+ resolution: {integrity: sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==}+ engines: {node: 20 || >=22}+'@isaacs/[email protected]':resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}engines: {node: '>=12'}@@ -2798,6 +3437,9 @@ packages:resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==}engines: {node: '>=18.0.0'}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-C512c1ytBTio4MrpWKlJpyFHT6+qfFL8SZ58zBzJ1OOzUEjHeF1BtjY2fH7n4x/g2OV/KiiMLAivOp1DXmiMMw==}+'@jridgewell/[email protected]':resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==}engines: {node: '>=6.0.0'}@@ -2810,12 +3452,16 @@ packages:resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==}engines: {node: '>=6.0.0'}- '@jridgewell/[email protected]':+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}+ engines: {node: '>=6.0.0'}++ '@jridgewell/[email protected]':resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}engines: {node: '>=6.0.0'}- '@jridgewell/[email protected]':- resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-amBU75CKOOkcQLfyM6J+DnWwz41yTsWI7o8MQ003LwUIWb4NYX/evAblTx1oBBYJySqL/zHPxHXDw5ewpQaUFw==}'@jridgewell/[email protected]':resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}@@ -2823,9 +3469,15 @@ packages:'@jridgewell/[email protected]':resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-AiR5uKpFxP3PjO4R19kQGIMwxyRyPuXmKEEy301V1C0+1rVjS94EZQXf1QKZYN8Q0YM+estSPhmx5JwNftv6nw==}+'@jridgewell/[email protected]':resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-KNNHHwW3EIp4EDYOvYFGyIFfx36R2dNJYH4knnZlF8T5jdbD5Wx8xmSaQ2gP9URkJ04LGEtlcCtwArKcmFcwKw==}+'@jridgewell/[email protected]':resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}@@ -2837,19 +3489,35 @@ packages:'@libsql/[email protected]':resolution: {integrity: sha512-/9HEKfn6fwXB5aTEEoMeFh4CtG0ZzbncBb1e++OCdVpgKZ/xyMsIVYXm0w7Pv4RUel803vE6LwniB3PqD72R0Q==}+ '@libsql/[email protected]':+ resolution: {integrity: sha512-VT3do0a0vwYVaNcp/y05ikkKS3OrFR5UeEf5SUuYZVgKVl1Nc1k9ajoYSsOid8AD/vlhLDB5yFQaV4HmT/OB9w==}+'@libsql/[email protected]':resolution: {integrity: sha512-nhbuXf7GP3PSZgdCY2Ecj8vz187ptHlZQ0VRc751oB2C1W8jQUXKKklvt7t1LJiUTQBVJuadF628eUk+3cRi4Q==}+ '@libsql/[email protected]':+ resolution: {integrity: sha512-4OVdeAmuaCUq5hYT8NNn0nxlO9AcA/eTjXfUZ+QK8MT3Dz7Z76m73x7KxjU6I64WyXX98dauVH2b9XM+d84npw==}+'@libsql/[email protected]':resolution: {integrity: sha512-xLdnn0NrgSk6OMi716FFs/27Hs33jtSd2fkKi/72Ey/qBtPWcB1BMurDQekzi0yAcfQTjGqIz7tpOibyjiEPyQ==}cpu: [arm64]os: [darwin]+ '@libsql/[email protected]':+ resolution: {integrity: sha512-ASz/EAMLDLx3oq9PVvZ4zBXXHbz2TxtxUwX2xpTRFR4V4uSHAN07+jpLu3aK5HUBLuv58z7+GjaL5w/cyjR28Q==}+ cpu: [arm64]+ os: [darwin]+'@libsql/[email protected]':resolution: {integrity: sha512-rZsEWj0H7oCqd5Y2pe0RzKmuQXC2OB1RbnFy4CvjeAjT6MP6mFp+Vx9mTCAUuJMhuoSVMsFPUJRpAQznl9E3Tg==}cpu: [x64]os: [darwin]+ '@libsql/[email protected]':+ resolution: {integrity: sha512-kzglniv1difkq8opusSXM7u9H0WoEPeKxw0ixIfcGfvlCVMJ+t9UNtXmyNHW68ljdllje6a4C6c94iPmIYafYA==}+ cpu: [x64]+ os: [darwin]+'@libsql/[email protected]':resolution: {integrity: sha512-OF8fFQSkbL7vJY9rfuegK1R7sPgQ6kFMkDamiEccNUvieQ+3urzfDFI616oPl8V7T9zRmnTkSjMOImYCAVRVuw==}@@ -2860,31 +3528,66 @@ packages:'@libsql/[email protected]':resolution: {integrity: sha512-DtLWIH29onUYR00i0GlQ3UdcTRC6EP4u9w/h9LxpUZJWRMARk6dQwZ6Jkd+QdwVpuAOrdxt18v0K2uIYR3fwFg==}+ '@libsql/[email protected]':+ resolution: {integrity: sha512-UEW+VZN2r0mFkfztKOS7cqfS8IemuekbjUXbXCwULHtusww2QNCXvM5KU9eJCNE419SZCb0qaEWYytcfka8qeA==}+ cpu: [arm]+ os: [linux]++ '@libsql/[email protected]':+ resolution: {integrity: sha512-NMDgLqryYBv4Sr3WoO/m++XDjR5KLlw9r/JK4Ym6A1XBv2bxQQNhH0Lxx3bjLW8qqhBD4+0xfms4d2cOlexPyA==}+ cpu: [arm]+ os: [linux]+'@libsql/[email protected]':resolution: {integrity: sha512-VR09iu6KWGJ6fauCn59u/jJ9OA+/A2yQ0dr2HDN2zkRueLC6D2oGYt4gPfLZPFKf+WJpVMtIhNfd+Ru9MMaFkA==}cpu: [arm64]os: [linux]+ '@libsql/[email protected]':+ resolution: {integrity: sha512-/wCxVdrwl1ee6D6LEjwl+w4SxuLm5UL9Kb1LD5n0bBGs0q+49ChdPPh7tp175iRgkcrTgl23emymvt1yj3KxVQ==}+ cpu: [arm64]+ os: [linux]+'@libsql/[email protected]':resolution: {integrity: sha512-74hvD5ej4rBshhxFGNYU16a3m8B/NjIPvhlZ/flG1Oeydfo6AuUXSSNFi+H5+zi9/uWuzyz5TLVeQcraoUV10A==}cpu: [arm64]os: [linux]+ '@libsql/[email protected]':+ resolution: {integrity: sha512-xnVAbZIanUgX57XqeI5sNaDnVilp0Di5syCLSEo+bRyBobe/1IAeehNZpyVbCy91U2N6rH1C/mZU7jicVI9x+A==}+ cpu: [arm64]+ os: [linux]+'@libsql/[email protected]':resolution: {integrity: sha512-gb5WObGO3+rbuG8h9font1N02iF+zgYAgY0wNa8BNiZ5A9UolZKFxiqGFS7eHaAYfemHJKKTT+aAt3X2p5TibA==}cpu: [x64]os: [linux]+ '@libsql/[email protected]':+ resolution: {integrity: sha512-/mfMRxcQAI9f8t7tU3QZyh25lXgXKzgin9B9TOSnchD73PWtsVhlyfA6qOCfjQl5kr4sHscdXD5Yb3KIoUgrpQ==}+ cpu: [x64]+ os: [linux]+'@libsql/[email protected]':resolution: {integrity: sha512-JfyE6OVC5X4Nr4cFF77VhB1o+hBRxAqYT9YdeqnWdAQSYc/ASi5HnRALLAQEsGacFPZZ32pixfraQmPE3iJFfw==}cpu: [x64]os: [linux]+ '@libsql/[email protected]':+ resolution: {integrity: sha512-rdefPTpQCVwUjIQYbDLMv3qpd5MdrT0IeD0UZPGqhT9AWU8nJSQoj2lfyIDAWEz7PPOVCY4jHuEn7FS2sw9kRA==}+ cpu: [x64]+ os: [linux]+'@libsql/[email protected]':resolution: {integrity: sha512-57GGurNJhOhq3XIopLdGnCoQ4kQAcmbmzzFoC4tpvDE/KSbwZ/13zqJWhQA41nMGk/PKM1XKfKmbIybKx1+eqA==}cpu: [x64]os: [win32]+ '@libsql/[email protected]':+ resolution: {integrity: sha512-aNcmDrD1Ws+dNZIv9ECbxBQumqB9MlSVEykwfXJpqv/593nABb8Ttg5nAGUPtnADyaGDTrGvPPP81d/KsKho4Q==}+ cpu: [x64]+ os: [win32]+'@mapbox/[email protected]':resolution: {integrity: sha512-gqaTIGC8My3LVSnU38IwjHVKJC94HSonjvFHDk8/aSrApL8v4uWgm8zJkK7MJIIbHuNOr/+Mv2KkQKcxs6LEZA==}engines: {node: '>=12'}@@ -2897,56 +3600,115 @@ packages:'@mdx-js/[email protected]':resolution: {integrity: sha512-/QxEhPAvGwbQmy1Px8F899L5Uc2KZ6JtXwlCgJmjSTBedwOZkByYcBG4GceIGPXRDsmfxhHazuS+hlOShRLeDw==}+ '@modelcontextprotocol/[email protected]':+ resolution: {integrity: sha512-KG1CZhZfWg+u8pxeM/mByJDScJSrjjxLc8fwQqbsS8xCjBmQfMNEBTotYdNanKekepnfRI85GtgQlctLFpcYPw==}+ engines: {node: '>=18'}++ '@mswjs/[email protected]':+ resolution: {integrity: sha512-RuzCup9Ct91Y7V79xwCb146RaBRHZ7NBbrIUySumd1rpKqHL5OonaqrGIbug5hNwP/fRyxFMA6ISgw4FTtYFYg==}+ engines: {node: '>=18'}+'@neon-rs/[email protected]':resolution: {integrity: sha512-kTPhdZyTQxB+2wpiRcFWrDcejc4JI6tkPuS7UZCG4l6Zvc5kU/gGQ/ozvHTh1XR5tS+UlfAfGuPajjzQjCiHCw==}- '@next/[email protected]':- resolution: {integrity: sha512-+SFtMgoiYP3WoSswuNmxJOCwi06TdWE733D+WPjpXIe4LXGULwEaofiiAy6kbS0+XjM5xF5n3lKuBwN2SnqD9g==}+ '@next/[email protected]':+ resolution: {integrity: sha512-cwK27QdzrMblHSn9DZRV+DQscHXRuJv6MydlJRpFSqJWZrTYMLzKDeyueJNN9MGd8NNiUKzDQADAf+dMLXX7YQ==}++ '@next/[email protected]':+ resolution: {integrity: sha512-ZkdYzBseS6UjYzz6ylVKPOK+//zLWvD6Ta+vpoye8cW11AjiQjGYVibF0xuvT4L0iJfAPfZLFidaEzAOywyOAQ==}++ '@next/[email protected]':+ resolution: {integrity: sha512-hjDw4f4/nla+6wysBL07z52Gs55Gttp5Bsk5/8AncQLJoisvTBP0pRIBK/B16/KqQyH+uN4Ww8KkcAqJODYH3w==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]- '@next/[email protected]':- resolution: {integrity: sha512-1AnMfs655ipJEDC/FHkSr0r3lXBgpqKo4K1kiwfUf3iE68rDFXZ1TtHdMvf7D0hMItgDZ7Vuq3JgNMbt/+3bYw==}+ '@next/[email protected]':+ resolution: {integrity: sha512-z0qIYTONmPRbwHWvpyrFXJd5F9YWLCsw3Sjrzj2ZvMYy9NPQMPZ1NjOJh4ojr4oQzcGYwgJKfidzehaNa1BpEg==}engines: {node: '>= 10'}cpu: [arm64]os: [darwin]- '@next/[email protected]':- resolution: {integrity: sha512-3qK2zb5EwCwxnO2HeO+TRqCubeI/NgCe+kL5dTJlPldV/uwCnUgC7VbEzgmxbfrkbjehL4H9BPztWOEtsoMwew==}+ '@next/[email protected]':+ resolution: {integrity: sha512-q+aw+cJ2ooVYdCEqZVk+T4Ni10jF6Fo5DfpEV51OupMaV5XL6pf3GCzrk6kSSZBsMKZtVC1Zm/xaNBFpA6bJ2g==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]++ '@next/[email protected]':+ resolution: {integrity: sha512-Z0FYJM8lritw5Wq+vpHYuCIzIlEMjewG2aRkc3Hi2rcbULknYL/xqfpBL23jQnCSrDUGAo/AEv0Z+s2bff9Zkw==}engines: {node: '>= 10'}cpu: [x64]os: [darwin]- '@next/[email protected]':- resolution: {integrity: sha512-HFN6GKUcrTWvem8AZN7tT95zPb0GUGv9v0d0iyuTb303vbXkkbHDp/DxufB04jNVD+IN9yHy7y/6Mqq0h0YVaQ==}+ '@next/[email protected]':+ resolution: {integrity: sha512-wBQ+jGUI3N0QZyWmmvRHjXjTWFy8o+zPFLSOyAyGFI94oJi+kK/LIZFJXeykvgXUk1NLDAEFDZw/NVINhdk9FQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@next/[email protected]':+ resolution: {integrity: sha512-l8ZQOCCg7adwmsnFm8m5q9eIPAHdaB2F3cxhufYtVo84pymwKuWfpYTKcUiFcutJdp9xGHC+F1Uq3xnFU1B/7g==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@next/[email protected]':+ resolution: {integrity: sha512-IIxXEXRti/AulO9lWRHiCpUUR8AR/ZYLPALgiIg/9ENzMzLn3l0NSxVdva7R/VDcuSEBo0eGVCe3evSIHNz0Hg==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-Oioa0SORWLwi35/kVB8aCk5Uq+5/ZIumMK1kJV+jSdazFm2NzPDztsefzdmzzpx5oGCJ6FkUC7vkaUseNTStNA==}+ '@next/[email protected]':+ resolution: {integrity: sha512-wFyZ7X470YJQtpKot4xCY3gpdn8lE9nTlldG07/kJYexCUpX1piX+MBfZdvulo+t1yADFVEuzFfVHfklfEx8kw==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-yb5WTRaHdkgOqFOZiu6rHV1fAEK0flVpaIN2HB6kxHVSy/dIajWbThS7qON3W9/SNOH2JWkVCyulgGYekMePuw==}+ '@next/[email protected]':+ resolution: {integrity: sha512-bfI4AMhySJbyXQIKH5rmLJ5/BP7bPwuxauTvVEiJ/ADoddaA9fgyNNCcsbu9SlqfHDoZmfI6g2EjzLwbsVTr5A==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@next/[email protected]':+ resolution: {integrity: sha512-gEbH9rv9o7I12qPyvZNVTyP/PWKqOp8clvnoYZQiX800KkqsaJZuOXkWgMa7ANCCh/oEN2ZQheh3yH8/kWPSEg==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@next/[email protected]':+ resolution: {integrity: sha512-FeAbR7FYMWR+Z+M5iSGytVryKHiAsc0x3Nc3J+FD5NVbD5Mqz7fTSy8CYliXinn7T26nDMbpExRUI/4ekTvoiA==}engines: {node: '>= 10'}cpu: [x64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-Dcdv/ix6srhkM25fgXiyOieFUkz+fOYkHlydWCtB0xMST6X9XYI3yPDKBZt1xuhOytONsIFJFB08xXYsxUwJLw==}+ '@next/[email protected]':+ resolution: {integrity: sha512-Cf8sr0ufuC/nu/yQ76AnarbSAXcwG/wj+1xFPNbyNo8ltA6kw5d5YqO8kQuwVIxk13SBdtgXrNyom3ZosHAy4A==}engines: {node: '>= 10'}cpu: [x64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-dW0i7eukvDxtIhCYkMrZNQfNicPDExt2jPb9AZPpL7cfyUo7QSNl1DjsHjmmKp6qNAqUESyT8YFl/Aw91cNJJg==}+ '@next/[email protected]':+ resolution: {integrity: sha512-yP7FueWjphQEPpJQ2oKmshk/ppOt+0/bB8JC8svPUZNy0Pi3KbPx2Llkzv1p8CoQa+D2wknINlJpHf3vtChVBw==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [win32]++ '@next/[email protected]':+ resolution: {integrity: sha512-ay5+qADDN3rwRbRpEhTOreOn1OyJIXS60tg9WMYTWCy3fB6rGoyjLVxc4dR9PYjEdR2iDYsaF5h03NA+XuYPQQ==}engines: {node: '>= 10'}cpu: [arm64]os: [win32]- '@next/[email protected]':- resolution: {integrity: sha512-SbnWkJmkS7Xl3kre8SdMF6F/XDh1DTFEhp0jRTj/uB8iPKoU2bb2NDfcu+iifv1+mxQEd1g2vvSxcZbXSKyWiQ==}+ '@next/[email protected]':+ resolution: {integrity: sha512-3PMvF2zRJAifcRNni9uMk/gulWfWS+qVI/pagd+4yLF5bcXPZPPH2xlYRYOsUjmCJOXSTAC2PjRzbhsRzR2fDQ==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [win32]++ '@next/[email protected]':+ resolution: {integrity: sha512-4kDt31Bc9DGyYs41FTL1/kNpDeHyha2TC0j5sRRoKCyrhNcfZ/nRQkAUlF27mETwm8QyHqIjHJitfcza2Iykfg==}engines: {node: '>= 10'}cpu: [x64]os: [win32]@@ -2978,6 +3740,15 @@ packages:'@one-ini/[email protected]':resolution: {integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==}+ '@open-draft/[email protected]':+ resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==}++ '@open-draft/[email protected]':+ resolution: {integrity: sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==}++ '@open-draft/[email protected]':+ resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==}+'@openpanel/[email protected]':resolution: {integrity: sha512-PLSOJFj4RoFbQPZXBwJNsaqprnrjq5Hj1x6oY1a1IJpWSqFqO3Wa1OSMsLh2G2QXAowsg+cfiu7Mp6h/kK1tow==}peerDependencies:@@ -3243,9 +4014,6 @@ packages:cpu: [x64]os: [win32]- '@panva/[email protected]':- resolution: {integrity: sha512-dhPeilub1NuIG0X5Kvhh9lH4iW3ZsHlnzwgwbOlgwQ2wG1IqFzsgHqmKPk3WzsdWAeaxKJxgM0+W433RmN45GA==}-'@panva/[email protected]':resolution: {integrity: sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw==}@@ -3447,9 +4215,15 @@ packages:'@radix-ui/[email protected]':resolution: {integrity: sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}+'@radix-ui/[email protected]':resolution: {integrity: sha512-SJ31y+Q/zAyShtXJc8x83i9TYdbAfHZ++tUZnvjJJqFjzsdUnKsxPL6IEtBlxKkU7yzer//GQtZSV4GbldL3YA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==}+'@radix-ui/[email protected]':resolution: {integrity: sha512-b1oh54x4DMCdGsB4/7ahiSrViXxaBwRPotiZNnYXjLha9vfuURSAZErki6qjDoSIV0eXx5v57XnTGVtGwnfp2g==}peerDependencies:@@ -3463,8 +4237,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-A6Kh23qZDLy3PSU4bh2UJZznOrUdHImIXqF8YtUa6CN73f8EOO9XlXSCd9IHyPvIquTaa/kwaSWzZTtUvgXVGw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-IOZfZ3nPvN6lXpJTBCunFQPRSvK8MDgSc1FB85xnIpUKOw9en0dJj8JmCAxV7BiZdtYlUpmrQjoTFkVYtdoWzQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3476,8 +4250,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-NaVpZfmv8SKeZbn4ijN2V3jlHA9ngBG16VnIIm22nUR0Yk8KUALyBxT3KYEUnNuch9sTE8UTsS3whzBgKOL30w==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-A6Kh23qZDLy3PSU4bh2UJZznOrUdHImIXqF8YtUa6CN73f8EOO9XlXSCd9IHyPvIquTaa/kwaSWzZTtUvgXVGw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3489,8 +4263,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-GaC7bXQZ5VgZvVvsJ5mu/AEbjYLnhhkoidOboC50Z6FFlLA03wG2ianUoH+zgDQ31/9gCF59bE4+2bBgTyMiig==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-NaVpZfmv8SKeZbn4ijN2V3jlHA9ngBG16VnIIm22nUR0Yk8KUALyBxT3KYEUnNuch9sTE8UTsS3whzBgKOL30w==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3502,8 +4276,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-HD7/ocp8f1B3e6OHygH0n7ZKjONkhciy1Nh0yuBgObqThc3oyx+vuMfFHKAknXRHHWVE9XvXStxJFyjUmB8PIw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3515,8 +4289,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-PliMB63vxz7vggcyq0IxNYk8vGDrLXVWw4+W4B8YnwI1s18x7YZYqlG9PLX7XxAJUi0g2DxP4XKJMFHh/iVh9A==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3528,8 +4302,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-LwT3pSho9Dljg+wY2KN2mrrh6y3qELfftINERIzBUO9e0N+t0oMTyn3k9iv+ZqgrwGkRnLpNJrsMv9BZlt2yuA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-GaC7bXQZ5VgZvVvsJ5mu/AEbjYLnhhkoidOboC50Z6FFlLA03wG2ianUoH+zgDQ31/9gCF59bE4+2bBgTyMiig==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3541,17 +4315,21 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-Y9VzoRDSJtgFMUCoiZBDVo084VQ5hfpXxVE+NgkdNsjiDBByiImMZKKhxMwCbdHvhlENG6a833CbFkOQvTricw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-HD7/ocp8f1B3e6OHygH0n7ZKjONkhciy1Nh0yuBgObqThc3oyx+vuMfFHKAknXRHHWVE9XvXStxJFyjUmB8PIw==}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-rcpeerDependenciesMeta:'@types/react':optional: true+ '@types/react-dom':+ optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-ap4wdGwK52rJxGkwukU1NrnEodsUFQIooANKu+ey7d6raQ2biTcEf8za1zr0mgFHieevRTB2nK4dJeN8pTAZGQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-yd+dI56KZqawxKZrJ31eENUwqc1QSqg4OZ15rybGjF2ZNwMO+wCyHzAVLRp9qoYJf7kYy0YpZ2b0JCzJ42HZpA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3563,17 +4341,21 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-UASk9zi+crv9WteK/NU4PLvOoL3OuE6BWVKNF6hPRBtYBDXQ2u5iu3O59zUlJiTVvkyuycnqrztsHVJwcK9K+Q==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-2qrRsVGSCYasSz1RFOorXwl0H7g7J1frQtgpQgYrt+MOidtPAINHn9CPovQXb83r8ahapdx3Tu0fa/pdFFSdPg==}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-rcpeerDependenciesMeta:'@types/react':optional: true+ '@types/react-dom':+ optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-Ur7EV1IwQGCyaAuyDRiOLA5JIUZxELJljF+MbM/2NC0BYwfuRrbpS30BiQBJrVruscgUkieKkqXYDOoByaxIoA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-PliMB63vxz7vggcyq0IxNYk8vGDrLXVWw4+W4B8YnwI1s18x7YZYqlG9PLX7XxAJUi0g2DxP4XKJMFHh/iVh9A==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3585,17 +4367,21 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-LwT3pSho9Dljg+wY2KN2mrrh6y3qELfftINERIzBUO9e0N+t0oMTyn3k9iv+ZqgrwGkRnLpNJrsMv9BZlt2yuA==}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-rcpeerDependenciesMeta:'@types/react':optional: true+ '@types/react-dom':+ optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-onrWn/72lQoEucDmJnr8uczSNTujT0vJnA/X5+3AkChVPowr8n1yvIKIabhWyMQeMvvmdpsvcyDqx3X1LEXCPg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3607,21 +4393,17 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-iXU1Ab5ecM+yEepGAWK8ZhMyKX4ubFdCNtol4sT9D0OVErG9PNElfx3TQhjw7n7BC5nFVz68/5//clWy+8TXzA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Y9VzoRDSJtgFMUCoiZBDVo084VQ5hfpXxVE+NgkdNsjiDBByiImMZKKhxMwCbdHvhlENG6a833CbFkOQvTricw==}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-rcpeerDependenciesMeta:'@types/react':optional: true- '@types/react-dom':- optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-pSIwfrT1a6sIoDASCSpFwOasEwKTZWDw/iBdtnqKO7v6FeOzYJ7U53cPzYFVR3geGGXgVHaH+CdngrrAzqUGxg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==}peerDependencies:'@types/react': '*'react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc@@ -3629,8 +4411,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-01omzJAYRxXdG2/he/+xy+c8a8gCydoQ1yOxnWNcRhrrBW5W+RQJ22EK1SaO8tb3WoUsuEw7mJjBozPzihDFjA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ap4wdGwK52rJxGkwukU1NrnEodsUFQIooANKu+ey7d6raQ2biTcEf8za1zr0mgFHieevRTB2nK4dJeN8pTAZGQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3642,21 +4424,17 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-QSUUnRA3PQ2UhvoCv3eYvMnCAgGQW+sTu86QPuNb+ZMi+ZENd6UWpiXbcWDQ4AEaKF9KKpCHBeaJz9Rw6lRlaQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-UASk9zi+crv9WteK/NU4PLvOoL3OuE6BWVKNF6hPRBtYBDXQ2u5iu3O59zUlJiTVvkyuycnqrztsHVJwcK9K+Q==}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-rcpeerDependenciesMeta:'@types/react':optional: true- '@types/react-dom':- optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==}peerDependencies:'@types/react': '*'react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc@@ -3664,8 +4442,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-UUw5E4e/2+4kFMH7+YxORXGWggtY6sM8WIwh5RZchhLuUg2H1hc98Py+pr8HMz6rdaYrK2t296ZEjYLOCO5uUw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-+CpweKjqpzTmwRwcYECQcNYbI8V9VSQt0SNFKeEBLgfucbsLssU6Ppq7wUdNXEGb573bMjFhVjKVll8rmV6zMw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3677,8 +4455,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-BnOgVoL6YYdHAG6DtXONaR29Eq4nvbi8rutrV/xlr3RQCMMb3yqP85Qiw/3NReozrSW+4dfLkK+rc1hb4wPU/A==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Ur7EV1IwQGCyaAuyDRiOLA5JIUZxELJljF+MbM/2NC0BYwfuRrbpS30BiQBJrVruscgUkieKkqXYDOoByaxIoA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3690,34 +4468,26 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-IQWAsQ7dsLIYDrn0WqPU+cdM7MONTv9nqrLVYoie3BPiabSfUVDe6Fr+oEt0Cofsr9ONDcDe9xhmJbL1Uq1yKg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==}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-rcpeerDependenciesMeta:'@types/react':optional: true- '@types/react-dom':- optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-aUACAkXx8LaFymDma+HQVji7WhvEhpFJ7+qPz17Nf4lLZqtreGOFRiNQWQmhzp7kEWg9cOyyQJpdIMUMPc/CPw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==}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-rcpeerDependenciesMeta:'@types/react':optional: true- '@types/react-dom':- optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-3kn5Me69L+jv82EKRuQCXdYyf1DqHwD2U/sxoNgBGCB7K9TRc3bQamQ+5EPM9EvyPdli0W41sROd+ZU1dTCztw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-IM1zzRV4W3HtVgftdQiiOmA0AdJlCtMLe00FXaHwgt3rAnNsIyDqshvkIW3hj/iu5hu8ERP7KIYki6NkqDxAwQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3729,8 +4499,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-NciRqhXnGojhT93RPyDaMPfLH3ZSl4jjIFbZQ1b/vxvZEdHsBZ49wP9w8L3HzUQwep01LcWtkUvm0OVB5JAHTw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-onrWn/72lQoEucDmJnr8uczSNTujT0vJnA/X5+3AkChVPowr8n1yvIKIabhWyMQeMvvmdpsvcyDqx3X1LEXCPg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3742,8 +4512,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-18TFr80t5EVgL9x1SwF/YGtfG+l0BS0PRAlCWBDoBEiDQjeKgnNZRVJp/oVBl24sr3Gbfwc/Qpj4OcWTQMsAEg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-mIBnOjgwo9AH3FyKaSWoSu/dYj6VdhJ7frEPiGTeXCdUFHjl9h3mFh2wwhEtINOmYXWhdpf1rY2minFsmaNgVQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3755,8 +4525,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-sHCWTtxwNn3L3fH8qAfnF3WbUZycW93SM1j3NFDzXBiz8D6F5UTTy8G1+WFEaiCdvCVRJWj6N2R4Xq6HdiHmDg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-iXU1Ab5ecM+yEepGAWK8ZhMyKX4ubFdCNtol4sT9D0OVErG9PNElfx3TQhjw7n7BC5nFVz68/5//clWy+8TXzA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3768,21 +4538,26 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-6diOawA84f/eMxFHcWut0aE1C2kyE9dOyCTQOMRR2C/qPiXz/X0SaiA/RLbapQaXUCmy0/hLMf9meSccD1N0pA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-pSIwfrT1a6sIoDASCSpFwOasEwKTZWDw/iBdtnqKO7v6FeOzYJ7U53cPzYFVR3geGGXgVHaH+CdngrrAzqUGxg==}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-rcpeerDependenciesMeta:'@types/react':optional: true- '@types/react-dom':++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-fyjAACV62oPV925xFCrH8DR5xWhg9KYtJT4s3u54jxp+L/hbpTY2kIeEFFbFe+a/HCE94zGQMZLIpVTPVZDhaA==}+ 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-E0MLLGfOP0l8P/NxgVzfXJ8w3Ch8cdO6UDzJfDChu4EJDy+/WdO5LqpdY8PYnCErkmZH3gZhDL1K7kQ41fAHuQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-01omzJAYRxXdG2/he/+xy+c8a8gCydoQ1yOxnWNcRhrrBW5W+RQJ22EK1SaO8tb3WoUsuEw7mJjBozPzihDFjA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3794,8 +4569,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-QE1RoxPGJ/Nm8Qmk0PxP8ojmoaS67i0s7hVssS7KuI2FQoc/uzVlZsqKfQvxPE6D8hICCPHJ4D88zNhT3OOmkw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3807,8 +4582,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-pOkb2u8KgO47j/h7AylCj7dJsm69BXcjkrvTqMptFqsE2i0p8lHkfgneXKjAgPzBMivnoMyt8o4KiV4wYzDdyQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-CPYZ24Mhirm+g6D8jArmLzjYu4Eyg3TTUHswR26QgzXBHBe64BO/RHOJKzmF/Dxb4y4f9PKyJdwm/O/AhNkb+Q==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3820,8 +4595,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-RRiNRSrD8iUiXriq/Y5n4/3iE8HzqgLHsusUSg5jVpU2+3tqcUFPJXHDymwEypunc2sWxDUS3UC+rkZRlHedsw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-QSUUnRA3PQ2UhvoCv3eYvMnCAgGQW+sTu86QPuNb+ZMi+ZENd6UWpiXbcWDQ4AEaKF9KKpCHBeaJz9Rw6lRlaQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3833,21 +4608,17 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-sNlU06ii1/ZcbHf8I9En54ZPW0Vil/yPVg4vQMcFNjrIx51jsHbFl1HYHQvCIWJSr1q0ZmA+iIs/ZTv8h7HHSA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA==}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-rcpeerDependenciesMeta:'@types/react':optional: true- '@types/react-dom':- optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-RApLLOcINYJA+dMVbOju7MYv1Mb2EBp2nH4HdDzXTSyaR5optlm6Otrz1euW3HbdOR8UmmFK06TD+A9frYWv+g==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==}peerDependencies:'@types/react': '*'react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc@@ -3855,8 +4626,8 @@ packages:'@types/react':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-zGukiWHjEdBCRyXvKR6iXAQG6qXm2esuAD6kDOi9Cn+1X6ev3ASo4+CsYaD6Fov9r/AQFekqnD/7+V0Cs6/98g==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-UUw5E4e/2+4kFMH7+YxORXGWggtY6sM8WIwh5RZchhLuUg2H1hc98Py+pr8HMz6rdaYrK2t296ZEjYLOCO5uUw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3868,8 +4639,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-9u/tQJMcC2aGq7KXpGivMm1mgq7oRJKXphDwdypPd/j21j/2znamPU8WkXgnhUaTrSFNIt8XhOyCAupg8/GbwQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3881,8 +4652,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-i77tcgObYr743IonC1hrsnnPmszDRn8p+EGUsUt+5a/JFn28fxaM88Py6V2mc8J5kELMWishI0rLnuGLFD/nnQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-tVlmA3Vb9n8SZSd+YSbuFR66l87Wiy4du+YE+0hzKQEANA+7cWKH1WgqcEX4pXqxUFQKrWQGHdvEfw00TjFiew==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3894,8 +4665,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-TLB5D8QLExS1uDn7+wH/bjEmRurNMTzNrtq7IjaS4kjion9NtzsTGkvR5+i7yc9q01Pi2KMM2cN3f8UG4IvvXA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-BnOgVoL6YYdHAG6DtXONaR29Eq4nvbi8rutrV/xlr3RQCMMb3yqP85Qiw/3NReozrSW+4dfLkK+rc1hb4wPU/A==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -3907,35 +4678,497 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-IQWAsQ7dsLIYDrn0WqPU+cdM7MONTv9nqrLVYoie3BPiabSfUVDe6Fr+oEt0Cofsr9ONDcDe9xhmJbL1Uq1yKg==}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-rcpeerDependenciesMeta:'@types/react':optional: true+ '@types/react-dom':+ optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ODz16+1iIbGUfFEfKx2HTPKizg2MN39uIOV8MXeHnmdd3i/N9Wt7vU46wbHsqA0xoaQyXVcs0KIlBdOA2Y95bw==}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-rcpeerDependenciesMeta:'@types/react':optional: true+ '@types/react-dom':+ optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-L7vwWlR1kTTQ3oh7g1O0CBF3YCyyTj8NmhLR+phShpyA50HCfBFKVJTpshm9PzLiKmehsrQzTYTpX9HvmC9rhw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-aUACAkXx8LaFymDma+HQVji7WhvEhpFJ7+qPz17Nf4lLZqtreGOFRiNQWQmhzp7kEWg9cOyyQJpdIMUMPc/CPw==}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-rcpeerDependenciesMeta:'@types/react':optional: true+ '@types/react-dom':+ optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-3kn5Me69L+jv82EKRuQCXdYyf1DqHwD2U/sxoNgBGCB7K9TRc3bQamQ+5EPM9EvyPdli0W41sROd+ZU1dTCztw==}+ 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-IUFAccz1JyKcf/RjB552PlWwxjeCJB8/4KxT7EhBHOJM+mN7LdW+B3kacJXILm32xawcMMjb2i0cIZpo+f9kiQ==}+ 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-NciRqhXnGojhT93RPyDaMPfLH3ZSl4jjIFbZQ1b/vxvZEdHsBZ49wP9w8L3HzUQwep01LcWtkUvm0OVB5JAHTw==}+ 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-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}+ 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-18TFr80t5EVgL9x1SwF/YGtfG+l0BS0PRAlCWBDoBEiDQjeKgnNZRVJp/oVBl24sr3Gbfwc/Qpj4OcWTQMsAEg==}+ 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-ueDqRbdc4/bkaQT3GIpLQssRlFgWaL/U2z/S31qRwwLWoxHLgry3SIfCwhxeQNbirEUXFa+lq3RL3oBYXtcmIA==}+ 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-sHCWTtxwNn3L3fH8qAfnF3WbUZycW93SM1j3NFDzXBiz8D6F5UTTy8G1+WFEaiCdvCVRJWj6N2R4Xq6HdiHmDg==}+ 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-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}+ 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-6diOawA84f/eMxFHcWut0aE1C2kyE9dOyCTQOMRR2C/qPiXz/X0SaiA/RLbapQaXUCmy0/hLMf9meSccD1N0pA==}+ 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-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg==}+ 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-E0MLLGfOP0l8P/NxgVzfXJ8w3Ch8cdO6UDzJfDChu4EJDy+/WdO5LqpdY8PYnCErkmZH3gZhDL1K7kQ41fAHuQ==}+ 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-9w5XhD0KPOrm92OTTE0SysH3sYzHsSTHNvZgUBo/VZ80VdYyB5RneDbc0dKpURS24IxkoFRu/hI0i4XyfFwY6g==}+ 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-QE1RoxPGJ/Nm8Qmk0PxP8ojmoaS67i0s7hVssS7KuI2FQoc/uzVlZsqKfQvxPE6D8hICCPHJ4D88zNhT3OOmkw==}+ 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-dT9aOXUen9JSsxnMPv/0VqySQf5eDQ6LCk5Sw28kamz8wSOW2bJdlX2Bg5VUIIcV+6XlHpWTIuTPCf/UNIyq8Q==}+ 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-pOkb2u8KgO47j/h7AylCj7dJsm69BXcjkrvTqMptFqsE2i0p8lHkfgneXKjAgPzBMivnoMyt8o4KiV4wYzDdyQ==}+ 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-HnMTdXEVuuyzx63ME0ut4+sEMYW6oouHWNGUZc7ddvUWIcfCva/AMoqEW/3wnEllriMWBa0RHspCYnfCWJQYmA==}+ 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-RRiNRSrD8iUiXriq/Y5n4/3iE8HzqgLHsusUSg5jVpU2+3tqcUFPJXHDymwEypunc2sWxDUS3UC+rkZRlHedsw==}+ 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-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==}+ 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-sNlU06ii1/ZcbHf8I9En54ZPW0Vil/yPVg4vQMcFNjrIx51jsHbFl1HYHQvCIWJSr1q0ZmA+iIs/ZTv8h7HHSA==}+ 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-rkfe2pU2NBAYfGaxa3Mqosi7VZEWX5CxKaanRv0vZd4Zhl9fvQrg0VM93dv3xGLGfrHuoTRF3JXH8nb9g+B3fw==}+ 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-RApLLOcINYJA+dMVbOju7MYv1Mb2EBp2nH4HdDzXTSyaR5optlm6Otrz1euW3HbdOR8UmmFK06TD+A9frYWv+g==}+ 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-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}+ 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-zGukiWHjEdBCRyXvKR6iXAQG6qXm2esuAD6kDOi9Cn+1X6ev3ASo4+CsYaD6Fov9r/AQFekqnD/7+V0Cs6/98g==}+ 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-5ijLkak6ZMylXsaImpZ8u4Rlf5grRmoc0p0QeX9VJtlrM4f5m3nCTX8tWga/zOA8PZYIR/t0p2Mnvd7InrJ6yQ==}+ 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-GTVAlRVrQrSw3cEARM0nAx73ixrWDPNZAruETn3oHCNP6SbZ/hNxdxp+u7VkIEv3/sFoLq1PfcHrl7Pnp0CDpw==}+ 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-9u/tQJMcC2aGq7KXpGivMm1mgq7oRJKXphDwdypPd/j21j/2znamPU8WkXgnhUaTrSFNIt8XhOyCAupg8/GbwQ==}+ 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-i77tcgObYr743IonC1hrsnnPmszDRn8p+EGUsUt+5a/JFn28fxaM88Py6V2mc8J5kELMWishI0rLnuGLFD/nnQ==}+ 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-TLB5D8QLExS1uDn7+wH/bjEmRurNMTzNrtq7IjaS4kjion9NtzsTGkvR5+i7yc9q01Pi2KMM2cN3f8UG4IvvXA==}+ 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-Ap+fNYwKTYJ9pzqW+Xe2HtMRbQ/EeWkj2qykZ6SuEV4iS/o1bZI5ssJbk4D2r8XuDuOBVz/tIx2JObtuqU+5Zw==}+ 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-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-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==}+ 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-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-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==}+ 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-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==}+ 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-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-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==}+ 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-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==}+ 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-+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-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==}peerDependencies:'@types/react': '*'react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc@@ -3952,6 +5185,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==}+ 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-0Fmkebhr6PiseyZlYAOtLS+nb7jLmpqTrJyv61Pe68MKYW6OWdRE2kI70TaYY27u7H0lajqM3hSMMLFq18Z7nQ==}peerDependencies:@@ -3961,6 +5203,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==}+ 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-XW3/vWuIXHa+2Uwcc2ABSfcCledmXhhQPlGbfcRXbiUQI5Icjcg19BGCZVKKInYbvUCut/ufbbLLPFC5cbb1hw==}peerDependencies:@@ -3970,6 +5221,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==}+ 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-vVfA2IZ9q/J+gEamvj761Oq1FpWgCDaNOOIfbPVp2MVPLEomUr5+Vf7kJGwQ24YxZSlQVar7Bes8kyTo5Dshpg==}peerDependencies:@@ -3983,9 +5243,25 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==}+ 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-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==}+'@react-email/[email protected]':resolution: {integrity: sha512-ZSD2SxVSgUjHGrB0Wi+4tu3MEpB4fYSbezsFNEJk2xCWDBkFiOeEsjTmR5dvi+CxTK691hQTQlHv0XWuP7ENTg==}peerDependencies:@@ -3997,12 +5273,24 @@ packages:peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc+ '@react-email/[email protected]':+ resolution: {integrity: sha512-fg4LtgTu5zXxaRSly9cuv6sHVF/hi1lElbRaIA8EPx5coWOBhCto6rCPfawcXpaN2oER7rNHUrcNBkI+lz5F9A==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^18.0 || ^19.0 || ^19.0.0-rc+'@react-email/[email protected]':resolution: {integrity: sha512-Faw3Ij9+/Qwq6moWaeHnV8Hn7ekc/EqyAzPi6yUar21dhcqYugCC4Da1x4d9nA9zC0H9KU3lYVJczh8D3cA+Eg==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc+ '@react-email/[email protected]':+ resolution: {integrity: sha512-jSpHFsgqnQXxDIssE4gvmdtFncaFQz5D6e22BnVjcCPk/udK+0A9jRwGFEG8JD2si9ZXBmU4WsuqQEczuZn4ww==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^18.0 || ^19.0 || ^19.0.0-rc+'@react-email/[email protected]':resolution: {integrity: sha512-MmAsOzdJpzsnY2cZoPHFPk6uDO/Ncpb4Kh1hAt9UZc1xOW3fIzpe1Pi9y9p6wwUmpaeeDalJxAxH6/fnTquinA==}engines: {node: '>=18.0.0'}@@ -4021,6 +5309,12 @@ packages:peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc+ '@react-email/[email protected]':+ resolution: {integrity: sha512-NyPuoqd1o77HL4+58pBrpk3e5/0UZLNU11/OBnE59F2MCZ8IaZX+55Ce+HR5itKTMdqlgfncz7sGA1TDITo41g==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^18.0 || ^19.0 || ^19.0.0-rc+'@react-email/[email protected]':resolution: {integrity: sha512-Qo2IQo0ru2kZq47REmHW3iXjAQaKu4tpeq/M8m1zHIVwKduL2vYOBQWbC2oDnMtWPmkBjej6XxgtZByxM6cCFg==}engines: {node: '>=18.0.0'}@@ -4074,12 +5368,24 @@ packages:peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc+ '@react-email/[email protected]':+ resolution: {integrity: sha512-UQA9pVm5sbflgtg3EX3FquUP4aMBzmLReLbGJ6DZQZnAskBF36aI56cRykDq1o+1jT+CKIK1CducPYziaXliag==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^18.0 || ^19.0 || ^19.0.0-rc+'@react-email/[email protected]':resolution: {integrity: sha512-g/H5fa9PQPDK6WUEG7iTlC19sAktI23qyoiJtMLqQiXFCfWeQMhqjLGKeLSKkfzszqmfJCjZtpSiKtBoOdxp3Q==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc+ '@react-email/[email protected]':+ resolution: {integrity: sha512-F7j9FJ0JN/A4d7yr+aw28p4uX7VLWs7hTHtLo7WRyw4G+Lit6Zucq4UWKRxJC8lpsUdzVmG7aBJnKOT+urqs/w==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^18.0 || ^19.0 || ^19.0.0-rc+'@react-email/[email protected]':resolution: {integrity: sha512-W3gTrcmLOVYnG80QuUp22ReIT/xfLsVJ+n7ghSlG2BITB8evNABn1AO2rGQoXuK84zKtDAlxCdm3hRyIpZdGSA==}engines: {node: '>=18.0.0'}@@ -4094,6 +5400,20 @@ packages:react: ^18.0 || ^19.0 || ^19.0.0-rcreact-dom: ^18.0 || ^19.0 || ^19.0.0-rc+ '@react-email/[email protected]':+ resolution: {integrity: sha512-RnRehYN3v9gVlNMehHPHhyp2RQo7+pSkHDtXPvg3s0GbzM9SQMW4Qrf8GRNvtpLC4gsI+Wt0VatNRUFqjvevbw==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^18.0 || ^19.0 || ^19.0.0-rc++ '@react-email/[email protected]':+ resolution: {integrity: sha512-TjjF1tdTmOqYEIWWg9wMx5q9JbQRbWmnG7owQbSGEHkNfc/c/vBu7hjfrki907lgQEAkYac9KPTyIjOKhvhJCg==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^18.0 || ^19.0 || ^19.0.0-rc+'@react-email/[email protected]':resolution: {integrity: sha512-HkCdnEjvK3o+n0y0tZKXYhIXUNPDx+2vq1dJTmqappVHXS5tXS6W5JOPZr5j+eoZ8gY3PShI2LWj5rWF7ZEtIQ==}engines: {node: '>=18.0.0'}@@ -4112,12 +5432,24 @@ packages:peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc+ '@react-email/[email protected]':+ resolution: {integrity: sha512-BH00cZSeFfP9HiDASl+sPHi7Hh77W5nzDgdnxtsVr/m3uQD9g180UwxcE3PhOfx0vRdLzQUU8PtmvvDfbztKQg==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^18.0 || ^19.0 || ^19.0.0-rc+'@react-email/[email protected]':resolution: {integrity: sha512-Zo9tSEzkO3fODLVH1yVhzVCiwETfeEL5wU93jXKWo2DHoMuiZ9Iabaso3T0D0UjhrCB1PBMeq2YiejqeToTyIQ==}engines: {node: '>=18.0.0'}peerDependencies:react: ^18.0 || ^19.0 || ^19.0.0-rc+ '@react-email/[email protected]':+ resolution: {integrity: sha512-o5PNHFSE085VMXayxH+SJ1LSOtGsTv+RpNKnTiJDrJUwoBu77G3PlKOsZZQHCNyD28WsQpl9v2WcJLbQudqwPg==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^18.0 || ^19.0 || ^19.0.0-rc+'@rollup/[email protected]':resolution: {integrity: sha512-+tNWdlWKbpB3WgBN7ijjYkq9X5uhjmcvyjEght4NmH5fAU++zfQzAJ6wumLS+dNcvwEZhKx2Z+skY8m7v0wGSA==}engines: {node: '>=16.0.0 || 14 >= 14.17'}@@ -4127,15 +5459,6 @@ packages:rollup:optional: true- '@rollup/[email protected]':- resolution: {integrity: sha512-Pnsb6f32CD2W3uCaLZIzDmeFyQ2b8UWMFI7xtwUezpcGBDVDW6y9XgAWIlARiGAo6eNF5FK5aQTr0LFyNyqq5A==}- engines: {node: '>=14.0.0'}- peerDependencies:- rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0- peerDependenciesMeta:- rollup:- optional: true-'@rollup/[email protected]':resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}engines: {node: '>=14.0.0'}@@ -4707,9 +6030,6 @@ packages:'@socket.io/[email protected]':resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==}- '@standard-schema/[email protected]':- resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==}-'@stripe/[email protected]':resolution: {integrity: sha512-QSzqQIcowgap7a40f3a7oUR+59Xet/i8fp1EsnzzwxK5oPRQsCbbLQ4Cd6qM0y1pdZMonFnCrAWayWdE9Lr0iA==}@@ -4755,63 +6075,132 @@ packages:peerDependencies:tailwindcss: '>=3.2.0'+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-yzhzuGRmv5QyU9qLNg4GTlYI6STedBWRE7NjxP45CsFYYq9taI0zJXZBMqIC/c8fViNLhmrbpSFS57EoxUmD6Q==}+'@tailwindcss/[email protected]':resolution: {integrity: sha512-OWwBsbC9BFAJelmnNcrKuf+bka2ZxCE2A4Ft53Tkg4uoiE67r/PMEYwCsourC26E+kmxfwE0hVzMdxqeW+xu7Q==}+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-3IfFuATVRUMZZprEIx9OGDjG3Ou3jG4xQzNTvjDoKmU9JdmoCohQJ83MYd0GPnQIu89YoJqvMM0G3uqLRFtetg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [android]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-Fbz7qni62uKYceWYvUjRqhGfZKwhZDQhlrJKGtnZfuNtHFqa8wmr+Wn74CTWERiW2hn3mN5gTpOoxWKk0jRxjg==}engines: {node: '>= 10'}cpu: [arm64]os: [android]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-ESgStEOEsyg8J5YcMb1xl8WFOXfeBmrhAwGsFxxB2CxY9evy63+AtpbDLAyRkJnxLy2WsD1qF13E97uQyP1lfQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-RdRvedGsT0vwVVDztvyXhKpsU2ark/BjgG0huo4+2BluxdXo8NDgzl77qh0T1nUxmM11eXwR8jA39ibvSTbi7A==}engines: {node: '>= 10'}cpu: [arm64]os: [darwin]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-EgnK8kRchgmgzG6jE10UQNaH9Mwi2n+yw1jWmof9Vyg2lpKNX2ioe7CJdf9M5f8V9uaQxInenZkOxnTVL3fhAw==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-t6PgxjEMLp5Ovf7uMb2OFmb3kqzVTPPakWpBIFzppk4JE4ix0yEtbtSjPbU8+PZETpaYMtXvss2Sdkx8Vs4XRw==}engines: {node: '>= 10'}cpu: [x64]os: [darwin]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-xdqKtbpHs7pQhIKmqVpxStnY1skuNh4CtbcyOHeX1YBE0hArj2romsFGb6yUmzkq/6M24nkxDqU8GYrKrz+UcA==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [freebsd]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-g8C8eGEyhHTqwPStSwZNSrOlyx0bhK/V/+zX0Y+n7DoRUzyS8eMbVshVOLJTDDC+Qn9IJnilYbIKzpB9n4aBsg==}engines: {node: '>= 10'}cpu: [x64]os: [freebsd]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-ryHQK2eyDYYMwB5wZL46uoxz2zzDZsFBwfjssgB7pzytAeCCa6glsiJGjhTEddq/4OsIjsLNMAiMlHNYnkEEeg==}+ engines: {node: '>= 10'}+ cpu: [arm]+ os: [linux]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-Jmzr3FA4S2tHhaC6yCjac3rGf7hG9R6Gf2z9i9JFcuyy0u79HfQsh/thifbYTF2ic82KJovKKkIB6Z9TdNhCXQ==}engines: {node: '>= 10'}cpu: [arm]os: [linux]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-mYwqheq4BXF83j/w75ewkPJmPZIqqP1nhoghS9D57CLjsh3Nfq0m4ftTotRYtGnZd3eCztgbSPJ9QhfC91gDZQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-qq7jXtO1+UEtCmCeBBIRDrPFIVI4ilEQ97qgBGdwXAARrUqSn/L9fUrkb1XP/mvVtoVeR2bt/0L77xx53bPZ/Q==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-m/NVRFNGlEHJrNVk3O6I9ggVuNjXHIPoD6bqay/pubtYC9QIdAMpS+cswZQPBLvVvEF6GtSNONbDkZrjWZXYNQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-O6b8QesPbJCRshsNApsOIpzKt3ztG35gfX9tEf4arD7mwNinsoCKxkj8TgEE0YRjmjtO3r9FlJnT/ENd9EVefQ==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-YW6sblI7xukSD2TdbbaeQVDysIm/UPJtObHJHKxDEcW2exAtY47j52f8jZXkqE1krdnkhCMGqP3dbniu1Te2Fg==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-32iEXX/pXwikshNOGnERAFwFSfiltmijMIAbUhnNyjFr3tmWmMJWQKU2vNcFX0DACSXJ3ZWcSkzNbaKTdngH6g==}engines: {node: '>= 10'}cpu: [x64]os: [linux]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-e3C/RRhGunWYNC3aSF7exsQkdXzQ/M+aYuZHKnw4U7KQwTJotnWsGOIVih0s2qQzmEzOFIJ3+xt7iq67K/p56Q==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-s+VSSD+TfZeMEsCaFaHTaY5YNj3Dri8rST09gMvYQKwPphacRG7wbuQ5ZJMIJXN/puxPcg/nU+ucvWguPpvBDg==}engines: {node: '>= 10'}cpu: [x64]os: [linux]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Xo1+/GU0JEN/C/dvcammKHzeM6NqKovG+6921MR6oadee5XPBaKOumrJCXvopJ/Qb5TH7LX/UAywbqrP4lax0g==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]+ bundledDependencies:+ - '@napi-rs/wasm-runtime'+ - '@emnapi/core'+ - '@emnapi/runtime'+ - '@tybys/wasm-util'+ - '@emnapi/wasi-threads'+ - tslib+'@tailwindcss/[email protected]':resolution: {integrity: sha512-CXBPVFkpDjM67sS1psWohZ6g/2/cd+cq56vPxK4JeawelxwK4YECgl9Y9TjkE2qfF+9/s1tHHJqrC4SS6cVvSg==}engines: {node: '>=14.0.0'}@@ -4824,24 +6213,40 @@ packages:- '@emnapi/wasi-threads'- tslib+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-UgKYx5PwEKrac3GPNPf6HVMNhUIGuUh4wlDFR2jYYdkX6pL/rn73zTq/4pzUm8fOjAn5L8zDeHp9iXmUGOXZ+w==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [win32]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-7GmYk1n28teDHUjPlIx4Z6Z4hHEgvP5ZW2QS9ygnDAdI/myh3HTHjDqtSqgu1BpRoI4OiLx+fThAyA1JePoENA==}engines: {node: '>= 10'}cpu: [arm64]os: [win32]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-YfHoggn1j0LK7wR82TOucWc5LDCguHnoS879idHekmmiR7g9HUtMw9MI0NHatS28u/Xlkfi9w5RJWgz2Dl+5Qg==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [win32]+'@tailwindcss/[email protected]':resolution: {integrity: sha512-fou+U20j+Jl0EHwK92spoWISON2OBnCazIc038Xj2TdweYV33ZRkS9nwqiUi2d/Wba5xg5UoHfvynnb/UB49cQ==}engines: {node: '>= 10'}cpu: [x64]os: [win32]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Q69XzrtAhuyfHo+5/HMgr1lAiPP/G40OMFAnws7xcFEYqcypZmdW8eGXaOUIeOl1dzPJBPENXgbjsOyhg2nkrg==}+ engines: {node: '>= 10'}+'@tailwindcss/[email protected]':resolution: {integrity: sha512-d7qvv9PsM5N3VNKhwVUhpK6r4h9wtLkJ6lz9ZY9aeZgrUWk1Z8VPyqyDT9MZlem7GTGseRQHkeB1j3tC7W1P+A==}engines: {node: '>= 10'}- '@tailwindcss/[email protected]':- resolution: {integrity: sha512-vB/vlf7rIky+w94aWMw34bWW1ka6g6C3xIOdICKX2GC0VcLtL6fhlLiafF0DVIwa9V6EHz8kbWMkS2s2QvvNlw==}+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-q/EAIIpF6WpLhKEuQSEVMZNMIY8KhWoAemZ9eylNAih9jxMGAYPPWBn3I9QL/2jZ+e7OEz/tZkX5HwbBR4HohA==}'@tailwindcss/[email protected]':resolution: {integrity: sha512-Pe8BuPJQJd3FfRnm6H0ulKIGoMEQS+Vq01R6M5aCrFB/ccR/shT+0kXLjouGC1gFLm9hopTFN+DMP0pfwRWzPw==}@@ -4856,6 +6261,9 @@ packages:'@tanstack/[email protected]':resolution: {integrity: sha512-s09l5zeUKC8q7DCCCIkVSns8zZrK4ZDT6ryEjxNBFi68G4z2EBobBS7rdOY3r6W1WbUDpc1fe5oY+YO/+2UVUg==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-ZJOgCy/z2qpZXWaj/oxvodDx07XcQa9BF92c0oINjHkoqUPsmm3uG08HpTaviviZ/N9eP1f9CM7mKSEkIo7O1Q==}+'@tanstack/[email protected]':resolution: {integrity: sha512-D6gH4asyjaoXrCOt5vG5Og/YSj0D/TxwNQgtLJIgWbhbWCC/emu2E92EFoVHh4ppVWg1qT2gKHvKyQBEFZhCuA==}@@ -4870,6 +6278,11 @@ packages:peerDependencies:react: ^18 || ^19+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-lOf2KqRRiYWpQT86eeeftAGnjuTR35myTP8MXyvHa81VlomoAWNEd8x5vkcAfQefu0qtYCvyqLropFZqgI2EQw==}+ peerDependencies:+ react: ^18 || ^19+'@tanstack/[email protected]':resolution: {integrity: sha512-Qya1cJ+91arAlW7IRDWksRDnYw28O446jJ/ljkRSc663EaftJoBCAU10M+VV1K6MpCBLrXq1BD5IQc1zj/ZEjA==}engines: {node: '>=12'}@@ -4877,10 +6290,21 @@ packages:react: '>=16'react-dom: '>=16'+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-5nNMTSETP4ykGegmVkhjcS8tTLW6Vl4axfEGQN3v0zdHYbK4UfoqfPChclTrJ4EoK9QynqAu9oUf8VEmrpZ5Ww==}+ engines: {node: '>=12'}+ peerDependencies:+ react: '>=16.8'+ react-dom: '>=16.8'+'@tanstack/[email protected]':resolution: {integrity: sha512-hJ55YfJlWbfzRROfcyA/kC1aZr/shsLA8XNAwN8jXylhYWGLnPmiJJISrUfj4dMMWRiFi0xBlnlC7MLH+zSrcw==}engines: {node: '>=12'}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg==}+ engines: {node: '>=12'}+'@tootallnate/[email protected]':resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}engines: {node: '>= 10'}@@ -4888,19 +6312,19 @@ packages:'@tootallnate/[email protected]':resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==}- '@trpc/[email protected]':- resolution: {integrity: sha512-AI+qThLuR52ALsMN/oEjgmw101c54YV6XoXSRyVGzO29kLUgo7PUBnvdq51x2rl57z7tg4AG8U2CvkDWdn00vw==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-i2suttUCfColktXT8bqex5kHW5jpT15nwUh0hGSDiW1keN621kSUQKcLJ095blqQAUgB+lsmgSqSMmB4L9shQQ==}peerDependencies:- '@trpc/server': 11.4.0+ '@trpc/server': 11.4.3typescript: '>=5.7.2'- '@trpc/[email protected]':- resolution: {integrity: sha512-mP513VX56qpUJjk3YEmIolZZSHiwHTyDreJNgHgb0xIRnbxOTIt7ZxdJ+TffUsjtQaReKvy+PZQ4N3Z2ytfoug==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-/AqPpzlrQy8ylLEdBAemRU1xmdqJVaXrXI/ZUYl3Oz1Id36gvGMdn5uxm0wgKPpZneM2EICvYcrsLSsdtddW4w==}peerDependencies:'@tanstack/react-query': ^5.59.15- '@trpc/client': 11.4.0- '@trpc/react-query': 11.4.0- '@trpc/server': 11.4.0+ '@trpc/client': 11.4.3+ '@trpc/react-query': 11.4.3+ '@trpc/server': 11.4.3next: '*'react: '>=16.8.0'react-dom: '>=16.8.0'@@ -4911,21 +6335,34 @@ packages:'@trpc/react-query':optional: true- '@trpc/[email protected]':- resolution: {integrity: sha512-VKDYVYDTXAKmbWLS89K29CSXpuVjT4TA+d24WLeU5rXPlVA6ladg7Q6mnmktUtHaUZetn20o723LzC4+ryi4oA==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-z+jhAiOBD22NNhHtvF0iFp9hO36YFA7M8AiUu/XtNmMxyLd3Y9/d1SMjMwlTdnGqxEGPo41VEWBrdhDUGtUuHg==}peerDependencies:'@tanstack/react-query': ^5.80.3- '@trpc/client': 11.4.0- '@trpc/server': 11.4.0+ '@trpc/client': 11.4.3+ '@trpc/server': 11.4.3react: '>=18.2.0'react-dom: '>=18.2.0'typescript: '>=5.7.2'- '@trpc/[email protected]':- resolution: {integrity: sha512-ubE5LgMQuVH5PKcaFq0JJaHbAT3bBV8m1rdlLYEDjJG85zGrYak+6YkXIzUct/LYYXNg/FgyGrqOTM2FyzAlhQ==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-wnWq3wiLlMOlYkaIZz+qbuYA5udPTLS4GVVRyFkr6aT83xpdCHyVtURT+u4hSoIrOXQM9OPCNXSXsAujWZDdaw==}+ peerDependencies:+ typescript: '>=5.7.2'++ '@trpc/[email protected]':+ resolution: {integrity: sha512-aYPp12wE9IrakccGWoQU/waZuWr3FLw9RtagsqJmX9NKHpQOVzoDvHA1W0amwyTQSAfL98Bn5rWmD7KTdr5AWg==}peerDependencies:+ '@tanstack/react-query': ^5.80.3+ '@trpc/client': 11.4.3+ '@trpc/server': 11.4.3+ react: '>=18.2.0'+ react-dom: '>=18.2.0'typescript: '>=5.7.2'+ '@ts-morph/[email protected]':+ resolution: {integrity: sha512-Unz/WHmd4pGax91rdIKWi51wnVUW11QttMEPpBiBgIewnc9UQIX7UDLxr5vRlqeByXCwhkF6VabSsI0raWcyAQ==}+'@tsconfig/[email protected]':resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==}@@ -4964,8 +6401,8 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-SQFof9H+LXeWNz8wDe7oN5zu7ket0qwMu5vZubW4GCJ8Kkeh6nBWUz87+KTz/G3Kqsrp0j/W253XJb3KMEeg3w==}- '@types/[email protected]':- resolution: {integrity: sha512-d9ZCmrH3CJ2uYKXQIUuZ/pUnTqIvLDS0SK7pFmbx8ma+ziH/FRMoAq5bYpRG7y+w1gl+HgyNZbtqgMq4W4e2Lg==}+ '@types/[email protected]':+ resolution: {integrity: sha512-l/BYs/JYt+cXA/0+wUhulYJB6a6p//GTPiJ7nV+QHa8iiId4HZmnu/3J/SowP5g0rTiERY2kfGKXEK5Ehltx4Q==}'@types/[email protected]':resolution: {integrity: sha512-2in/lrHRNmDvHPgyormtEralhPcN3An1gLjJzj2Bw145VBxkQ75JEXW6CTdMAwShiHQcYsl2d10IjQSdJSJz4g==}@@ -4973,14 +6410,11 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-P63Zd/JUGq+PdrM1lv0Wv5SBYeA2+CORvbrXbngriYY0jzLUWfQMQQxOhjONEz/wlHOAxOdY7CY65rgQdTjq2w==}- '@types/[email protected]':- resolution: {integrity: sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==}-'@types/[email protected]':resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==}- '@types/[email protected]':- resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==}'@types/[email protected]':resolution: {integrity: sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg==}@@ -4994,14 +6428,14 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==}- '@types/[email protected]':- resolution: {integrity: sha512-P2dlU/q51fkOc/Gfl3Ul9kicV7l+ra934qBFXCFhrZMOL6du1TM0pm1ThYvENukyOn5h9v+yMJ9Fn5JK4QozrQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==}- '@types/[email protected]':- resolution: {integrity: sha512-gkK1VVTr5iNiYJ7vWDI+yUFFlszhNMtVeneJ6lUTKPjprsvLLI9/tgEGiXJOnlINJA8FyA88gfnQsHbybVZrYQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==}- '@types/[email protected]':- resolution: {integrity: sha512-5KKk5aKGu2I+O6SONMYSNflgiP0WfZIQvVUMan50wHsLG1G94JlxEVnCpQARfTtzytuY0p/9PXXZb3I7giofIA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==}'@types/[email protected]':resolution: {integrity: sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==}@@ -5012,6 +6446,12 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-tOSCru6s732pofZ+sMv9o4o3Zc+Sa8l3bxd/tweTQudFn06vAzb13ZX46Zi6m6EJ+RUbRTHvgQJ1gBtSgkaUYA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-o7pAVq9UQPJL5RDjO1f/fcpfFHdgiMnR4PoIU2N/ZQrYOS3C5rzdOJMsrpqeBCbii2EE9mERXgqspQqPDdPahw==}+'@types/[email protected]':resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==}@@ -5021,6 +6461,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-GNBWlGBMjiiiL5TSkvPtOteuXsiVitw5MYGY1UYlrAq0SKyczsls6sCD7TZ8fsjRsvCVxml7EbyjJezPb3DrSA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==}+'@types/[email protected]':resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==}@@ -5048,6 +6491,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-RRVJ+J3J+WmyOTqnz3PiBLA501eKwXl2noseKOrNo/6+XEHjTAxO4xHvxQB6QuNm+s4WRbn6rSiap8+EA+ykFQ==}+'@types/[email protected]':resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==}@@ -5072,6 +6518,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-AuHIyzR5Hea7ij0P9q7vx7xu4z0C28ucwjAZC0ja7JhINyCnOw8/DnvAPQQ9TfOlCtZAmCERKQX9+o1mgQhuOQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==}+'@types/[email protected]':resolution: {integrity: sha512-DSLCOXhkvfS5WNNPbfn2KdICAmk8lLc+/PNvnPnF7gOdMZCxopXduqv0OQ13y/yA/zXTSikZZqVgybUxOEg6YQ==}@@ -5090,6 +6539,12 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-WytNrFSgWO/esSH9NbpWUfTMGQwCGIKfCmNlmFDNiI5gGhgMmEA+V1AEvKLeBNvvtBnailJtkrEa2OIISwrVAA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==}+'@types/[email protected]':resolution: {integrity: sha512-TaAUE5rq2VQYxab5Ts7WZhKNmuN78Q6PiFonTDdpbx8a1H0M1vhy3rhiMjl+e2iHmogyMw7jZF4FrE6eJUy5HQ==}@@ -5107,12 +6562,23 @@ packages:peerDependencies:'@types/react': ^19.0.0+ '@types/[email protected]':+ resolution: {integrity: sha512-4hOiT/dwO8Ko0gV1m/TJZYk3y0KBnY9vzDh7W+DH17b2HFSOGgdj33dhihPeuy3l0q23+4e+hoXHV6hCC4dCXw==}+ peerDependencies:+ '@types/react': ^19.0.0+'@types/[email protected]':resolution: {integrity: sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==}'@types/[email protected]':resolution: {integrity: sha512-UaicktuQI+9UKyA4njtDOGBD/67t8YEBt2xdfqu8+gP9hqPUPsiXlNPcpS2gVdjmis5GKPG3fCxbQLVgxsQZ8w==}+ '@types/[email protected]':+ resolution: {integrity: sha512-JeG0rEWak0N6Itr6QUx+X60uQmN+5t3j9r/OVDtWzFXKaj6kD1BwJzOksD0FF6iWxZlbE1kB0q9vtnU2ekqa1Q==}++ '@types/[email protected]':+ resolution: {integrity: sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g==}+'@types/[email protected]':resolution: {integrity: sha512-HuihY1+Vss5RS9ZHzRyTGIzwPTdrJBkCm/mAeLRYrOQu/MGqyezKXWOK1VhCnR+SDbp9G2mRUP+OVEqCrzpcfA==}@@ -5125,6 +6591,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-UE7oxhQLLd9gub6JKIAhDq06T0F6FnztwMNRvYgjeQSBeMc1ZG/tA47EwfduvkuQS8apbkM/lpLpWsaCeYsXVg==}+ '@types/[email protected]':+ resolution: {integrity: sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA==}+'@types/[email protected]':resolution: {integrity: sha512-KHPsfX/FoVbUGbyYvk1q9MMQHLPeRZhRJZdO45Q4YjvFkv4hMNghCWTvy7rdKessBsmtz4euWCWAB6/tVpI1Iw==}@@ -5137,11 +6606,17 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-95Sfz4nvMAb0Nl9DTxN3j64adfwfbBPEYq14VN7zT5J5O2M9V6iZMIIQU1U+pJyl9agHYHNCqhCXgyEtIRRa5A==}+ '@types/[email protected]':+ resolution: {integrity: sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==}+'@types/[email protected]':resolution: {integrity: sha512-zC0iXxAv1C1ERURduJueYzkzZ2zaGyc+P2c95hgkikHPr3z8EdUZOlgEQ5X0DRmwDZn+hekycQnoeiiRVrmilQ==}- '@types/[email protected]':- resolution: {integrity: sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}'@types/[email protected]':resolution: {integrity: sha512-HUgHujPhKuNzgNXBRZKYexwoG+gHKU+tnfPqjWXFghZAnn73JElicMkuSKJyLGr9JgyA8IgK7fj88IyA9rwYeQ==}@@ -5149,12 +6624,15 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-nH45Lk7oPIJ1RVOF6JgFI6Dy0QpHEzq4QecZhvguxYPDwT8c93prCMqAtiIttm39voZ+DDR+qkNnMpJmMBRqag==}- '@types/[email protected]':- resolution: {integrity: sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==}'@ungap/[email protected]':resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}+ '@ungap/[email protected]':+ resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}+'@unhead/[email protected]':resolution: {integrity: sha512-0zWykKAaJdm+/Y7yi/Yds20PrUK7XabLe9c3IRcjnwYmSWY6z0Cr19VIs3ozCj8P+GhR+/TI2mwtGlueCEYouA==}@@ -5298,6 +6776,10 @@ packages:resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==}engines: {node: '>= 0.6'}+ resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==}peerDependencies:@@ -5322,8 +6804,8 @@ packages:engines: {node: '>=0.4.0'}hasBin: true- resolution: {integrity: sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==}+ resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}engines: {node: '>=0.4.0'}hasBin: true@@ -5360,9 +6842,6 @@ packages:resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}- resolution: {integrity: sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==}-resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==}@@ -5419,6 +6898,10 @@ packages:resolution: {integrity: sha512-y+CcFFwelSXpLZk/7fMB2mUbGtX9lKycf1MWJ7CaTIERyitVlyQx6C+sxcROU2BAJ24OiZyK+8wj2i8AlBoS3A==}engines: {node: '>=10'}+ resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}engines: {node: '>= 0.4'}@@ -5441,6 +6924,10 @@ packages:resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==}engines: {node: '>=4'}+ resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==}hasBin: true@@ -5465,6 +6952,10 @@ packages:resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==}+ engines: {node: '>=10', npm: '>=6'}+resolution: {integrity: sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==}hasBin: true@@ -5514,9 +7005,16 @@ packages:resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}+ resolution: {integrity: sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==}+resolution: {integrity: sha512-BF033y5fN6OCofD3vgHmNtwZWRcq9NLyyxyILx9hfMy1sXYy4ojFl765hJ2lP0YaN2fuxPaLO2Vzzoxy0FLFFA==}+ resolution: {integrity: sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}@@ -5527,12 +7025,15 @@ packages:resolution: {integrity: sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw==}engines: {node: '>=18'}- resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}+ resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==}resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==}+ resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==}+resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==}engines: {node: '>=8'}@@ -5549,8 +7050,8 @@ packages:engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}hasBin: true- resolution: {integrity: sha512-PJ8gYKeS5e/whHBh8xrwYK+dAvEj7JXtz6uTucnMRB8OiGTsKccFekoRrjajPBHV8oOY+2tI4uxeceSimKwMFA==}+ resolution: {integrity: sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==}engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}hasBin: true@@ -5563,6 +7064,9 @@ packages:resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}+ resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==}+resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==}engines: {node: '>=6.14.2'}@@ -5576,10 +7080,8 @@ packages:resolution: {integrity: sha512-2dNB+dBwAcFW7RSd4y5vKycRjouKVklSwPk4EjBKWvcMYUBOqZGGNzV7+b2tfKBG3BeRXnozbnegVKR1azuATg==}- resolution: {integrity: sha512-uAOTaZSPuYsWIXRpj7o56Let0g/wjihKCkeRqUBhlLVM/Bt+Fj9xTo+LhC1OV1XDaGkz4hNC80et5xgy+9KTHQ==}- peerDependencies:- '@types/react': ^19+ resolution: {integrity: sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==}resolution: {integrity: sha512-jwzPOChofl67PSTW2SGubV9HBQAhhR2i6nskiOThauo9dzwDUgOWQScFVaJkjEfYX+UXiD+LEx8EblQMc2wIag==}@@ -5599,8 +7101,17 @@ packages:resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}engines: {node: '>=8'}- resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==}+ resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}+ engines: {node: '>=6'}resolution: {integrity: sha512-+MbKztAYHXPr1jNTSKQF52VpcFjwY5RkR7fxksV8Doo4KAYc5Fl4UJRgthBbTmEx8C54DqahhbLJkDwjI3PI/w==}@@ -5609,12 +7120,12 @@ packages:resolution: {integrity: sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==}engines: {node: '>=16'}- resolution: {integrity: sha512-CmeR2VBycfa+5/jOfnp/NpWPGd06nf1XYiefUvhXFfZE4GkRc9jv+eGPS4nT558WS/8lYCzV8SlANCIPvbWP1g==}-resolution: {integrity: sha512-cOuvmUVtKrtEaoKiO0rSc29jcjwMwX5tOHDy4MgVFEWiUXj4uBMJkwI8MDySkgXidpMiHUcviogAvFi4pA2hDQ==}+ resolution: {integrity: sha512-VQAUIUzBiZ/UnlM28fSp2CRF3ivUn1BWEvxMcVTNwpw91Py1pGbPIyIKtd+tzct9C3ouceCVdGAXxZOpZAsgdw==}+resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}@@ -5634,6 +7145,10 @@ packages:resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}+ resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==}+ engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}+resolution: {integrity: sha512-2AZp7uJZbYEzRPsFoa+ijKdvp9zsrnnt6+yFokfwEpeJm0xuJDVoxiRCAaTzyJND8GJkofo2IcKWaUZ/OECVzw==}@@ -5704,14 +7219,30 @@ packages:resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==}engines: {node: '>=8'}+ resolution: {integrity: sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==}engines: {node: '>=6'}+ resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==}engines: {node: '>= 10'}+ resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==}+ engines: {node: '>= 12'}+resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}@@ -5741,9 +7272,18 @@ packages:react: ^18 || ^19 || ^19.0.0-rcreact-dom: ^18 || ^19 || ^19.0.0-rc+ resolution: {integrity: sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==}+ peerDependencies:+ react: ^18 || ^19 || ^19.0.0-rc+ react-dom: ^18 || ^19 || ^19.0.0-rc+resolution: {integrity: sha512-WHr7X4o1ym94GZ96h7b1pNemZJacbOzd02dZtnVwuC4oWBaLg96PBmp2rIS1SAhUDhhC/QyS9WEqkpZIs/ZBTg==}+ resolution: {integrity: sha512-q4dMFMlXtKR3XNBHyMHt/3pwYNA69EDk00lloMOaaUMKPUXBw6lpXtbu3MMVG6/uOihGnRDOlkyqsONEUj60+w==}+resolution: {integrity: sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw==}@@ -5778,9 +7318,9 @@ packages:resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}engines: {node: '>=14'}- resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}- engines: {node: '>=16'}+ resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==}+ engines: {node: '>=18'}resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}@@ -5810,12 +7350,27 @@ packages:resolution: {integrity: sha512-eS0N9WwmjTqrOmR3o83F5vW8Z+9R1HnVz3xmzT2PMFug9ly+Au/fxRWlEBSb6LcZwspSsEn9Xs1uw9YgzAg1EQ==}+ resolution: {integrity: sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==}+resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}resolution: {integrity: sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==}+ resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==}+ engines: {node: '>=6.6.0'}+resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==}engines: {node: '>= 0.6'}@@ -5843,6 +7398,19 @@ packages:resolution: {integrity: sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==}engines: {node: '>= 0.10'}+ resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==}+ engines: {node: '>=14'}+ peerDependencies:+ typescript: '>=4.9.5'+ peerDependenciesMeta:+ typescript:+ optional: true+resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==}@@ -5949,8 +7517,11 @@ packages:resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==}engines: {node: '>=0.11'}- resolution: {integrity: sha512-xRetU6gL1VJbs85Mc4FoEGSjQxzpdxRyFhe3lmWFyy2EzydIcD4xzUvRJMD+NPDfMwKNhxa3PvsIOU32luIWeA==}+ resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==}++ resolution: {integrity: sha512-Xks6RUDLZFdz8LIdR6q0MTH44k7FikOmnh5xkSjMig6ch45afc8sjTjRQf3P6ax8dMgcQrYO/AR2RGWURrruqw==}engines: {node: '>=18'}@@ -5980,12 +7551,24 @@ packages:supports-color:optional: true+ resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==}+ engines: {node: '>=6.0'}+ peerDependencies:+ supports-color: '*'+ peerDependenciesMeta:+ supports-color:+ optional: true+resolution: {integrity: sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==}resolution: {integrity: sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==}+ resolution: {integrity: sha512-c6fcElNV6ShtZXmsgNgFFV5tVX2PaV4g+MOAkb8eXHvn6sryJBrZa9r0zV6+dtTyoCKxtDy5tyQ5ZwQuidtd+Q==}+resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}engines: {node: '>=10'}@@ -6004,10 +7587,6 @@ packages:resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==}- resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==}- engines: {node: '>= 0.4'}-resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==}@@ -6023,6 +7602,10 @@ packages:resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}engines: {node: '>=0.4.0'}+ resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}+ engines: {node: '>= 0.8'}+resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}engines: {node: '>=6'}@@ -6095,8 +7678,8 @@ packages:resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==}engines: {node: '>= 4'}- resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==}+ resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==}resolution: {integrity: sha512-HnM6ZlFqcajLsyudHq7LeeLDr2rFAVYtDv/hV5qchQEidSck8j9OPUsXY9KwJv/lHMtYlX4DjRQqwFYa+0r8Ug==}@@ -6209,6 +7792,10 @@ packages:resolution: {integrity: sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==}engines: {node: '>=4'}+ resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}+ engines: {node: '>= 0.4'}+resolution: {integrity: sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw==}@@ -6226,8 +7813,11 @@ packages:engines: {node: '>=14'}hasBin: true- resolution: {integrity: sha512-naiMx1Z6Nb2TxPU6fiFrUrDTjyPMLdTtaOd2oLmG8zVSg2hCWGkhPyxwk+qRmZ1ytwVqUv0u7ZcDA5+ALhaUtw==}+ resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}++ resolution: {integrity: sha512-wObbz/ar3Bc6e4X5vf0iO8xTN8YAjN/tgiAOJLr7yjYFtP9wAjq8Mb5h0yn6kResir+VYx2DXBj9NNobs0ETSA==}resolution: {integrity: sha512-IXEuxU+5ClW2IGEYFC2T7szbyVgehupCWQe5GNh+H065CD6U6IFN0s4KeAMFGNmQolRU4IV7zGBWSYMmZ8uuqQ==}@@ -6244,30 +7834,56 @@ packages:resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}+ resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==}+ engines: {node: '>= 0.8'}+resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==}resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==}+ resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==}+resolution: {integrity: sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==}engines: {node: '>=10.0.0'}- resolution: {integrity: sha512-gmNvsYi9C8iErnZdVcJnvCpSKbWTt1E8+JZo8b+daLninywUWi5NQ5STSHZ9rFjFO7imNcvb8Pc5pe/wMR5xEw==}+ resolution: {integrity: sha512-ZCkIjSYNDyGn0R6ewHDtXgns/Zre/NT6Agvq1/WobF7JXgFff4SeDroKiCO3fNJreU9YG429Sc81o4w5ok/W5g==}engines: {node: '>=10.2.0'}resolution: {integrity: sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==}engines: {node: '>=10.13.0'}+ resolution: {integrity: sha512-6Jw4sE1maoRJo3q8MsSIn2onJFbLTOjY9hlx4DZXmOKvLRd1Ok2kXmAGXaafL2+ijsJZ1ClYbl/pmqr9+k4iUQ==}+ engines: {node: '>=10.13.0'}+resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}engines: {node: '>=0.12'}- resolution: {integrity: sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==}+ resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}++ resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}++ resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}+ engines: {node: '>= 0.4'}resolution: {integrity: sha512-4CyanoAudUSBAn5K13H4JhsMH6L9ZP7XbLVe/dKybkxMO7eDyLsT8UHl9TRNrU2Gr9nz+FovfSIjuXWJ81uVwQ==}@@ -6295,13 +7911,13 @@ packages:engines: {node: '>=12'}hasBin: true- resolution: {integrity: sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==}+ resolution: {integrity: sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==}engines: {node: '>=18'}hasBin: true- resolution: {integrity: sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==}+ resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==}engines: {node: '>=18'}hasBin: true@@ -6313,6 +7929,9 @@ packages:resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}engines: {node: '>=6'}+ resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==}+resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}engines: {node: '>=0.8.0'}@@ -6382,6 +8001,10 @@ packages:resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==}engines: {node: '>=6'}@@ -6396,14 +8019,36 @@ packages:resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}engines: {node: '>=0.8.x'}+ resolution: {integrity: sha512-6RxOBZ/cYgd8usLwsEl+EC09Au/9BcmCKYF2/xbml6DNczf7nv0MQb+7BA2F+li6//I+28VNlQR37XfQtcAJuA==}+ engines: {node: '>=18.0.0'}++ resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==}+ engines: {node: '>=18.0.0'}+resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}engines: {node: '>=10'}+ resolution: {integrity: sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==}+ engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0}+resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==}engines: {node: '>=6'}+ resolution: {integrity: sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==}+ engines: {node: '>= 16'}+ peerDependencies:+ express: ^4.11 || 5 || ^5.0.0-beta.1++ resolution: {integrity: sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==}+ engines: {node: '>= 18'}+resolution: {integrity: sha512-aLZiZaqorRtNExtGpUjK9zFH9aTpWeoTXMyLo4b4IcuXfPqtLPPxhRm/QlPb8QqIcMMXnSiGRHSFpQfX0m7HJw==}@@ -6460,14 +8105,6 @@ packages:picomatch:optional: true- resolution: {integrity: sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==}- peerDependencies:- picomatch: ^3 || ^4- peerDependenciesMeta:- picomatch:- optional: true-resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==}peerDependencies:@@ -6495,10 +8132,6 @@ packages:resolution: {integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==}- resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==}- engines: {node: '>=8'}-resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}engines: {node: '>=8'}@@ -6510,6 +8143,13 @@ packages:resolution: {integrity: sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==}+resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}engines: {node: '>=10'}@@ -6518,8 +8158,8 @@ packages:resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}engines: {node: '>=16'}- resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==}+ resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==}resolution: {integrity: sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ==}@@ -6535,6 +8175,10 @@ packages:resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==}engines: {node: '>=14'}+ resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}+ engines: {node: '>=14'}+resolution: {integrity: sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==}engines: {node: '>= 0.12'}@@ -6550,6 +8194,14 @@ packages:resolution: {integrity: sha512-alTFZZQDKMporBH77856pXgzhEzaUVmLCDk+egLgIgHst3Tpndzz8MnKe+GzRJRfvVdn69HhpW7cmXzvtLvJAw==}+ resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}+ engines: {node: '>= 0.8'}+resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}@@ -6557,6 +8209,10 @@ packages:resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==}engines: {node: '>=12'}+ resolution: {integrity: sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==}+ engines: {node: '>=14.14'}+resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==}engines: {node: '>=6 <7 || >=8'}@@ -6597,13 +8253,22 @@ packages:resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==}engines: {node: '>=18'}- resolution: {integrity: sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==}+ resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}+ engines: {node: '>= 0.4'}resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}engines: {node: '>=6'}+ resolution: {integrity: sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==}+ engines: {node: '>=14.16'}++ resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}+ engines: {node: '>= 0.4'}+resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}engines: {node: '>=10'}@@ -6628,15 +8293,15 @@ packages:resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}- resolution: {integrity: sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==}- engines: {node: '>=16 || 14 >=14.17'}- hasBin: true-resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==}hasBin: true+ resolution: {integrity: sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==}+ engines: {node: 20 || >=22}+ hasBin: true+resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==}deprecated: Glob versions prior to v9 are no longer supported@@ -6673,8 +8338,9 @@ packages:resolution: {integrity: sha512-yLoYtp4zE+8OQA74oBEbNkbzI6c95W01JSL7RqC8XERKpRvj3ytZp1dgnbA6G9aRsc8pZB25xWYBcCmrbYOEhA==}engines: {node: '>=14'}- resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}+ resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}+ engines: {node: '>= 0.4'}resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}@@ -6683,6 +8349,10 @@ packages:resolution: {integrity: sha512-rEDCuqUQ4tbD78TpzsMtt5OIf0cBCSDWSJtUDaF6JsAh+k0v9r++NzxNEG87oDZx9ZwGhD8DaezR2L/yrw0Jdw==}engines: {node: '>=10'}+ resolution: {integrity: sha512-mS1lbMsxgQj6hge1XZ6p7GPhbrtFwUFYi3wRzXAC/FmYnyXMTvvI3td3rjmQ2u8ewXueaSvRPWaEcgVVOT9Jnw==}+ engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0}+resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==}engines: {node: '>=6.0'}@@ -6710,21 +8380,10 @@ packages:resolution: {integrity: sha512-14qdBKoonU99XDhWcFKZTShK+QV47qU97u8zzoVo9cL5TZ3BmBHXogItSt9qJjR0KUMFRhcCW8uGIGl8nkl7Aw==}- resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==}-- resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==}- engines: {node: '>= 0.4'}-- resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==}+ resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==}- engines: {node: '>= 0.4.0'}-resolution: {integrity: sha512-FwO1BUVWkyHasWDW4S8o0ssQXjvyghLV2rfVhnN36b2bbcj45eGiuzdn9XOvOpjV3TKQD7Gm2BWNXdE9V4KKYg==}engines: {node: '>=12'}@@ -6781,8 +8440,8 @@ packages:resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}- resolution: {integrity: sha512-1ngXYb+V9UT5h+PxNRa1O1FYguZK/XL+gkeqvp7EdHlB9oHUG0eYRo/vY5inBdcqo3RkPMC58/H94HvkbfGdyg==}+ resolution: {integrity: sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==}resolution: {integrity: sha512-FiCRI7NmOvM4y+f5w32jPRzcxDIz+PUqDwEqn1A+1q2cdp3B8Gx7aVrXORdOKjMNDQsD1ogOr896+0jJHW1EFQ==}@@ -6814,6 +8473,9 @@ packages:resolution: {integrity: sha512-i0q9mkOeSuhXw6bGgiQCCBgY/jlZuV/7dZXyZ9c6LcBrqwvT8eT719E9uxE5LiZftdl+z81Ugbg/VvXV4OJOeQ==}+ resolution: {integrity: sha512-IScLbePpkvO846sIwOtOTDjutRMWdXdJmXdMvk6gCBHxFO8d+QKOQedyZSxFTTFYRSmlgSTDtXqqq4pcenBXLQ==}+resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==}@@ -6843,6 +8505,10 @@ packages:resolution: {integrity: sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==}+ resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==}+ engines: {node: '>= 0.8'}+resolution: {integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==}engines: {node: '>= 6'}@@ -6855,6 +8521,10 @@ packages:resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}engines: {node: '>= 6'}+ resolution: {integrity: sha512-ONsE3+yfZF2caH5+bJlcddtWqNI3Gvs5A38+ngvljxaBiRXRswym2c7yf8UAeFpRFKjFNHIFEHqR/OLAWJzyiA==}+ engines: {node: '>= 14'}+resolution: {integrity: sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==}engines: {node: '>= 14'}@@ -6863,6 +8533,10 @@ packages:resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}engines: {node: '>=10.17.0'}+ resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==}+ engines: {node: '>=14.18.0'}+resolution: {integrity: sha512-06r/TitrM88Mg5FdUXAKL96dJMzgqLE5dv3ryBAra4KCwD9mJ4ndOTS95ZuymIGoE+2hzfdaMak2X11/es7ZWg==}@@ -6880,10 +8554,14 @@ packages:resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}- resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==}+ resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}engines: {node: '>= 4'}+ resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-yAgSE7GmtRcu4ZUSFX/4v69UGXwugFFSdIQJ14LHPOPPQrWv8Y7O9PHsw8Ovk7bKCLe4sjXMbZFqGFcLHpZ89w==}@@ -6928,6 +8606,10 @@ packages:resolution: {integrity: sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==}+ resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}+ engines: {node: '>= 0.10'}+resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==}@@ -6937,6 +8619,9 @@ packages:resolution: {integrity: sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==}+ resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}+resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==}@@ -6948,11 +8633,8 @@ packages:resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==}engines: {node: '>=4'}- resolution: {integrity: sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==}-- resolution: {integrity: sha512-urTSINYfAYgcbLb0yDQ6egFm6h3Mo1DcF9EkyXSRjjzdHbsulg01qhwWuXdOoUBuTkbQ80KDboXa0vFJ+BDH+g==}+ resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==}engines: {node: '>= 0.4'}@@ -6991,6 +8673,10 @@ packages:resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==}engines: {node: '>=8'}+ resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-EdOZCr0NsGE00Pot+x1ZFx9MJK3C6wy91geZpXwvwexDLJvA4nzYyZf7r+EIwSeVsOLDdBz7ATg9NqKTzuNYuQ==}engines: {node: '>= 4'}@@ -6998,6 +8684,9 @@ packages:resolution: {integrity: sha512-+5A1e/WJpLLXZEDlgz4G//WYSHyQBD32qa4Jd3Lw06qQlv3fJHnp3YIHjTQSGzHMgzmVKz2ZP3rBxTHkPw/lxA==}+ resolution: {integrity: sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==}+resolution: {integrity: sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==}engines: {node: '>=0.10.0'}@@ -7022,22 +8711,41 @@ packages:resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}engines: {node: '>=12'}+ resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}+resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==}+ resolution: {integrity: sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}engines: {node: '>=8'}+ resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==}engines: {node: '>=10'}+ resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-GQYSJMgfeAmVwh9ixyk888l7OIhNAGKtY6QA+IrWlu9MDTCaXmeozOZ2S9Knj7bQwBO/H6J2kb+pbyTUiMNbsw==}- resolution: {integrity: sha512-uKua1wfy3Yt+YqsD6mTUEa2zSi3G1oPlqTflgaPJ7z63vUGN5pxFpnQfeSLMFnJDEsdvOtkp1rUWkYjB4YfhgA==}+ resolution: {integrity: sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==}engines: {node: '>=12.13'}@@ -7058,13 +8766,13 @@ packages:resolution: {integrity: sha512-hJnEP2Xk4+44DDwJqUQGdXal5VbyeWLaPyDl2AQc242Zr7iqz4DgpQOrEzglWVMGHMDCkguLHEKxd1+rOsmgSQ==}engines: {node: '>=4'}- resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==}- engines: {node: '>=14'}-resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==}+ resolution: {integrity: sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==}+ engines: {node: 20 || >=22}+resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}engines: {node: '>= 10.13.0'}@@ -7077,8 +8785,8 @@ packages:resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==}hasBin: true- resolution: {integrity: sha512-6ScbIk2WWCeXkmzF6bRPmEuaqy1m8SbsRFMa/FLrSCkGIhj8OLVG/IH+XHVmNMx/KUo8cVWEE6oKR4dJ+S0Rkg==}+ resolution: {integrity: sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==}resolution: {integrity: sha512-WBBl6au1qg6OHj67yCffCgFR3BADJBXN8MdRvCgJDuMv3driV2nHr7jdGvaKX9IolosAsn+M0XRArqLXUhyJHQ==}@@ -7090,9 +8798,6 @@ packages:resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}engines: {node: '>=10'}- resolution: {integrity: sha512-3MEt5DTINKqfScXKfJFrRbxkrnk2AxPWGBL/ycjz4dK8iqiSJ06UxD8jh8xuh6p10TX4t2+7FsBYVxxQbMg+qA==}-resolution: {integrity: sha512-7rCnleh0z2CkXhH67J8K1Ytz0b2Y+yxTPL+/KOJoa20hfnVQ/3/T6W/KflYI4bRHRagNeXeU2bkNGI3v1oS/lw==}@@ -7198,7 +8903,10 @@ packages:resolution: {integrity: sha512-sorTJV6PNt94Wap27Sai5gtVLIea4Otb2LUiAUyr3p6BPOScGMKGt5F1b5X/XgkNtcsDKeX5qfeBDj+PdShclQ==}- cpu: [x64, arm64, wasm32]+ os: [darwin, linux, win32]++ resolution: {integrity: sha512-5Bwoa/CqzgkTwySgqHA5TsaUDRrdLIbdM4egdPcaAnqO3aC+qAgS6BwdzuZwARA5digXwiskogZ8H7Yy4XfdOg==}os: [darwin, linux, win32]@@ -7281,6 +8989,11 @@ packages:resolution: {integrity: sha512-gFfVVnj6NRjxVfJKo3qoLtpi0v5mn3AcR4eKD45wrxQuxzveFJUb+7Cr6uV6n+DjO8X3p0UzPPquhGt0H/y+NA==}+ resolution: {integrity: sha512-liPHqaWMQ7rzZryQUDnbZ1Gclnnai3dIyaJ0nAgwZRXMzqbYrydrlCI0NDojRUbE5VYh5vu6hygEUZiH77nQkQ==}+ peerDependencies:+ react: ^16.8.0 || ^17 || ^18 || ^19+resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}@@ -7330,6 +9043,18 @@ packages:resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==}engines: {node: '>=10'}+ resolution: {integrity: sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==}@@ -7349,6 +9074,10 @@ packages:resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}+ resolution: {integrity: sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==}+ engines: {node: 20 || >=22}+resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}@@ -7365,6 +9094,11 @@ packages:peerDependencies:react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc+ resolution: {integrity: sha512-Tm1txJ2OkymCGkvwoHt33Y2JpN5xucVq1slHcgE6Lk0WjDfjgKWor5CdVER8U6DvcfMwh4M8XxmpTiyzfmfDYQ==}+ peerDependencies:+ react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0+resolution: {integrity: sha512-rh+Zjr6DNfUYR3bPwJEnuwDdqMbxZW7LOQfUN4B54+Cl+0o5zaU9RJ6bcidfDtC1cWCZXQ+nvX8bf6bAji37QQ==}engines: {node: '>=12'}@@ -7401,6 +9135,10 @@ packages:engines: {node: '>= 16'}hasBin: true+ resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}+ engines: {node: '>= 0.4'}+resolution: {integrity: sha512-OvAXqwq57uOk+WZqFFNCMZz8yDp8BD3WazW1wAKHUrPbbdr89K9DWS6JXY09vd9xNdPNeurI8DU/X4flcfaD8A==}peerDependencies:@@ -7421,8 +9159,8 @@ packages:resolution: {integrity: sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==}- resolution: {integrity: sha512-aJEUyzZ6TzlsX2s5B4Of7lN7EQtAxvtradMMglCQDyaTFgse6CmtmdJ15ElnVRlCg1vpNyVtbem0PWzlNieZsA==}+ resolution: {integrity: sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==}resolution: {integrity: sha512-LRqI9+wdgC25P0URIJY9vwocIzCcksduHQ9OF2joxQoyTNVduwLAFUzjoopuRJbJAReaKrNQKAZKL3uCMugWJA==}@@ -7448,8 +9186,8 @@ packages:resolution: {integrity: sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==}- resolution: {integrity: sha512-bfOjvNt+1AcbPLTFMFWY149nJz0OjmewJs3LQQ5pIyVGxP4CdOqNVJL6kTaM5c68p8q82Xv3nCyFfUnuEcH3UQ==}+ resolution: {integrity: sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==}resolution: {integrity: sha512-JfbYLAW7XnYTTbUsmpu0kdBUVe+yKVJZBItEjwyYJiDJuZ9w4eeaqks4HQO+R7objWgS2ymV60GYpI14Ug554w==}@@ -7469,6 +9207,9 @@ packages:resolution: {integrity: sha512-SR2VnIEdVNCJbP6y7kVTJgPLifdr8WEU440fQec7qHoHOUz/oJ2jmNRqdDQ3rbiStOXb2mCDGTuwsK5OPUgYlQ==}+ resolution: {integrity: sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==}+resolution: {integrity: sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==}@@ -7484,6 +9225,14 @@ packages:peerDependencies:esbuild: 0.*+ resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}@@ -7497,6 +9246,9 @@ packages:resolution: {integrity: sha512-CUQyKr1e///ZODyD1U3xit6zXwy1a8q2a1S1HKtIlmgvurrEpaw/Y9y6KSIbF8P59cn/NjzHyO+Q2fAyYLQrAA==}+ resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==}+resolution: {integrity: sha512-wjcXHgk+PPdmvR58Le9d7zQYWy+vKEU9Se44p2CrCDPiLr2FMyiT4Fyb5UFKFC66wGB3kPlgD7q3TnoqPS7SZA==}@@ -7545,12 +9297,18 @@ packages:resolution: {integrity: sha512-j9DGrQLm/Uhl2tCzcbLhy5kXsgkHUrjJHg4fFAeoMRwJmJerT9aw4FEhIbZStWN8A3qMwOp1uzHr4UL8AInxtA==}+ resolution: {integrity: sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==}+resolution: {integrity: sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w==}resolution: {integrity: sha512-RR3i96ohZGde//4WSe/dJsxOX6vxIg9TimLAS3i4EhBAFx8Sm5SmqVfR8E87DPSR31nEAjZfbt91OMZWcNgdZw==}+ resolution: {integrity: sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==}+resolution: {integrity: sha512-5E5I2pFzJyg2CtemqAbcyCktpHXuJbABnsb32wX2U8IQKhhVFBqkcZR5LRm1WVoFqa4kTueZK4abep7wdo9nrw==}@@ -7560,47 +9318,68 @@ packages:resolution: {integrity: sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==}+ resolution: {integrity: sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==}+resolution: {integrity: sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ==}resolution: {integrity: sha512-jY8CSxmpWLOxS+t8W+FG3Xigc0RDQA9bKMY/EwILvsesiRniiVMejYTE4wumNc2f4UbAa4WsHqe3J1QS1sli+A==}+ resolution: {integrity: sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==}+resolution: {integrity: sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ==}resolution: {integrity: sha512-28kbwaBjc5yAI1XadbdPYHX/eDnqaUFVikLwrO7FDnKG7lpgxnvk/XGRhX/PN0mOZ+dBSZ+LgunHS+6tYQAzhA==}+ resolution: {integrity: sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==}+resolution: {integrity: sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==}resolution: {integrity: sha512-KvOVV+X1yLBfs9dCBSopq/+G1PcgT3lAK07mC4BzXi5E7ahzMAF8oIupDDJ6mievI6F+lAATkbQQlQixJfT3aQ==}+ resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==}+resolution: {integrity: sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ==}resolution: {integrity: sha512-anK8SWmNphkXdaKgz5hJvGa7l00qmcaUQoMYsBwDlSKFKjc6gjGXPDw3FNL3Nbwq5L8gE+RCbGqTw49FK5Qyvg==}+ resolution: {integrity: sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==}+resolution: {integrity: sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw==}resolution: {integrity: sha512-S0ze2R9GH+fu41FA7pbSqNWObo/kzwf8rN/+IGlW/4tC6oACOs8B++bh+i9bVyNnwCcuksbFwsBme5OCKXCwIw==}+ resolution: {integrity: sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==}+resolution: {integrity: sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA==}resolution: {integrity: sha512-vZZio48k7ON0fVS3CUgFatWHoKbbLTK/rT7pzpJ4Bjp5JjkZeasRfrS9wsBdDJK2cJLHMckXZdzPSSr1B8a4oQ==}+ resolution: {integrity: sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==}+resolution: {integrity: sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw==}- resolution: {integrity: sha512-bmkNc7z8Wn6kgjZmVHOX3SowGmVdhYS7yBpMnuMnPzDq/6xwVA604DuOXMZTO1lvq01g+Adfa0pE2UKGlxL1XQ==}+ resolution: {integrity: sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==}resolution: {integrity: sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ==}@@ -7608,12 +9387,18 @@ packages:resolution: {integrity: sha512-r4Sc6leeUTn3P6gk20aFMj2ntPwn6qpDZqWvYmAG6NgvFTIlj4WtrAudLi65qYoaGdXYViXYw2pkmn7QnIFasA==}+ resolution: {integrity: sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==}+resolution: {integrity: sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==}resolution: {integrity: sha512-pS+ROfCXAGLWCOc8egcBvT0kf27GoWMqtdarNfDcjb6YLuV5cM3ioG45Ys2qOVqeqSbjaKg72vU+Wby3eddPsA==}+ resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==}+resolution: {integrity: sha512-Fk+xmBrOv9QZnEDguL9OI9/NQQp6Hz4FuQ4YmCb/5V7+9eAh1s6AYSvL20kHkD67YIg7EpE54TiSlcsf3vyZgA==}@@ -7623,11 +9408,14 @@ packages:resolution: {integrity: sha512-xNn4Pqkj2puRhKdKTm8t1YHC/BAjx6CEwRFXntTaRf/x16aqka6ouVoutm+QdkISTlT7e2zU7U4ZdlDLJd2Mcw==}+ resolution: {integrity: sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==}+resolution: {integrity: sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q==}- resolution: {integrity: sha512-2xhYT0sfo85FMrUPtHcPo2rrp1lwbDEEzpx7jiH2xXJLqBuy4H0GgXk5ToU8IEwoROtXuL8ND0ttVa4rNqYK3w==}+ resolution: {integrity: sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==}resolution: {integrity: sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA==}@@ -7635,35 +9423,44 @@ packages:resolution: {integrity: sha512-6KU6qO7DZ7GJkaCgwBNtplXCvGkJToU86ybBAUdavvgsCiG8lSSvYxr9MhwmQ+udpzywHsl4RpGJsYWG1pDOcA==}+ resolution: {integrity: sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==}+resolution: {integrity: sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==}resolution: {integrity: sha512-WhYv5UEcZrbAtlsnPuChHUAsu/iBPOVaEVsntLBIdpibO0ddy8OzavZz3iL2xVvBZOpolujSliP65Kq0/7KIYw==}+ resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==}+resolution: {integrity: sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A==}resolution: {integrity: sha512-jZNtiFl/1aY73yS3UGQkutD0UbhTt68qnRpw2Pifmz5wV9h8gOVsN70v+Lq/f1rKaU/W8pxRe8y8Q9FX1AOe1Q==}+ resolution: {integrity: sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==}+resolution: {integrity: sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==}- resolution: {integrity: sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==}+ resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==}resolution: {integrity: sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==}- resolution: {integrity: sha512-oNh6S2WMHWRZrmutsRmDDfkzKtxF+bc2VxLC9dvtrDIRFln627VsFP6fLMgTryGDljgLPjkrzQSDcPrjPyDJ5w==}+ resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==}resolution: {integrity: sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==}- resolution: {integrity: sha512-o/sd0nMof8kYff+TqcDx3VSrgBTcZpSvYcAHIfHhv5VAuNmisCxjhx6YmxS8PFEpb9z5WKWKPdzf0jM23ro3RQ==}+ resolution: {integrity: sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==}resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==}@@ -7677,21 +9474,45 @@ packages:resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}engines: {node: '>= 0.6'}+ resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}engines: {node: '>= 0.6'}+ resolution: {integrity: sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}engines: {node: '>=6'}+ resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}engines: {node: '>=10'}+ resolution: {integrity: sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==}+ engines: {node: 20 || >=22}+resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}+ resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==}engines: {node: '>=16 || 14 >=14.17'}@@ -7729,6 +9550,11 @@ packages:resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}hasBin: true+ resolution: {integrity: sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==}+ engines: {node: '>=10'}+ hasBin: true+resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==}engines: {node: '>=10'}@@ -7757,18 +9583,37 @@ packages:resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}+ resolution: {integrity: sha512-RCKM6IZseZQCWcSWlutdf590M8nVfRHG1ImwzOtwz8IYxgT4zhUO0rfTcTvDGiaFE0Rhcc+h43lcF3Jc9gFtwQ==}+ engines: {node: '>=18'}+ hasBin: true+ peerDependencies:+ typescript: '>= 4.8.x'+ peerDependenciesMeta:+ typescript:+ optional: true+resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==}resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==}+ resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==}+ engines: {node: ^18.17.0 || >=20.5.0}+resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}resolution: {integrity: sha512-xBkL9zzkNjzJ/UnmWyiOUDVX/COoi05eS0oU28RYKFFQhdnzO5dTOPbVZ/fCFgIOGr1zNinDHJ68mm/KQfcgcw==}+ resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==}+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}+ hasBin: true+resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==}engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}@@ -7792,10 +9637,17 @@ packages:resolution: {integrity: sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==}+ resolution: {integrity: sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==}+resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==}engines: {node: '>= 0.6'}+ resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}@@ -7853,8 +9705,35 @@ packages:react: '*'react-dom: '*'- resolution: {integrity: sha512-VwL+LAaPSxEkd3lU2xWbgEOtrM8oedmyhBqaVNmgKB+GvZlCy9rgaEc+y2on0wv+l0oSFqLtYD6dcC1eAedUaQ==}+ resolution: {integrity: sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==}+ peerDependencies:+ react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc+ react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc++ resolution: {integrity: sha512-8+dDV0xNLOgHlyBxP1GwHGVaNXsmp+2NhZEYrXr24GWLHtt27YrBPbPuHvzlhi7kZNYjeJNR93IF5zfFu5UL0g==}+ engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}+ hasBin: true+ peerDependencies:+ '@opentelemetry/api': ^1.1.0+ '@playwright/test': ^1.41.2+ babel-plugin-react-compiler: '*'+ react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0+ react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0+ sass: ^1.3.0+ peerDependenciesMeta:+ '@opentelemetry/api':+ optional: true+ '@playwright/test':+ optional: true+ babel-plugin-react-compiler:+ optional: true+ sass:+ optional: true++ resolution: {integrity: sha512-mHKd50C+mCjam/gcnwqL1T1vPx/XQNFlXqFIVdgQdVAFY9iIQtY0IfaVflEYzKiqjeA7B0cYYMaCrmAYFjs4rA==}engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}hasBin: truepeerDependencies:@@ -7884,8 +9763,8 @@ packages:resolution: {integrity: sha512-p7eGEiQil0YUV3ItH4/tBb781L5impVmmx2E9FRKF7d18XXzp4PGT2tdYMFY6wQqgxD0IwNZOiSJ0/K0fSi/OA==}engines: {node: '>=10'}- resolution: {integrity: sha512-SZ40vRiy/+wRTf21hxkkEjPJZpARzUMVcJoQse2EF8qkUWbbO2z7vd5oA/H6bVH6SZQ5STGcu0KRDS7biNRfxw==}+ resolution: {integrity: sha512-OhYaY5sDsIka7H7AtijtI9jwGYLyl29eQn/W623DiN/MIv5sUqc4g7BIDThX+gb7di9f6xK02nkp8sdfFWZLTg==}engines: {node: '>=10'}@@ -7946,6 +9825,10 @@ packages:resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}engines: {node: '>=8'}+ resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}@@ -7964,14 +9847,29 @@ packages:react-router-dom:optional: true+ resolution: {integrity: sha512-BgtlYpvRwLYiJuWzxt34q2bXu/AIS66sLU1QePIMr2LWkb+XH0vKXdbLSgn9t6p7QKzwI7f38rX3Wl9llTXQ8Q==}+ peerDependencies:+ '@remix-run/react': '>=2'+ next: '>=14.2.0'+ react: '>=18.2.0 || ^19.0.0-0'+ react-router: ^6 || ^7+ react-router-dom: ^6 || ^7+ peerDependenciesMeta:+ '@remix-run/react':+ optional: true+ next:+ optional: true+ react-router:+ optional: true+ react-router-dom:+ optional: true+resolution: {integrity: sha512-DSoj8QoChzOCQlJkRmYxAJCIpnXFW32R0Uq7avyghIeB6iJq0XAblOD7pcq3mx4WEBDwMuKr0Y1qveCBleG2Xw==}- resolution: {integrity: sha512-0h4FZjsntbKQ5IHGM9mFT7uOwQCRdcTG7YhC0xXlWIcCch24wUa6Vggaipa3Sw6Ab7nEnmO4rctROmyuHBfP7Q==}-- resolution: {integrity: sha512-txg/jZQwcbaF7PMJgY7aoxc9QuCxHVFMiEkDIJ60DwDz3PbtXPQnrzo+3X4IRYGChIwWLabRBRpf1k9hO9+xrQ==}+ resolution: {integrity: sha512-2bnHosmBLAQpXNBLOvaJMyMkr4Yya5ohE5Q9jqyxiN+aa7GFCzvDN1RRRMrp0NkfqRR2MTaQNkcSUCCjILD9oQ==}resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}@@ -7981,8 +9879,9 @@ packages:resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}engines: {node: '>= 6'}- resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==}+ resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}+ engines: {node: '>= 0.4'}resolution: {integrity: sha512-3ECr6K831I4xX/Mduxr9UC+HPOz/d6WKKYj9p4cmC8Lg8p7g8gitzsxNX5IWlSIgFWN/a4JgrJaoAMKn20oKwA==}@@ -8003,6 +9902,10 @@ packages:resolution: {integrity: sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==}+ resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}+ engines: {node: '>= 0.8'}+resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}@@ -8010,6 +9913,14 @@ packages:resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}engines: {node: '>=6'}+ resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-8Unqkvk1RYc6yq2WBYRj4hdnsAxVze8i7iPfQr8e4uSP3tRv0rpZcbGUDvxfQQcdwHt/e9PrMvGCsa8OqG9X3w==}@@ -8027,10 +9938,21 @@ packages:resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==}engines: {node: '>=10'}+ resolution: {integrity: sha512-ERAyNnZOfqM+Ao3RAvIXkYh5joP220yf59gVe2X/cI6SiCxIdi4c9HZKZD8R6q/RDXEje1THBju6iExiSsgJaQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==}+resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}engines: {node: '>=10'}@@ -8090,8 +10012,16 @@ packages:resolution: {integrity: sha512-eQE845L6ot89sk2N8liD8HAuH4ca6Vvr7VWAWwt7+kvvG5aBcPmmphQ68JsEG2qa9n1TykS2DLeMt363AAH8/w==}- resolution: {integrity: sha512-SWzvYcSJh4d/SGLIOQfZ/CoNv6BTlI6YEQ7Nj82oDVnRpwe/Z/F1EMx42x3JAOwGBlCjeCH0BRJQbQ/opHL17w==}+ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==}++ resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}+ engines: {node: '>=8'}resolution: {integrity: sha512-mhHgobPPua5kZ98EF4HWiH167JWBfl4pvAIXXdbaVohtK7a6YBOy56kvhCqduqyo/f3yrHFWmqmiMg/BkBkYYQ==}@@ -8109,6 +10039,10 @@ packages:resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==}+ resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==}+ engines: {node: '>= 0.8'}+resolution: {integrity: sha512-qjS4s8rBOJa2Xm0jmxXiyh1+OFf6ekCWOvUaRgAQSktzlTbMotS0nmG9gyYAybCWBcuP4fsBeRCKNwGBnMe2OQ==}@@ -8130,6 +10064,10 @@ packages:resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}engines: {node: '>=8'}+ resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}@@ -8137,6 +10075,17 @@ packages:resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}engines: {node: '>=16 || 14 >=14.18'}+ resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==}+ engines: {node: 20 || >=22}++ resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==}++ resolution: {integrity: sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==}+ engines: {node: '>=16'}+resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}engines: {node: '>=8'}@@ -8161,8 +10110,8 @@ packages:resolution: {integrity: sha512-BM/Thnrw5jm2kKLE5uJkXqqExRUY/toLHda65XgFTBTFYZyopbKjBe29Ii3RbkvlsMoFwD+tHeGaCjjv0gHlyw==}engines: {node: '>=4'}- resolution: {integrity: sha512-hTK/mE36i8fDDhgDFjy6xNOG+LCorxLG3WO17tku+ij6sVHXh1jQUJ8hYAnRhNla4QVD2H8er/FOjc/+EgC6yQ==}+ resolution: {integrity: sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ==}resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==}@@ -8193,6 +10142,10 @@ packages:resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}engines: {node: '>= 6'}+ resolution: {integrity: sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ==}+ engines: {node: '>=16.20.0'}+resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}@@ -8244,16 +10197,16 @@ packages:resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==}engines: {node: ^10 || ^12 || >=14}- resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==}+ resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}engines: {node: ^10 || ^12 || >=14}resolution: {integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==}engines: {node: '>=4'}- resolution: {integrity: sha512-6faShkdFugNQCLwucjPcY5ARoW1SlbnrZjmGl0IrrqewpvxvhSLHimCVzqeuULCbG0fQv7Dtk1yDbG3xv7Veog==}+ resolution: {integrity: sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==}engines: {node: '>=12'}@@ -8304,8 +10257,8 @@ packages:engines: {node: '>=10'}hasBin: true- resolution: {integrity: sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==}+ resolution: {integrity: sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==}engines: {node: '>=10'}hasBin: true@@ -8319,6 +10272,11 @@ packages:engines: {node: '>=14'}hasBin: true+ resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}+ engines: {node: '>=14'}+ hasBin: true+resolution: {integrity: sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==}@@ -8347,8 +10305,11 @@ packages:resolution: {integrity: sha512-gVNZ74nqhRMiIUYWGQdosYetaKc83x8oT41a0LlV3AAFCAZwCpg4vmGkq8t34+cUhp3cnM4XDiU/7xlgK7HGrg==}- resolution: {integrity: sha512-7D/qOz/+Y4X/rzSB6jKxKUsQnphO046ei8qxG59mtM3RG3DHgTK81HrxrmoDVINJb8NKT5ZsRbwHvQ6B68Iyhg==}+ resolution: {integrity: sha512-PgTgs/BlvHxOu8QuEN7wi5A0OmXaBcHpmCSTehcs6Uuu9IkDIEo13Hy7n898RHfrQ49vKCoGeWZSaAK01nwVig==}++ resolution: {integrity: sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==}resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==}@@ -8361,6 +10322,10 @@ packages:resolution: {integrity: sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==}+ engines: {node: '>= 0.10'}+resolution: {integrity: sha512-Rb5RVBy1iyqOtNl15Cw/llpeLH8bsb37gM1FUfKQ+Wck6xHlbAhWGUFiTRHtkjqGTA5pSHz6+0hrPW/oECihPQ==}engines: {node: '>= 14'}@@ -8368,20 +10333,30 @@ packages:resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==}+ resolution: {integrity: sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==}+resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==}- resolution: {integrity: sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==}+ resolution: {integrity: sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==}resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==}engines: {node: '>=6'}- resolution: {integrity: sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==}+ resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==}engines: {node: '>=0.6'}+ resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==}+resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}@@ -8394,6 +10369,14 @@ packages:resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==}+ resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==}+ engines: {node: '>= 0.8'}+resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}hasBin: true@@ -8409,13 +10392,13 @@ packages:peerDependencies:react: ^19.1.0- resolution: {integrity: sha512-XCXlfZLKv9gHd/ZwUEhCpRGc/FJLZGYczeuG1kVR/be2PlkwEB4gjX9ARBbRFv86ncbtpOu/wI6jD6kadRyAKw==}+ resolution: {integrity: sha512-Wppdxgio/QKNe3piccIhk6jvgiLwfOTAwud5t/NlWL8wepsirgXo09OyZCz62Qb9flFNBw+Hz5ahOkpk3JaizQ==}engines: {node: '>=18.0.0'}hasBin: true- resolution: {integrity: sha512-vpfuHuQMF/L6GpuQ4c3ZDo+pRYxIi40gQqsCmmfUBwm+oqvBhKhwghCuj2o00YCgSfU6bR9KC/xnQGWm3Gr08A==}+ resolution: {integrity: sha512-PUNzFwQeQ5oHiiTUO7GO/EJXGEtuun2Y1A59rLnZBBj+vNEOWt/3ERTiG1/zt7dVeJEM+4vDX/7XQ/qanuvPMg==}engines: {node: '>=18.0.0'}peerDependencies:react: ^16.8.0 || ^17 || ^18 || ^19@@ -8453,6 +10436,21 @@ packages:'@types/react':optional: true+ resolution: {integrity: sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-Ob+SmB5J1tXDEZyOe2Hf950K4M8VaWBBmQ3cS2BUnTORqHjhK0iKG8fB+bo47ZL15t8d3g/Y0roiqH05UBjG7A==}+ peerDependencies:+ react-dom: ^16.8.0 || ^17 || ^18 || ^19+resolution: {integrity: sha512-gnGKTpYwqL0Iii09gHobNolvX4Kiq4PKx6eWBCYYix+8cdw+cGo3do906l1NBPKkSWx1DghC1dlWG9L2uGd61Q==}peerDependencies:@@ -8481,8 +10479,8 @@ packages:react: '>= 18.0.0'react-dom: '>= 18.0.0'- resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==}+ resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}engines: {node: '>=0.10.0'}@@ -8501,9 +10499,17 @@ packages:resolution: {integrity: sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==}engines: {node: '>= 14.16.0'}+ resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==}+ engines: {node: '>= 14.18.0'}+resolution: {integrity: sha512-onYyVhBNr4CmAxFsKS7bz+uTLRakypIe4R+5A824vBSkQy/hB3fZepoVEf8OVAxzLvK+H/jm9TzpI3ETSm64Kg==}+ resolution: {integrity: sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==}+ engines: {node: '>= 4'}+resolution: {integrity: sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w==}@@ -8557,6 +10563,9 @@ packages:resolution: {integrity: sha512-i9It4YHR0Sf3GsnlR5jFUKXRr9oayvEk9GKQUkwZv6hs70OH9q3OCZrq9PpLvIGKt3W+JxBOxCidNVpH/6rWdA==}+ resolution: {integrity: sha512-WG7nfvmWWkCR++KEkZevZb/uw41E8TsH4DsY9UxsTbIXCVGbAs4S+r8FrQ+OtH5EEQAs+5UxKC42VinkmpA1Yw==}+resolution: {integrity: sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag==}@@ -8574,6 +10583,9 @@ packages:peerDependencies:'@types/react': '>=17'+ resolution: {integrity: sha512-vzo0YxYbB2HE+36+9HWXVdxNoNDubx63r5LBzpxBGVWM8s9mdnMdbmuJBAX6TTyuGdZjZix6qU3GcSuKCIWivw==}+resolution: {integrity: sha512-lqA4rGUf1JmacCNWWZx0Wv1dHqMwxzsDWYMTowuplHF3xH0N/MmrZ/G3BDZnzAkRmxDadujCjaKM2hqYdCBOGw==}@@ -8613,9 +10625,6 @@ packages:resolution: {integrity: sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw==}- resolution: {integrity: sha512-g/osARvjkBXb6Wo0XvAeXQohVta8i84ACbenPpoSsxTOQH/Ae0/RGP4WZgnMH5pMLpsj4FG7OHmcIcXxpza8eQ==}-resolution: {integrity: sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==}@@ -8644,14 +10653,21 @@ packages:resolution: {integrity: sha512-X34iHADNbNDfr6OTStIAHWSAvvKQRYgLO6duASaVf7J2VA3lvmNYboAHOuLC2huav1IwgZJtyEcJCKVzFxOSMQ==}engines: {node: '>=8.6.0'}+ resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==}+resolution: {integrity: sha512-EkCRfzKw9JX7N75L+0BC8oXohDBLhlhl4w7AgrkEW2TAsOMBsVcbQHPe8cRWP6Ea7KDhD158TsNjbCBcohed5A==}engines: {node: '>=18'}- resolution: {integrity: sha512-4OBHeusMVSl0vcba2J3AaGzdZ1SXAAhX/Wkcwobe16AHmlW9h3li8wG62Fhvlsc61e+wlQoxcwJZP6WrBTbghQ==}+ resolution: {integrity: sha512-D5T2I82FvEUYFlrHzaDvVtr5ADHdhuoLaXgLFGABKyNtQgPWIuz0Vp2L2Evx779qjK37aF4kcw1yXJDHhA2JnQ==}engines: {node: '>=18'}+ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}engines: {node: '>=8'}@@ -8659,18 +10675,27 @@ packages:resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}- resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==}+ resolution: {integrity: sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==}+ engines: {node: '>= 0.4'}hasBin: true- resolution: {integrity: sha512-QxrmX1DzraFIi9PxdG5VkRfRwIgjwyud+z/iBwfRRrVmHc+P9Q7u2lSSpQ6bjr2gy5lrqIiU9vb6iAeGf2400A==}+ resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==}hasBin: trueresolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==}engines: {node: '>=8'}+ resolution: {integrity: sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-gSfoiOEA0VPE6Tukkrr7I0RBdE0s7H1eFCDBk05l1KIQT1UIKNc5JZy6jdyW6eYH3aR3g5b3PuL77rq0hvwtAw==}@@ -8726,6 +10751,10 @@ packages:engines: {node: '>=18.0.0', npm: '>=8.0.0'}hasBin: true+ resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}+ engines: {node: '>= 18'}+resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==}engines: {node: '>=0.12.0'}@@ -8760,8 +10789,8 @@ packages:resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==}engines: {node: '>= 10.13.0'}- resolution: {integrity: sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g==}+ resolution: {integrity: sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ==}engines: {node: '>= 10.13.0'}@@ -8785,25 +10814,40 @@ packages:engines: {node: '>=10'}hasBin: true- resolution: {integrity: sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==}+ resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==}engines: {node: '>=10'}hasBin: true+ resolution: {integrity: sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==}+ engines: {node: '>= 18'}+resolution: {integrity: sha512-ENl7cYHaK/Ktwk5OTD+aDbQ3uC8IByu/6Bkg+HDv8Mm+XnBnppVNalcfJTNsp1ibstKh030/JKQQWglDvtKwEQ==}resolution: {integrity: sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==}- resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==}- engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==}+ engines: {node: '>= 18'}++ resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}++ resolution: {integrity: sha512-NzkUf58HI3AxcrdnmAgdN3oT0f2J5CyFKMi2exdVLtoRW+A5GxADxWqhWKRvBmdWoiPDuqYeb3ScZxhlS9aflA==}+ hasBin: trueresolution: {integrity: sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ resolution: {integrity: sha512-lszvBmB9QURERtyKT2bNmsgxXK0ShJrL/fvqlonCo7e6xBF8nT8xU6pW+PMIbLsz0RxQk3rgH9kd8UmvOzlMJg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}engines: {node: '>=8'}@@ -8824,8 +10868,21 @@ packages:resolution: {integrity: sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==}- resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==}+ resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}+ engines: {node: '>= 0.4'}resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}@@ -8899,6 +10956,12 @@ packages:react: ^18.0.0 || ^19.0.0 || ^19.0.0-rcreact-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ resolution: {integrity: sha512-YwbHQO6cSso3HBXlbCkgrgzDNIhws14r4MO87Ofy+cV2X7ES4pOoAK3+veSmVTvqNx1BWUxlhPmZzP00Crk2aQ==}+ peerDependencies:+ react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc+resolution: {integrity: sha512-aSbHV0DaBcr7u0PVHXzM6NbZNAtrr9sF6+Qfs9UUVG7Ll3jQ6hHi8F/xqIIcn2rvIVbr0v/2zyjSdwSV47AgLQ==}engines: {node: '>=12'}@@ -8914,6 +10977,10 @@ packages:resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}+ resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}engines: {node: '>=0.10.0'}@@ -8955,6 +11022,22 @@ packages:peerDependencies:'@astrojs/starlight': '>=0.32.0'+ resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==}@@ -8968,6 +11051,9 @@ packages:resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}engines: {node: '>=10.0.0'}+ resolution: {integrity: sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==}+resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}engines: {node: '>=8'}@@ -8986,8 +11072,12 @@ packages:resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}- resolution: {integrity: sha512-BP9nNHMhhfcMbiuQKCqMjhDP5yBCAxsPu4pHFFzJ6Alo9dZgY4VLDPutXqIjpRiMoKdp7Av85Gr73Q5uH9k7+g==}+ resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==}++ resolution: {integrity: sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==}+ engines: {node: '>=14.16'}resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}@@ -9001,10 +11091,18 @@ packages:resolution: {integrity: sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}engines: {node: '>=6'}+ resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==}engines: {node: '>=0.10.0'}@@ -9023,11 +11121,14 @@ packages:resolution: {integrity: sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==}+ resolution: {integrity: sha512-xQcBGDxJb6jjFCTzvQtfiPn6YvvP2O8U1MDIPNfJQlWMYfktPy+iGsHE7cssjs7y84d9fQaK4UF3RIJaAHSoYA==}+resolution: {integrity: sha512-HYNoHZa2GorYNyqiCaBgsxvcJIn7OHq6inEga+E6Ke3m5JkoqpQbnFssk4jwe+K7AhGa2fcha4wSOf1Kn01dMg==}- resolution: {integrity: sha512-xT47I/Eo0rwJmaXC4oilDGDWLohVhR6o/xAQcPQN8q6QBuZVL8qMYL85kLmST5cPjAorwvqIA4qXTRQoYHaL6g==}+ resolution: {integrity: sha512-G4qppLgKu/k6FwRpHiGiKPaPTFcG3g4wNVX/Qsfu+RqQM30E7Tyu/TEgxcL9PNLF5pdRLwQdE3YKKf+KF2Dzlw==}resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==}@@ -9042,6 +11143,9 @@ packages:babel-plugin-macros:optional: true+ resolution: {integrity: sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==}+resolution: {integrity: sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==}engines: {node: '>=8'}@@ -9054,6 +11158,10 @@ packages:resolution: {integrity: sha512-mJiVjfd2vokfDxsQPOwJ/PtanO87LhpYY88ubI5dUB1Ab58Txbyje3+jpm+/83R/fevaq/107NNhtYBLuoTrFg==}engines: {node: '>=10'}+ resolution: {integrity: sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==}+ engines: {node: '>=16'}+resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}engines: {node: '>=4'}@@ -9084,11 +11192,17 @@ packages:resolution: {integrity: sha512-0LXunzzAZzo0tEPxV3I297ffKZPlKDrjj7NXphC8V5ak9yHC5zRmxnOe2m/Rd/7ivsOMJe3JZ2JVocoDdQTRBA==}+ resolution: {integrity: sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g==}+resolution: {integrity: sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==}peerDependencies:tailwindcss: '>=3.0.0 || insiders'+ resolution: {integrity: sha512-2E9TBm6MDD/xKYe+dvJZAmg3yxIEDNRc0jwlNyDg/4Fil2QcSLjFKGVff0lAf1jjeaArlG/M75Ey/EYr/OJtBA==}+resolution: {integrity: sha512-kjeW8gjdxasbmFKpVGrGd5T4i40mV5J2Rasw48QARfYeQ8YS9x02ON9SFWax3Qf616rt4Cp3nVNIj6Hd1mP3og==}@@ -9096,9 +11210,16 @@ packages:resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}engines: {node: '>=6'}+ resolution: {integrity: sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==}+ resolution: {integrity: sha512-090nwYJDmlhwFwEW3QQl+vaNnxsO2yVsd45eTKRBzSzu+hlb1w2K9inVq5b0ngXuLVqQ4ApvsUHHnu/zQNkWAg==}+resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==}engines: {node: '>=6'}@@ -9111,8 +11232,8 @@ packages:resolution: {integrity: sha512-resvxdc6Mgb7YEThw6G6bExlXKkv6+YbuzGg9xuXxSgxJF7Ozs+o8Y9+2R3sArdWdW8nOokoQb1yrpFB0pQK2g==}engines: {node: '>=14'}- resolution: {integrity: sha512-RVCsMfuD0+cTt3EwX8hSl2Ks56EbFHWmhluwcqoPKtBnfjiT6olaq7PRIRfhyU8nnC2MrnDrBLfrD/RGE+cVXQ==}+ resolution: {integrity: sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw==}engines: {node: '>= 10.13.0'}peerDependencies:'@swc/core': '*'@@ -9127,8 +11248,8 @@ packages:uglify-js:optional: true- resolution: {integrity: sha512-B8wRRkmre4ERucLM/uXx4MOV5cbnOlVAqUst+1+iLKPI0dOgFO28f84ptoQt9HEI537PMzfYa/d+GEPKTRXmYA==}+ resolution: {integrity: sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg==}engines: {node: '>=10'}hasBin: true@@ -9158,10 +11279,6 @@ packages:resolution: {integrity: sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==}engines: {node: '>=12.0.0'}- resolution: {integrity: sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==}- engines: {node: '>=12.0.0'}-resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}engines: {node: '>=12.0.0'}@@ -9189,12 +11306,20 @@ packages:resolution: {integrity: sha512-rLdvwXZ39VOn1IxGL3V6ZstoTbwLRckQmn/U8ZDLuWwIXNpuZDhQ3AiRUlhTbOXFVE9C+dR51wM0CBDhk31VcA==}+ resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}+ engines: {node: '>=0.6'}+resolution: {integrity: sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==}resolution: {integrity: sha512-FkF7uBztiyjs2WxVt54akH3pFWDcu61RwHsdH2oB0KGailstKEB/xmgMHiE6mft4YCnZi88uM2RPWZVZrA5r1w==}+ resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}@@ -9214,9 +11339,15 @@ packages:resolution: {integrity: sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==}+ resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==}+resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}+ resolution: {integrity: sha512-Kg5u0mk19PIIe4islUI/HWRvm9bC1lHejK4S0oh1zaZ77TMZAEmQC0sHQYiu2RgCQFZKXz1fMVi/7nOOeirznA==}+resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==}hasBin: true@@ -9241,6 +11372,10 @@ packages:typescript:optional: true+ resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}@@ -9303,6 +11438,9 @@ packages:resolution: {integrity: sha512-vCJPoy8/3KkqY3W0cX2nrwhmtBQSZhEyrVgeJ4NlEXwGxu5vNRQDyV6se5VVAQMwfBsBJswlo87B7ai7Dr1MpQ==}hasBin: true+ resolution: {integrity: sha512-dd1Ht6/YQHcNbq0znIT6dG8uhO7Ce+VIIhZUhjsryXsMPJQz3bZg7Q2eNzLwipb25bRZslGb2myio5mScd1TFg==}+resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==}engines: {node: '>=10'}@@ -9319,6 +11457,10 @@ packages:resolution: {integrity: sha512-jXMwges/FVbFRe5lTMJZVEZCrO9kI9c8k0PA/z7nF3bo0JSCCLysvokFjNPIUK/itEMas10MQM+AiHoHt/T/XA==}engines: {node: '>=16'}+ resolution: {integrity: sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-OJabfkAg1WLZSqJAJ0Z6Sdt3utnbzr/jh+NAHoyWHJe8CMSy79Gm085094M9nvTPy22KzTVn5Zq5mbapCI/hPA==}@@ -9330,6 +11472,11 @@ packages:engines: {node: '>=14.17'}hasBin: true+ resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==}+ engines: {node: '>=14.17'}+ hasBin: true+resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}@@ -9356,6 +11503,9 @@ packages:resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==}+ resolution: {integrity: sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==}+resolution: {integrity: sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==}engines: {node: '>=14.0'}@@ -9372,9 +11522,6 @@ packages:resolution: {integrity: sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==}- resolution: {integrity: sha512-apMPnyLjAX+ty4OrNap7yumyVAMlKx5IWU2wlzzUdYJO9A8f1p9m/gywF/GM2ZDFcjQPrx59Mc90KwmxsoklxQ==}-resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==}@@ -9445,10 +11592,18 @@ packages:resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}engines: {node: '>= 4.0.0'}+ resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==}+ engines: {node: '>= 4.0.0'}+resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==}engines: {node: '>= 10.0.0'}+ resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}+ engines: {node: '>= 0.8'}+resolution: {integrity: sha512-ect2ZNtk1Zgwb0NVHd0C1IDW/MV+Jk/xaq4t8o6rYdVS3+L660ZdD5kTSQZvsgdwCvquRw+/wYn75hsweRjoIA==}peerDependencies:@@ -9562,6 +11717,9 @@ packages:resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}+ resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==}+resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}engines: {node: '>=10'}@@ -9572,6 +11730,12 @@ packages:'@types/react':optional: true+ resolution: {integrity: sha512-kbeNVZ9Zkc0RFGpfMN3MNfaKNvcLNyxOAAd9O4CBZ+kCBXXscn9s/4I+8ytUER4RDpEYs5+O6Rs4PqiZ+rHr5Q==}+ engines: {node: '>=10', npm: '>=6'}+ peerDependencies:+ react: '>=16.13'+resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}engines: {node: '>=10'}@@ -9587,6 +11751,11 @@ packages:peerDependencies:react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ resolution: {integrity: sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+resolution: {integrity: sha512-uIuGf9TWQ/y+0Lp+KGZCMuJWc3N9BHA+l/UmHd/oUHwJJDeysyTRxNQVkbzsIWfGFbRe3OcgML/i0mvVRPOyDA==}engines: {node: '>=6.14.2'}@@ -9598,6 +11767,10 @@ packages:resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}+ resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}+ hasBin: true+resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}hasBin: true@@ -9843,8 +12016,8 @@ packages:resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==}- resolution: {integrity: sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==}+ resolution: {integrity: sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==}engines: {node: '>=10.13.0'}@@ -9863,8 +12036,8 @@ packages:resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==}- resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==}+ resolution: {integrity: sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==}engines: {node: '>=10.13.0'}@@ -9927,8 +12100,8 @@ packages:resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}- resolution: {integrity: sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==}+ resolution: {integrity: sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==}engines: {node: '>=10.0.0'}peerDependencies:bufferutil: ^4.0.1@@ -9939,8 +12112,8 @@ packages:utf-8-validate:optional: true- resolution: {integrity: sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==}+ resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==}engines: {node: '>=10.0.0'}peerDependencies:bufferutil: ^4.0.1@@ -9980,6 +12153,10 @@ packages:resolution: {integrity: sha512-N47AqBDCMQmh6mBLmI6oqxryHRzi33aPFPsJhYy3VTUGCdLHYjGh4FZzpUjRlphaADBBkDmnkM/++KNIOHi5Rw==}hasBin: true+ resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}+ engines: {node: '>= 6'}+resolution: {integrity: sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==}engines: {node: '>= 14'}@@ -10017,6 +12194,10 @@ packages:resolution: {integrity: sha512-lHHxjh0bXaLgdJy3cNnVb/F9myx3CkhrvSOEVTkaUgNMXnYFa2xYPVhtGnqhh3jErY2gParBOHallCbc7NrlZQ==}engines: {node: '>=18.19'}+ resolution: {integrity: sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-GQHQqAopRhwU8Kt1DDM8NjibDXHC8eoh1erhGAJPEyveY9qqVeXvVikNKrDz69sHowPMorbPUrH/mx8c50eiBQ==}engines: {node: '>=18'}@@ -10041,8 +12222,11 @@ packages:peerDependencies:zod: ^3.18.0- resolution: {integrity: sha512-OdqJE9UDRPwWsrHjLN2F8bPxvwJBK22EHLWtanu0LSYr5YqzsaaW3RMgmjwr8Rypg5k+meEJdSPXJZXE/yqOMg==}+ resolution: {integrity: sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==}++ resolution: {integrity: sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==}resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}@@ -10053,38 +12237,40 @@ snapshots:'@ampproject/[email protected]':dependencies:- '@jridgewell/gen-mapping': 0.3.8- '@jridgewell/trace-mapping': 0.3.25+ '@jridgewell/gen-mapping': 0.3.11+ '@jridgewell/trace-mapping': 0.3.28'@antfu/[email protected]':dependencies:package-manager-detector: 0.2.9tinyexec: 0.3.2+ '@antfu/[email protected]': {}+'@antfu/[email protected]': {}- '@asteasolutions/[email protected]([email protected])':+ '@asteasolutions/[email protected]([email protected])':dependencies:openapi3-ts: 4.1.2- zod: 3.24.4+ zod: 3.24.1- '@astro-community/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@astro-community/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@astro-community/astro-embed-utils': 0.1.3- astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'@astro-community/[email protected]':dependencies:linkedom: 0.14.26- '@astro-community/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@astro-community/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:- astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])lite-youtube-embed: 0.3.3dependencies:- '@astrojs/language-server': 2.15.4([email protected])([email protected])+ '@astrojs/language-server': 2.15.4([email protected])([email protected])chokidar: 4.0.1kleur: 4.1.5typescript: 5.7.2@@ -10099,7 +12285,7 @@ snapshots:'@astrojs/[email protected]': {}dependencies:'@astrojs/compiler': 2.10.3'@astrojs/yaml2ts': 0.2.2@@ -10113,14 +12299,14 @@ snapshots:volar-service-css: 0.0.62(@volar/[email protected])volar-service-emmet: 0.0.62(@volar/[email protected])volar-service-html: 0.0.62(@volar/[email protected])- volar-service-prettier: 0.0.62(@volar/[email protected])([email protected])+ volar-service-prettier: 0.0.62(@volar/[email protected])([email protected])volar-service-typescript: 0.0.62(@volar/[email protected])volar-service-typescript-twoslash-queries: 0.0.62(@volar/[email protected])volar-service-yaml: 0.0.62(@volar/[email protected])vscode-html-languageservice: 5.3.1vscode-uri: 3.0.8optionalDependencies:- prettier: 3.5.3+ prettier: 3.6.2transitivePeerDependencies:- typescript@@ -10176,13 +12362,13 @@ snapshots:transitivePeerDependencies:- supports-color- '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@astrojs/markdown-remark': 6.3.2- '@mdx-js/mdx': 3.1.0([email protected])- acorn: 8.14.1- astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- es-module-lexer: 1.6.0+ '@mdx-js/mdx': 3.1.0([email protected])+ acorn: 8.15.0+ astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ es-module-lexer: 1.7.0estree-util-visit: 2.0.0hast-util-to-html: 9.0.5kleur: 4.1.5@@ -10199,15 +12385,15 @@ snapshots:dependencies:prismjs: 1.30.0- '@astrojs/[email protected](@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])':+ '@astrojs/[email protected](@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])':dependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])- '@vitejs/plugin-react': 4.3.4([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@types/react': 19.1.8+ '@types/react-dom': 19.1.6(@types/[email protected])+ '@vitejs/plugin-react': 4.3.4([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))react: 19.1.0react-dom: 19.1.0([email protected])ultrahtml: 1.5.3- vite: 6.2.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 6.2.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- '@types/node'- jiti@@ -10226,24 +12412,24 @@ snapshots:dependencies:sitemap: 8.0.0stream-replace-string: 2.0.0- zod: 3.24.4+ zod: 3.25.67- '@astrojs/[email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected])':+ '@astrojs/[email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected])':dependencies:- '@astrojs/starlight': 0.35.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@astrojs/starlight': 0.35.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))tailwindcss: 4.1.8- '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@astrojs/markdown-remark': 6.3.2- '@astrojs/mdx': 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@astrojs/mdx': 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@astrojs/sitemap': 3.4.1'@pagefind/default-ui': 1.3.0'@types/hast': 3.0.4'@types/js-yaml': 4.0.9'@types/mdast': 4.0.4- astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- astro-expressive-code: 0.41.2([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ astro-expressive-code: 0.41.2([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))bcp-47: 2.1.0hast-util-from-html: 2.0.3hast-util-select: 6.0.3@@ -10253,7 +12439,7 @@ snapshots:js-yaml: 4.1.0klona: 2.0.6mdast-util-directive: 3.0.0- mdast-util-to-markdown: 2.1.0+ mdast-util-to-markdown: 2.1.2mdast-util-to-string: 4.0.0pagefind: 1.3.0rehype: 13.0.2@@ -10269,7 +12455,7 @@ snapshots:'@astrojs/[email protected]':dependencies:ci-info: 4.2.0- debug: 4.4.0+ debug: 4.4.1dlv: 1.1.3dset: 3.1.4is-docker: 3.0.0@@ -10284,10 +12470,10 @@ snapshots:'@auth/[email protected]':dependencies:- '@panva/hkdf': 1.1.1+ '@panva/hkdf': 1.2.1'@types/cookie': 0.6.0cookie: 0.6.0- jose: 5.2.4+ jose: 5.9.4oauth4webapi: 2.10.4preact: 10.11.3preact-render-to-string: 5.2.3([email protected])@@ -10297,8 +12483,8 @@ snapshots:'@panva/hkdf': 1.2.1'@types/cookie': 0.6.0cookie: 0.7.1- jose: 5.9.4- oauth4webapi: 3.1.1+ jose: 5.10.0+ oauth4webapi: 3.5.3preact: 10.11.3preact-render-to-string: 5.2.3([email protected])@@ -10306,10 +12492,26 @@ snapshots:dependencies:'@panva/hkdf': 1.2.1jose: 6.0.11- oauth4webapi: 3.5.1+ oauth4webapi: 3.5.3+ preact: 10.24.3+ preact-render-to-string: 6.5.11([email protected])++ '@auth/[email protected]':+ dependencies:+ '@panva/hkdf': 1.2.1+ jose: 6.0.11+ oauth4webapi: 3.5.3preact: 10.24.3preact-render-to-string: 6.5.11([email protected])+ '@auth/[email protected]':+ dependencies:+ '@auth/core': 0.40.0+ transitivePeerDependencies:+ - '@simplewebauthn/browser'+ - '@simplewebauthn/server'+ - nodemailer+'@auth/[email protected]':dependencies:'@auth/core': 0.39.1@@ -10517,7 +12719,7 @@ snapshots:'@smithy/util-middleware': 2.2.0'@smithy/util-retry': 2.2.0'@smithy/util-utf8': 2.3.0- tslib: 2.6.2+ tslib: 2.8.1transitivePeerDependencies:- aws-crt@@ -10580,7 +12782,7 @@ snapshots:'@aws-sdk/types': 3.535.0'@smithy/property-provider': 2.2.0'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1'@aws-sdk/[email protected]':dependencies:@@ -10592,7 +12794,7 @@ snapshots:'@smithy/smithy-client': 2.5.1'@smithy/types': 2.12.0'@smithy/util-stream': 2.2.0- tslib: 2.6.2+ tslib: 2.8.1'@aws-sdk/[email protected](@aws-sdk/[email protected])':dependencies:@@ -10606,7 +12808,7 @@ snapshots:'@smithy/property-provider': 2.2.0'@smithy/shared-ini-file-loader': 2.4.0'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1transitivePeerDependencies:- '@aws-sdk/credential-provider-node'- aws-crt@@ -10634,7 +12836,7 @@ snapshots:'@smithy/property-provider': 2.2.0'@smithy/shared-ini-file-loader': 2.4.0'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1'@aws-sdk/[email protected](@aws-sdk/[email protected])':dependencies:@@ -10644,7 +12846,7 @@ snapshots:'@smithy/property-provider': 2.2.0'@smithy/shared-ini-file-loader': 2.4.0'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1transitivePeerDependencies:- '@aws-sdk/credential-provider-node'- aws-crt@@ -10655,7 +12857,7 @@ snapshots:'@aws-sdk/types': 3.535.0'@smithy/property-provider': 2.2.0'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1transitivePeerDependencies:- '@aws-sdk/credential-provider-node'- aws-crt@@ -10775,7 +12977,7 @@ snapshots:'@smithy/property-provider': 2.2.0'@smithy/shared-ini-file-loader': 2.4.0'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1transitivePeerDependencies:- '@aws-sdk/credential-provider-node'- aws-crt@@ -10787,7 +12989,7 @@ snapshots:'@aws-sdk/[email protected]':dependencies:- tslib: 2.6.2+ tslib: 2.8.1'@aws-sdk/[email protected]':dependencies:@@ -10798,7 +13000,7 @@ snapshots:'@aws-sdk/[email protected]':dependencies:- tslib: 2.6.2+ tslib: 2.8.1'@aws-sdk/[email protected]':dependencies:@@ -10816,7 +13018,7 @@ snapshots:'@aws-sdk/[email protected]':dependencies:- tslib: 2.6.2+ tslib: 2.8.1'@aws-sdk/[email protected]':dependencies:@@ -10829,6 +13031,12 @@ snapshots:js-tokens: 4.0.0picocolors: 1.1.1+ '@babel/[email protected]':+ dependencies:+ '@babel/helper-validator-identifier': 7.27.1+ js-tokens: 4.0.0+ picocolors: 1.1.1+'@babel/[email protected]': {}'@babel/[email protected]':@@ -10844,7 +13052,7 @@ snapshots:'@babel/traverse': 7.25.9'@babel/types': 7.26.3convert-source-map: 2.0.0- debug: 4.4.0+ debug: 4.4.1gensync: 1.0.0-beta.2json5: 2.2.3semver: 6.3.1@@ -10859,6 +13067,18 @@ snapshots:'@jridgewell/trace-mapping': 0.3.25jsesc: 3.0.2+ '@babel/[email protected]':+ dependencies:+ '@babel/parser': 7.27.5+ '@babel/types': 7.27.6+ '@jridgewell/gen-mapping': 0.3.11+ '@jridgewell/trace-mapping': 0.3.28+ jsesc: 3.0.2++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.27.6+'@babel/[email protected]':dependencies:'@babel/compat-data': 7.26.2@@ -10867,6 +13087,26 @@ snapshots:lru-cache: 5.1.1semver: 6.3.1+ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.26.0+ '@babel/helper-annotate-as-pure': 7.27.3+ '@babel/helper-member-expression-to-functions': 7.27.1+ '@babel/helper-optimise-call-expression': 7.27.1+ '@babel/helper-replace-supers': 7.27.1(@babel/[email protected])+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1+ '@babel/traverse': 7.27.4+ semver: 6.3.1+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/traverse': 7.27.4+ '@babel/types': 7.27.6+ transitivePeerDependencies:+ - supports-color+'@babel/[email protected]':dependencies:'@babel/traverse': 7.25.9@@ -10883,12 +13123,38 @@ snapshots:transitivePeerDependencies:- supports-color+ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.27.6+'@babel/[email protected]': {}+ '@babel/[email protected]': {}++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.26.0+ '@babel/helper-member-expression-to-functions': 7.27.1+ '@babel/helper-optimise-call-expression': 7.27.1+ '@babel/traverse': 7.27.4+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/traverse': 7.27.4+ '@babel/types': 7.27.6+ transitivePeerDependencies:+ - supports-color+'@babel/[email protected]': {}+ '@babel/[email protected]': {}+'@babel/[email protected]': {}+ '@babel/[email protected]': {}+'@babel/[email protected]': {}'@babel/[email protected]':@@ -10896,13 +13162,22 @@ snapshots:'@babel/template': 7.25.9'@babel/types': 7.26.3- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:'@babel/types': 7.26.3- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/types': 7.26.3+ '@babel/types': 7.27.6++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.27.7++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.26.0+ '@babel/helper-plugin-utils': 7.27.1'@babel/[email protected](@babel/[email protected])':dependencies:@@ -10914,6 +13189,17 @@ snapshots:'@babel/core': 7.26.0'@babel/helper-plugin-utils': 7.26.5+ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.26.0+ '@babel/helper-annotate-as-pure': 7.27.3+ '@babel/helper-create-class-features-plugin': 7.27.1(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1+ '@babel/plugin-syntax-typescript': 7.27.1(@babel/[email protected])+ transitivePeerDependencies:+ - supports-color+'@babel/[email protected]':dependencies:core-js-pure: 3.33.1@@ -10929,26 +13215,44 @@ snapshots:'@babel/parser': 7.26.3'@babel/types': 7.26.3- '@babel/[email protected]':+ '@babel/[email protected]':+ dependencies:+ '@babel/code-frame': 7.27.1+ '@babel/parser': 7.27.5+ '@babel/types': 7.27.6++ '@babel/[email protected]':dependencies:'@babel/code-frame': 7.26.2'@babel/generator': 7.26.2'@babel/parser': 7.26.3'@babel/template': 7.25.9'@babel/types': 7.26.3- debug: 4.4.0+ debug: 4.4.1globals: 11.12.0transitivePeerDependencies:- supports-color- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:- '@babel/code-frame': 7.26.2- '@babel/generator': 7.26.2- '@babel/parser': 7.26.3- '@babel/template': 7.25.9- '@babel/types': 7.26.3- debug: 4.4.0+ '@babel/code-frame': 7.27.1+ '@babel/generator': 7.27.5+ '@babel/parser': 7.27.5+ '@babel/template': 7.27.2+ '@babel/types': 7.27.6+ debug: 4.4.1+ globals: 11.12.0+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/code-frame': 7.27.1+ '@babel/generator': 7.27.5+ '@babel/parser': 7.27.7+ '@babel/template': 7.27.2+ '@babel/types': 7.27.7+ debug: 4.4.1globals: 11.12.0transitivePeerDependencies:- supports-color@@ -10958,6 +13262,16 @@ snapshots:'@babel/helper-string-parser': 7.25.9'@babel/helper-validator-identifier': 7.25.9+ '@babel/[email protected]':+ dependencies:+ '@babel/helper-string-parser': 7.27.1+ '@babel/helper-validator-identifier': 7.27.1++ '@babel/[email protected]':+ dependencies:+ '@babel/helper-string-parser': 7.27.1+ '@babel/helper-validator-identifier': 7.27.1+'@biomejs/[email protected]':optionalDependencies:'@biomejs/cli-darwin-arm64': 1.8.3@@ -11025,8 +13339,21 @@ snapshots:'@biomejs/[email protected]':optional: true- '@biomejs/[email protected]':- optional: true+ '@biomejs/[email protected]':+ optional: true++ '@bundled-es-modules/[email protected]':+ dependencies:+ cookie: 0.7.2++ '@bundled-es-modules/[email protected]':+ dependencies:+ statuses: 2.0.2++ '@bundled-es-modules/[email protected]':+ dependencies:+ '@types/tough-cookie': 4.0.5+ tough-cookie: 4.1.4'@capsizecss/[email protected]([email protected])':dependencies:@@ -11038,7 +13365,7 @@ snapshots:'@chronark/[email protected]':dependencies:- zod: 3.24.4+ zod: 3.24.1'@cloudflare/[email protected]':optional: true@@ -11056,17 +13383,17 @@ snapshots:tinyglobby: 0.2.10typescript: 5.7.2yaml: 2.6.1- zod: 3.24.4+ zod: 3.24.1'@content-collections/[email protected](@content-collections/[email protected]([email protected]))':dependencies:'@content-collections/core': 0.7.3([email protected])- '@content-collections/[email protected](@content-collections/[email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])':+ '@content-collections/[email protected](@content-collections/[email protected]([email protected]))([email protected]([email protected]))([email protected])':dependencies:'@content-collections/core': 0.7.3([email protected])esbuild: 0.21.5- mdx-bundler: 10.0.3([email protected])([email protected])+ mdx-bundler: 10.0.3([email protected])react: 19.1.0react-dom: 19.1.0([email protected])unified: 11.0.5@@ -11074,11 +13401,11 @@ snapshots:- acorn- supports-color- '@content-collections/[email protected](@content-collections/[email protected]([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))':+ '@content-collections/[email protected](@content-collections/[email protected]([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))':dependencies:'@content-collections/core': 0.7.3([email protected])'@content-collections/integrations': 0.2.1(@content-collections/[email protected]([email protected]))- next: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])'@cspotcode/[email protected]':dependencies:@@ -11086,6 +13413,10 @@ snapshots:'@ctrl/[email protected]': {}+ '@date-fns/[email protected]': {}++ '@date-fns/[email protected]': {}+'@dnd-kit/[email protected]([email protected])':dependencies:react: 19.1.0@@ -11148,6 +13479,94 @@ snapshots:tslib: 2.8.1optional: true+ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@emotion/[email protected]':+ dependencies:+ '@babel/helper-module-imports': 7.25.9+ '@babel/runtime': 7.26.0+ '@emotion/hash': 0.9.2+ '@emotion/memoize': 0.9.0+ '@emotion/serialize': 1.3.3+ babel-plugin-macros: 3.1.0+ convert-source-map: 1.9.0+ escape-string-regexp: 4.0.0+ find-root: 1.1.0+ source-map: 0.5.7+ stylis: 4.2.0+ transitivePeerDependencies:+ - supports-color++ '@emotion/[email protected]':+ dependencies:+ '@emotion/memoize': 0.9.0+ '@emotion/sheet': 1.4.0+ '@emotion/utils': 1.4.2+ '@emotion/weak-memoize': 0.4.0+ stylis: 4.2.0++ '@emotion/[email protected]': {}++ '@emotion/[email protected]':+ dependencies:+ '@emotion/memoize': 0.9.0++ '@emotion/[email protected]': {}++ dependencies:+ '@babel/runtime': 7.26.0+ '@emotion/babel-plugin': 11.13.5+ '@emotion/cache': 11.14.0+ '@emotion/serialize': 1.3.3+ '@emotion/use-insertion-effect-with-fallbacks': 1.2.0([email protected])+ '@emotion/utils': 1.4.2+ '@emotion/weak-memoize': 0.4.0+ hoist-non-react-statics: 3.3.2+ react: 19.1.0+ optionalDependencies:+ '@types/react': 19.1.6+ transitivePeerDependencies:+ - supports-color++ '@emotion/[email protected]':+ dependencies:+ '@emotion/hash': 0.9.2+ '@emotion/memoize': 0.9.0+ '@emotion/unitless': 0.10.0+ '@emotion/utils': 1.4.2+ csstype: 3.1.3++ '@emotion/[email protected]': {}++ '@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])':+ dependencies:+ '@babel/runtime': 7.26.0+ '@emotion/babel-plugin': 11.13.5+ '@emotion/is-prop-valid': 1.3.1+ '@emotion/react': 11.14.0(@types/[email protected])([email protected])+ '@emotion/serialize': 1.3.3+ '@emotion/use-insertion-effect-with-fallbacks': 1.2.0([email protected])+ '@emotion/utils': 1.4.2+ react: 19.1.0+ optionalDependencies:+ '@types/react': 19.1.6+ transitivePeerDependencies:+ - supports-color++ '@emotion/[email protected]': {}++ '@emotion/[email protected]([email protected])':+ dependencies:+ react: 19.1.0++ '@emotion/[email protected]': {}++ '@emotion/[email protected]': {}+'@ericcornelissen/[email protected]':dependencies:array-last: 1.3.0@@ -11183,10 +13602,10 @@ snapshots:'@esbuild-plugins/[email protected]([email protected])':dependencies:'@types/resolve': 1.20.4- debug: 4.4.0+ debug: 4.4.1esbuild: 0.21.5escape-string-regexp: 4.0.0- resolve: 1.22.9+ resolve: 1.22.10transitivePeerDependencies:- supports-color@@ -11196,10 +13615,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11211,10 +13630,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11226,10 +13645,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11241,10 +13660,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11256,10 +13675,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11271,10 +13690,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11286,10 +13705,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11301,10 +13720,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11316,10 +13735,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11331,10 +13750,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11346,10 +13765,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11361,10 +13780,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11376,10 +13795,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11391,10 +13810,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11406,10 +13825,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11421,10 +13840,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11436,18 +13855,18 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -11457,18 +13876,18 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -11478,10 +13897,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11493,10 +13912,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11508,10 +13927,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11523,10 +13942,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -11538,10 +13957,10 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@expressive-code/[email protected]':@@ -11577,17 +13996,34 @@ snapshots:dependencies:'@floating-ui/utils': 0.2.8+ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/utils': 0.2.10+'@floating-ui/[email protected]':dependencies:'@floating-ui/core': 1.6.8'@floating-ui/utils': 0.2.8+ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/core': 1.7.2+ '@floating-ui/utils': 0.2.10+dependencies:'@floating-ui/dom': 1.6.12react: 19.1.0react-dom: 19.1.0([email protected])+ dependencies:+ '@floating-ui/dom': 1.7.2+ react: 19.1.0+ react-dom: 19.1.0([email protected])++ '@floating-ui/[email protected]': {}+'@floating-ui/[email protected]': {}'@google-cloud/[email protected]([email protected])':@@ -11600,7 +14036,7 @@ snapshots:'@grpc/[email protected]':dependencies:'@grpc/proto-loader': 0.7.10- '@types/node': 22.10.2+ '@types/node': 24.0.8'@grpc/[email protected]':dependencies:@@ -11614,27 +14050,42 @@ snapshots:hono: 4.5.3toucan-js: 4.0.0dependencies:- '@asteasolutions/zod-to-openapi': 7.1.1([email protected])- '@hono/zod-validator': 0.2.2([email protected])([email protected])+ '@asteasolutions/zod-to-openapi': 7.1.1([email protected])+ '@hono/zod-validator': 0.2.2([email protected])([email protected])hono: 4.5.3- zod: 3.24.4+ zod: 3.24.1dependencies:hono: 4.5.3- zod: 3.24.4+ zod: 3.24.1dependencies:hono: 4.5.3- zod: 3.24.4+ zod: 3.24.1++ '@hookform/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@emotion/react': 11.14.0(@types/[email protected])([email protected])+ '@emotion/styled': 11.14.0(@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])+ '@types/lodash': 4.17.17+ little-state-machine: 4.8.1([email protected])+ lodash: 4.17.21+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ react-simple-animate: 3.5.3([email protected]([email protected]))+ use-deep-compare-effect: 1.8.1([email protected])+ uuid: 8.3.2+ transitivePeerDependencies:+ - '@types/react'+ - supports-colordependencies:- '@standard-schema/utils': 0.3.0- react-hook-form: 7.56.2([email protected])+ react-hook-form: 7.54.1([email protected])'@iconify-json/[email protected]':dependencies:@@ -11660,76 +14111,189 @@ snapshots:'@img/sharp-libvips-darwin-arm64': 1.0.4optional: true+ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-darwin-arm64': 1.1.0+ optional: true+'@img/[email protected]':optionalDependencies:'@img/sharp-libvips-darwin-x64': 1.0.4optional: true+ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-darwin-x64': 1.1.0+ optional: true+'@img/[email protected]':optional: true+ '@img/[email protected]':+ optional: true+'@img/[email protected]':optional: true+ '@img/[email protected]':+ optional: true+'@img/[email protected]':optional: true+ '@img/[email protected]':+ optional: true+'@img/[email protected]':optional: true+ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true+'@img/[email protected]':optional: true+ '@img/[email protected]':+ optional: true+'@img/[email protected]':optional: true+ '@img/[email protected]':+ optional: true+'@img/[email protected]':optional: true+ '@img/[email protected]':+ optional: true+'@img/[email protected]':optional: true+ '@img/[email protected]':+ optional: true+'@img/[email protected]':optionalDependencies:'@img/sharp-libvips-linux-arm64': 1.0.4optional: true+ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-arm64': 1.1.0+ optional: true+'@img/[email protected]':optionalDependencies:'@img/sharp-libvips-linux-arm': 1.0.5optional: true+ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-arm': 1.1.0+ optional: true+'@img/[email protected]':optionalDependencies:'@img/sharp-libvips-linux-s390x': 1.0.4optional: true+ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-s390x': 1.1.0+ optional: true+'@img/[email protected]':optionalDependencies:'@img/sharp-libvips-linux-x64': 1.0.4optional: true+ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-x64': 1.1.0+ optional: true+'@img/[email protected]':optionalDependencies:'@img/sharp-libvips-linuxmusl-arm64': 1.0.4optional: true+ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linuxmusl-arm64': 1.1.0+ optional: true+'@img/[email protected]':optionalDependencies:'@img/sharp-libvips-linuxmusl-x64': 1.0.4optional: true+ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linuxmusl-x64': 1.1.0+ optional: true+'@img/[email protected]':dependencies:'@emnapi/runtime': 1.3.1optional: true+ '@img/[email protected]':+ dependencies:+ '@emnapi/runtime': 1.4.3+ optional: true++ '@img/[email protected]':+ optional: true+'@img/[email protected]':optional: true+ '@img/[email protected]':+ optional: true+'@img/[email protected]':optional: true+ '@img/[email protected]':+ optional: true++ '@inquirer/[email protected](@types/[email protected])':+ dependencies:+ '@inquirer/core': 10.1.13(@types/[email protected])+ '@inquirer/type': 3.0.7(@types/[email protected])+ optionalDependencies:+ '@types/node': 24.0.8++ '@inquirer/[email protected](@types/[email protected])':+ dependencies:+ '@inquirer/figures': 1.0.12+ '@inquirer/type': 3.0.7(@types/[email protected])+ ansi-escapes: 4.3.2+ cli-width: 4.1.0+ mute-stream: 2.0.0+ signal-exit: 4.1.0+ wrap-ansi: 6.2.0+ yoctocolors-cjs: 2.1.2+ optionalDependencies:+ '@types/node': 24.0.8++ '@inquirer/[email protected]': {}++ '@inquirer/[email protected](@types/[email protected])':+ optionalDependencies:+ '@types/node': 24.0.8++ '@isaacs/[email protected]': {}++ '@isaacs/[email protected]':+ dependencies:+ '@isaacs/balanced-match': 4.0.1+'@isaacs/[email protected]':dependencies:string-width: 5.1.2@@ -11743,40 +14307,54 @@ snapshots:dependencies:minipass: 7.1.2+ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.3+ '@jridgewell/trace-mapping': 0.3.28+'@jridgewell/[email protected]':dependencies:'@jridgewell/set-array': 1.2.1- '@jridgewell/sourcemap-codec': 1.5.0+ '@jridgewell/sourcemap-codec': 1.5.3'@jridgewell/trace-mapping': 0.3.25'@jridgewell/[email protected]':dependencies:'@jridgewell/set-array': 1.2.1- '@jridgewell/sourcemap-codec': 1.5.0+ '@jridgewell/sourcemap-codec': 1.5.3'@jridgewell/trace-mapping': 0.3.25'@jridgewell/[email protected]': {}+ '@jridgewell/[email protected]': {}+'@jridgewell/[email protected]': {}- '@jridgewell/[email protected]':+ '@jridgewell/[email protected]':dependencies:- '@jridgewell/gen-mapping': 0.3.8- '@jridgewell/trace-mapping': 0.3.25+ '@jridgewell/gen-mapping': 0.3.11+ '@jridgewell/trace-mapping': 0.3.28'@jridgewell/[email protected]': {}'@jridgewell/[email protected]': {}+ '@jridgewell/[email protected]': {}+'@jridgewell/[email protected]':dependencies:'@jridgewell/resolve-uri': 3.1.1- '@jridgewell/sourcemap-codec': 1.5.0+ '@jridgewell/sourcemap-codec': 1.5.3++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.5.3'@jridgewell/[email protected]':dependencies:'@jridgewell/resolve-uri': 3.1.1- '@jridgewell/sourcemap-codec': 1.5.0+ '@jridgewell/sourcemap-codec': 1.5.3'@libsql/[email protected]':dependencies:@@ -11787,7 +14365,7 @@ snapshots:dependencies:'@libsql/core': 0.14.0'@libsql/hrana-client': 0.7.0([email protected])([email protected])- js-base64: 3.7.5+ js-base64: 3.7.7libsql: 0.4.5promise-limit: 2.7.0transitivePeerDependencies:@@ -11798,28 +14376,49 @@ snapshots:dependencies:'@libsql/core': 0.14.0'@libsql/hrana-client': 0.7.0([email protected])([email protected])- js-base64: 3.7.5+ js-base64: 3.7.7libsql: 0.4.5promise-limit: 2.7.0transitivePeerDependencies:- bufferutil- utf-8-validate+ dependencies:+ '@libsql/core': 0.15.9+ '@libsql/hrana-client': 0.7.0([email protected])([email protected])+ js-base64: 3.7.7+ libsql: 0.5.13+ promise-limit: 2.7.0+ transitivePeerDependencies:+ - bufferutil+ - utf-8-validate+'@libsql/[email protected]':dependencies:- js-base64: 3.7.5+ js-base64: 3.7.7++ '@libsql/[email protected]':+ dependencies:+ js-base64: 3.7.7'@libsql/[email protected]':optional: true+ '@libsql/[email protected]':+ optional: true+'@libsql/[email protected]':optional: true+ '@libsql/[email protected]':+ optional: true+dependencies:'@libsql/isomorphic-fetch': 0.3.1'@libsql/isomorphic-ws': 0.1.5([email protected])([email protected])- js-base64: 3.7.5+ js-base64: 3.7.7node-fetch: 3.3.2transitivePeerDependencies:- bufferutil@@ -11829,7 +14428,7 @@ snapshots:dependencies:'@libsql/isomorphic-fetch': 0.3.1'@libsql/isomorphic-ws': 0.1.5([email protected])([email protected])- js-base64: 3.7.5+ js-base64: 3.7.7node-fetch: 3.3.2transitivePeerDependencies:- bufferutil@@ -11839,84 +14438,75 @@ snapshots:dependencies:- '@types/ws': 8.5.13- ws: 8.17.0([email protected])([email protected])+ '@types/ws': 8.18.1+ ws: 8.18.3([email protected])([email protected])transitivePeerDependencies:- bufferutil- utf-8-validatedependencies:- '@types/ws': 8.5.13- ws: 8.17.0([email protected])([email protected])+ '@types/ws': 8.18.1+ ws: 8.18.3([email protected])([email protected])transitivePeerDependencies:- bufferutil- utf-8-validate+ '@libsql/[email protected]':+ optional: true++ '@libsql/[email protected]':+ optional: true+'@libsql/[email protected]':optional: true+ '@libsql/[email protected]':+ optional: true+'@libsql/[email protected]':optional: true+ '@libsql/[email protected]':+ optional: true+'@libsql/[email protected]':optional: true+ '@libsql/[email protected]':+ optional: true+'@libsql/[email protected]':optional: true+ '@libsql/[email protected]':+ optional: true+'@libsql/[email protected]':optional: true+ '@libsql/[email protected]':+ optional: true+'@mapbox/[email protected]':dependencies:unist-util-visit: 1.4.1+ '@mdx-js/[email protected]([email protected])':dependencies:- '@mdx-js/mdx': 3.1.0([email protected])- '@types/unist': 3.0.2+ '@mdx-js/mdx': 3.1.0([email protected])+ '@types/unist': 3.0.3esbuild: 0.21.5source-map: 0.7.4vfile: 6.0.3- vfile-message: 4.0.2- transitivePeerDependencies:- - acorn- - supports-color-- '@mdx-js/[email protected]([email protected])':- dependencies:- '@types/estree': 1.0.6- '@types/estree-jsx': 1.0.2- '@types/hast': 3.0.4- '@types/mdx': 2.0.9- collapse-white-space: 2.1.0- devlop: 1.1.0- estree-util-is-identifier-name: 3.0.0- estree-util-scope: 1.0.0- estree-walker: 3.0.3- hast-util-to-jsx-runtime: 2.3.2- markdown-extensions: 2.0.0- recma-build-jsx: 1.0.0- recma-jsx: 1.0.0([email protected])- recma-stringify: 1.0.0- rehype-recma: 1.0.0- remark-mdx: 3.1.0- remark-parse: 11.0.0- remark-rehype: 11.1.1- source-map: 0.7.4- unified: 11.0.5- unist-util-position-from-estree: 2.0.0- unist-util-stringify-position: 4.0.0- unist-util-visit: 5.0.0- vfile: 6.0.3+ vfile-message: 4.0.2transitivePeerDependencies:- acorn- supports-color- '@mdx-js/[email protected]([email protected])':+ '@mdx-js/[email protected]([email protected])':dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8'@types/estree-jsx': 1.0.2'@types/hast': 3.0.4'@types/mdx': 2.0.9@@ -11925,15 +14515,15 @@ snapshots:estree-util-is-identifier-name: 3.0.0estree-util-scope: 1.0.0estree-walker: 3.0.3- hast-util-to-jsx-runtime: 2.3.2+ hast-util-to-jsx-runtime: 2.3.6markdown-extensions: 2.0.0recma-build-jsx: 1.0.0- recma-jsx: 1.0.0([email protected])+ recma-jsx: 1.0.0([email protected])recma-stringify: 1.0.0rehype-recma: 1.0.0remark-mdx: 3.1.0remark-parse: 11.0.0- remark-rehype: 11.1.1+ remark-rehype: 11.1.2source-map: 0.7.4unified: 11.0.5unist-util-position-from-estree: 2.0.0@@ -11944,32 +14534,83 @@ snapshots:- acorn- supports-color+ '@modelcontextprotocol/[email protected]':+ dependencies:+ ajv: 6.12.6+ content-type: 1.0.5+ cors: 2.8.5+ cross-spawn: 7.0.6+ eventsource: 3.0.7+ express: 5.1.0+ express-rate-limit: 7.5.0([email protected])+ pkce-challenge: 5.0.0+ raw-body: 3.0.0+ zod: 3.24.1+ zod-to-json-schema: 3.24.5([email protected])+ transitivePeerDependencies:+ - supports-color++ '@mswjs/[email protected]':+ dependencies:+ '@open-draft/deferred-promise': 2.2.0+ '@open-draft/logger': 0.3.0+ '@open-draft/until': 2.1.0+ is-node-process: 1.2.0+ outvariant: 1.4.3+ strict-event-emitter: 0.5.1+'@neon-rs/[email protected]': {}- '@next/[email protected]': {}+ '@next/[email protected]': {}++ '@next/[email protected]': {}++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true- '@next/[email protected]':+ '@next/[email protected]':optional: true'@nodelib/[email protected]':@@ -11998,15 +14639,24 @@ snapshots:'@one-ini/[email protected]': {}- '@openpanel/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@open-draft/[email protected]': {}++ '@open-draft/[email protected]':+ dependencies:+ is-node-process: 1.2.0+ outvariant: 1.4.3++ '@open-draft/[email protected]': {}++ '@openpanel/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@openpanel/web': 1.0.1- astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- '@openpanel/[email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':+ '@openpanel/[email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':dependencies:'@openpanel/web': 1.0.1- next: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0react-dom: 19.1.0([email protected])@@ -12122,7 +14772,7 @@ snapshots:'@opentelemetry/instrumentation': 0.56.0(@opentelemetry/[email protected])'@opentelemetry/semantic-conventions': 1.28.0forwarded-parse: 2.1.2- semver: 7.6.3+ semver: 7.7.2transitivePeerDependencies:- supports-color@@ -12255,7 +14905,7 @@ snapshots:'@types/shimmer': 1.2.0import-in-the-middle: 1.12.0require-in-the-middle: 7.4.0- semver: 7.6.3+ semver: 7.7.2shimmer: 1.2.1transitivePeerDependencies:- supports-color@@ -12267,7 +14917,7 @@ snapshots:'@types/shimmer': 1.2.0import-in-the-middle: 1.12.0require-in-the-middle: 7.4.0- semver: 7.6.3+ semver: 7.7.2shimmer: 1.2.1transitivePeerDependencies:- supports-color@@ -12315,8 +14965,6 @@ snapshots:'@pagefind/[email protected]':optional: true- '@panva/[email protected]': {}-'@panva/[email protected]': {}'@parcel/[email protected]':@@ -12471,582 +15119,1112 @@ snapshots:'@radix-ui/[email protected]': {}+ '@radix-ui/[email protected]': {}+'@radix-ui/[email protected]': {}- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected]': {}++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-collapsible': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-collapsible': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dialog': 1.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-dialog': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dialog': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([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-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([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])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])react: 19.1.0+ react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ dependencies:+ react: 19.1.0+ optionalDependencies:+ '@types/react': 19.1.6++ dependencies:+ react: 19.1.0+ optionalDependencies:+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-menu': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])dependencies:react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ react: 19.1.0+ optionalDependencies:+ '@types/react': 19.1.6++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected](@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-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected](@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-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])aria-hidden: 1.2.4react: 19.1.0react-dom: 19.1.0([email protected])- react-remove-scroll: 2.6.2(@types/[email protected])([email protected])+ react-remove-scroll: 2.6.2(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])dependencies:react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6++ dependencies:+ react: 19.1.0+ optionalDependencies:+ '@types/react': 19.1.6++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-menu': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])dependencies:react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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])+ react: 19.1.0+ optionalDependencies:+ '@types/react': 19.1.6++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-popper': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])dependencies:- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ optionalDependencies:+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected](@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-popper': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- aria-hidden: 1.2.4+ '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected](@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-popper': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ aria-hidden: 1.2.6react: 19.1.0react-dom: 19.1.0([email protected])- react-remove-scroll: 2.6.2(@types/[email protected])([email protected])+ react-remove-scroll: 2.6.2(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@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.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@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.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected](@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-popper': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected](@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-popper': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])aria-hidden: 1.2.4react: 19.1.0react-dom: 19.1.0([email protected])- react-remove-scroll: 2.6.2(@types/[email protected])([email protected])+ react-remove-scroll: 2.6.2(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-arrow': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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-layout-effect': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-rect': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-arrow': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])'@radix-ui/rect': 1.1.0react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.1+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.0+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected](@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-popper': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[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.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ aria-hidden: 1.2.4+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ react-remove-scroll: 2.6.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ aria-hidden: 1.2.6+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.0+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([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-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ dependencies:+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ optionalDependencies:+ '@types/react': 19.1.6++ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ react: 19.1.0+ optionalDependencies:+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@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-popper': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ optionalDependencies:+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])++ dependencies:react: 19.1.0- react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/primitive': 1.1.1- '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@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])react: 19.1.0- react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/number': 1.1.0- '@radix-ui/primitive': 1.1.1- '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected](@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-popper': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.1(@types/[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.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- aria-hidden: 1.2.4+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])react: 19.1.0- react-dom: 19.1.0([email protected])- react-remove-scroll: 2.6.2(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])react: 19.1.0- react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/number': 1.1.0- '@radix-ui/primitive': 1.1.1- '@radix-ui/react-collection': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([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-use-size': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])react: 19.1.0- react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6dependencies:- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])react: 19.1.0- react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/primitive': 1.1.1- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])react: 19.1.0- react-dom: 19.1.0([email protected])+ use-sync-external-store: 1.5.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/primitive': 1.1.1- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])react: 19.1.0- react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/primitive': 1.1.1- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected](@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-popper': 1.2.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-portal': 1.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-visually-hidden': 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0- react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6dependencies:react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6dependencies:- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6dependencies:- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.0react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6dependencies:+ '@radix-ui/rect': 1.1.1react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6dependencies:- '@radix-ui/rect': 1.1.0+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])react: 19.1.0optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0+ react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0react-dom: 19.1.0([email protected])optionalDependencies:- '@types/react': 19.1.0- '@types/react-dom': 19.1.1(@types/[email protected])+ '@types/react': 19.1.6+ '@types/react-dom': 19.1.6(@types/[email protected])'@radix-ui/[email protected]': {}+ '@radix-ui/[email protected]': {}+'@react-email/[email protected]([email protected])':dependencies:react: 19.1.0@@ -13055,11 +16233,20 @@ snapshots:dependencies:react: 19.1.0+ '@react-email/[email protected]([email protected])':+ dependencies:+ react: 19.1.0+'@react-email/[email protected]([email protected])':dependencies:prismjs: 1.30.0react: 19.1.0+ '@react-email/[email protected]([email protected])':+ dependencies:+ prismjs: 1.30.0+ react: 19.1.0+'@react-email/[email protected]([email protected])':dependencies:react: 19.1.0@@ -13094,6 +16281,32 @@ snapshots:transitivePeerDependencies:- react-dom+ dependencies:+ '@react-email/body': 0.0.11([email protected])+ '@react-email/button': 0.1.0([email protected])+ '@react-email/code-block': 0.1.0([email protected])+ '@react-email/code-inline': 0.0.5([email protected])+ '@react-email/column': 0.0.13([email protected])+ '@react-email/container': 0.0.15([email protected])+ '@react-email/font': 0.0.9([email protected])+ '@react-email/head': 0.0.12([email protected])+ '@react-email/heading': 0.0.15([email protected])+ '@react-email/hr': 0.0.11([email protected])+ '@react-email/html': 0.0.11([email protected])+ '@react-email/img': 0.0.11([email protected])+ '@react-email/link': 0.0.12([email protected])+ '@react-email/markdown': 0.0.15([email protected])+ '@react-email/preview': 0.0.13([email protected])+ '@react-email/row': 0.0.12([email protected])+ '@react-email/section': 0.0.16([email protected])+ '@react-email/tailwind': 1.0.5([email protected])+ '@react-email/text': 0.1.5([email protected])+ react: 19.1.0+ transitivePeerDependencies:+ - react-dom+'@react-email/[email protected]([email protected])':dependencies:react: 19.1.0@@ -13131,10 +16344,19 @@ snapshots:md-to-react-email: 5.0.5([email protected])react: 19.1.0+ '@react-email/[email protected]([email protected])':+ dependencies:+ md-to-react-email: 5.0.5([email protected])+ react: 19.1.0+'@react-email/[email protected]([email protected])':dependencies:react: 19.1.0+ '@react-email/[email protected]([email protected])':+ dependencies:+ react: 19.1.0+dependencies:html-to-text: 9.0.5@@ -13151,6 +16373,22 @@ snapshots:react-dom: 19.1.0([email protected])react-promise-suspense: 0.3.4+ dependencies:+ html-to-text: 9.0.5+ prettier: 3.6.2+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ react-promise-suspense: 0.3.4++ dependencies:+ html-to-text: 9.0.5+ prettier: 3.6.2+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ react-promise-suspense: 0.3.4+'@react-email/[email protected]([email protected])':dependencies:react: 19.1.0@@ -13163,25 +16401,33 @@ snapshots:dependencies:react: 19.1.0+ '@react-email/[email protected]([email protected])':+ dependencies:+ react: 19.1.0+'@react-email/[email protected]([email protected])':dependencies:react: 19.1.0+ '@react-email/[email protected]([email protected])':+ dependencies:+ react: 19.1.0+'@rollup/[email protected]([email protected])':dependencies:- '@rollup/pluginutils': 5.1.3([email protected])+ '@rollup/pluginutils': 5.1.4([email protected])commondir: 1.0.1estree-walker: 2.0.2- fdir: 6.4.2([email protected])+ fdir: 6.4.6([email protected])is-reference: 1.2.1magic-string: 0.30.17picomatch: 4.0.2optionalDependencies:rollup: 3.29.5- '@rollup/[email protected]([email protected])':+ '@rollup/[email protected]([email protected])':dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8estree-walker: 2.0.2picomatch: 4.0.2optionalDependencies:@@ -13189,7 +16435,7 @@ snapshots:'@rollup/[email protected]([email protected])':dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8estree-walker: 2.0.2picomatch: 4.0.2optionalDependencies:@@ -13323,7 +16569,7 @@ snapshots:'@scalar/[email protected]':dependencies:- zod: 3.24.4+ zod: 3.24.1'@scalar/[email protected]':dependencies:@@ -13331,7 +16577,7 @@ snapshots:'@unhead/schema': 1.11.20nanoid: 5.1.5type-fest: 4.28.0- zod: 3.24.4+ zod: 3.24.1'@selderee/[email protected]':dependencies:@@ -13427,7 +16673,33 @@ snapshots:'@sentry/types': 8.9.2'@sentry/utils': 8.9.2- '@sentry/[email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))':+ '@sentry/[email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])':+ dependencies:+ '@opentelemetry/api': 1.9.0+ '@opentelemetry/semantic-conventions': 1.28.0+ '@rollup/plugin-commonjs': 28.0.1([email protected])+ '@sentry-internal/browser-utils': 8.46.0+ '@sentry/core': 8.46.0+ '@sentry/node': 8.46.0+ '@sentry/opentelemetry': 8.46.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected])+ '@sentry/react': 8.46.0([email protected])+ '@sentry/vercel-edge': 8.46.0+ '@sentry/webpack-plugin': 2.22.7([email protected])([email protected])+ chalk: 3.0.0+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ resolve: 1.22.8+ rollup: 3.29.5+ stacktrace-parser: 0.1.10+ transitivePeerDependencies:+ - '@opentelemetry/core'+ - '@opentelemetry/instrumentation'+ - '@opentelemetry/sdk-trace-base'+ - encoding+ - react+ - supports-color+ - webpack++ '@sentry/[email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))':dependencies:'@opentelemetry/api': 1.9.0'@opentelemetry/semantic-conventions': 1.28.0@@ -13440,7 +16712,7 @@ snapshots:'@sentry/vercel-edge': 8.46.0chalk: 3.0.0- next: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])resolve: 1.22.8rollup: 3.29.5stacktrace-parser: 0.1.10@@ -13530,6 +16802,16 @@ snapshots:- encoding- supports-color+ dependencies:+ '@sentry/bundler-plugin-core': 2.22.7([email protected])+ unplugin: 1.0.1+ uuid: 9.0.1+ webpack: 5.97.1+ transitivePeerDependencies:+ - encoding+ - supports-color+'@shikijs/[email protected]':dependencies:'@shikijs/types': 3.6.0@@ -13566,16 +16848,16 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:'@smithy/util-base64': 2.3.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13602,14 +16884,14 @@ snapshots:'@smithy/property-provider': 2.2.0'@smithy/types': 2.12.0'@smithy/url-parser': 2.2.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:'@aws-crypto/crc32': 3.0.0'@smithy/types': 2.12.0'@smithy/util-hex-encoding': 2.2.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13632,7 +16914,7 @@ snapshots:dependencies:'@smithy/eventstream-codec': 2.2.0'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13669,7 +16951,7 @@ snapshots:'@smithy/[email protected]':dependencies:- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13733,7 +17015,7 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13744,12 +17026,12 @@ snapshots:dependencies:'@smithy/types': 2.12.0'@smithy/util-uri-escape': 2.2.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13758,7 +17040,7 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13768,7 +17050,7 @@ snapshots:'@smithy/util-middleware': 2.2.0'@smithy/util-uri-escape': 2.2.0'@smithy/util-utf8': 2.3.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13806,11 +17088,11 @@ snapshots:'@smithy/[email protected]':dependencies:'@smithy/is-array-buffer': 2.2.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13838,12 +17120,12 @@ snapshots:'@smithy/[email protected]':dependencies:- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:'@smithy/types': 2.12.0- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13864,7 +17146,7 @@ snapshots:'@smithy/[email protected]':dependencies:- tslib: 2.6.2+ tslib: 2.8.1'@smithy/[email protected]':dependencies:@@ -13880,13 +17162,11 @@ snapshots:'@snyk/[email protected]':dependencies:commander: 4.1.1- ignore: 5.2.4+ ignore: 5.3.2p-map: 4.0.0'@socket.io/[email protected]': {}- '@standard-schema/[email protected]': {}-'@stripe/[email protected]': {}'@swc/[email protected]': {}@@ -13895,22 +17175,28 @@ snapshots:dependencies:tslib: 2.8.1dependencies:- zod: 3.24.4+ zod: 3.24.1optionalDependencies:typescript: 5.7.2dependencies:- zod: 3.24.4+ zod: 3.24.1optionalDependencies:typescript: 5.7.2+ dependencies:+ zod: 3.24.1+ optionalDependencies:+ typescript: 5.8.3+dependencies:- '@t3-oss/env-core': 0.7.0([email protected])([email protected])- zod: 3.24.4+ '@t3-oss/env-core': 0.7.0([email protected])([email protected])+ zod: 3.24.1optionalDependencies:typescript: 5.7.2@@ -13928,6 +17214,16 @@ snapshots:dependencies:tailwindcss: 4.1.8+ '@tailwindcss/[email protected]':+ dependencies:+ '@ampproject/remapping': 2.3.0+ enhanced-resolve: 5.18.2+ jiti: 2.4.2+ lightningcss: 1.30.1+ magic-string: 0.30.17+ source-map-js: 1.2.1+ tailwindcss: 4.1.11+'@tailwindcss/[email protected]':dependencies:'@ampproject/remapping': 2.3.0@@ -13938,42 +17234,96 @@ snapshots:source-map-js: 1.2.1tailwindcss: 4.1.8+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ optional: true+'@tailwindcss/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ dependencies:+ detect-libc: 2.0.4+ tar: 7.4.3+ optionalDependencies:+ '@tailwindcss/oxide-android-arm64': 4.1.11+ '@tailwindcss/oxide-darwin-arm64': 4.1.11+ '@tailwindcss/oxide-darwin-x64': 4.1.11+ '@tailwindcss/oxide-freebsd-x64': 4.1.11+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.1.11+ '@tailwindcss/oxide-linux-arm64-gnu': 4.1.11+ '@tailwindcss/oxide-linux-arm64-musl': 4.1.11+ '@tailwindcss/oxide-linux-x64-gnu': 4.1.11+ '@tailwindcss/oxide-linux-x64-musl': 4.1.11+ '@tailwindcss/oxide-wasm32-wasi': 4.1.11+ '@tailwindcss/oxide-win32-arm64-msvc': 4.1.11+ '@tailwindcss/oxide-win32-x64-msvc': 4.1.11+'@tailwindcss/[email protected]':dependencies:detect-libc: 2.0.4@@ -13992,13 +17342,13 @@ snapshots:'@tailwindcss/oxide-win32-arm64-msvc': 4.1.8'@tailwindcss/oxide-win32-x64-msvc': 4.1.8- '@tailwindcss/[email protected]':+ '@tailwindcss/[email protected]':dependencies:'@alloc/quick-lru': 5.2.0- '@tailwindcss/node': 4.1.8- '@tailwindcss/oxide': 4.1.8- postcss: 8.5.3- tailwindcss: 4.1.8+ '@tailwindcss/node': 4.1.11+ '@tailwindcss/oxide': 4.1.11+ postcss: 8.5.6+ tailwindcss: 4.1.11'@tailwindcss/[email protected]([email protected])':dependencies:@@ -14008,15 +17358,17 @@ snapshots:postcss-selector-parser: 6.0.10tailwindcss: 4.1.8- '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@tailwindcss/node': 4.1.8'@tailwindcss/oxide': 4.1.8tailwindcss: 4.1.8- vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])'@tanstack/[email protected]': {}+ '@tanstack/[email protected]': {}+'@tanstack/[email protected]': {}@@ -14030,48 +17382,98 @@ snapshots:'@tanstack/query-core': 5.80.7react: 19.1.0+ '@tanstack/[email protected]([email protected])':+ dependencies:+ '@tanstack/query-core': 5.81.5+ react: 19.1.0+dependencies:'@tanstack/table-core': 8.10.3react: 19.1.0react-dom: 19.1.0([email protected])+ dependencies:+ '@tanstack/table-core': 8.21.3+ react: 19.1.0+ react-dom: 19.1.0([email protected])+'@tanstack/[email protected]': {}+ '@tanstack/[email protected]': {}+'@tootallnate/[email protected]': {}'@tootallnate/[email protected]': {}dependencies:- '@trpc/server': 11.4.0([email protected])+ '@trpc/server': 11.4.3([email protected])typescript: 5.7.2- '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected]))(@trpc/[email protected]([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])':+ '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected]))(@trpc/[email protected]([email protected]))([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])':dependencies:- '@trpc/server': 11.4.0([email protected])- next: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ '@trpc/server': 11.4.3([email protected])+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0react-dom: 19.1.0([email protected])typescript: 5.7.2optionalDependencies:'@tanstack/react-query': 5.80.7([email protected])- '@trpc/react-query': 11.4.0(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])+ '@trpc/react-query': 11.4.3(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])++ '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected]))(@trpc/[email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])':+ dependencies:+ '@trpc/server': 11.4.3([email protected])+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ typescript: 5.7.2+ optionalDependencies:+ '@tanstack/react-query': 5.81.5([email protected])+ '@trpc/react-query': 11.4.3(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])- '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])':+ '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])':dependencies:'@tanstack/react-query': 5.80.7([email protected])- '@trpc/server': 11.4.0([email protected])+ '@trpc/server': 11.4.3([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ typescript: 5.7.2++ '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])':+ dependencies:+ '@tanstack/react-query': 5.81.5([email protected])+ '@trpc/server': 11.4.3([email protected])react: 19.1.0react-dom: 19.1.0([email protected])typescript: 5.7.2- '@trpc/[email protected]([email protected])':+ '@trpc/[email protected]([email protected])':+ dependencies:+ typescript: 5.7.2++ '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])':dependencies:+ '@tanstack/react-query': 5.81.5([email protected])+ '@trpc/server': 11.4.3([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])typescript: 5.7.2+ '@ts-morph/[email protected]':+ dependencies:+ fast-glob: 3.3.2+ minimatch: 7.4.6+ mkdirp: 2.1.6+ path-browserify: 1.0.1+'@tsconfig/[email protected]': {}'@tsconfig/[email protected]': {}@@ -14117,7 +17519,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8'@types/[email protected]':dependencies:@@ -14142,25 +17544,21 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected](@types/[email protected])':+ '@types/[email protected]':dependencies:- bun-types: 1.2.19(@types/[email protected])- transitivePeerDependencies:- - '@types/react'+ bun-types: 1.2.17'@types/[email protected]': {}'@types/[email protected]':dependencies:- '@types/node': 22.10.2-- '@types/[email protected]': {}+ '@types/node': 24.0.8'@types/[email protected]': {}- '@types/[email protected]':+ '@types/[email protected]':dependencies:- '@types/node': 22.10.2+ '@types/node': 24.0.8'@types/[email protected]': {}@@ -14172,15 +17570,15 @@ snapshots:dependencies:'@types/d3-color': 3.1.3- '@types/[email protected]': {}+ '@types/[email protected]': {}- '@types/[email protected]':+ '@types/[email protected]':dependencies:'@types/d3-time': 3.0.4- '@types/[email protected]':+ '@types/[email protected]':dependencies:- '@types/d3-path': 3.1.0+ '@types/d3-path': 3.1.1'@types/[email protected]': {}@@ -14190,19 +17588,29 @@ snapshots:dependencies:'@types/ms': 0.7.33+ '@types/[email protected]':+ dependencies:+ '@types/ms': 2.1.0++ '@types/[email protected]': {}+'@types/[email protected]':dependencies:'@types/eslint': 9.6.1- '@types/estree': 1.0.6+ '@types/estree': 1.0.8'@types/[email protected]':dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8'@types/json-schema': 7.0.15'@types/[email protected]':dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8++ '@types/[email protected]':+ dependencies:+ '@types/estree': 1.0.8'@types/[email protected]': {}@@ -14210,20 +17618,20 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 22.10.2+ '@types/node': 24.0.8'@types/[email protected]':dependencies:'@types/minimatch': 5.1.2- '@types/node': 22.10.2+ '@types/node': 24.0.8'@types/[email protected]':dependencies:- '@types/unist': 2.0.9+ '@types/unist': 2.0.11'@types/[email protected]':dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3'@types/[email protected]':dependencies:@@ -14234,17 +17642,19 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]': {}'@types/[email protected]':dependencies:- '@types/unist': 2.0.9+ '@types/unist': 2.0.11'@types/[email protected]':dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3'@types/[email protected]': {}@@ -14256,13 +17666,15 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:- '@types/node': 22.10.2+ '@types/node': 24.0.8'@types/[email protected]':dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3'@types/[email protected]': {}@@ -14276,21 +17688,26 @@ snapshots:dependencies:undici-types: 6.20.0+ '@types/[email protected]':+ dependencies:+ undici-types: 7.8.0++ '@types/[email protected]': {}+'@types/[email protected]':dependencies:- '@types/pg': 8.6.1+ '@types/pg': 8.11.10'@types/[email protected]':dependencies:- '@types/node': 22.10.2- pg-protocol: 1.7.0+ '@types/node': 24.0.8+ pg-protocol: 1.10.3pg-types: 4.0.2- optional: true'@types/[email protected]':dependencies:- '@types/node': 22.10.2- pg-protocol: 1.7.0+ '@types/node': 24.0.8+ pg-protocol: 1.10.3pg-types: 2.2.0'@types/[email protected]': {}@@ -14299,6 +17716,14 @@ snapshots:dependencies:'@types/react': 19.1.0+ '@types/[email protected](@types/[email protected])':+ dependencies:+ '@types/react': 19.1.6++ '@types/[email protected](@types/[email protected])':+ dependencies:+ '@types/react': 19.1.8+'@types/[email protected]':dependencies:'@types/prop-types': 15.7.12@@ -14308,10 +17733,18 @@ snapshots:dependencies:csstype: 3.1.3+ '@types/[email protected]':+ dependencies:+ csstype: 3.1.3++ '@types/[email protected]':+ dependencies:+ csstype: 3.1.3+'@types/[email protected]':dependencies:'@types/caseless': 0.12.4- '@types/node': 22.10.2+ '@types/node': 24.0.8'@types/tough-cookie': 4.0.4form-data: 2.5.1@@ -14319,36 +17752,44 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 22.10.2+ '@types/node': 24.0.8'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:- '@types/node': 22.10.2+ '@types/node': 24.0.8'@types/[email protected]':dependencies:- '@types/node': 22.10.2+ '@types/node': 24.0.8'@types/[email protected]': {}'@types/[email protected]': {}+ '@types/[email protected]': {}++ '@types/[email protected]': {}+'@types/[email protected]': {}- '@types/[email protected]': {}+ '@types/[email protected]': {}'@types/[email protected]': {}'@types/[email protected]': {}- '@types/[email protected]':+ '@types/[email protected]':dependencies:- '@types/node': 22.10.2+ '@types/node': 24.0.8'@ungap/[email protected]': {}+ '@ungap/[email protected]': {}+'@unhead/[email protected]':dependencies:hookable: 5.5.3@@ -14360,12 +17801,12 @@ snapshots:'@unkey/[email protected]':dependencies:- zod: 3.24.4+ zod: 3.24.1'@unkey/[email protected]':dependencies:'@unkey/error': 0.2.0- zod: 3.24.4+ zod: 3.24.1'@upstash/[email protected]([email protected])':dependencies:@@ -14403,14 +17844,14 @@ snapshots:is-buffer: 2.0.5undici: 5.28.4- '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@babel/core': 7.26.0'@babel/plugin-transform-react-jsx-self': 7.25.9(@babel/[email protected])'@babel/plugin-transform-react-jsx-source': 7.25.9(@babel/[email protected])'@types/babel__core': 7.20.5react-refresh: 0.14.2- vite: 6.2.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 6.2.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])transitivePeerDependencies:- supports-color@@ -14466,7 +17907,7 @@ snapshots:'@vue/[email protected]':dependencies:- '@babel/parser': 7.26.3+ '@babel/parser': 7.27.7'@vue/shared': 3.5.13entities: 4.5.0estree-walker: 2.0.2@@ -14481,14 +17922,14 @@ snapshots:'@vue/[email protected]':dependencies:- '@babel/parser': 7.26.3+ '@babel/parser': 7.27.7'@vue/compiler-core': 3.5.13'@vue/compiler-dom': 3.5.13'@vue/compiler-ssr': 3.5.13'@vue/shared': 3.5.13estree-walker: 2.0.2magic-string: 0.30.17- postcss: 8.5.3+ postcss: 8.5.6source-map-js: 1.2.1optional: true@@ -14592,17 +18033,18 @@ snapshots:mime-types: 2.1.35negotiator: 0.6.3dependencies:- acorn: 8.14.0+ mime-types: 3.0.1+ negotiator: 1.0.0dependencies:- acorn: 8.14.0+ acorn: 8.15.0dependencies:- acorn: 8.14.1+ acorn: 8.15.0@@ -14610,17 +18052,17 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:- debug: 4.4.0+ debug: 4.4.1transitivePeerDependencies:- supports-colordependencies:- debug: 4.4.0+ debug: 4.4.1transitivePeerDependencies:- supports-color@@ -14649,13 +18091,6 @@ snapshots:json-schema-traverse: 0.4.1uri-js: 4.4.1- dependencies:- fast-deep-equal: 3.1.3- json-schema-traverse: 1.0.0- require-from-string: 2.0.2- uri-js: 4.4.1-dependencies:fast-deep-equal: 3.1.3@@ -14708,6 +18143,10 @@ snapshots:dependencies:tslib: 2.8.1+ dependencies:+ tslib: 2.8.1+@@ -14724,14 +18163,18 @@ snapshots:dependencies:tslib: 2.8.1+ dependencies:+ tslib: 2.8.1+- [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:- astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])rehype-expressive-code: 0.41.2- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:'@astrojs/compiler': 2.12.2'@astrojs/internal-helpers': 0.6.1@@ -14740,7 +18183,7 @@ snapshots:'@capsizecss/unpack': 2.4.0([email protected])'@oslojs/encoding': 1.1.0'@rollup/pluginutils': 5.1.4([email protected])- acorn: 8.14.1+ acorn: 8.15.0aria-query: 5.3.2axobject-query: 4.1.0boxen: 8.0.1@@ -14749,14 +18192,14 @@ snapshots:common-ancestor-path: 1.0.1cookie: 1.0.2cssesc: 3.0.0- debug: 4.4.0+ debug: 4.4.1deterministic-object-hash: 2.0.2devalue: 5.1.1diff: 5.2.0dlv: 1.1.3dset: 3.1.4- es-module-lexer: 1.6.0- esbuild: 0.25.2+ es-module-lexer: 1.7.0+ esbuild: 0.25.5estree-walker: 3.0.3flattie: 1.1.1fontace: 0.3.0@@ -14776,25 +18219,25 @@ snapshots:picomatch: 4.0.2prompts: 2.4.2rehype: 13.0.2- semver: 7.7.1+ semver: 7.7.2shiki: 3.6.0smol-toml: 1.4.1tinyexec: 0.3.2- tinyglobby: 0.2.12+ tinyglobby: 0.2.14tsconfck: 3.1.5([email protected])ultrahtml: 1.6.0unifont: 0.5.2unist-util-visit: 5.0.0unstorage: 1.15.0vfile: 6.0.3- vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- vitefu: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vitefu: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))xxhash-wasm: 1.1.0yargs-parser: 21.1.1yocto-spinner: 0.2.1- zod: 3.24.4- zod-to-json-schema: 3.24.5([email protected])- zod-to-ts: 1.2.0([email protected])([email protected])+ zod: 3.25.67+ zod-to-json-schema: 3.24.5([email protected])+ zod-to-ts: 1.2.0([email protected])([email protected])optionalDependencies:sharp: 0.33.5transitivePeerDependencies:@@ -14840,6 +18283,12 @@ snapshots:+ dependencies:+ '@babel/runtime': 7.26.0+ cosmiconfig: 7.1.0+ resolve: 1.22.10+@@ -14870,7 +18319,7 @@ snapshots:dependencies:bindings: 1.5.0- prebuild-install: 7.1.2+ prebuild-install: 7.1.3optional: true@@ -14887,8 +18336,28 @@ snapshots:inherits: 2.0.4readable-stream: 3.6.2+ dependencies:+ buffer: 6.0.3+ inherits: 2.0.4+ readable-stream: 3.6.2++ dependencies:+ bytes: 3.1.2+ content-type: 1.0.5+ debug: 4.4.1+ http-errors: 2.0.0+ iconv-lite: 0.6.3+ on-finished: 2.4.1+ qs: 6.14.0+ raw-body: 3.0.0+ type-is: 2.0.1+ transitivePeerDependencies:+ - supports-color+@@ -14897,14 +18366,14 @@ snapshots:dependencies:ansi-align: 3.0.1camelcase: 8.0.0- chalk: 5.3.0+ chalk: 5.4.1cli-boxes: 3.0.0string-width: 7.2.0type-fest: 4.28.0widest-line: 5.0.0wrap-ansi: 9.0.0dependencies:balanced-match: 1.0.2concat-map: 0.0.1@@ -14913,9 +18382,13 @@ snapshots:dependencies:balanced-match: 1.0.2+ dependencies:+ balanced-match: 1.0.2+dependencies:- fill-range: 7.0.1+ fill-range: 7.1.1dependencies:@@ -14927,17 +18400,17 @@ snapshots:dependencies:- caniuse-lite: 1.0.30001689+ caniuse-lite: 1.0.30001721electron-to-chromium: 1.5.64node-releases: 2.0.18update-browserslist-db: 1.1.1([email protected])dependencies:- caniuse-lite: 1.0.30001721- electron-to-chromium: 1.5.165+ caniuse-lite: 1.0.30001726+ electron-to-chromium: 1.5.178node-releases: 2.0.19- update-browserslist-db: 1.1.3([email protected])+ update-browserslist-db: 1.1.3([email protected])@@ -14948,22 +18421,26 @@ snapshots:base64-js: 1.5.1ieee754: 1.2.1+ dependencies:+ base64-js: 1.5.1+ ieee754: 1.2.1+dependencies:node-gyp-build: 4.8.4dependencies:- semver: 7.6.3+ semver: 7.7.2- [email protected](@types/[email protected]):dependencies:- '@types/node': 22.10.2- '@types/react': 19.1.0+ '@types/node': 24.0.8dependencies:@@ -14978,11 +18455,17 @@ snapshots:dependencies:+ es-errors: 1.3.0function-bind: 1.1.2- get-intrinsic: 1.2.1- set-function-length: 1.1.1++ dependencies:+ call-bind-apply-helpers: 1.0.2+ get-intrinsic: 1.3.0++ [email protected]: {}dependencies:@@ -14991,10 +18474,10 @@ snapshots:- [email protected]: {}-+ [email protected]: {}+@@ -15015,6 +18498,8 @@ snapshots:+ [email protected]: {}+dependencies:camel-case: 3.0.0@@ -15076,7 +18561,7 @@ snapshots:dependencies:- readdirp: 4.0.2+ readdirp: 4.1.2@@ -15104,10 +18589,22 @@ snapshots:dependencies:restore-cursor: 3.1.0+ dependencies:+ restore-cursor: 4.0.0++ dependencies:+ restore-cursor: 5.1.0++ [email protected]: {}++ [email protected]: {}+@@ -15124,11 +18621,11 @@ snapshots:- [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):dependencies:- '@radix-ui/react-dialog': 1.1.4(@types/[email protected](@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-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog': 1.1.4(@types/[email protected](@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-primitive': 2.0.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0react-dom: 19.1.0([email protected])use-sync-external-store: 1.4.0([email protected])@@ -15136,10 +18633,24 @@ snapshots:- '@types/react'- '@types/react-dom'+ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dialog': 1.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ transitivePeerDependencies:+ - '@types/react'+ - '@types/react-dom'+dependencies:phenomenon: 1.6.0+ [email protected]: {}+@@ -15172,7 +18683,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}@@ -15200,10 +18711,20 @@ snapshots:snake-case: 2.1.0upper-case: 1.1.3+ dependencies:+ safe-buffer: 5.2.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}+@@ -15214,7 +18735,7 @@ snapshots:dependencies:- is-what: 4.1.15+ is-what: 4.1.16@@ -15223,6 +18744,23 @@ snapshots:object-assign: 4.1.1vary: 1.1.2+ dependencies:+ '@types/parse-json': 4.0.2+ import-fresh: 3.3.1+ parse-json: 5.2.0+ path-type: 4.0.0+ yaml: 1.10.2++ dependencies:+ import-fresh: 3.3.1+ js-yaml: 4.1.0+ parse-json: 5.2.0+ path-type: 4.0.0+ optionalDependencies:+ typescript: 5.7.2+@@ -15254,7 +18792,7 @@ snapshots:boolbase: 1.0.0css-what: 6.1.0domhandler: 5.0.3- domutils: 3.1.0+ domutils: 3.2.2nth-check: 2.1.1@@ -15322,7 +18860,9 @@ snapshots:dependencies:'@babel/runtime': 7.26.0- [email protected]: {}+ [email protected]: {}++ [email protected]: {}dependencies:@@ -15336,12 +18876,20 @@ snapshots:dependencies:ms: 2.1.3+ dependencies:+ ms: 2.1.3+dependencies:character-entities: 2.0.2+ dependencies:+ character-entities: 2.0.2+dependencies:mimic-response: 3.1.0@@ -15356,12 +18904,6 @@ snapshots:dependencies:clone: 1.0.4- dependencies:- get-intrinsic: 1.2.1- gopd: 1.0.1- has-property-descriptors: 1.0.0-@@ -15383,6 +18925,8 @@ snapshots:+ [email protected]: {}+@@ -15438,7 +18982,7 @@ snapshots:dependencies:domelementtype: 2.3.0dependencies:dom-serializer: 2.0.0domelementtype: 2.3.0@@ -15459,7 +19003,7 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected]))([email protected]):+ [email protected](@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):dependencies:'@libsql/client-wasm': 0.14.0optionalDependencies:@@ -15467,12 +19011,12 @@ snapshots:'@libsql/client': 0.14.0([email protected])([email protected])'@opentelemetry/api': 1.9.0'@types/pg': 8.11.10- '@types/react': 19.1.0+ '@types/react': 19.1.8better-sqlite3: 11.4.0- bun-types: 1.2.19(@types/[email protected])+ bun-types: 1.2.17react: 19.1.0- [email protected](@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected]))([email protected]):+ [email protected](@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):dependencies:'@libsql/client-wasm': 0.14.0optionalDependencies:@@ -15480,18 +19024,24 @@ snapshots:'@libsql/client': 0.14.0([email protected])([email protected])'@opentelemetry/api': 1.9.0'@types/pg': 8.11.10- '@types/react': 19.1.0+ '@types/react': 19.1.8better-sqlite3: 11.7.0- bun-types: 1.2.19(@types/[email protected])+ bun-types: 1.2.17react: 19.1.0- [email protected]([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected]))([email protected]))([email protected]):+ [email protected]([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]):dependencies:- drizzle-orm: 0.35.3(@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])- zod: 3.24.4+ drizzle-orm: 0.35.3(@cloudflare/[email protected])(@libsql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])+ zod: 3.24.1+ dependencies:+ call-bind-apply-helpers: 1.0.2+ es-errors: 1.3.0+ gopd: 1.2.0+dependencies:end-of-stream: 1.4.4@@ -15516,9 +19066,11 @@ snapshots:'@one-ini/wasm': 0.1.1commander: 10.0.1minimatch: 9.0.1- semver: 7.6.3+ semver: 7.7.2- [email protected]: {}+ [email protected]: {}++ [email protected]: {}@@ -15533,6 +19085,8 @@ snapshots:+ [email protected]: {}+dependencies:iconv-lite: 0.6.3@@ -15541,13 +19095,17 @@ snapshots:dependencies:once: 1.4.0+ dependencies:+ once: 1.4.0+ optional: true+dependencies:- '@types/cookie': 0.4.1- '@types/cors': 2.8.17- '@types/node': 22.10.2+ '@types/cors': 2.8.19+ '@types/node': 24.0.8accepts: 1.3.8base64id: 2.0.0cookie: 0.7.2@@ -15565,9 +19123,26 @@ snapshots:graceful-fs: 4.2.11tapable: 2.2.1+ dependencies:+ graceful-fs: 4.2.11+ tapable: 2.2.2+- [email protected]: {}+ dependencies:+ is-arrayish: 0.2.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ es-errors: 1.3.0dependencies:@@ -15579,13 +19154,13 @@ snapshots:dependencies:'@types/estree-jsx': 1.0.2- acorn: 8.14.0+ acorn: 8.15.0esast-util-from-estree: 2.0.0vfile-message: 4.0.2dependencies:- debug: 4.3.4+ debug: 4.4.1esbuild: 0.19.12transitivePeerDependencies:- supports-color@@ -15667,34 +19242,6 @@ snapshots:'@esbuild/win32-ia32': 0.21.5'@esbuild/win32-x64': 0.21.5- optionalDependencies:- '@esbuild/aix-ppc64': 0.25.0- '@esbuild/android-arm': 0.25.0- '@esbuild/android-arm64': 0.25.0- '@esbuild/android-x64': 0.25.0- '@esbuild/darwin-arm64': 0.25.0- '@esbuild/darwin-x64': 0.25.0- '@esbuild/freebsd-arm64': 0.25.0- '@esbuild/freebsd-x64': 0.25.0- '@esbuild/linux-arm': 0.25.0- '@esbuild/linux-arm64': 0.25.0- '@esbuild/linux-ia32': 0.25.0- '@esbuild/linux-loong64': 0.25.0- '@esbuild/linux-mips64el': 0.25.0- '@esbuild/linux-ppc64': 0.25.0- '@esbuild/linux-riscv64': 0.25.0- '@esbuild/linux-s390x': 0.25.0- '@esbuild/linux-x64': 0.25.0- '@esbuild/netbsd-arm64': 0.25.0- '@esbuild/netbsd-x64': 0.25.0- '@esbuild/openbsd-arm64': 0.25.0- '@esbuild/openbsd-x64': 0.25.0- '@esbuild/sunos-x64': 0.25.0- '@esbuild/win32-arm64': 0.25.0- '@esbuild/win32-ia32': 0.25.0- '@esbuild/win32-x64': 0.25.0-optionalDependencies:'@esbuild/aix-ppc64': 0.25.2@@ -15723,10 +19270,40 @@ snapshots:'@esbuild/win32-ia32': 0.25.2'@esbuild/win32-x64': 0.25.2+ optionalDependencies:+ '@esbuild/aix-ppc64': 0.25.5+ '@esbuild/android-arm': 0.25.5+ '@esbuild/android-arm64': 0.25.5+ '@esbuild/android-x64': 0.25.5+ '@esbuild/darwin-arm64': 0.25.5+ '@esbuild/darwin-x64': 0.25.5+ '@esbuild/freebsd-arm64': 0.25.5+ '@esbuild/freebsd-x64': 0.25.5+ '@esbuild/linux-arm': 0.25.5+ '@esbuild/linux-arm64': 0.25.5+ '@esbuild/linux-ia32': 0.25.5+ '@esbuild/linux-loong64': 0.25.5+ '@esbuild/linux-mips64el': 0.25.5+ '@esbuild/linux-ppc64': 0.25.5+ '@esbuild/linux-riscv64': 0.25.5+ '@esbuild/linux-s390x': 0.25.5+ '@esbuild/linux-x64': 0.25.5+ '@esbuild/netbsd-arm64': 0.25.5+ '@esbuild/netbsd-x64': 0.25.5+ '@esbuild/openbsd-arm64': 0.25.5+ '@esbuild/openbsd-x64': 0.25.5+ '@esbuild/sunos-x64': 0.25.5+ '@esbuild/win32-arm64': 0.25.5+ '@esbuild/win32-ia32': 0.25.5+ '@esbuild/win32-x64': 0.25.5++ [email protected]: {}+@@ -15758,7 +19335,7 @@ snapshots:dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8dependencies:@@ -15771,7 +19348,7 @@ snapshots:dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8devlop: 1.1.0@@ -15782,21 +19359,23 @@ snapshots:dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8dependencies:'@types/estree-jsx': 1.0.2- '@types/unist': 3.0.2+ '@types/unist': 3.0.3dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8+ [email protected]: {}+@@ -15805,6 +19384,12 @@ snapshots:+ [email protected]: {}++ dependencies:+ eventsource-parser: 3.0.2+dependencies:cross-spawn: 7.0.3@@ -15817,8 +19402,56 @@ snapshots:signal-exit: 3.0.7strip-final-newline: 2.0.0+ dependencies:+ cross-spawn: 7.0.6+ get-stream: 6.0.1+ human-signals: 4.3.1+ is-stream: 3.0.0+ merge-stream: 2.0.0+ npm-run-path: 5.3.0+ onetime: 6.0.0+ signal-exit: 3.0.7+ strip-final-newline: 3.0.0++ dependencies:+ express: 5.1.0++ dependencies:+ accepts: 2.0.0+ body-parser: 2.2.0+ content-disposition: 1.0.0+ content-type: 1.0.5+ cookie: 0.7.2+ cookie-signature: 1.2.2+ debug: 4.4.1+ encodeurl: 2.0.0+ escape-html: 1.0.3+ etag: 1.8.1+ finalhandler: 2.1.0+ fresh: 2.0.0+ http-errors: 2.0.0+ merge-descriptors: 2.0.0+ mime-types: 3.0.1+ on-finished: 2.4.1+ once: 1.4.0+ parseurl: 1.3.3+ proxy-addr: 2.0.7+ qs: 6.14.0+ range-parser: 1.2.1+ router: 2.2.0+ send: 1.2.0+ serve-static: 2.2.0+ statuses: 2.0.2+ type-is: 2.0.1+ vary: 1.1.2+ transitivePeerDependencies:+ - supports-color+dependencies:'@expressive-code/core': 0.41.2@@ -15880,10 +19513,6 @@ snapshots:optionalDependencies:picomatch: 4.0.2- optionalDependencies:- picomatch: 4.0.2-optionalDependencies:picomatch: 4.0.2@@ -15907,10 +19536,6 @@ snapshots:- dependencies:- to-regex-range: 5.0.1-dependencies:to-regex-range: 5.0.1@@ -15919,6 +19544,19 @@ snapshots:+ dependencies:+ debug: 4.4.1+ encodeurl: 2.0.0+ escape-html: 1.0.3+ on-finished: 2.4.1+ parseurl: 1.3.3+ statuses: 2.0.2+ transitivePeerDependencies:+ - supports-color++ [email protected]: {}+dependencies:locate-path: 6.0.0@@ -15926,10 +19564,10 @@ snapshots:dependencies:- flatted: 3.3.1+ flatted: 3.3.3keyv: 4.5.4- [email protected]: {}+ [email protected]: {}@@ -15955,6 +19593,11 @@ snapshots:cross-spawn: 7.0.6signal-exit: 4.1.0+ dependencies:+ cross-spawn: 7.0.6+ signal-exit: 4.1.0+dependencies:asynckit: 0.4.0@@ -15969,6 +19612,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+@@ -15977,6 +19624,12 @@ snapshots:jsonfile: 6.1.0universalify: 2.0.0+ dependencies:+ graceful-fs: 4.2.11+ jsonfile: 6.1.0+ universalify: 2.0.0+dependencies:graceful-fs: 4.2.11@@ -16017,15 +19670,28 @@ snapshots:dependencies:+ call-bind-apply-helpers: 1.0.2+ es-define-property: 1.0.1+ es-errors: 1.3.0+ es-object-atoms: 1.1.1function-bind: 1.1.2- has: 1.0.4- has-proto: 1.0.1- has-symbols: 1.0.3+ get-proto: 1.0.1+ gopd: 1.2.0+ has-symbols: 1.1.0+ hasown: 2.0.2+ math-intrinsics: 1.1.0+ [email protected]: {}++ dependencies:+ dunder-proto: 1.0.1+ es-object-atoms: 1.1.1+@@ -16036,7 +19702,7 @@ snapshots:dependencies:basic-ftp: 5.0.3data-uri-to-buffer: 6.0.1- debug: 4.4.0+ debug: 4.4.1fs-extra: 8.1.0transitivePeerDependencies:- supports-color@@ -16051,22 +19717,23 @@ snapshots:dependencies:foreground-child: 3.3.0- jackspeak: 2.3.6+ jackspeak: 3.4.3minimatch: 9.0.5minipass: 7.1.2+ package-json-from-dist: 1.0.1path-scurry: 1.11.1dependencies:- foreground-child: 3.3.0- jackspeak: 3.4.3- minimatch: 9.0.5+ foreground-child: 3.3.1+ jackspeak: 4.1.1+ minimatch: 10.0.3minipass: 7.1.2package-json-from-dist: 1.0.1- path-scurry: 1.11.1+ path-scurry: 2.0.0dependencies:@@ -16104,7 +19771,7 @@ snapshots:dir-glob: 3.0.1fast-glob: 3.3.2glob: 7.2.3- ignore: 5.2.4+ ignore: 5.3.2merge2: 1.4.1slash: 3.0.0@@ -16113,7 +19780,7 @@ snapshots:array-union: 2.1.0dir-glob: 3.0.1fast-glob: 3.3.1- ignore: 5.2.4+ ignore: 5.3.2merge2: 1.4.1slash: 3.0.0@@ -16147,9 +19814,7 @@ snapshots:- encoding- supports-color- dependencies:- get-intrinsic: 1.2.1+ [email protected]: {}@@ -16158,6 +19823,8 @@ snapshots:chalk: 4.1.2tinygradient: 1.1.5+ [email protected]: {}+dependencies:js-yaml: 3.14.1@@ -16201,15 +19868,7 @@ snapshots:- dependencies:- get-intrinsic: 1.2.1-- [email protected]: {}-- [email protected]: {}-- [email protected]: {}+ [email protected]: {}dependencies:@@ -16223,7 +19882,7 @@ snapshots:dependencies:- '@types/unist': 2.0.9+ '@types/unist': 2.0.11comma-separated-tokens: 2.0.3property-information: 6.3.0space-separated-tokens: 2.0.2@@ -16247,10 +19906,10 @@ snapshots:dependencies:'@types/hast': 3.0.4- '@types/unist': 3.0.2+ '@types/unist': 3.0.3devlop: 1.1.0hastscript: 8.0.0- property-information: 6.3.0+ property-information: 6.5.0vfile: 6.0.3vfile-location: 5.0.2web-namespaces: 2.0.1@@ -16292,8 +19951,8 @@ snapshots:dependencies:'@types/hast': 3.0.4- '@types/unist': 3.0.2- '@ungap/structured-clone': 1.2.0+ '@types/unist': 3.0.3+ '@ungap/structured-clone': 1.3.0hast-util-from-parse5: 8.0.1hast-util-to-parse5: 8.0.0html-void-elements: 3.0.0@@ -16308,7 +19967,7 @@ snapshots:dependencies:'@types/hast': 3.0.4- '@types/unist': 3.0.2+ '@types/unist': 3.0.3bcp-47-match: 2.0.3comma-separated-tokens: 2.0.3css-selector-parser: 3.0.5@@ -16318,14 +19977,14 @@ snapshots:hast-util-to-string: 3.0.1hast-util-whitespace: 3.0.0nth-check: 2.1.1- property-information: 6.3.0+ property-information: 6.5.0space-separated-tokens: 2.0.2unist-util-visit: 5.0.0zwitch: 2.0.4dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8'@types/estree-jsx': 1.0.2'@types/hast': 3.0.4comma-separated-tokens: 2.0.3@@ -16334,9 +19993,9 @@ snapshots:estree-util-is-identifier-name: 3.0.0hast-util-whitespace: 3.0.0mdast-util-mdx-expression: 2.0.1- mdast-util-mdx-jsx: 3.1.3+ mdast-util-mdx-jsx: 3.2.0mdast-util-mdxjs-esm: 2.0.1- property-information: 6.3.0+ property-information: 6.5.0space-separated-tokens: 2.0.2style-to-object: 0.4.4unist-util-position: 5.0.0@@ -16347,32 +20006,32 @@ snapshots:dependencies:'@types/hast': 3.0.4- '@types/unist': 3.0.2+ '@types/unist': 3.0.3ccount: 2.0.1comma-separated-tokens: 2.0.3hast-util-whitespace: 3.0.0html-void-elements: 3.0.0mdast-util-to-hast: 13.2.0- property-information: 7.0.0+ property-information: 7.1.0space-separated-tokens: 2.0.2- stringify-entities: 4.0.3+ stringify-entities: 4.0.4zwitch: 2.0.4dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8'@types/hast': 3.0.4- '@types/unist': 3.0.2+ '@types/unist': 3.0.3comma-separated-tokens: 2.0.3devlop: 1.1.0estree-util-is-identifier-name: 3.0.0hast-util-whitespace: 3.0.0mdast-util-mdx-expression: 2.0.1- mdast-util-mdx-jsx: 3.1.3+ mdast-util-mdx-jsx: 3.2.0mdast-util-mdxjs-esm: 2.0.1- property-information: 6.3.0+ property-information: 7.1.0space-separated-tokens: 2.0.2- style-to-object: 1.0.8+ style-to-js: 1.1.17unist-util-position: 5.0.0vfile-message: 4.0.2transitivePeerDependencies:@@ -16382,7 +20041,7 @@ snapshots:dependencies:'@types/hast': 3.0.4'@types/mdast': 4.0.4- '@ungap/structured-clone': 1.2.0+ '@ungap/structured-clone': 1.3.0hast-util-phrasing: 3.0.1hast-util-to-html: 9.0.5hast-util-to-text: 4.0.2@@ -16400,7 +20059,7 @@ snapshots:'@types/hast': 3.0.4comma-separated-tokens: 2.0.3devlop: 1.1.0- property-information: 6.3.0+ property-information: 6.5.0space-separated-tokens: 2.0.2web-namespaces: 2.0.1zwitch: 2.0.4@@ -16416,7 +20075,7 @@ snapshots:dependencies:'@types/hast': 3.0.4- '@types/unist': 3.0.2+ '@types/unist': 3.0.3hast-util-is-element: 3.0.0unist-util-find-after: 5.0.0@@ -16431,7 +20090,7 @@ snapshots:'@types/hast': 3.0.4comma-separated-tokens: 2.0.3hast-util-parse-selector: 4.0.0- property-information: 6.3.0+ property-information: 6.5.0space-separated-tokens: 2.0.2@@ -16439,7 +20098,7 @@ snapshots:'@types/hast': 3.0.4comma-separated-tokens: 2.0.3hast-util-parse-selector: 4.0.0- property-information: 6.3.0+ property-information: 6.5.0space-separated-tokens: 2.0.2@@ -16447,6 +20106,8 @@ snapshots:no-case: 2.3.2upper-case: 1.1.3+ [email protected]: {}+dependencies:react-is: 16.13.1@@ -16473,42 +20134,59 @@ snapshots:dependencies:domelementtype: 2.3.0domhandler: 5.0.3- domutils: 3.1.0+ domutils: 3.2.2entities: 4.5.0+ dependencies:+ depd: 2.0.0+ inherits: 2.0.4+ setprototypeof: 1.2.0+ statuses: 2.0.1+ toidentifier: 1.0.1+dependencies:'@tootallnate/once': 2.0.0agent-base: 6.0.2- debug: 4.4.0+ debug: 4.4.1transitivePeerDependencies:- supports-colordependencies:agent-base: 7.1.0- debug: 4.4.0+ debug: 4.4.1transitivePeerDependencies:- supports-colordependencies:agent-base: 6.0.2- debug: 4.4.0+ debug: 4.4.1+ transitivePeerDependencies:+ - supports-color++ dependencies:+ agent-base: 7.1.0+ debug: 4.4.1transitivePeerDependencies:- supports-colordependencies:agent-base: 7.1.0- debug: 4.4.0+ debug: 4.4.1transitivePeerDependencies:- supports-color+ [email protected]: {}+dependencies:'@babel/runtime': 7.26.0@@ -16525,12 +20203,17 @@ snapshots:- [email protected]: {}+ [email protected]: {}++ dependencies:+ parent-module: 1.0.1+ resolve-from: 4.0.0dependencies:- acorn: 8.14.0- acorn-import-attributes: 1.9.5([email protected])+ acorn: 8.15.0+ acorn-import-attributes: 1.9.5([email protected])cjs-module-lexer: 1.4.1module-details-from-path: 1.0.3@@ -16591,6 +20274,8 @@ snapshots:+ [email protected]: {}+@@ -16600,6 +20285,8 @@ snapshots:is-alphabetical: 2.0.1is-decimal: 2.0.1+ [email protected]: {}+@@ -16608,11 +20295,7 @@ snapshots:- dependencies:- has: 1.0.4-dependencies:hasown: 2.0.2@@ -16638,12 +20321,16 @@ snapshots:+ [email protected]: {}+dependencies:lower-case: 1.1.4+ [email protected]: {}+@@ -16656,19 +20343,29 @@ snapshots:+ [email protected]: {}+dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8++ [email protected]: {}+ [email protected]: {}++ [email protected]: {}++ [email protected]: {}+dependencies:upper-case: 1.1.3- [email protected]: {}+ [email protected]: {}dependencies:@@ -16687,21 +20384,19 @@ snapshots:dependencies:'@isaacs/cliui': 8.0.2optionalDependencies:'@pkgjs/parseargs': 0.11.0dependencies:'@isaacs/cliui': 8.0.2- optionalDependencies:- '@pkgjs/parseargs': 0.11.0dependencies:- '@types/node': 22.10.2+ '@types/node': 24.0.8merge-stream: 2.0.0supports-color: 8.1.1@@ -16709,7 +20404,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}@@ -16717,8 +20412,6 @@ snapshots:- [email protected]: {}-@@ -16817,8 +20510,8 @@ snapshots:strip-json-comments: 5.0.1summary: 2.1.0typescript: 5.7.2- zod: 3.24.4- zod-validation-error: 3.3.0([email protected])+ zod: 3.24.1+ zod-validation-error: 3.3.0([email protected])@@ -16837,6 +20530,21 @@ snapshots:'@libsql/linux-x64-musl': 0.4.5'@libsql/win32-x64-msvc': 0.4.5+ dependencies:+ '@neon-rs/load': 0.0.4+ detect-libc: 2.0.2+ optionalDependencies:+ '@libsql/darwin-arm64': 0.5.13+ '@libsql/darwin-x64': 0.5.13+ '@libsql/linux-arm-gnueabihf': 0.5.13+ '@libsql/linux-arm-musleabihf': 0.5.13+ '@libsql/linux-arm64-gnu': 0.5.13+ '@libsql/linux-arm64-musl': 0.5.13+ '@libsql/linux-x64-gnu': 0.5.13+ '@libsql/linux-x64-musl': 0.5.13+ '@libsql/win32-x64-msvc': 0.5.13+optional: true@@ -16898,6 +20606,10 @@ snapshots:+ dependencies:+ react: 19.1.0+@@ -16936,6 +20648,21 @@ snapshots:chalk: 4.1.2is-unicode-supported: 0.1.0+ dependencies:+ chalk: 5.4.1+ is-unicode-supported: 1.3.0++ dependencies:+ chalk: 5.4.1+ is-unicode-supported: 1.3.0++ dependencies:+ is-unicode-supported: 2.1.0+ yoctocolors: 2.1.1+@@ -16952,6 +20679,8 @@ snapshots:+ [email protected]: {}+dependencies:yallist: 3.1.1@@ -16966,6 +20695,10 @@ snapshots:dependencies:react: 19.1.0+ dependencies:+ react: 19.1.0+@@ -16978,12 +20711,12 @@ snapshots:dependencies:- '@jridgewell/sourcemap-codec': 1.5.0+ '@jridgewell/sourcemap-codec': 1.5.3dependencies:- '@babel/parser': 7.26.3- '@babel/types': 7.26.3+ '@babel/parser': 7.27.7+ '@babel/types': 7.27.7source-map-js: 1.2.1@@ -16996,6 +20729,8 @@ snapshots:+ [email protected]: {}+dependencies:marked: 7.0.4@@ -17004,24 +20739,24 @@ snapshots:dependencies:'@types/mdast': 3.0.14- '@types/unist': 2.0.9+ '@types/unist': 2.0.11unist-util-visit: 4.1.2dependencies:'@types/mdast': 4.0.4- '@types/unist': 3.0.2+ '@types/unist': 3.0.3unist-util-visit: 5.0.0dependencies:'@types/mdast': 4.0.4- '@types/unist': 3.0.2+ '@types/unist': 3.0.3devlop: 1.1.0- mdast-util-from-markdown: 2.0.1- mdast-util-to-markdown: 2.1.0- parse-entities: 4.0.1- stringify-entities: 4.0.3+ mdast-util-from-markdown: 2.0.2+ mdast-util-to-markdown: 2.1.2+ parse-entities: 4.0.2+ stringify-entities: 4.0.4unist-util-visit-parents: 6.0.1transitivePeerDependencies:- supports-color@@ -17036,7 +20771,7 @@ snapshots:dependencies:'@types/mdast': 3.0.14- '@types/unist': 2.0.9+ '@types/unist': 2.0.11decode-named-character-reference: 1.0.2mdast-util-to-string: 3.2.0micromark: 3.2.0@@ -17050,19 +20785,19 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@types/mdast': 4.0.4- '@types/unist': 3.0.2- decode-named-character-reference: 1.0.2+ '@types/unist': 3.0.3+ decode-named-character-reference: 1.2.0devlop: 1.1.0mdast-util-to-string: 4.0.0- micromark: 4.0.0- micromark-util-decode-numeric-character-reference: 2.0.1- micromark-util-decode-string: 2.0.0- micromark-util-normalize-identifier: 2.0.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark: 4.0.2+ micromark-util-decode-numeric-character-reference: 2.0.2+ micromark-util-decode-string: 2.0.1+ micromark-util-normalize-identifier: 2.0.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2unist-util-stringify-position: 4.0.0transitivePeerDependencies:- supports-color@@ -17072,8 +20807,8 @@ snapshots:'@types/mdast': 4.0.4devlop: 1.1.0escape-string-regexp: 5.0.0- mdast-util-from-markdown: 2.0.1- mdast-util-to-markdown: 2.1.0+ mdast-util-from-markdown: 2.0.2+ mdast-util-to-markdown: 2.1.2micromark-extension-frontmatter: 2.0.0transitivePeerDependencies:- supports-color@@ -17090,16 +20825,16 @@ snapshots:dependencies:'@types/mdast': 4.0.4devlop: 1.1.0- mdast-util-from-markdown: 2.0.1+ mdast-util-from-markdown: 2.0.2mdast-util-to-markdown: 2.1.0- micromark-util-normalize-identifier: 2.0.0+ micromark-util-normalize-identifier: 2.0.1transitivePeerDependencies:- supports-colordependencies:'@types/mdast': 4.0.4- mdast-util-from-markdown: 2.0.1+ mdast-util-from-markdown: 2.0.2mdast-util-to-markdown: 2.1.0transitivePeerDependencies:- supports-color@@ -17109,7 +20844,7 @@ snapshots:'@types/mdast': 4.0.4devlop: 1.1.0markdown-table: 3.0.3- mdast-util-from-markdown: 2.0.1+ mdast-util-from-markdown: 2.0.2mdast-util-to-markdown: 2.1.0transitivePeerDependencies:- supports-color@@ -17118,14 +20853,14 @@ snapshots:dependencies:'@types/mdast': 4.0.4devlop: 1.1.0- mdast-util-from-markdown: 2.0.1+ mdast-util-from-markdown: 2.0.2mdast-util-to-markdown: 2.1.0transitivePeerDependencies:- supports-colordependencies:- mdast-util-from-markdown: 2.0.1+ mdast-util-from-markdown: 2.0.2mdast-util-gfm-autolink-literal: 2.0.0mdast-util-gfm-footnote: 2.0.0mdast-util-gfm-strikethrough: 2.0.0@@ -17137,27 +20872,27 @@ snapshots:dependencies:- '@types/estree-jsx': 1.0.2+ '@types/estree-jsx': 1.0.5'@types/hast': 3.0.4'@types/mdast': 4.0.4devlop: 1.1.0- mdast-util-from-markdown: 2.0.1- mdast-util-to-markdown: 2.1.0+ mdast-util-from-markdown: 2.0.2+ mdast-util-to-markdown: 2.1.2transitivePeerDependencies:- supports-colordependencies:- '@types/estree-jsx': 1.0.2+ '@types/estree-jsx': 1.0.5'@types/hast': 3.0.4'@types/mdast': 4.0.4- '@types/unist': 3.0.2+ '@types/unist': 3.0.3ccount: 2.0.1devlop: 1.1.0- mdast-util-from-markdown: 2.0.1- mdast-util-to-markdown: 2.1.0- parse-entities: 4.0.1- stringify-entities: 4.0.3+ mdast-util-from-markdown: 2.0.2+ mdast-util-to-markdown: 2.1.2+ parse-entities: 4.0.2+ stringify-entities: 4.0.4unist-util-stringify-position: 4.0.0vfile-message: 4.0.2transitivePeerDependencies:@@ -17165,9 +20900,9 @@ snapshots:dependencies:- mdast-util-from-markdown: 2.0.1+ mdast-util-from-markdown: 2.0.2mdast-util-mdx-expression: 2.0.1- mdast-util-mdx-jsx: 3.1.3+ mdast-util-mdx-jsx: 3.2.0mdast-util-mdxjs-esm: 2.0.1mdast-util-to-markdown: 2.1.0transitivePeerDependencies:@@ -17175,12 +20910,12 @@ snapshots:dependencies:- '@types/estree-jsx': 1.0.2+ '@types/estree-jsx': 1.0.5'@types/hast': 3.0.4'@types/mdast': 4.0.4devlop: 1.1.0- mdast-util-from-markdown: 2.0.1- mdast-util-to-markdown: 2.1.0+ mdast-util-from-markdown: 2.0.2+ mdast-util-to-markdown: 2.1.2transitivePeerDependencies:- supports-color@@ -17204,9 +20939,9 @@ snapshots:dependencies:'@types/hast': 3.0.4'@types/mdast': 4.0.4- '@ungap/structured-clone': 1.2.0+ '@ungap/structured-clone': 1.3.0devlop: 1.1.0- micromark-util-sanitize-uri: 2.0.0+ micromark-util-sanitize-uri: 2.0.1trim-lines: 3.0.1unist-util-position: 5.0.0unist-util-visit: 5.0.0@@ -17215,7 +20950,7 @@ snapshots:dependencies:'@types/mdast': 4.0.4- '@types/unist': 3.0.2+ '@types/unist': 3.0.3longest-streak: 3.1.0mdast-util-phrasing: 4.1.0mdast-util-to-string: 4.0.0@@ -17223,6 +20958,18 @@ snapshots:unist-util-visit: 5.0.0zwitch: 2.0.4+ dependencies:+ '@types/mdast': 4.0.4+ '@types/unist': 3.0.3+ longest-streak: 3.1.0+ mdast-util-phrasing: 4.1.0+ mdast-util-to-string: 4.0.0+ micromark-util-classify-character: 2.0.1+ micromark-util-decode-string: 2.0.1+ unist-util-visit: 5.0.0+ zwitch: 2.0.4+dependencies:'@types/mdast': 3.0.14@@ -17233,12 +20980,12 @@ snapshots:dependencies:'@babel/runtime': 7.26.0'@esbuild-plugins/node-resolve': 0.2.2([email protected])'@fal-works/esbuild-plugin-global-externals': 2.1.2- '@mdx-js/esbuild': 3.1.0([email protected])([email protected])+ '@mdx-js/esbuild': 3.1.0([email protected])esbuild: 0.21.5gray-matter: 4.0.3remark-frontmatter: 5.0.0@@ -17249,6 +20996,10 @@ snapshots:- acorn- supports-color+ [email protected]: {}++ [email protected]: {}+@@ -17274,7 +21025,7 @@ snapshots:dependencies:- decode-named-character-reference: 1.0.2+ decode-named-character-reference: 1.2.0devlop: 1.1.0micromark-factory-destination: 2.0.0micromark-factory-label: 2.0.0@@ -17285,35 +21036,54 @@ snapshots:micromark-util-chunked: 2.0.0micromark-util-classify-character: 2.0.0micromark-util-html-tag-name: 2.0.0- micromark-util-normalize-identifier: 2.0.0+ micromark-util-normalize-identifier: 2.0.1micromark-util-resolve-all: 2.0.0micromark-util-subtokenize: 2.0.1- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ decode-named-character-reference: 1.2.0+ devlop: 1.1.0+ micromark-factory-destination: 2.0.1+ micromark-factory-label: 2.0.1+ micromark-factory-space: 2.0.1+ micromark-factory-title: 2.0.1+ micromark-factory-whitespace: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-chunked: 2.0.1+ micromark-util-classify-character: 2.0.1+ micromark-util-html-tag-name: 2.0.1+ micromark-util-normalize-identifier: 2.0.1+ micromark-util-resolve-all: 2.0.1+ micromark-util-subtokenize: 2.1.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:devlop: 1.1.0- micromark-factory-space: 2.0.0- micromark-factory-whitespace: 2.0.0- micromark-util-character: 2.1.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0- parse-entities: 4.0.1+ micromark-factory-space: 2.0.1+ micromark-factory-whitespace: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2+ parse-entities: 4.0.2dependencies:fault: 2.0.1- micromark-util-character: 2.1.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:micromark-util-character: 2.1.0micromark-util-sanitize-uri: 2.0.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:@@ -17321,10 +21091,10 @@ snapshots:micromark-core-commonmark: 2.0.1micromark-factory-space: 2.0.0micromark-util-character: 2.1.0- micromark-util-normalize-identifier: 2.0.0+ micromark-util-normalize-identifier: 2.0.1micromark-util-sanitize-uri: 2.0.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:@@ -17332,28 +21102,28 @@ snapshots:micromark-util-chunked: 2.0.0micromark-util-classify-character: 2.0.0micromark-util-resolve-all: 2.0.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:devlop: 1.1.0micromark-factory-space: 2.0.0micromark-util-character: 2.1.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:- micromark-util-types: 2.0.0+ micromark-util-types: 2.0.2dependencies:devlop: 1.1.0micromark-factory-space: 2.0.0micromark-util-character: 2.1.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:@@ -17364,59 +21134,59 @@ snapshots:micromark-extension-gfm-tagfilter: 2.0.0micromark-extension-gfm-task-list-item: 2.1.0micromark-util-combine-extensions: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-types: 2.0.2dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8devlop: 1.1.0micromark-factory-mdx-expression: 2.0.2- micromark-factory-space: 2.0.0- micromark-util-character: 2.1.0+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1micromark-util-events-to-acorn: 2.0.2- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:'@types/acorn': 4.0.6- '@types/estree': 1.0.6+ '@types/estree': 1.0.8devlop: 1.1.0estree-util-is-identifier-name: 3.0.0micromark-factory-mdx-expression: 2.0.2- micromark-factory-space: 2.0.0- micromark-util-character: 2.1.0+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1micromark-util-events-to-acorn: 2.0.2- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2vfile-message: 4.0.2dependencies:- micromark-util-types: 2.0.0+ micromark-util-types: 2.0.2dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8devlop: 1.1.0- micromark-core-commonmark: 2.0.1- micromark-util-character: 2.1.0+ micromark-core-commonmark: 2.0.3+ micromark-util-character: 2.1.1micromark-util-events-to-acorn: 2.0.2- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2unist-util-position-from-estree: 2.0.0vfile-message: 4.0.2dependencies:- acorn: 8.14.0- acorn-jsx: 5.3.2([email protected])+ acorn: 8.15.0+ acorn-jsx: 5.3.2([email protected])micromark-extension-mdx-expression: 3.0.0micromark-extension-mdx-jsx: 3.0.1micromark-extension-mdx-md: 2.0.0micromark-extension-mdxjs-esm: 3.0.0- micromark-util-combine-extensions: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-combine-extensions: 2.0.1+ micromark-util-types: 2.0.2dependencies:@@ -17427,8 +21197,14 @@ snapshots:dependencies:micromark-util-character: 2.1.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:@@ -17441,18 +21217,25 @@ snapshots:dependencies:devlop: 1.1.0micromark-util-character: 2.1.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ devlop: 1.1.0+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8devlop: 1.1.0- micromark-factory-space: 2.0.0- micromark-util-character: 2.1.0+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1micromark-util-events-to-acorn: 2.0.2- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2unist-util-position-from-estree: 2.0.0vfile-message: 4.0.2@@ -17464,7 +21247,12 @@ snapshots:dependencies:micromark-util-character: 2.1.0- micromark-util-types: 2.0.0+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-character: 2.1.1+ micromark-util-types: 2.0.2dependencies:@@ -17477,8 +21265,15 @@ snapshots:dependencies:micromark-factory-space: 2.0.0micromark-util-character: 2.1.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:@@ -17491,8 +21286,15 @@ snapshots:dependencies:micromark-factory-space: 2.0.0micromark-util-character: 2.1.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:@@ -17501,8 +21303,13 @@ snapshots:dependencies:- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:@@ -17510,7 +21317,11 @@ snapshots:dependencies:- micromark-util-symbol: 2.0.0+ micromark-util-symbol: 2.0.1++ dependencies:+ micromark-util-symbol: 2.0.1dependencies:@@ -17521,8 +21332,14 @@ snapshots:dependencies:micromark-util-character: 2.1.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2dependencies:@@ -17532,15 +21349,20 @@ snapshots:dependencies:micromark-util-chunked: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-chunked: 2.0.1+ micromark-util-types: 2.0.2dependencies:micromark-util-symbol: 1.1.0dependencies:- micromark-util-symbol: 2.0.0+ micromark-util-symbol: 2.0.1dependencies:@@ -17551,37 +21373,48 @@ snapshots:dependencies:- decode-named-character-reference: 1.0.2+ decode-named-character-reference: 1.2.0micromark-util-character: 2.1.0- micromark-util-decode-numeric-character-reference: 2.0.1- micromark-util-symbol: 2.0.0+ micromark-util-decode-numeric-character-reference: 2.0.2+ micromark-util-symbol: 2.0.1++ dependencies:+ decode-named-character-reference: 1.2.0+ micromark-util-character: 2.1.1+ micromark-util-decode-numeric-character-reference: 2.0.2+ micromark-util-symbol: 2.0.1+ [email protected]: {}+dependencies:'@types/acorn': 4.0.6- '@types/estree': 1.0.6- '@types/unist': 3.0.2+ '@types/estree': 1.0.8+ '@types/unist': 3.0.3devlop: 1.1.0estree-util-visit: 2.0.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2vfile-message: 4.0.2+ [email protected]: {}+dependencies:micromark-util-symbol: 1.1.0dependencies:- micromark-util-symbol: 2.0.0+ micromark-util-symbol: 2.0.1dependencies:@@ -17589,7 +21422,11 @@ snapshots:dependencies:- micromark-util-types: 2.0.0+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-types: 2.0.2dependencies:@@ -17601,7 +21438,13 @@ snapshots:dependencies:micromark-util-character: 2.1.0micromark-util-encode: 2.0.0- micromark-util-symbol: 2.0.0+ micromark-util-symbol: 2.0.1++ dependencies:+ micromark-util-character: 2.1.1+ micromark-util-encode: 2.0.1+ micromark-util-symbol: 2.0.1dependencies:@@ -17614,21 +21457,28 @@ snapshots:dependencies:devlop: 1.1.0micromark-util-chunked: 2.0.0- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ devlop: 1.1.0+ micromark-util-chunked: 2.0.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2- [email protected]: {}+ [email protected]: {}- [email protected]: {}+ [email protected]: {}dependencies:'@types/debug': 4.1.10- debug: 4.4.0+ debug: 4.4.1decode-named-character-reference: 1.0.2micromark-core-commonmark: 1.1.0micromark-factory-space: 1.1.0@@ -17647,25 +21497,25 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:- '@types/debug': 4.1.10- debug: 4.4.0- decode-named-character-reference: 1.0.2+ '@types/debug': 4.1.12+ debug: 4.4.1+ decode-named-character-reference: 1.2.0devlop: 1.1.0- micromark-core-commonmark: 2.0.1- micromark-factory-space: 2.0.0- micromark-util-character: 2.1.0- micromark-util-chunked: 2.0.0- micromark-util-combine-extensions: 2.0.0- micromark-util-decode-numeric-character-reference: 2.0.1- micromark-util-encode: 2.0.0- micromark-util-normalize-identifier: 2.0.0- micromark-util-resolve-all: 2.0.0- micromark-util-sanitize-uri: 2.0.0- micromark-util-subtokenize: 2.0.1- micromark-util-symbol: 2.0.0- micromark-util-types: 2.0.0+ micromark-core-commonmark: 2.0.3+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-chunked: 2.0.1+ micromark-util-combine-extensions: 2.0.1+ micromark-util-decode-numeric-character-reference: 2.0.2+ micromark-util-encode: 2.0.1+ micromark-util-normalize-identifier: 2.0.1+ micromark-util-resolve-all: 2.0.1+ micromark-util-sanitize-uri: 2.0.1+ micromark-util-subtokenize: 2.1.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2transitivePeerDependencies:- supports-color@@ -17681,21 +21531,39 @@ snapshots:+ [email protected]: {}+dependencies:mime-db: 1.52.0+ dependencies:+ mime-db: 1.54.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@isaacs/brace-expansion': 5.0.0+dependencies:- brace-expansion: 1.1.11+ brace-expansion: 1.1.12++ dependencies:+ brace-expansion: 2.0.2dependencies:- brace-expansion: 2.0.1+ brace-expansion: 2.0.2dependencies:@@ -17703,7 +21571,7 @@ snapshots:dependencies:- brace-expansion: 2.0.1+ brace-expansion: 2.0.2@@ -17723,18 +21591,20 @@ snapshots:dependencies:minimist: 1.2.8+ [email protected]: {}+dependencies:- acorn: 8.14.0+ acorn: 8.15.0pathe: 1.1.2pkg-types: 1.3.1ufo: 1.5.4dependencies:- acorn: 8.14.0+ acorn: 8.15.0pathe: 2.0.3pkg-types: 1.3.1ufo: 1.5.4@@ -17749,10 +21619,37 @@ snapshots:+ dependencies:+ '@bundled-es-modules/cookie': 2.0.1+ '@bundled-es-modules/statuses': 1.0.1+ '@bundled-es-modules/tough-cookie': 0.1.6+ '@inquirer/confirm': 5.1.12(@types/[email protected])+ '@mswjs/interceptors': 0.39.2+ '@open-draft/deferred-promise': 2.2.0+ '@open-draft/until': 2.1.0+ '@types/cookie': 0.6.0+ '@types/statuses': 2.0.6+ graphql: 16.11.0+ headers-polyfill: 4.0.3+ is-node-process: 1.2.0+ outvariant: 1.4.3+ path-to-regexp: 6.3.0+ picocolors: 1.1.1+ strict-event-emitter: 0.5.1+ type-fest: 4.28.0+ yargs: 17.7.2+ optionalDependencies:+ typescript: 5.7.2+ transitivePeerDependencies:+ - '@types/node'++ [email protected]: {}+dependencies:any-promise: 1.3.0@@ -17761,6 +21658,8 @@ snapshots:+ [email protected]: {}+@@ -17771,60 +21670,102 @@ snapshots:+ optional: true++ [email protected]: {}+- [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):+ [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:'@auth/core': 0.37.2- next: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0- [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):+ [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:'@auth/core': 0.39.1- next: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0++ [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ dependencies:+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ react: 19.1.0+ react-dom: 19.1.0([email protected])++ [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ dependencies:+ next: 15.3.1(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0+ react-dom: 19.1.0([email protected])- [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:- next: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0react-dom: 19.1.0([email protected])- [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:- next: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react: 19.1.0react-dom: 19.1.0([email protected])- [email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):dependencies:- '@next/env': 15.2.4+ '@next/env': 15.3.1'@swc/counter': 0.1.3'@swc/helpers': 0.5.15busboy: 1.6.0- caniuse-lite: 1.0.30001689+ caniuse-lite: 1.0.30001721postcss: 8.4.31react: 19.1.0react-dom: 19.1.0([email protected])- styled-jsx: 5.1.6([email protected])+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])optionalDependencies:- '@next/swc-darwin-arm64': 15.2.4- '@next/swc-darwin-x64': 15.2.4- '@next/swc-linux-arm64-gnu': 15.2.4- '@next/swc-linux-arm64-musl': 15.2.4- '@next/swc-linux-x64-gnu': 15.2.4- '@next/swc-linux-x64-musl': 15.2.4- '@next/swc-win32-arm64-msvc': 15.2.4- '@next/swc-win32-x64-msvc': 15.2.4+ '@next/swc-darwin-arm64': 15.3.1+ '@next/swc-darwin-x64': 15.3.1+ '@next/swc-linux-arm64-gnu': 15.3.1+ '@next/swc-linux-arm64-musl': 15.3.1+ '@next/swc-linux-x64-gnu': 15.3.1+ '@next/swc-linux-x64-musl': 15.3.1+ '@next/swc-win32-arm64-msvc': 15.3.1+ '@next/swc-win32-x64-msvc': 15.3.1'@opentelemetry/api': 1.9.0- sharp: 0.33.5+ sharp: 0.34.2+ transitivePeerDependencies:+ - '@babel/core'+ - babel-plugin-macros++ [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@next/env': 15.3.4+ '@swc/counter': 0.1.3+ '@swc/helpers': 0.5.15+ busboy: 1.6.0+ caniuse-lite: 1.0.30001721+ postcss: 8.4.31+ react: 19.1.0+ react-dom: 19.1.0([email protected])+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])+ optionalDependencies:+ '@next/swc-darwin-arm64': 15.3.4+ '@next/swc-darwin-x64': 15.3.4+ '@next/swc-linux-arm64-gnu': 15.3.4+ '@next/swc-linux-arm64-musl': 15.3.4+ '@next/swc-linux-x64-gnu': 15.3.4+ '@next/swc-linux-x64-musl': 15.3.4+ '@next/swc-win32-arm64-msvc': 15.3.4+ '@next/swc-win32-x64-msvc': 15.3.4+ '@opentelemetry/api': 1.9.0+ sharp: 0.34.2transitivePeerDependencies:- '@babel/core'- babel-plugin-macros@@ -17839,11 +21780,11 @@ snapshots:dependencies:- semver: 7.6.3+ semver: 7.7.2dependencies:- semver: 7.7.1+ semver: 7.7.2optional: true@@ -17882,7 +21823,7 @@ snapshots:isbinaryfile: 4.0.10lodash.get: 4.4.2mkdirp: 0.5.6- resolve: 1.22.9+ resolve: 1.22.10@@ -17898,35 +21839,43 @@ snapshots:dependencies:path-key: 3.1.1+ dependencies:+ path-key: 4.0.0+dependencies:boolbase: 1.0.0- [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):+ [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:mitt: 3.0.1react: 19.1.0optionalDependencies:- next: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- [email protected]: {}+ [email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]):+ dependencies:+ mitt: 3.0.1+ react: 19.1.0+ optionalDependencies:+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- [email protected]: {}+ [email protected]: {}- [email protected]: {}+ [email protected]: {}- [email protected]: {}+ [email protected]: {}- optional: true+ [email protected]: {}dependencies:@@ -17938,6 +21887,10 @@ snapshots:+ dependencies:+ ee-first: 1.1.1+dependencies:wrappy: 1.0.2@@ -17946,6 +21899,14 @@ snapshots:dependencies:mimic-fn: 2.1.0+ dependencies:+ mimic-fn: 4.0.0++ dependencies:+ mimic-function: 5.0.1+@@ -17981,8 +21942,34 @@ snapshots:strip-ansi: 6.0.1wcwidth: 1.0.1+ dependencies:+ chalk: 5.3.0+ cli-cursor: 4.0.0+ cli-spinners: 2.9.1+ is-interactive: 2.0.0+ is-unicode-supported: 1.3.0+ log-symbols: 5.1.0+ stdin-discarder: 0.1.0+ strip-ansi: 7.1.0+ wcwidth: 1.0.1++ dependencies:+ chalk: 5.4.1+ cli-cursor: 5.0.0+ cli-spinners: 2.9.2+ is-interactive: 2.0.0+ is-unicode-supported: 2.1.0+ log-symbols: 6.0.0+ stdin-discarder: 0.2.2+ string-width: 7.2.0+ strip-ansi: 7.1.0++ [email protected]: {}+dependencies:yocto-queue: 0.1.0@@ -18018,7 +22005,7 @@ snapshots:dependencies:'@tootallnate/quickjs-emscripten': 0.23.0agent-base: 7.1.0- debug: 4.4.0+ debug: 4.4.1get-uri: 6.0.2http-proxy-agent: 7.0.0https-proxy-agent: 7.0.2@@ -18053,21 +22040,31 @@ snapshots:dependencies:no-case: 2.3.2dependencies:- '@types/unist': 2.0.9- character-entities: 2.0.2+ callsites: 3.1.0++ dependencies:+ '@types/unist': 2.0.11character-entities-legacy: 3.0.0character-reference-invalid: 2.0.1- decode-named-character-reference: 1.0.2+ decode-named-character-reference: 1.2.0is-alphanumerical: 2.0.1is-decimal: 2.0.1is-hexadecimal: 2.0.1+ dependencies:+ '@babel/code-frame': 7.26.2+ error-ex: 1.3.2+ json-parse-even-better-errors: 2.3.1+ lines-and-columns: 1.2.4+dependencies:'@types/nlcst': 2.0.3- '@types/unist': 3.0.2+ '@types/unist': 3.0.3nlcst-to-string: 4.0.0unist-util-modify-children: 4.0.0unist-util-visit-children: 3.0.0@@ -18086,6 +22083,8 @@ snapshots:leac: 0.6.0peberminta: 0.9.0+ [email protected]: {}+dependencies:camel-case: 3.0.0@@ -18103,6 +22102,8 @@ snapshots:+ [email protected]: {}+@@ -18110,6 +22111,15 @@ snapshots:lru-cache: 10.4.3minipass: 7.1.2+ dependencies:+ lru-cache: 11.1.0+ minipass: 7.1.2++ [email protected]: {}++ [email protected]: {}+@@ -18122,10 +22132,9 @@ snapshots:- optional: true+ [email protected]: {}- [email protected]: {}+ [email protected]: {}dependencies:@@ -18139,12 +22148,11 @@ snapshots:dependencies:pg-int8: 1.0.1pg-numeric: 1.0.2- postgres-array: 3.0.2+ postgres-array: 3.0.4postgres-bytea: 3.0.0postgres-date: 2.1.0postgres-interval: 3.0.0postgres-range: 1.1.4- optional: true@@ -18158,6 +22166,8 @@ snapshots:+ [email protected]: {}+dependencies:confbox: 0.1.8@@ -18174,20 +22184,20 @@ snapshots:- [email protected]([email protected])([email protected](@types/[email protected])([email protected])):+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])):dependencies:lilconfig: 2.1.0yaml: 2.3.3optionalDependencies:- postcss: 8.5.3+ postcss: 8.5.6ts-node: 10.9.2(@types/[email protected])([email protected])- [email protected]([email protected])([email protected](@types/[email protected])([email protected])):+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])):dependencies:lilconfig: 2.1.0yaml: 2.3.3optionalDependencies:- postcss: 8.5.3+ postcss: 8.5.6ts-node: 10.9.2(@types/[email protected])([email protected])@@ -18217,38 +22227,33 @@ snapshots:picocolors: 1.0.0source-map-js: 1.2.0dependencies:- nanoid: 3.3.8+ nanoid: 3.3.11picocolors: 1.1.1source-map-js: 1.2.1- optional: true+ [email protected]: {}dependencies:obuf: 1.1.2- optional: true- optional: true+ [email protected]: {}dependencies:xtend: 4.0.2- optional: true+ [email protected]: {}- optional: true+ [email protected]: {}dependencies:@@ -18278,19 +22283,19 @@ snapshots:tar-fs: 2.1.1tunnel-agent: 0.6.0dependencies:detect-libc: 2.0.4expand-template: 2.0.3github-from-package: 0.0.0minimist: 1.2.8mkdirp-classic: 0.5.3- napi-build-utils: 1.0.2- node-abi: 3.71.0- pump: 3.0.2+ napi-build-utils: 2.0.0+ node-abi: 3.75.0+ pump: 3.0.3rc: 1.2.8simple-get: 4.0.1- tar-fs: 2.1.1+ tar-fs: 2.1.3tunnel-agent: 0.6.0optional: true@@ -18299,6 +22304,8 @@ snapshots:+ [email protected]: {}+@@ -18324,7 +22331,9 @@ snapshots:- [email protected]: {}+ [email protected]: {}++ [email protected]: {}@@ -18344,13 +22353,18 @@ snapshots:'@protobufjs/path': 1.1.2'@protobufjs/pool': 1.1.0'@protobufjs/utf8': 1.1.0- '@types/node': 22.10.2+ '@types/node': 24.0.8long: 5.2.3+ dependencies:+ forwarded: 0.2.0+ ipaddr.js: 1.9.1+dependencies:agent-base: 7.1.0- debug: 4.3.4+ debug: 4.4.1http-proxy-agent: 7.0.0https-proxy-agent: 7.0.2lru-cache: 7.18.3@@ -18362,22 +22376,30 @@ snapshots:+ dependencies:+ punycode: 2.3.1+dependencies:end-of-stream: 1.4.4once: 1.4.0dependencies:- end-of-stream: 1.4.4+ end-of-stream: 1.4.5once: 1.4.0optional: true+ [email protected]: {}+dependencies:- side-channel: 1.0.4+ side-channel: 1.1.0++ [email protected]: {}@@ -18389,6 +22411,15 @@ snapshots:dependencies:safe-buffer: 5.2.1+ [email protected]: {}++ dependencies:+ bytes: 3.1.2+ http-errors: 2.0.0+ iconv-lite: 0.6.3+ unpipe: 1.0.0+dependencies:deep-extend: 0.6.0@@ -18401,27 +22432,33 @@ snapshots:date-fns: 2.30.0react: 19.1.0+ dependencies:+ date-fns: 4.1.0+ react: 19.1.0+dependencies:react: 19.1.0scheduler: 0.26.0- [email protected](@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]):+ [email protected](@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]):dependencies:- '@babel/parser': 7.24.5- '@babel/traverse': 7.25.6- chalk: 4.1.2+ '@babel/parser': 7.27.7+ '@babel/traverse': 7.27.7+ chalk: 5.4.1chokidar: 4.0.3- commander: 11.1.0- debounce: 2.0.0- esbuild: 0.25.0- glob: 10.3.4- log-symbols: 4.1.0- mime-types: 2.1.35- next: 15.2.4(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ commander: 13.1.0+ debounce: 2.2.0+ esbuild: 0.25.5+ glob: 11.0.3+ log-symbols: 7.0.1+ mime-types: 3.0.1+ next: 15.3.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])normalize-path: 3.0.0- ora: 5.4.1+ ora: 8.2.0socket.io: 4.8.1([email protected])([email protected])+ tsconfig-paths: 4.2.0transitivePeerDependencies:- '@babel/core'- '@opentelemetry/api'@@ -18435,7 +22472,7 @@ snapshots:- supports-color- utf-8-validatedependencies:react: 19.1.0@@ -18449,24 +22486,39 @@ snapshots:dependencies:react: 19.1.0- react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])tslib: 2.8.1optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6dependencies:react: 19.1.0- react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])- react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])tslib: 2.8.1- use-callback-ref: 1.3.3(@types/[email protected])([email protected])- use-sidecar: 1.1.3(@types/[email protected])([email protected])+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])+ use-sidecar: 1.1.3(@types/[email protected])([email protected])optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6++ dependencies:+ react: 19.1.0+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])+ use-sidecar: 1.1.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.1.6++ dependencies:+ react-dom: 19.1.0([email protected])dependencies:@@ -18476,13 +22528,13 @@ snapshots:react-dom: 19.1.0([email protected])dependencies:get-nonce: 1.0.1react: 19.1.0tslib: 2.8.1optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6dependencies:@@ -18501,7 +22553,7 @@ snapshots:react-dom: 19.1.0([email protected])swr: 2.2.4([email protected])dependencies:loose-envify: 1.4.0@@ -18519,8 +22571,18 @@ snapshots:+ [email protected]: {}++ dependencies:+ ast-types: 0.16.1+ esprima: 4.0.1+ source-map: 0.6.1+ tiny-invariant: 1.3.3+ tslib: 2.8.1+dependencies:decimal.js-light: 2.5.1@@ -18540,23 +22602,13 @@ snapshots:dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8estree-util-build-jsx: 3.0.1vfile: 6.0.3- dependencies:- acorn-jsx: 5.3.2([email protected])- estree-util-to-js: 2.0.0- recma-parse: 1.0.0- recma-stringify: 1.0.0- unified: 11.0.5- transitivePeerDependencies:- - acorn-dependencies:- acorn-jsx: 5.3.2([email protected])+ acorn-jsx: 5.3.2([email protected])estree-util-to-js: 2.0.0recma-parse: 1.0.0recma-stringify: 1.0.0@@ -18566,14 +22618,14 @@ snapshots:dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8esast-util-from-js: 2.0.1unified: 11.0.5vfile: 6.0.3dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8estree-util-to-js: 2.0.0unified: 11.0.5vfile: 6.0.3@@ -18605,7 +22657,7 @@ snapshots:'@ungap/structured-clone': 1.2.0hast-util-heading-rank: 3.0.0hast-util-is-element: 3.0.0- unified: 11.0.4+ unified: 11.0.5unist-util-visit: 5.0.0@@ -18631,6 +22683,12 @@ snapshots:hast-util-whitespace: 3.0.0unist-util-is: 6.0.0+ dependencies:+ '@types/hast': 3.0.4+ hast-util-from-html: 2.0.3+ unified: 11.0.5+dependencies:'@types/hast': 3.0.4@@ -18650,18 +22708,26 @@ snapshots:hast-util-raw: 9.0.4vfile: 6.0.3- [email protected](@types/[email protected]):+ [email protected](@types/[email protected]):dependencies:'@mapbox/hast-util-table-cell-style': 0.2.0'@types/hast': 2.3.7- '@types/react': 19.1.0+ '@types/react': 19.1.6hast-to-hyperscript: 10.0.3hast-util-whitespace: 2.0.1unified: 10.1.2+ dependencies:+ '@types/hast': 3.0.4+ hast-util-to-jsx-runtime: 2.3.6+ unified: 11.0.5+ transitivePeerDependencies:+ - supports-color+dependencies:- '@types/estree': 1.0.6+ '@types/estree': 1.0.8'@types/hast': 3.0.4hast-util-to-estree: 3.1.0transitivePeerDependencies:@@ -18694,7 +22760,7 @@ snapshots:dependencies:'@types/hast': 3.0.4- rehype-parse: 9.0.1+ rehype-parse: 9.0.0rehype-stringify: 10.0.1unified: 11.0.5@@ -18754,8 +22820,8 @@ snapshots:dependencies:'@types/mdast': 4.0.4- mdast-util-from-markdown: 2.0.1- micromark-util-types: 2.0.0+ mdast-util-from-markdown: 2.0.2+ micromark-util-types: 2.0.2unified: 11.0.5transitivePeerDependencies:- supports-color@@ -18767,14 +22833,6 @@ snapshots:mdast-util-to-hast: 12.3.0unified: 10.1.2- dependencies:- '@types/hast': 3.0.4- '@types/mdast': 4.0.4- mdast-util-to-hast: 13.2.0- unified: 11.0.5- vfile: 6.0.3-dependencies:'@types/hast': 3.0.4@@ -18806,12 +22864,14 @@ snapshots:dependencies:- debug: 4.4.0+ debug: 4.4.1module-details-from-path: 1.0.3- resolve: 1.22.9+ resolve: 1.22.10transitivePeerDependencies:- supports-color+ [email protected]: {}+dependencies:@@ -18819,26 +22879,28 @@ snapshots:- react- react-domdependencies:transitivePeerDependencies:- react- react-dom+ [email protected]: {}+dependencies:- is-core-module: 2.13.0+ is-core-module: 2.16.1path-parse: 1.0.7supports-preserve-symlinks-flag: 1.0.0dependencies:- is-core-module: 2.16.0+ is-core-module: 2.16.1path-parse: 1.0.7supports-preserve-symlinks-flag: 1.0.0@@ -18847,6 +22909,16 @@ snapshots:onetime: 5.1.2signal-exit: 3.0.7+ dependencies:+ onetime: 5.1.2+ signal-exit: 3.0.7++ dependencies:+ onetime: 7.0.0+ signal-exit: 4.1.0+@@ -18877,7 +22949,7 @@ snapshots:dependencies:'@types/request': 2.48.11- debug: 4.4.0+ debug: 4.4.1extend: 3.0.2teeny-request: 9.0.0([email protected])transitivePeerDependencies:@@ -18953,6 +23025,16 @@ snapshots:'@rollup/rollup-win32-x64-msvc': 4.45.1fsevents: 2.3.3+ dependencies:+ debug: 4.4.1+ depd: 2.0.0+ is-promise: 4.0.0+ parseurl: 1.3.3+ path-to-regexp: 8.2.0+ transitivePeerDependencies:+ - supports-color+@@ -18985,7 +23067,7 @@ snapshots:ajv: 6.12.6ajv-keywords: 3.5.2([email protected])dependencies:'@types/json-schema': 7.0.15ajv: 8.17.1@@ -19009,7 +23091,23 @@ snapshots:- [email protected]: {}+ [email protected]: {}++ dependencies:+ debug: 4.4.1+ encodeurl: 2.0.0+ escape-html: 1.0.3+ etag: 1.8.1+ fresh: 2.0.0+ http-errors: 2.0.0+ mime-types: 3.0.1+ ms: 2.1.3+ on-finished: 2.4.1+ range-parser: 1.2.1+ statuses: 2.0.2+ transitivePeerDependencies:+ - supports-colordependencies:@@ -19020,12 +23118,48 @@ snapshots:dependencies:randombytes: 2.1.0+ dependencies:+ encodeurl: 2.0.0+ escape-html: 1.0.3+ parseurl: 1.3.3+ send: 1.2.0+ transitivePeerDependencies:+ - supports-color++ [email protected]: {}+dependencies:- define-data-property: 1.1.1- get-intrinsic: 1.2.1- gopd: 1.0.1- has-property-descriptors: 1.0.0+ '@antfu/ni': 23.3.1+ '@babel/core': 7.26.0+ '@babel/parser': 7.27.5+ '@babel/plugin-transform-typescript': 7.27.1(@babel/[email protected])+ '@modelcontextprotocol/sdk': 1.12.1+ commander: 10.0.1+ cosmiconfig: 8.3.6([email protected])+ deepmerge: 4.3.1+ diff: 5.2.0+ execa: 7.2.0+ fast-glob: 3.3.2+ fs-extra: 11.3.0+ https-proxy-agent: 6.2.1+ kleur: 4.1.5+ msw: 2.10.2(@types/[email protected])([email protected])+ node-fetch: 3.3.2+ ora: 6.3.1+ postcss: 8.4.38+ prompts: 2.4.2+ recast: 0.23.11+ stringify-object: 5.0.0+ ts-morph: 18.0.0+ tsconfig-paths: 4.2.0+ zod: 3.24.1+ zod-to-json-schema: 3.24.5([email protected])+ transitivePeerDependencies:+ - '@types/node'+ - supports-color+ - typescriptdependencies:@@ -19053,6 +23187,35 @@ snapshots:'@img/sharp-win32-ia32': 0.33.5'@img/sharp-win32-x64': 0.33.5+ dependencies:+ color: 4.2.3+ detect-libc: 2.0.4+ semver: 7.7.2+ optionalDependencies:+ '@img/sharp-darwin-arm64': 0.34.2+ '@img/sharp-darwin-x64': 0.34.2+ '@img/sharp-libvips-darwin-arm64': 1.1.0+ '@img/sharp-libvips-darwin-x64': 1.1.0+ '@img/sharp-libvips-linux-arm': 1.1.0+ '@img/sharp-libvips-linux-arm64': 1.1.0+ '@img/sharp-libvips-linux-ppc64': 1.1.0+ '@img/sharp-libvips-linux-s390x': 1.1.0+ '@img/sharp-libvips-linux-x64': 1.1.0+ '@img/sharp-libvips-linuxmusl-arm64': 1.1.0+ '@img/sharp-libvips-linuxmusl-x64': 1.1.0+ '@img/sharp-linux-arm': 0.34.2+ '@img/sharp-linux-arm64': 0.34.2+ '@img/sharp-linux-s390x': 0.34.2+ '@img/sharp-linux-x64': 0.34.2+ '@img/sharp-linuxmusl-arm64': 0.34.2+ '@img/sharp-linuxmusl-x64': 0.34.2+ '@img/sharp-wasm32': 0.34.2+ '@img/sharp-win32-arm64': 0.34.2+ '@img/sharp-win32-ia32': 0.34.2+ '@img/sharp-win32-x64': 0.34.2+ optional: true+dependencies:shebang-regex: 3.0.0@@ -19081,11 +23244,33 @@ snapshots:+ dependencies:+ es-errors: 1.3.0+ object-inspect: 1.13.4++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ get-intrinsic: 1.3.0+ object-inspect: 1.13.4++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ get-intrinsic: 1.3.0+ object-inspect: 1.13.4+ side-channel-map: 1.0.1+dependencies:- call-bind: 1.0.5- get-intrinsic: 1.2.1- object-inspect: 1.13.1+ es-errors: 1.3.0+ object-inspect: 1.13.4+ side-channel-list: 1.0.0+ side-channel-map: 1.0.1+ side-channel-weakmap: 1.0.2@@ -19148,7 +23333,7 @@ snapshots:base64id: 2.0.0cors: 2.8.5debug: 4.3.7- engine.io: 6.6.2([email protected])([email protected])+ engine.io: 6.6.4([email protected])([email protected])socket.io-adapter: 2.5.5([email protected])([email protected])socket.io-parser: 4.2.4transitivePeerDependencies:@@ -19159,7 +23344,7 @@ snapshots:dependencies:agent-base: 7.1.0- debug: 4.4.0+ debug: 4.4.1socks: 2.7.1transitivePeerDependencies:- supports-color@@ -19174,6 +23359,11 @@ snapshots:react: 19.1.0react-dom: 19.1.0([email protected])+ dependencies:+ react: 19.1.0+ react-dom: 19.1.0([email protected])+dependencies:is-plain-obj: 4.1.0@@ -19187,6 +23377,8 @@ snapshots:buffer-from: 1.1.2source-map: 0.6.1+ [email protected]: {}+@@ -19203,13 +23395,13 @@ snapshots:dependencies:type-fest: 0.7.1- [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:- '@astrojs/mdx': 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@astrojs/starlight': 0.35.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@astrojs/mdx': 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@astrojs/starlight': 0.35.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@types/hast': 3.0.4'@types/micromatch': 4.0.9- astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ astro: 5.12.2(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])github-slugger: 2.0.0hast-util-select: 6.0.3micromatch: 4.0.8@@ -19222,19 +23414,29 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:- '@astro-community/astro-embed-twitter': 0.5.8([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@astro-community/astro-embed-youtube': 0.5.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@astrojs/starlight': 0.35.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@astro-community/astro-embed-twitter': 0.5.8([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@astro-community/astro-embed-youtube': 0.5.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@astrojs/starlight': 0.35.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))transitivePeerDependencies:- astro- [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))):+ [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))):dependencies:- '@astrojs/starlight': 0.35.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@astrojs/starlight': 0.35.1([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))picomatch: 4.0.2+ [email protected]: {}++ [email protected]: {}++ dependencies:+ bl: 5.1.0++ [email protected]: {}+dependencies:stubs: 3.0.0@@ -19245,6 +23447,8 @@ snapshots:+ [email protected]: {}+dependencies:emoji-regex: 8.0.0@@ -19269,11 +23473,17 @@ snapshots:dependencies:safe-buffer: 5.2.1dependencies:character-entities-html4: 2.1.0character-entities-legacy: 3.0.0+ dependencies:+ get-own-enumerable-keys: 1.0.0+ is-obj: 3.0.0+ is-regexp: 3.1.0+dependencies:ansi-regex: 5.0.1@@ -19284,33 +23494,45 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+dependencies:- '@types/node': 22.10.2- qs: 6.11.2+ '@types/node': 24.0.8+ qs: 6.14.0+ dependencies:+ style-to-object: 1.0.9+dependencies:inline-style-parser: 0.1.1dependencies:inline-style-parser: 0.2.4dependencies:client-only: 0.0.1react: 19.1.0+ optionalDependencies:+ '@babel/core': 7.26.0++ [email protected]: {}dependencies:@@ -19328,6 +23550,10 @@ snapshots:dependencies:copy-anything: 3.0.5+ dependencies:+ copy-anything: 3.0.5+dependencies:has-flag: 3.0.0@@ -19351,20 +23577,26 @@ snapshots:dependencies:client-only: 0.0.1react: 19.1.0- use-sync-external-store: 1.4.0([email protected])+ use-sync-external-store: 1.5.0([email protected])+ [email protected]: {}+dependencies:tailwindcss: 4.1.8+ [email protected]: {}++ [email protected]: {}+dependencies:chownr: 1.1.4@@ -19372,6 +23604,14 @@ snapshots:pump: 3.0.0tar-stream: 2.2.0+ dependencies:+ chownr: 1.1.4+ mkdirp-classic: 0.5.3+ pump: 3.0.3+ tar-stream: 2.2.0+ optional: true+dependencies:bl: 4.1.0@@ -19400,21 +23640,30 @@ snapshots:- encoding- supports-colordependencies:- '@jridgewell/trace-mapping': 0.3.25+ '@jridgewell/trace-mapping': 0.3.28jest-worker: 27.5.1- schema-utils: 4.3.0+ schema-utils: 4.3.2serialize-javascript: 6.0.2- terser: 5.37.0+ terser: 5.43.1webpack: 5.97.1([email protected])optionalDependencies:esbuild: 0.21.5dependencies:- '@jridgewell/source-map': 0.3.6- acorn: 8.14.1+ '@jridgewell/trace-mapping': 0.3.28+ jest-worker: 27.5.1+ schema-utils: 4.3.2+ serialize-javascript: 6.0.2+ terser: 5.43.1+ webpack: 5.97.1++ dependencies:+ '@jridgewell/source-map': 0.3.9+ acorn: 8.15.0commander: 2.20.3source-map-support: 0.5.21@@ -19441,11 +23690,6 @@ snapshots:fdir: 6.4.2([email protected])picomatch: 4.0.2- dependencies:- fdir: 6.4.3([email protected])- picomatch: 4.0.2-dependencies:fdir: 6.4.6([email protected])@@ -19479,6 +23723,8 @@ snapshots:dependencies:to-no-case: 1.0.2+ [email protected]: {}+@@ -19487,6 +23733,13 @@ snapshots:'@sentry/types': 8.9.2'@sentry/utils': 8.9.2+ dependencies:+ psl: 1.15.0+ punycode: 2.3.1+ universalify: 0.2.0+ url-parse: 1.5.10+@@ -19501,8 +23754,15 @@ snapshots:+ [email protected]: {}++ dependencies:+ '@ts-morph/common': 0.19.0+ code-block-writer: 12.0.0+dependencies:'@cspotcode/source-map-support': 0.8.1@@ -19544,13 +23804,19 @@ snapshots:optionalDependencies:typescript: 5.7.2+ dependencies:+ json5: 2.2.3+ minimist: 1.2.8+ strip-bom: 3.0.0+- [email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected]):+ [email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected]):dependencies:bundle-require: 4.0.2([email protected])cac: 6.7.14@@ -19560,20 +23826,20 @@ snapshots:execa: 5.1.1globby: 11.1.0joycon: 3.1.1- postcss-load-config: 4.0.1([email protected])([email protected](@types/[email protected])([email protected]))+ postcss-load-config: 4.0.1([email protected])([email protected](@types/[email protected])([email protected]))resolve-from: 5.0.0rollup: 3.29.4source-map: 0.8.0-beta.0sucrase: 3.34.0tree-kill: 1.2.2optionalDependencies:- postcss: 8.5.3+ postcss: 8.5.6typescript: 5.7.2transitivePeerDependencies:- supports-color- ts-node- [email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected]):+ [email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected]):dependencies:bundle-require: 4.0.2([email protected])cac: 6.7.14@@ -19583,14 +23849,14 @@ snapshots:execa: 5.1.1globby: 11.1.0joycon: 3.1.1- postcss-load-config: 4.0.1([email protected])([email protected](@types/[email protected])([email protected]))+ postcss-load-config: 4.0.1([email protected])([email protected](@types/[email protected])([email protected]))resolve-from: 5.0.0rollup: 3.29.4source-map: 0.8.0-beta.0sucrase: 3.34.0tree-kill: 1.2.2optionalDependencies:- postcss: 8.5.3+ postcss: 8.5.6typescript: 5.7.2transitivePeerDependencies:- supports-color@@ -19627,6 +23893,8 @@ snapshots:turbo-windows-64: 2.3.2turbo-windows-arm64: 2.3.2+ [email protected]: {}+@@ -19635,14 +23903,23 @@ snapshots:+ dependencies:+ content-type: 1.0.5+ media-typer: 1.1.0+ mime-types: 3.0.1+dependencies:- semver: 7.6.3+ semver: 7.7.2+ optional: true+@@ -19660,6 +23937,8 @@ snapshots:+ [email protected]: {}+dependencies:'@fastify/busboy': 2.1.1@@ -19688,24 +23967,14 @@ snapshots:trough: 2.1.0vfile: 5.3.7- dependencies:- '@types/unist': 3.0.2- bail: 2.0.2- devlop: 1.1.0- extend: 3.0.2- is-plain-obj: 4.1.0- trough: 2.1.0- vfile: 6.0.3-dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3bail: 2.0.2devlop: 1.1.0extend: 3.0.2is-plain-obj: 4.1.0- trough: 2.1.0+ trough: 2.2.0vfile: 6.0.3@@ -19716,7 +23985,7 @@ snapshots:dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3unist-util-is: 6.0.0@@ -19725,37 +23994,37 @@ snapshots:dependencies:- '@types/unist': 2.0.9+ '@types/unist': 2.0.11dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3array-iterate: 2.0.1dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3dependencies:- '@types/unist': 2.0.9+ '@types/unist': 2.0.11dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3unist-util-visit: 5.0.0dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3unist-util-is: 6.0.0unist-util-visit-parents: 6.0.1@@ -19765,11 +24034,11 @@ snapshots:dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3dependencies:@@ -19777,12 +24046,12 @@ snapshots:dependencies:- '@types/unist': 2.0.9+ '@types/unist': 2.0.11unist-util-is: 5.2.1dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3unist-util-is: 6.0.0@@ -19791,20 +24060,24 @@ snapshots:dependencies:- '@types/unist': 2.0.9+ '@types/unist': 2.0.11unist-util-is: 5.2.1unist-util-visit-parents: 5.1.3dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3unist-util-is: 6.0.0unist-util-visit-parents: 6.0.1+ [email protected]: {}++ [email protected]: {}+dependencies:'@antfu/install-pkg': 1.0.0@@ -19819,9 +24092,9 @@ snapshots:dependencies:- acorn: 8.14.0+ acorn: 8.15.0chokidar: 3.6.0- webpack-sources: 3.2.3+ webpack-sources: 3.3.3webpack-virtual-modules: 0.5.0@@ -19846,9 +24119,9 @@ snapshots:escalade: 3.2.0picocolors: 1.1.1dependencies:- browserslist: 4.25.0+ browserslist: 4.25.1escalade: 3.2.0picocolors: 1.1.1@@ -19865,27 +24138,42 @@ snapshots:dependencies:- punycode: 2.3.0+ punycode: 2.3.1++ dependencies:+ querystringify: 2.2.0+ requires-port: 1.0.0dependencies:react: 19.1.0tslib: 2.8.1optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6++ dependencies:+ '@babel/runtime': 7.26.0+ dequal: 2.0.3+ react: 19.1.0dependencies:detect-node-es: 1.1.0react: 19.1.0tslib: 2.8.1optionalDependencies:- '@types/react': 19.1.0+ '@types/react': 19.1.6dependencies:react: 19.1.0+ dependencies:+ react: 19.1.0+dependencies:node-gyp-build: 4.6.1@@ -19897,6 +24185,8 @@ snapshots:+ [email protected]: {}+@@ -19918,7 +24208,7 @@ snapshots:dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3vfile: 6.0.3@@ -19928,7 +24218,7 @@ snapshots:dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3unist-util-stringify-position: 4.0.0@@ -19940,7 +24230,7 @@ snapshots:dependencies:- '@types/unist': 3.0.2+ '@types/unist': 3.0.3vfile-message: 4.0.2@@ -19948,8 +24238,8 @@ snapshots:'@types/d3-array': 3.2.1'@types/d3-ease': 3.0.2'@types/d3-interpolate': 3.0.4- '@types/d3-scale': 4.0.8- '@types/d3-shape': 3.1.6+ '@types/d3-scale': 4.0.9+ '@types/d3-shape': 3.1.7'@types/d3-time': 3.0.4'@types/d3-timer': 3.0.2d3-array: 3.2.4@@ -19960,38 +24250,38 @@ snapshots:d3-time: 3.1.0d3-timer: 3.0.1- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.25.2- postcss: 8.5.3+ postcss: 8.5.6rollup: 4.34.8optionalDependencies:- '@types/node': 22.10.2+ '@types/node': 24.0.8fsevents: 2.3.3jiti: 2.4.2lightningcss: 1.30.1- terser: 5.37.0+ terser: 5.43.1yaml: 2.6.1- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:- esbuild: 0.25.2+ esbuild: 0.25.5fdir: 6.4.6([email protected])picomatch: 4.0.2- postcss: 8.5.3+ postcss: 8.5.6rollup: 4.45.1tinyglobby: 0.2.14optionalDependencies:- '@types/node': 22.10.2+ '@types/node': 24.0.8fsevents: 2.3.3jiti: 2.4.2lightningcss: 1.30.1- terser: 5.37.0+ terser: 5.43.1yaml: 2.6.1- [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):optionalDependencies:- vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])@@ -20020,12 +24310,12 @@ snapshots:optionalDependencies:'@volar/language-service': 2.4.10dependencies:vscode-uri: 3.0.8optionalDependencies:'@volar/language-service': 2.4.10- prettier: 3.5.3+ prettier: 3.6.2[email protected](@volar/[email protected]):dependencies:@@ -20109,7 +24399,7 @@ snapshots:dependencies:glob-to-regexp: 0.4.1graceful-fs: 4.2.11@@ -20126,24 +24416,54 @@ snapshots:- [email protected]: {}+ [email protected]: {}+ dependencies:+ '@types/eslint-scope': 3.7.7+ '@types/estree': 1.0.8+ '@webassemblyjs/ast': 1.14.1+ '@webassemblyjs/wasm-edit': 1.14.1+ '@webassemblyjs/wasm-parser': 1.14.1+ acorn: 8.15.0+ browserslist: 4.25.1+ chrome-trace-event: 1.0.4+ enhanced-resolve: 5.18.2+ es-module-lexer: 1.7.0+ eslint-scope: 5.1.1+ events: 3.3.0+ glob-to-regexp: 0.4.1+ graceful-fs: 4.2.11+ json-parse-even-better-errors: 2.3.1+ loader-runner: 4.3.0+ mime-types: 2.1.35+ neo-async: 2.6.2+ schema-utils: 3.3.0+ tapable: 2.2.2+ terser-webpack-plugin: 5.3.14([email protected])+ watchpack: 2.4.4+ webpack-sources: 3.3.3+ transitivePeerDependencies:+ - '@swc/core'+ - esbuild+ - uglify-js+dependencies:'@types/eslint-scope': 3.7.7- '@types/estree': 1.0.6+ '@types/estree': 1.0.8'@webassemblyjs/ast': 1.14.1'@webassemblyjs/wasm-edit': 1.14.1'@webassemblyjs/wasm-parser': 1.14.1- acorn: 8.14.1- browserslist: 4.25.0+ acorn: 8.15.0+ browserslist: 4.25.1chrome-trace-event: 1.0.4- enhanced-resolve: 5.18.1- es-module-lexer: 1.6.0+ enhanced-resolve: 5.18.2+ es-module-lexer: 1.7.0eslint-scope: 5.1.1events: 3.3.0glob-to-regexp: 0.4.1@@ -20153,10 +24473,10 @@ snapshots:mime-types: 2.1.35neo-async: 2.6.2schema-utils: 3.3.0- tapable: 2.2.1- watchpack: 2.4.2- webpack-sources: 3.2.3+ tapable: 2.2.2+ watchpack: 2.4.4+ webpack-sources: 3.3.3transitivePeerDependencies:- '@swc/core'- esbuild@@ -20213,17 +24533,17 @@ snapshots:optionalDependencies:bufferutil: 4.0.8- utf-8-validate: 6.0.3+ utf-8-validate: 6.0.5optionalDependencies:bufferutil: 4.0.8- utf-8-validate: 6.0.5+ utf-8-validate: 6.0.3optionalDependencies:bufferutil: 4.0.8utf-8-validate: 6.0.5@@ -20246,7 +24566,7 @@ snapshots:dependencies:- ajv: 8.16.0+ ajv: 8.17.1lodash: 4.17.21request-light: 0.5.8vscode-json-languageservice: 4.1.8@@ -20259,6 +24579,8 @@ snapshots:optionalDependencies:prettier: 2.8.7+ [email protected]: {}+@@ -20287,23 +24609,31 @@ snapshots:dependencies:yoctocolors: 2.1.1+ [email protected]: {}++ dependencies:+ zod: 3.24.1+dependencies:- zod: 3.24.4+ zod: 3.25.67dependencies:typescript: 5.7.2- zod: 3.24.4+ zod: 3.25.67dependencies:- zod: 3.24.4+ zod: 3.24.1++ [email protected]: {}- [email protected]: {}+ [email protected]: {}