diff --git a/app/src/ui/routes/auth/auth.index.tsx b/app/src/ui/routes/auth/auth.index.tsx index c1f0c34..9b3cc3f 100644 --- a/app/src/ui/routes/auth/auth.index.tsx +++ b/app/src/ui/routes/auth/auth.index.tsx @@ -1,10 +1,13 @@ +import clsx from "clsx"; +import { TbArrowRight, TbCircle, TbCircleCheckFilled, TbFingerprint } from "react-icons/tb"; import { useApiQuery } from "ui/client"; import { useBknd } from "ui/client/bknd"; import { useBkndAuth } from "ui/client/schema/auth/use-bknd-auth"; import { ButtonLink, type ButtonLinkProps } from "ui/components/buttons/Button"; +import { IconButton } from "ui/components/buttons/IconButton"; import { Alert } from "ui/components/display/Alert"; import * as AppShell from "ui/layouts/AppShell/AppShell"; -import { routes } from "ui/lib/routes"; +import { routes, useNavigate } from "ui/lib/routes"; export function AuthIndex() { const { app } = useBknd(); @@ -32,8 +35,22 @@ export function AuthIndex() { title="Auth not enabled" message="To use authentication features, please enable it in the settings." /> -
-
+
+
+
+ Getting started + +
+ + 0} to={rolesLink} /> + 0} to={usersLink} /> + 1} + to={strategiesLink} + /> +
+
= ({ title, value, actions }) => ( -
+
{title} @@ -92,3 +109,25 @@ const KpiCard: React.FC = ({ title, value, actions }) => (
); + +const Item = ({ title, done = false, to }: { title: string; done?: boolean; to?: string }) => { + const [navigate] = useNavigate(); + return ( +
+
+
+ {done ? : } +

+ {title} +

+
+ {to && navigate(to)} />} +
+
+ ); +};