From ee9874c91952d6a01bf9e1624deb143336a8c866 Mon Sep 17 00:00:00 2001 From: James Ritchie Date: Fri, 18 Jul 2025 17:55:27 +0100 Subject: [PATCH] Copyable admin area table fields and autofocus search --- apps/webapp/app/routes/admin._index.tsx | 18 +++++++++++++----- apps/webapp/app/routes/admin.orgs.tsx | 20 ++++++++++++++------ 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/apps/webapp/app/routes/admin._index.tsx b/apps/webapp/app/routes/admin._index.tsx index 06fbfe00bf..8da48339ac 100644 --- a/apps/webapp/app/routes/admin._index.tsx +++ b/apps/webapp/app/routes/admin._index.tsx @@ -5,6 +5,7 @@ import { redirect } from "@remix-run/server-runtime"; import { typedjson, useTypedLoaderData } from "remix-typedjson"; import { z } from "zod"; import { Button, LinkButton } from "~/components/primitives/Buttons"; +import { CopyableText } from "~/components/primitives/CopyableText"; import { Header1 } from "~/components/primitives/Headers"; import { Input } from "~/components/primitives/Input"; import { PaginationControls } from "~/components/primitives/Pagination"; @@ -69,13 +70,14 @@ export default function AdminDashboardRoute() {
-
@@ -101,7 +103,9 @@ export default function AdminDashboardRoute() { users.map((user) => { return ( - {user.email} + + + {user.orgMemberships.map((org) => ( - {user.id} - {user.createdAt.toISOString()} + + + + + + {user.admin ? "✅" : ""}
diff --git a/apps/webapp/app/routes/admin.orgs.tsx b/apps/webapp/app/routes/admin.orgs.tsx index 7c7db7cfe9..bb59cebf31 100644 --- a/apps/webapp/app/routes/admin.orgs.tsx +++ b/apps/webapp/app/routes/admin.orgs.tsx @@ -4,6 +4,7 @@ import type { LoaderFunctionArgs } from "@remix-run/server-runtime"; import { redirect, typedjson, useTypedLoaderData } from "remix-typedjson"; import { z } from "zod"; import { Button, LinkButton } from "~/components/primitives/Buttons"; +import { CopyableText } from "~/components/primitives/CopyableText"; import { Input } from "~/components/primitives/Input"; import { PaginationControls } from "~/components/primitives/Pagination"; import { Paragraph } from "~/components/primitives/Paragraph"; @@ -54,13 +55,14 @@ export default function AdminDashboardRoute() { -
@@ -87,8 +89,12 @@ export default function AdminDashboardRoute() { organizations.map((org) => { return ( - {org.title} - {org.slug} + + + + + + {org.members.map((member) => ( - {member.user.email} + ))} - {org.id} + + + {org.v2Enabled ? "✅" : ""} {org.v3Enabled ? "✅" : ""} {org.deletedAt ? "☠️" : ""}