Skip to content

Open-source status page, incident response and uptime monitoring

feat: input search (#8)

Maximilian Kaske1190ee94b037
diff --git a/apps/web/package.json b/apps/web/package.json
index 6c3bb9515..fe85541ff 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -13,12 +13,14 @@
"@openstatus/db": "workspace:^",
"@openstatus/tinybird": "workspace:*",
"@openstatus/upstash": "workspace:*",
+ "@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.4",
"@t3-oss/env-nextjs": "0.4.1",
"@upstash/redis": "^1.21.0",
"class-variance-authority": "^0.6.0",
"clsx": "^1.2.1",
+ "cmdk": "^0.2.0",
"date-fns": "^2.30.0",
"lucide-react": "^0.244.0",
"next": "13.4.6",
diff --git a/apps/web/src/app/_components/event-table.tsx b/apps/web/src/app/_components/event-table.tsx
new file mode 100644
index 000000000..baaa4c1c3
--- /dev/null
+++ b/apps/web/src/app/_components/event-table.tsx
@@ -0,0 +1,101 @@
+"use client";
+
+import { Badge } from "@/components/ui/badge";
+import { cn } from "@/lib/utils";
+import { formatDistance } from "date-fns";
+import {
+ Table,
+ TableBody,
+ TableCaption,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from "@/components/ui/table";
+import React from "react";
+import { Button } from "@/components/ui/button";
+
+export function EventTable({
+ events,
+}: {
+ // FIXME: should be return type
+ events: {
+ id: string;
+ timestamp: number;
+ statusCode: number;
+ latency: number;
+ url: string;
+ }[];
+}) {
+ const [open, toggle] = React.useReducer((state) => !state, false);
+ return (
+ <div className="relative overflow-hidden max-h-56">
+ <Table>
+ <TableCaption>A list of the latest pings.</TableCaption>
+ <TableHeader>
+ <TableRow>
+ <TableHead>Time</TableHead>
+ <TableHead>Status</TableHead>
+ <TableHead>Latency</TableHead>
+ <TableHead className="text-right">URL</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {events.map((event) => {
+ const isOk = event.statusCode === 200;
+ const url = new URL(event.url);
+ return (
+ <TableRow key={event.timestamp}>
+ <TableCell className="font-medium">
+ {formatDistance(new Date(event.timestamp), new Date(), {
+ addSuffix: true,
+ includeSeconds: true,
+ })}
+ </TableCell>
+ <TableCell>
+ <Badge
+ variant="outline"
+ className={cn(
+ "text-xs py-0.5 px-2",
+ isOk
+ ? "border-green-100 bg-green-50"
+ : "border-red-100 bg-red-50"
+ )}
+ >
+ {event.statusCode}
+ <div
+ className={cn(
+ "rounded-full bg-foreground h-1.5 w-1.5 ml-1",
+ isOk ? "bg-green-500" : "bg-red-500"
+ )}
+ />
+ </Badge>
+ </TableCell>
+ <TableCell className="text-muted-foreground">
+ {event.latency}
+ </TableCell>
+ <TableCell className="text-right font-light truncate">
+ {url.pathname}
+ </TableCell>
+ </TableRow>
+ );
+ })}
+ </TableBody>
+ </Table>
+ {!open && (
+ <div className="absolute inset-0 flex items-end justify-center bg-gradient bg-gradient-to-b from-transparent from-20% to-background">
+ {/* TODO: enable button */}
+ <Button
+ onClick={toggle}
+ variant="outline"
+ size="sm"
+ className="rounded-full backdrop-blur-sm"
+ // disabled
+ >
+ {`A total of ${events.length} events.`}
+ </Button>
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/apps/web/src/app/_components/input-search.tsx b/apps/web/src/app/_components/input-search.tsx
new file mode 100644
index 000000000..844b0385f
--- /dev/null
+++ b/apps/web/src/app/_components/input-search.tsx
@@ -0,0 +1,198 @@
+"use client";
+
+import * as React from "react";
+import {
+ Command,
+ CommandEmpty,
+ CommandGroup,
+ CommandItem,
+} from "@/components/ui/command";
+import { Command as CommandPrimitive, useCommandState } from "cmdk";
+
+// TODO: once stable, use the shallow route to store the search params inside of the search params
+
+export function InputSearch({
+ events,
+ onSearch,
+}: {
+ onSearch(value: Record<string, string>): void;
+ // FIXME: should be return type
+ events: {
+ id: string;
+ timestamp: number;
+ statusCode: number;
+ latency: number;
+ url: string;
+ }[];
+}) {
+ const inputRef = React.useRef<HTMLInputElement>(null);
+ const [open, setOpen] = React.useState<boolean>(false);
+ const [inputValue, setInputValue] = React.useState<string>("");
+ const [currentWord, setCurrentWord] = React.useState("");
+
+ // TODO: check if there is a move efficient way
+ React.useEffect(() => {
+ const searchparams = inputValue
+ .trim()
+ .split(" ")
+ .reduce((prev, curr) => {
+ const [name, value] = curr.split(":");
+ if (value && name && curr !== currentWord) {
+ // TODO: support multiple value with value.split(",")
+ prev[name] = value;
+ }
+ return prev;
+ }, {} as Record<string, string>);
+ onSearch(searchparams);
+ }, [onSearch, inputValue]);
+
+ // DEFINE YOUR SEARCH PARAMETERS
+ const search = React.useMemo(
+ () =>
+ events.reduce(
+ (prev, curr) => {
+ const { pathname } = new URL(curr.url);
+ return {
+ ...prev,
+ status: [...new Set([curr.statusCode, ...(prev.status || [])])],
+ pathname: [...new Set([pathname, ...(prev.pathname || [])])],
+ };
+ },
+ // defaultState
+ { limit: [10, 25, 50], status: [], pathname: [] } as {
+ status: number[];
+ limit: number[];
+ pathname: string[];
+ }
+ ),
+ [events]
+ );
+
+ type SearchKey = keyof typeof search;
+
+ return (
+ <Command
+ className="overflow-visible bg-transparent"
+ filter={(value, search) => {
+ if (value.includes(currentWord.toLowerCase())) return 1;
+ return 0;
+ }}
+ >
+ <CommandPrimitive.Input
+ ref={inputRef}
+ value={inputValue}
+ onValueChange={setInputValue}
+ onKeyDown={(e) => {
+ if (e.key === "Escape") inputRef?.current.blur();
+ }}
+ onBlur={() => setOpen(false)}
+ onFocus={() => setOpen(true)}
+ onInput={(e) => {
+ const caretPositionStart = e.currentTarget?.selectionStart || -1;
+ const inputValue = e.currentTarget?.value || "";
+
+ let start = caretPositionStart;
+ let end = caretPositionStart;
+
+ while (start > 0 && inputValue[start - 1] !== " ") {
+ start--;
+ }
+ while (end < inputValue.length && inputValue[end] !== " ") {
+ end++;
+ }
+
+ const word = inputValue.substring(start, end);
+ setCurrentWord(word);
+ }}
+ placeholder={`${events.length} total logs found...`}
+ className="flex-1 rounded-md border border-input bg-transparent px-3 py-2 text-sm outline-none ring-offset-background placeholder:text-muted-foreground focus:ring-2 focus:ring-ring focus:ring-offset-2"
+ />
+ <div className="relative mt-2">
+ {open ? (
+ <div className="z-10 absolute top-0 w-full rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in">
+ <CommandGroup className="h-full overflow-auto">
+ {Object.keys(search).map((key) => {
+ if (
+ inputValue.includes(`${key}:`) &&
+ !currentWord.includes(`${key}:`)
+ )
+ return null;
+ return (
+ <React.Fragment key={key}>
+ <CommandItem
+ value={key}
+ onMouseDown={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ }}
+ onSelect={(value) => {
+ setInputValue((prev) => {
+ // console.log({ prev, currentWord, value });
+ if (currentWord.trim() === "") {
+ const input = `${prev}${value}`;
+ return `${input}:`;
+ }
+ // lots of cheat
+ const isStarting = currentWord === prev;
+ const prefix = isStarting ? "" : " ";
+ const input = prev.replace(
+ `${prefix}${currentWord}`,
+ `${prefix}${value}`
+ );
+ return `${input}:`;
+ });
+ setCurrentWord(`${value}:`);
+ }}
+ className="group"
+ >
+ {key}
+ <span className="ml-1 hidden truncate text-muted-foreground/90 group-aria-[selected=true]:block">
+ {search[key as SearchKey]
+ .map((str) => `[${str}]`)
+ .join(" ")}
+ </span>
+ </CommandItem>
+ {search[key as SearchKey].map((option) => {
+ return (
+ <SubItem
+ key={option}
+ value={`${key}:${option}`}
+ onMouseDown={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ }}
+ onSelect={(value) => {
+ setInputValue((prev) => {
+ const input = prev.replace(currentWord, value);
+ return `${input.trim()} `;
+ });
+ setCurrentWord("");
+ }}
+ {...{ currentWord }}
+ >
+ {option}
+ </SubItem>
+ );
+ })}
+ </React.Fragment>
+ );
+ })}
+ </CommandGroup>
+ <CommandEmpty>No results found.</CommandEmpty>
+ </div>
+ ) : null}
+ </div>
+ </Command>
+ );
+}
+
+interface SubItemProps
+ extends React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item> {
+ currentWord: string;
+}
+
+const SubItem = ({ currentWord, ...props }: SubItemProps) => {
+ const search = useCommandState((state) => state.search);
+ if (!search.includes(":") || !currentWord.includes(":")) return null;
+ return <CommandItem {...props} />;
+};
diff --git a/apps/web/src/app/_components/status-container.tsx b/apps/web/src/app/_components/status-container.tsx
deleted file mode 100644
index 3e8fbb2f3..000000000
--- a/apps/web/src/app/_components/status-container.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import { Badge } from "@/components/ui/badge";
-import { cn } from "@/lib/utils";
-import { formatDistance } from "date-fns";
-
-// TODO: consistency in wording
-export function StatusContainer({
- events,
-}: {
- // FIXME: should be return type
- events: { id: string; timestamp: number; statusCode: number }[];
-}) {
- return (
- // OVERFLOW-HIDDEN
- <div className="relative border border-border rounded-lg backdrop-blur-[2px] p-4 mx-auto max-h-28 overflow-hidden">
- <div className="absolute inset-0 bg-gradient-to-b from-background from-0% via-transparent via-50% to-background to-100%" />
- <ul className="grid gap-2 text-xs text-muted-foreground">
- {events.map(({ timestamp, statusCode }) => {
- return (
- <li key={timestamp} className="flex items-center justify-between">
- <p className="font-light">
- {formatDistance(new Date(timestamp), new Date(), {
- addSuffix: true,
- includeSeconds: true,
- })}
- </p>
- <Badge variant="outline" className="text-xs ml-1 py-0.5 px-2">
- {statusCode}
- <div
- className={cn(
- "rounded-full bg-foreground h-1.5 w-1.5 ml-1",
- statusCode === 200 ? "bg-green-500" : "bg-red-500"
- )}
- />
- </Badge>
- </li>
- );
- })}
- </ul>
- </div>
- );
-}
diff --git a/apps/web/src/app/_components/table-input-container.tsx b/apps/web/src/app/_components/table-input-container.tsx
new file mode 100644
index 000000000..9f09d3e71
--- /dev/null
+++ b/apps/web/src/app/_components/table-input-container.tsx
@@ -0,0 +1,41 @@
+"use client";
+
+import React from "react";
+import { EventTable } from "./event-table";
+import { InputSearch } from "./input-search";
+
+// TODO: once stable, use the shallow route to store the search params inside of the search params
+
+export function TableInputContainer({
+ events,
+}: {
+ // FIXME: should be return type
+ events: {
+ id: string;
+ timestamp: number;
+ statusCode: number;
+ latency: number;
+ url: string;
+ }[];
+}) {
+ const [search, setSearch] = React.useState<Record<string, string>>({});
+
+ const filteredEvents = events
+ .filter((event) => {
+ const url = new URL(event.url);
+ if (search?.status && event.statusCode !== Number(search.status)) {
+ return false;
+ } else if (search?.pathname && url.pathname !== search.pathname) {
+ return false;
+ }
+ return true;
+ })
+ .slice(0, search.limit ? Number(search.limit) : 100);
+
+ return (
+ <>
+ <InputSearch events={events} onSearch={setSearch} />
+ <EventTable events={filteredEvents} />
+ </>
+ );
+}
diff --git a/apps/web/src/app/_mocks/response-list.json b/apps/web/src/app/_mocks/response-list.json
index ec62546ea..9dc663836 100644
--- a/apps/web/src/app/_mocks/response-list.json
+++ b/apps/web/src/app/_mocks/response-list.json
@@ -8,8 +8,8 @@
},
{
"id": "openstatus",
- "timestamp": 1687718326838,
- "statusCode": 500,
+ "timestamp": 16877183268,
+ "statusCode": 200,
"latency": 660,
"url": "http://localhost:3000/api/v0/ping"
},
@@ -19,5 +19,19 @@
"statusCode": 500,
"latency": 332,
"url": "http://localhost:3000/api/v0/ping"
+ },
+ {
+ "id": "openstatus",
+ "timestamp": 168771832688,
+ "statusCode": 500,
+ "latency": 660,
+ "url": "http://localhost:3000/api/v0/ping"
+ },
+ {
+ "id": "openstatus",
+ "timestamp": 16877182894,
+ "statusCode": 200,
+ "latency": 332,
+ "url": "http://localhost:3000/api/v0/ping"
}
]
diff --git a/apps/web/src/app/api/v0/ping/route.ts b/apps/web/src/app/api/v0/ping/route.ts
index acde0f849..60c1022ff 100644
--- a/apps/web/src/app/api/v0/ping/route.ts
+++ b/apps/web/src/app/api/v0/ping/route.ts
@@ -3,15 +3,25 @@ import { Redis } from "@openstatus/upstash";
const redis = Redis.fromEnv();
export async function GET(req: Request) {
- const RANDOM = Math.random() > 0.9;
+ const RANDOM = Math.random() > 0.6;
try {
// TODO: connect tinybird, upstash and planetscale
await redis.ping();
if (RANDOM) {
throw new Error("Arg");
}
- return new Response("OK", { status: 200 });
+ return new Response("OK", {
+ status: 200,
+ headers: {
+ "cache-control": "public, max-age=0, s-maxage=0",
+ },
+ });
} catch {
- return new Response("Error", { status: 500 });
+ return new Response("Error", {
+ status: 500,
+ headers: {
+ "cache-control": "public, max-age=0, s-maxage=0",
+ },
+ });
}
}
diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx
index 56c7aa5fb..b20ced645 100644
--- a/apps/web/src/app/page.tsx
+++ b/apps/web/src/app/page.tsx
@@ -2,8 +2,8 @@ import { Badge } from "@/components/ui/badge";
import { HeroForm } from "./_components/hero-form";
import { Tinybird, getResponseList } from "@openstatus/tinybird";
import { env } from "@/env.mjs";
-import { StatusContainer } from "./_components/status-container";
import MOCK from "@/app/_mocks/response-list.json";
+import { TableInputContainer } from "./_components/table-input-container";
const tb = new Tinybird({ token: env.TINY_BIRD_API_KEY });
@@ -30,8 +30,10 @@ export default async function Page() {
<HeroForm />
</div>
</div>
- <div className="md:fixed bottom-8 right-8 max-w-max z-10">
- <StatusContainer events={data} />
+ <div className="mx-auto max-w-xl w-full z-10 backdrop-blur-[2px]">
+ <div className="p-8 border border-border rounded-lg">
+ <TableInputContainer events={data} />
+ </div>
</div>
</div>
<footer className="text-center text-sm text-muted-foreground mx-auto rounded-full px-4 py-2 border border-border backdrop-blur-[2px]">
diff --git a/apps/web/src/components/ui/command.tsx b/apps/web/src/components/ui/command.tsx
new file mode 100644
index 000000000..2fdc30e08
--- /dev/null
+++ b/apps/web/src/components/ui/command.tsx
@@ -0,0 +1,155 @@
+"use client"
+
+import * as React from "react"
+import { DialogProps } from "@radix-ui/react-dialog"
+import { Command as CommandPrimitive } from "cmdk"
+import { Search } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+import { Dialog, DialogContent } from "@/components/ui/dialog"
+
+const Command = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive>
+>(({ className, ...props }, ref) => (
+ <CommandPrimitive
+ ref={ref}
+ className={cn(
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
+ className
+ )}
+ {...props}
+ />
+))
+Command.displayName = CommandPrimitive.displayName
+
+interface CommandDialogProps extends DialogProps {}
+
+const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
+ return (
+ <Dialog {...props}>
+ <DialogContent className="overflow-hidden p-0 shadow-2xl">
+ <Command className="[&_[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>
+ )
+}
+
+const CommandInput = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.Input>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
+>(({ className, ...props }, ref) => (
+ <div className="flex items-center border-b px-3" cmdk-input-wrapper="">
+ <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
+ <CommandPrimitive.Input
+ ref={ref}
+ className={cn(
+ "placeholder:text-foreground-muted flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
+ className
+ )}
+ {...props}
+ />
+ </div>
+))
+
+CommandInput.displayName = CommandPrimitive.Input.displayName
+
+const CommandList = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.List>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>
+>(({ className, ...props }, ref) => (
+ <CommandPrimitive.List
+ ref={ref}
+ className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
+ {...props}
+ />
+))
+
+CommandList.displayName = CommandPrimitive.List.displayName
+
+const CommandEmpty = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.Empty>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>
+>((props, ref) => (
+ <CommandPrimitive.Empty
+ ref={ref}
+ className="py-6 text-center text-sm"
+ {...props}
+ />
+))
+
+CommandEmpty.displayName = CommandPrimitive.Empty.displayName
+
+const CommandGroup = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.Group>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>
+>(({ className, ...props }, ref) => (
+ <CommandPrimitive.Group
+ ref={ref}
+ className={cn(
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
+ className
+ )}
+ {...props}
+ />
+))
+
+CommandGroup.displayName = CommandPrimitive.Group.displayName
+
+const CommandSeparator = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <CommandPrimitive.Separator
+ ref={ref}
+ className={cn("-mx-1 h-px bg-border", className)}
+ {...props}
+ />
+))
+CommandSeparator.displayName = CommandPrimitive.Separator.displayName
+
+const CommandItem = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
+>(({ className, ...props }, ref) => (
+ <CommandPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ className
+ )}
+ {...props}
+ />
+))
+
+CommandItem.displayName = CommandPrimitive.Item.displayName
+
+const CommandShortcut = ({
+ className,
+ ...props
+}: React.HTMLAttributes<HTMLSpanElement>) => {
+ return (
+ <span
+ className={cn(
+ "ml-auto text-xs tracking-widest text-muted-foreground",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+CommandShortcut.displayName = "CommandShortcut"
+
+export {
+ Command,
+ CommandDialog,
+ CommandInput,
+ CommandList,
+ CommandEmpty,
+ CommandGroup,
+ CommandItem,
+ CommandShortcut,
+ CommandSeparator,
+}
diff --git a/apps/web/src/components/ui/dialog.tsx b/apps/web/src/components/ui/dialog.tsx
new file mode 100644
index 000000000..59276b94a
--- /dev/null
+++ b/apps/web/src/components/ui/dialog.tsx
@@ -0,0 +1,128 @@
+"use client";
+
+import * as React from "react";
+import * as DialogPrimitive from "@radix-ui/react-dialog";
+import { X } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const Dialog = DialogPrimitive.Root;
+
+const DialogTrigger = DialogPrimitive.Trigger;
+
+const DialogPortal = ({
+ className,
+ children,
+ ...props
+}: DialogPrimitive.DialogPortalProps) => (
+ <DialogPrimitive.Portal className={cn(className)} {...props}>
+ <div className="fixed inset-0 z-50 flex items-start justify-center sm:items-center">
+ {children}
+ </div>
+ </DialogPrimitive.Portal>
+);
+DialogPortal.displayName = DialogPrimitive.Portal.displayName;
+
+const DialogOverlay = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Overlay>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Overlay
+ ref={ref}
+ className={cn(
+ "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",
+ className
+ )}
+ {...props}
+ />
+));
+DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
+
+const DialogContent = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
+>(({ className, children, ...props }, ref) => (
+ <DialogPortal>
+ <DialogOverlay />
+ <DialogPrimitive.Content
+ ref={ref}
+ className={cn(
+ "fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none 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">
+ <X className="h-4 w-4" />
+ <span className="sr-only">Close</span>
+ </DialogPrimitive.Close>
+ </DialogPrimitive.Content>
+ </DialogPortal>
+));
+DialogContent.displayName = DialogPrimitive.Content.displayName;
+
+const DialogHeader = ({
+ className,
+ ...props
+}: React.HTMLAttributes<HTMLDivElement>) => (
+ <div
+ className={cn(
+ "flex flex-col space-y-1.5 text-center sm:text-left",
+ className
+ )}
+ {...props}
+ />
+);
+DialogHeader.displayName = "DialogHeader";
+
+const DialogFooter = ({
+ className,
+ ...props
+}: React.HTMLAttributes<HTMLDivElement>) => (
+ <div
+ className={cn(
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
+ className
+ )}
+ {...props}
+ />
+);
+DialogFooter.displayName = "DialogFooter";
+
+const DialogTitle = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Title>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Title
+ ref={ref}
+ className={cn(
+ "text-lg font-semibold leading-none tracking-tight",
+ className
+ )}
+ {...props}
+ />
+));
+DialogTitle.displayName = DialogPrimitive.Title.displayName;
+
+const DialogDescription = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Description>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Description
+ ref={ref}
+ className={cn("text-sm text-muted-foreground", className)}
+ {...props}
+ />
+));
+DialogDescription.displayName = DialogPrimitive.Description.displayName;
+
+export {
+ Dialog,
+ DialogTrigger,
+ DialogContent,
+ DialogHeader,
+ DialogFooter,
+ DialogTitle,
+ DialogDescription,
+};
diff --git a/apps/web/src/components/ui/table.tsx b/apps/web/src/components/ui/table.tsx
new file mode 100644
index 000000000..7aeb37e7d
--- /dev/null
+++ b/apps/web/src/components/ui/table.tsx
@@ -0,0 +1,117 @@
+import * as React from "react";
+
+import { cn } from "@/lib/utils";
+
+const Table = React.forwardRef<
+ HTMLTableElement,
+ React.HTMLAttributes<HTMLTableElement>
+>(({ className, ...props }, ref) => (
+ <div className="w-full overflow-auto">
+ <table
+ ref={ref}
+ className={cn("w-full caption-bottom text-sm", className)}
+ {...props}
+ />
+ </div>
+));
+Table.displayName = "Table";
+
+const TableHeader = React.forwardRef<
+ HTMLTableSectionElement,
+ React.HTMLAttributes<HTMLTableSectionElement>
+>(({ className, ...props }, ref) => (
+ <thead ref={ref} className={cn("[&_tr]:border-b", className)} {...props} />
+));
+TableHeader.displayName = "TableHeader";
+
+const TableBody = React.forwardRef<
+ HTMLTableSectionElement,
+ React.HTMLAttributes<HTMLTableSectionElement>
+>(({ className, ...props }, ref) => (
+ <tbody
+ ref={ref}
+ className={cn("[&_tr:last-child]:border-0", className)}
+ {...props}
+ />
+));
+TableBody.displayName = "TableBody";
+
+const TableFooter = React.forwardRef<
+ HTMLTableSectionElement,
+ React.HTMLAttributes<HTMLTableSectionElement>
+>(({ className, ...props }, ref) => (
+ <tfoot
+ ref={ref}
+ className={cn("bg-primary font-medium text-primary-foreground", className)}
+ {...props}
+ />
+));
+TableFooter.displayName = "TableFooter";
+
+const TableRow = React.forwardRef<
+ HTMLTableRowElement,
+ React.HTMLAttributes<HTMLTableRowElement>
+>(({ className, ...props }, ref) => (
+ <tr
+ ref={ref}
+ className={cn(
+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
+ className
+ )}
+ {...props}
+ />
+));
+TableRow.displayName = "TableRow";
+
+const TableHead = React.forwardRef<
+ HTMLTableCellElement,
+ React.ThHTMLAttributes<HTMLTableCellElement>
+>(({ className, ...props }, ref) => (
+ <th
+ ref={ref}
+ className={cn(
+ "h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
+ className
+ )}
+ {...props}
+ />
+));
+TableHead.displayName = "TableHead";
+
+const TableCell = React.forwardRef<
+ HTMLTableCellElement,
+ React.TdHTMLAttributes<HTMLTableCellElement>
+>(({ className, ...props }, ref) => (
+ <td
+ ref={ref}
+ className={cn(
+ "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
+ className
+ )}
+ {...props}
+ />
+));
+TableCell.displayName = "TableCell";
+
+const TableCaption = React.forwardRef<
+ HTMLTableCaptionElement,
+ React.HTMLAttributes<HTMLTableCaptionElement>
+>(({ className, ...props }, ref) => (
+ <caption
+ ref={ref}
+ className={cn("mt-4 text-sm text-muted-foreground", className)}
+ {...props}
+ />
+));
+TableCaption.displayName = "TableCaption";
+
+export {
+ Table,
+ TableHeader,
+ TableBody,
+ TableFooter,
+ TableHead,
+ TableRow,
+ TableCell,
+ TableCaption,
+};
diff --git a/packages/tinybird/src/client.ts b/packages/tinybird/src/client.ts
index 77e3ad621..93058212b 100644
--- a/packages/tinybird/src/client.ts
+++ b/packages/tinybird/src/client.ts
@@ -26,7 +26,7 @@ export function getResponseList(tb: Tinybird) {
siteId: z.string().default("openstatus"), // REMINDER: remove default once alpha
start: z.number().int().default(0), // always start from a date
end: z.number().int().optional(),
- limit: z.number().int().optional().default(50), // used for pagination
+ limit: z.number().int().optional().default(100), // used for pagination
}),
data: z.object({
id: z.string(),
diff --git a/packages/tsconfig/nextjs.json b/packages/tsconfig/nextjs.json
index d5010a1bb..3bf5dfe9d 100644
--- a/packages/tsconfig/nextjs.json
+++ b/packages/tsconfig/nextjs.json
@@ -14,7 +14,7 @@
"noEmit": true,
"resolveJsonModule": true,
"strict": false,
- "target": "es5"
+ "target": "es2015"
},
"include": ["src", "next-env.d.ts"],
"exclude": ["node_modules"]
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9288fbf55..fd992a65c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -75,6 +75,9 @@ importers:
'@openstatus/upstash':
specifier: workspace:*
version: link:../../packages/upstash
+ '@radix-ui/react-dialog':
+ specifier: ^1.0.4
'@radix-ui/react-slot':
specifier: ^1.0.2
version: 1.0.2(@types/[email protected])([email protected])
@@ -93,6 +96,9 @@ importers:
clsx:
specifier: ^1.2.1
version: 1.2.1
+ cmdk:
+ specifier: ^0.2.0
date-fns:
specifier: ^2.30.0
version: 2.30.0
@@ -1253,6 +1259,12 @@ packages:
engines: {node: '>=16'}
dev: false
+ /@radix-ui/[email protected]:
+ resolution: {integrity: sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==}
+ dependencies:
+ '@babel/runtime': 7.22.5
+ dev: false
+
/@radix-ui/[email protected]:
resolution: {integrity: sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==}
dependencies:
@@ -1283,6 +1295,15 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-fDSBgd44FKHa1FRMU59qBMPFcl2PZE+2nmqunj+BWFyYYjnhIDWL2ItDs3rrbJDQOtzt5nIebLCQc4QRfz6LJw==}
peerDependencies:
@@ -1297,6 +1318,15 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==}
peerDependencies:
@@ -1311,6 +1341,83 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-Yn9YU+QlHYLWwV1XfKiqnGVpWYWk6MeBVM6x/bcoyPvxgjQGoeT35482viLPctTMWoMw0PoHgqfSox7Ig+957Q==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/primitive': 1.0.0
+ '@radix-ui/react-compose-refs': 1.0.0([email protected])
+ '@radix-ui/react-context': 1.0.0([email protected])
+ '@radix-ui/react-dismissable-layer': 1.0.0([email protected])([email protected])
+ '@radix-ui/react-focus-guards': 1.0.0([email protected])
+ '@radix-ui/react-focus-scope': 1.0.0([email protected])([email protected])
+ '@radix-ui/react-id': 1.0.0([email protected])
+ '@radix-ui/react-portal': 1.0.0([email protected])([email protected])
+ '@radix-ui/react-presence': 1.0.0([email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.0([email protected])([email protected])
+ '@radix-ui/react-slot': 1.0.0([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.0([email protected])
+ aria-hidden: 1.2.3
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ react-remove-scroll: 2.5.4(@types/[email protected])([email protected])
+ transitivePeerDependencies:
+ - '@types/react'
+ dev: false
+
+ resolution: {integrity: sha512-hJtRy/jPULGQZceSAP2Re6/4NpKo8im6V8P2hUqZsdFiSL8l35kYsw3qbRI6Ay5mQd2+wlLqje770eq+RJ3yZg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-focus-guards': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-portal': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ aria-hidden: 1.2.3
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ react-remove-scroll: 2.5.5(@types/[email protected])([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-n7kDRfx+LB1zLueRDvZ1Pd0bxdJWDUZNQ/GWoxDn2prnuJKRdxsjulejX/ePkOsLi2tTm6P24mDqlMSgQpsT6g==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/primitive': 1.0.0
+ '@radix-ui/react-compose-refs': 1.0.0([email protected])
+ '@radix-ui/react-primitive': 1.0.0([email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.0.0([email protected])
+ '@radix-ui/react-use-escape-keydown': 1.0.0([email protected])
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-7UpBa/RKMoHJYjie1gkF1DlK8l1fdU/VKDpoS3rCCo8YBJR294GwcEHyxHw72yvphJ7ld0AXEcSLAzY2F/WyCg==}
peerDependencies:
@@ -1336,6 +1443,103 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-UagjDk4ijOAnGu4WMUPj9ahi7/zJJqNZ9ZAiGPp7waUWJO0O1aWXi/udPphI0IUjvrhBsZJGSN66dR2dsueLWQ==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ react: 18.2.0
+ dev: false
+
+ resolution: {integrity: sha512-Rect2dWbQ8waGzhMavsIbmSVCgYxkXLxxR3ZvCX79JOglzdEy4JXMb98lq4hPxUbLr77nP0UOGf4rcMU+s1pUA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@types/react': 18.2.12
+ react: 18.2.0
+ dev: false
+
+ resolution: {integrity: sha512-C4SWtsULLGf/2L4oGeIHlvWQx7Rf+7cX/vKOAD2dXW0A1b5QXwi3wWeaEgW+wn+SEVrraMUk05vLU9fZZz5HbQ==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-compose-refs': 1.0.0([email protected])
+ '@radix-ui/react-primitive': 1.0.0([email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.0.0([email protected])
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-upXdPfqI4islj2CslyfUBNlaJCPybbqRHAi1KER7Isel9Q2AtSJ0zRBZv8mWQiFXD2nyAJ4BhC3yXgZ6kMBSrQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.12
+ '@types/react-dom': 18.2.5
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-use-layout-effect': 1.0.0([email protected])
+ react: 18.2.0
+ dev: false
+
+ resolution: {integrity: sha512-tI7sT/kqYp8p96yGWY1OAnLHrqDgzHefRBKQ2YAkBS5ja7QLcZ9Z/uY7bEjPUatf8RomoXM8/1sMj1IJaE5UzQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.12
+ react: 18.2.0
+ dev: false
+
+ resolution: {integrity: sha512-a8qyFO/Xb99d8wQdu4o7qnigNjTPG123uADNecz0eX4usnQEj7o+cG4ZX4zkqq98NYekT7UoEQIjxBNWIFuqTA==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-primitive': 1.0.0([email protected])([email protected])
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-xLYZeHrWoPmA5mEKEfZZevoVRK/Q43GfzRXkWV6qawIWWK8t6ifIiLQdd7rmQ4Vk1bmI21XhqF9BN3jWf+phpA==}
peerDependencies:
@@ -1357,6 +1561,19 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-A+6XEvN01NfVWiKu38ybawfHsBjWum42MRPnEuqPsBZ4eV7e/7K321B5VgYMPv3Xx5An6o1/l9ZuDBgmcmWK3w==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-compose-refs': 1.0.0([email protected])
+ '@radix-ui/react-use-layout-effect': 1.0.0([email protected])
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==}
peerDependencies:
@@ -1379,6 +1596,18 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-EyXe6mnRlHZ8b6f4ilTDrXmkLShICIuOTTj0GX4w1rp+wSxf3+TD05u1UOITC8VsJ2a9nwHvdXtOXEOl0Cw/zQ==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-slot': 1.0.0([email protected])
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-yi58uVyoAcK/Nq1inRY56ZSjKypBNKTa/1mcL8qdl6oJeEaDbOldlzrGn7P6Q3Id5d+SYNGc5AJgc4vGhjs5+g==}
peerDependencies:
@@ -1400,6 +1629,16 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-3mrKauI/tWXo1Ll+gN5dHcxDPdm/Df1ufcDLCecn+pnCIVcdWE7CujXo8QaXOWRJyZyQWWbpB8eFwHzWXlv5mQ==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-compose-refs': 1.0.0([email protected])
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==}
peerDependencies:
@@ -1447,6 +1686,15 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==}
peerDependencies:
@@ -1461,6 +1709,16 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-use-callback-ref': 1.0.0([email protected])
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-Svl5GY5FQeN758fWKrjM6Qb7asvXeiZltlT4U2gVfl8Gx5UAv2sMR0LWo8yhsIZh2oQ0eFdZ59aoOOMV7b47VA==}
peerDependencies:
@@ -1476,6 +1734,16 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-JwfBCUIfhXRxKExgIqGa4CQsiMemo1Xt0W/B4ei3fpzpvPENKpMKQ8mZSB6Acj3ebrAEgi2xiQvcI1PAAodvyg==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ '@radix-ui/react-use-callback-ref': 1.0.0([email protected])
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-vyL82j40hcFicA+M4Ex7hVkB9vHgSse1ZWomAqV2Je3RleKGO5iM8KMOEtfoSB0PnIelMd2lATjTGMYqN5ylTg==}
peerDependencies:
@@ -1491,6 +1759,15 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-6Tpkq+R6LOlmQb1R5NNETLG0B4YP0wc+klfXafpUCj6JGyaUc8il7/kUZ7m59rGbXGczE9Bs+iz2qloqsZBduQ==}
+ peerDependencies:
+ react: ^16.8 || ^17.0 || ^18.0
+ dependencies:
+ '@babel/runtime': 7.22.5
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==}
peerDependencies:
@@ -2015,6 +2292,13 @@ packages:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
+ resolution: {integrity: sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==}
+ engines: {node: '>=10'}
+ dependencies:
+ tslib: 2.5.3
+ dev: false
+
resolution: {integrity: sha512-7uFg4b+lETFgdaJyETnILsXgnnzVnkHcgRbwbPwevm5x/LmUlt3MjczMRe1zg824iBgXZNRPTBftNYyRSKLp2g==}
dependencies:
@@ -2402,6 +2686,20 @@ packages:
engines: {node: '>=6'}
dev: false
+ resolution: {integrity: sha512-JQpKvEOb86SnvMZbYaFKYhvzFntWBeSZdyii0rZPhKJj9uwJBxu4DaVYDrRN7r3mPop56oPhRw+JYWTKs66TYw==}
+ peerDependencies:
+ react: ^18.0.0
+ react-dom: ^18.0.0
+ dependencies:
+ '@radix-ui/react-dialog': 1.0.0(@types/[email protected])([email protected])([email protected])
+ command-score: 0.1.2
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ transitivePeerDependencies:
+ - '@types/react'
+ dev: false
+
resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}
dependencies:
@@ -2428,6 +2726,10 @@ packages:
delayed-stream: 1.0.0
dev: false
+ resolution: {integrity: sha512-VtDvQpIJBvBatnONUsPzXYFVKQQAhuf3XTNOAsdBxCNO/QCtUUd8LSgjn0GVarBkCad6aJCZfXgrjYbl/KRr7w==}
+ dev: false
+
resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}
engines: {node: '>=14'}
@@ -2620,6 +2922,10 @@ packages:
engines: {node: '>=6'}
dev: false
+ resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}
+ dev: false
+
resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}
@@ -3546,6 +3852,11 @@ packages:
has-symbols: 1.0.3
dev: false
+ resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}
+ engines: {node: '>=6'}
+ dev: false
+
resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
engines: {node: '>=10'}
@@ -3879,6 +4190,12 @@ packages:
side-channel: 1.0.4
dev: false
+ resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==}
+ dependencies:
+ loose-envify: 1.4.0
+ dev: false
+
resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==}
dependencies:
@@ -4936,6 +5253,77 @@ packages:
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
dev: false
+ resolution: {integrity: sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.12
+ react: 18.2.0
+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])
+ tslib: 2.5.3
+ dev: false
+
+ resolution: {integrity: sha512-xGVKJJr0SJGQVirVFAUZ2k1QLyO6m+2fy0l8Qawbp5Jgrv3DeLalrfMNBFSlmz5kriGGzsVBtGVnf4pTKIhhWA==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.12
+ react: 18.2.0
+ react-remove-scroll-bar: 2.3.4(@types/[email protected])([email protected])
+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])
+ tslib: 2.5.3
+ use-callback-ref: 1.3.0(@types/[email protected])([email protected])
+ use-sidecar: 1.1.2(@types/[email protected])([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.12
+ react: 18.2.0
+ react-remove-scroll-bar: 2.3.4(@types/[email protected])([email protected])
+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])
+ tslib: 2.5.3
+ use-callback-ref: 1.3.0(@types/[email protected])([email protected])
+ use-sidecar: 1.1.2(@types/[email protected])([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.12
+ get-nonce: 1.0.1
+ invariant: 2.2.4
+ react: 18.2.0
+ tslib: 2.5.3
+ dev: false
+
resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==}
engines: {node: '>=0.10.0'}
@@ -5772,6 +6160,37 @@ packages:
dependencies:
punycode: 2.3.0
+ resolution: {integrity: sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.12
+ react: 18.2.0
+ tslib: 2.5.3
+ dev: false
+
+ resolution: {integrity: sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': ^16.9.0 || ^17.0.0 || ^18.0.0
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.12
+ detect-node-es: 1.1.0
+ react: 18.2.0
+ tslib: 2.5.3
+ dev: false
+
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}