@@ -4,6 +4,7 @@ import type { LoaderFunctionArgs } from "@remix-run/server-runtime";
44import { redirect , typedjson , useTypedLoaderData } from "remix-typedjson" ;
55import { z } from "zod" ;
66import { Button , LinkButton } from "~/components/primitives/Buttons" ;
7+ import { CopyableText } from "~/components/primitives/CopyableText" ;
78import { Input } from "~/components/primitives/Input" ;
89import { PaginationControls } from "~/components/primitives/Pagination" ;
910import { Paragraph } from "~/components/primitives/Paragraph" ;
@@ -54,13 +55,14 @@ export default function AdminDashboardRoute() {
5455 < Form className = "flex items-center gap-2" >
5556 < Input
5657 placeholder = "Search users or orgs"
57- variant = "small "
58+ variant = "medium "
5859 icon = { MagnifyingGlassIcon }
5960 fullWidth = { true }
6061 name = "search"
6162 defaultValue = { filters . search }
63+ autoFocus
6264 />
63- < Button type = "submit" variant = "tertiary/small " >
65+ < Button type = "submit" variant = "secondary/medium " >
6466 Search
6567 </ Button >
6668 </ Form >
@@ -87,20 +89,26 @@ export default function AdminDashboardRoute() {
8789 organizations . map ( ( org ) => {
8890 return (
8991 < TableRow key = { org . id } >
90- < TableCell > { org . title } </ TableCell >
91- < TableCell > { org . slug } </ TableCell >
92+ < TableCell >
93+ < CopyableText value = { org . title } />
94+ </ TableCell >
95+ < TableCell >
96+ < CopyableText value = { org . slug } />
97+ </ TableCell >
9298 < TableCell >
9399 { org . members . map ( ( member ) => (
94100 < LinkButton
95101 key = { member . user . email }
96102 variant = "minimal/small"
97103 to = { `/admin?search=${ encodeURIComponent ( member . user . email ) } ` }
98104 >
99- { member . user . email }
105+ < CopyableText value = { member . user . email } />
100106 </ LinkButton >
101107 ) ) }
102108 </ TableCell >
103- < TableCell > { org . id } </ TableCell >
109+ < TableCell >
110+ < CopyableText value = { org . id } />
111+ </ TableCell >
104112 < TableCell > { org . v2Enabled ? "✅" : "" } </ TableCell >
105113 < TableCell > { org . v3Enabled ? "✅" : "" } </ TableCell >
106114 < TableCell > { org . deletedAt ? "☠️" : "" } </ TableCell >
0 commit comments