File tree Expand file tree Collapse file tree 9 files changed +25
-4
lines changed
routes/_authed/site/$siteId/settings Expand file tree Collapse file tree 9 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ struct File {
3333#[ derive( Debug , Multipart ) ]
3434pub struct UploadPayload {
3535 data : Upload ,
36+ context : Option < String > ,
3637}
3738
3839pub struct SiteApi ;
Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ authStore.subscribe((snapshot) => {
4242 console . log ( 'invalidating queries due to auth token change' ) ;
4343 updateAuthToken ( snapshot . context . token ) ;
4444 queryClient . resetQueries ( { queryKey : [ 'auth' ] } ) ;
45- queryClient . setQueriesData ( { queryKey : [ 'auth' ] } , { } ) ;
45+ // eslint-disable-next-line unicorn/no-null
46+ queryClient . setQueriesData ( { queryKey : [ 'auth' ] } , null ) ;
4647 }
4748
4849 last_token = snapshot . context . token ;
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ export { Avatar } from './avatar';
22export { Button } from './button' ;
33export { Input } from './input' ;
44export * from './modal' ;
5+ export * from './select' ;
Original file line number Diff line number Diff line change 1+ import { FC } from 'react' ;
2+
3+ import { Input } from '../input' ;
4+
5+ export const TeamSelect : FC < { value ?: string } > = ( { value } ) => {
6+ return < Input value = { value } /> ;
7+ } ;
Original file line number Diff line number Diff line change 1+ export * from './TeamSelect' ;
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ const CommandPaletteInternal: FC<{ requestClose: () => void }> = ({
8989 ) }
9090 </ ul >
9191 </ div >
92- < Command . List className = "max-h-[50vh] overflow-y-auto p-2" >
92+ < Command . List className = "overflow-y-auto p-2" >
9393 < Command . Empty className = "text-sm" >
9494 No results found.
9595 </ Command . Empty >
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ export const site_commands: CommandEntry[] = [
151151 title : 'Domains' ,
152152 aliases : [ 'domains' , 'domain' ] ,
153153 slug : 'domains' ,
154- navigate_to : '/site/$siteId/domains' ,
154+ navigate_to : '/site/$siteId/settings/ domains' ,
155155 } ,
156156 {
157157 icon : FiSettings ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { createFileRoute } from '@tanstack/react-router';
22
33import { useSite } from '@/api' ;
44import { Button , Input } from '@/components' ;
5+ import { TeamSelect } from '@/components/select' ;
56
67export const Route = createFileRoute ( '/_authed/site/$siteId/settings/_s/' ) ( {
78 component : RouteComponent ,
@@ -25,7 +26,7 @@ function RouteComponent() {
2526 < div >
2627 < div > Team</ div >
2728 < div className = "flex gap-2" >
28- < Input value = { site ?. team_id } />
29+ < TeamSelect value = { site ?. team_id } />
2930 < Button onClick = { ( ) => alert ( 'Not implemented' ) } >
3031 Transfer
3132 </ Button >
Original file line number Diff line number Diff line change 9090 @apply py-2 outline-none ;
9191}
9292
93+ [cmdk-list ] {
94+ min-height : 300px ;
95+ height : var (--cmdk-list-height );
96+ max-height : 500px ;
97+ transition : height 100ms ease ;
98+ scroll-padding-block-start : 8px ;
99+ scroll-padding-block-end : 8px ;
100+ }
101+
93102[cmdk-list-sizer ] {
94103 @apply space-y- 2;
95104}
You can’t perform that action at this time.
0 commit comments