diff --git a/apps/web/src/features/dashboard/components/table-list/index.tsx b/apps/web/src/features/dashboard/components/table-list/index.tsx index 27a77c2..5a532cc 100644 --- a/apps/web/src/features/dashboard/components/table-list/index.tsx +++ b/apps/web/src/features/dashboard/components/table-list/index.tsx @@ -115,7 +115,7 @@ export function TableList({ - + {listQuery.data.length === 0 && (
-

+

{table.title}

diff --git a/apps/web/src/features/made-with/pages/root/components/section.tsx b/apps/web/src/features/made-with/pages/root/components/section.tsx index e642eba..85b4c70 100644 --- a/apps/web/src/features/made-with/pages/root/components/section.tsx +++ b/apps/web/src/features/made-with/pages/root/components/section.tsx @@ -56,7 +56,7 @@ export function SectionGroup({ title, children }: GroupProps) { return (
{title && ( -

+

{title}

)} diff --git a/apps/web/src/features/made-with/pages/root/page.tsx b/apps/web/src/features/made-with/pages/root/page.tsx index fc53b28..f21ba33 100644 --- a/apps/web/src/features/made-with/pages/root/page.tsx +++ b/apps/web/src/features/made-with/pages/root/page.tsx @@ -114,8 +114,8 @@ const CLIENT: MadeWithSection = { url: "https://tailwindcss.com/", }, { - label: "React Query", - url: "https://react-query.tanstack.com/", + label: "Tanstack React Query", + url: "https://tanstack.com/query/v4", }, { label: "comlink", diff --git a/apps/web/src/features/routing/components/launcher.tsx b/apps/web/src/features/routing/components/launcher.tsx index 8af30ee..78afb58 100644 --- a/apps/web/src/features/routing/components/launcher.tsx +++ b/apps/web/src/features/routing/components/launcher.tsx @@ -3,12 +3,16 @@ import { CommandGroup, CommandItem, CommandSeparator, - CommandShortcut, } from "@manifold/ui/components/ui/command"; import { Skeleton } from "@manifold/ui/components/ui/skeleton"; import { useCommandPalette } from "@manifold/ui/hooks/use-command-palette"; import { GoFile, GoFileSymlinkFile } from "react-icons/go"; -import { Link, useNavigate } from "react-router-dom"; +import { + Link, + type NavigateOptions, + type To, + useNavigate, +} from "react-router-dom"; import { useAuth } from "~features/auth/hooks/use-auth"; import { useListTables } from "~features/table/api/list"; @@ -26,7 +30,7 @@ export function Launcher() { }, }); - function handleCreateTable() { + function navigateAndDismissLauncher(to: To, options?: NavigateOptions) { closeCommandPalette(); /** @@ -47,7 +51,7 @@ export function Launcher() { * as of right now. */ requestAnimationFrame(() => { - navigate("/table/new"); + navigate(to, options); }); } @@ -56,10 +60,28 @@ export function Launcher() { return ( - - - Create a new Table - ⌘E + { + navigateAndDismissLauncher("/table/new"); + }} + > + + + Create a new Table + + + + { + navigateAndDismissLauncher("/"); + }} + > + + + Go to Dashboard + @@ -70,8 +92,6 @@ export function Launcher() { {tablesQuery.isLoading && (
- -
)} @@ -83,8 +103,9 @@ export function Launcher() { key={table.id} asChild onSelect={() => { - navigate(`/t/${username}/${table.slug}/edit`); - closeCommandPalette(); + navigateAndDismissLauncher( + `/t/${username}/${table.slug}/edit`, + ); }} >