@@ -4,6 +4,7 @@ import type { LoaderFunctionArgs } from "@remix-run/server-runtime";
4
4
import { redirect , typedjson , useTypedLoaderData } from "remix-typedjson" ;
5
5
import { z } from "zod" ;
6
6
import { Button , LinkButton } from "~/components/primitives/Buttons" ;
7
+ import { CopyableText } from "~/components/primitives/CopyableText" ;
7
8
import { Input } from "~/components/primitives/Input" ;
8
9
import { PaginationControls } from "~/components/primitives/Pagination" ;
9
10
import { Paragraph } from "~/components/primitives/Paragraph" ;
@@ -54,13 +55,14 @@ export default function AdminDashboardRoute() {
54
55
< Form className = "flex items-center gap-2" >
55
56
< Input
56
57
placeholder = "Search users or orgs"
57
- variant = "small "
58
+ variant = "medium "
58
59
icon = { MagnifyingGlassIcon }
59
60
fullWidth = { true }
60
61
name = "search"
61
62
defaultValue = { filters . search }
63
+ autoFocus
62
64
/>
63
- < Button type = "submit" variant = "tertiary/small " >
65
+ < Button type = "submit" variant = "secondary/medium " >
64
66
Search
65
67
</ Button >
66
68
</ Form >
@@ -87,20 +89,26 @@ export default function AdminDashboardRoute() {
87
89
organizations . map ( ( org ) => {
88
90
return (
89
91
< 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 >
92
98
< TableCell >
93
99
{ org . members . map ( ( member ) => (
94
100
< LinkButton
95
101
key = { member . user . email }
96
102
variant = "minimal/small"
97
103
to = { `/admin?search=${ encodeURIComponent ( member . user . email ) } ` }
98
104
>
99
- { member . user . email }
105
+ < CopyableText value = { member . user . email } />
100
106
</ LinkButton >
101
107
) ) }
102
108
</ TableCell >
103
- < TableCell > { org . id } </ TableCell >
109
+ < TableCell >
110
+ < CopyableText value = { org . id } />
111
+ </ TableCell >
104
112
< TableCell > { org . v2Enabled ? "✅" : "" } </ TableCell >
105
113
< TableCell > { org . v3Enabled ? "✅" : "" } </ TableCell >
106
114
< TableCell > { org . deletedAt ? "☠️" : "" } </ TableCell >
0 commit comments