diff --git a/apps/web/app/components/request-info.tsx b/apps/web/app/components/request-info.tsx index 877a59d..9e2e061 100644 --- a/apps/web/app/components/request-info.tsx +++ b/apps/web/app/components/request-info.tsx @@ -1,7 +1,8 @@ import { regions } from "@instant-postgres/neon/regions"; -import * as Tooltip from "@radix-ui/react-tooltip"; import { useFetcher } from "@remix-run/react"; +import { OverlayArrow, Tooltip, TooltipTrigger } from "react-aria-components"; import type { clientAction } from "~/routes/actions.deploy"; +import { Button } from "./ui/button"; const RequestInfo = () => { const fetcher = useFetcher({ key: "deploy" }); @@ -18,41 +19,37 @@ const RequestInfo = () => {

Provisioned in {timeToProvision} ms, {region}{" "}

- - - - - - - - + + + + + + - - - - Actual time taken to provision the database. It doesn't - represent the total round-trip time. - - - - - + + Actual time taken to provision the database. It doesn't represent + the total round-trip time. + + ); } diff --git a/apps/web/app/components/results.tsx b/apps/web/app/components/results.tsx index a62bfea..bdba0ca 100644 --- a/apps/web/app/components/results.tsx +++ b/apps/web/app/components/results.tsx @@ -1,4 +1,3 @@ -import * as Tabs from "@radix-ui/react-tabs"; import { Table, TableBody, @@ -16,6 +15,7 @@ import { import { Button } from "~/components/ui/button"; import { useFetcher } from "@remix-run/react"; import type { clientAction as queryAction } from "~/routes/actions.query"; +import { Tab, TabList, TabPanel, Tabs } from "react-aria-components"; export const Results = () => { const queryFetcher = useFetcher({ key: "query" }); @@ -52,33 +52,27 @@ export const Results = () => { } return ( - - + + {results.map(({ result }, i) => { return ( - - key={i} - value={`${i}`} + {i}: {result?.command || "Error"} - + ); })} - + {results.map(({ success, error, queryTime, result }, i) => { return ( - - key={i} - className="w-full mt-8 space-y-5 outline-none focus:shadow-[0_0_0_2px] focus:shadow-black" - value={`${i}`} +
{success ? ( @@ -136,10 +130,10 @@ export const Results = () => { )}
)} -
+ ); })} -
+ ); }; diff --git a/apps/web/package.json b/apps/web/package.json index 86be7c7..54e0a20 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -21,8 +21,6 @@ "@instant-postgres/turnstile": "*", "@lezer/highlight": "^1.2.0", "@neondatabase/serverless": "^0.9.3", - "@radix-ui/react-tabs": "^1.0.4", - "@radix-ui/react-tooltip": "^1.0.7", "@remix-run/cloudflare": "^2.8.1", "@remix-run/cloudflare-pages": "^2.8.1", "@remix-run/react": "^2.8.1", @@ -56,7 +54,7 @@ "postcss": "^8.4.38", "tailwindcss": "^3.4.3", "tailwindcss-animate": "^1.0.7", - "tailwindcss-react-aria-components": "^1.1.2", + "tailwindcss-react-aria-components": "^1.1.3", "typescript": "^5.1.6", "vite": "^5.1.0", "vite-tsconfig-paths": "^4.2.1", diff --git a/bun.lockb b/bun.lockb index 0ac2fe3..4cf2933 100755 Binary files a/bun.lockb and b/bun.lockb differ