9
9
import { Await , Form , useNavigation , type MetaFunction } from "@remix-run/react" ;
10
10
import { type ActionFunctionArgs , type LoaderFunctionArgs } from "@remix-run/server-runtime" ;
11
11
import { Suspense , useEffect , useState } from "react" ;
12
- import { typeddefer , useTypedLoaderData } from "remix-typedjson" ;
12
+ import { TypedAwait , typeddefer , useTypedLoaderData } from "remix-typedjson" ;
13
13
import { z } from "zod" ;
14
14
import { TaskIcon } from "~/assets/icons/TaskIcon" ;
15
15
import { AdminDebugTooltip } from "~/components/admin/debugTooltip" ;
@@ -194,7 +194,7 @@ export default function Page() {
194
194
< div className = "flex flex-col" >
195
195
< div className = "grid grid-cols-3 gap-3 p-3" >
196
196
< Suspense fallback = { < BigNumber title = "Queued" loading = { true } /> } >
197
- < Await resolve = { environment } >
197
+ < TypedAwait resolve = { environment } >
198
198
{ ( environment ) => (
199
199
< BigNumber
200
200
title = "Queued"
@@ -205,15 +205,15 @@ export default function Page() {
205
205
valueClassName = { env . paused ? "text-amber-500" : undefined }
206
206
/>
207
207
) }
208
- </ Await >
208
+ </ TypedAwait >
209
209
</ Suspense >
210
210
< Suspense fallback = { < BigNumber title = "Running" loading = { true } /> } >
211
- < Await resolve = { environment } >
211
+ < TypedAwait resolve = { environment } >
212
212
{ ( environment ) => < BigNumber title = "Running" value = { environment . running } animate /> }
213
- </ Await >
213
+ </ TypedAwait >
214
214
</ Suspense >
215
215
< Suspense fallback = { < BigNumber title = "Concurrency limit" loading = { true } /> } >
216
- < Await resolve = { environment } >
216
+ < TypedAwait resolve = { environment } >
217
217
{ ( environment ) => (
218
218
< BigNumber
219
219
title = "Concurrency limit"
@@ -251,7 +251,7 @@ export default function Page() {
251
251
}
252
252
/>
253
253
) }
254
- </ Await >
254
+ </ TypedAwait >
255
255
</ Suspense >
256
256
</ div >
257
257
@@ -281,9 +281,9 @@ export default function Page() {
281
281
</ TableRow >
282
282
}
283
283
>
284
- < Await
284
+ < TypedAwait
285
285
resolve = { Promise . all ( [ queues . queues , environment ] ) }
286
- errorElement = { < p > Error loading queues</ p > }
286
+ errorElement = { < Paragraph variant = "small" > Error loading queues</ Paragraph > }
287
287
>
288
288
{ ( [ q , environment ] ) =>
289
289
q . length > 0 ? (
@@ -321,14 +321,14 @@ export default function Page() {
321
321
) : (
322
322
< TableRow >
323
323
< TableCell colSpan = { 5 } >
324
- < div className = "grid place-items-center py-6 text-text-dimmed" >
324
+ < span className = "grid place-items-center py-6 text-text-dimmed" >
325
325
No queues found
326
- </ div >
326
+ </ span >
327
327
</ TableCell >
328
328
</ TableRow >
329
329
)
330
330
}
331
- </ Await >
331
+ </ TypedAwait >
332
332
</ Suspense >
333
333
</ TableBody >
334
334
</ Table >
@@ -419,7 +419,9 @@ function EnvironmentPauseResumeButton({
419
419
< Paragraph >
420
420
{ env . paused
421
421
? `This will allow runs to be dequeued in ${ environmentFullTitle ( env ) } again.`
422
- : `This will pause any runs from being dequeued in ${ environmentFullTitle ( env ) } .` }
422
+ : `This will pause all runs from being dequeued in ${ environmentFullTitle (
423
+ env
424
+ ) } . Any executing runs will continue to run.`}
423
425
</ Paragraph >
424
426
< Form method = "post" onSubmit = { ( ) => setIsOpen ( false ) } >
425
427
< input
0 commit comments