99import { Await , Form , useNavigation , type MetaFunction } from "@remix-run/react" ;
1010import { type ActionFunctionArgs , type LoaderFunctionArgs } from "@remix-run/server-runtime" ;
1111import { Suspense , useEffect , useState } from "react" ;
12- import { typeddefer , useTypedLoaderData } from "remix-typedjson" ;
12+ import { TypedAwait , typeddefer , useTypedLoaderData } from "remix-typedjson" ;
1313import { z } from "zod" ;
1414import { TaskIcon } from "~/assets/icons/TaskIcon" ;
1515import { AdminDebugTooltip } from "~/components/admin/debugTooltip" ;
@@ -194,7 +194,7 @@ export default function Page() {
194194 < div className = "flex flex-col" >
195195 < div className = "grid grid-cols-3 gap-3 p-3" >
196196 < Suspense fallback = { < BigNumber title = "Queued" loading = { true } /> } >
197- < Await resolve = { environment } >
197+ < TypedAwait resolve = { environment } >
198198 { ( environment ) => (
199199 < BigNumber
200200 title = "Queued"
@@ -205,15 +205,15 @@ export default function Page() {
205205 valueClassName = { env . paused ? "text-amber-500" : undefined }
206206 />
207207 ) }
208- </ Await >
208+ </ TypedAwait >
209209 </ Suspense >
210210 < Suspense fallback = { < BigNumber title = "Running" loading = { true } /> } >
211- < Await resolve = { environment } >
211+ < TypedAwait resolve = { environment } >
212212 { ( environment ) => < BigNumber title = "Running" value = { environment . running } animate /> }
213- </ Await >
213+ </ TypedAwait >
214214 </ Suspense >
215215 < Suspense fallback = { < BigNumber title = "Concurrency limit" loading = { true } /> } >
216- < Await resolve = { environment } >
216+ < TypedAwait resolve = { environment } >
217217 { ( environment ) => (
218218 < BigNumber
219219 title = "Concurrency limit"
@@ -251,7 +251,7 @@ export default function Page() {
251251 }
252252 />
253253 ) }
254- </ Await >
254+ </ TypedAwait >
255255 </ Suspense >
256256 </ div >
257257
@@ -281,9 +281,9 @@ export default function Page() {
281281 </ TableRow >
282282 }
283283 >
284- < Await
284+ < TypedAwait
285285 resolve = { Promise . all ( [ queues . queues , environment ] ) }
286- errorElement = { < p > Error loading queues</ p > }
286+ errorElement = { < Paragraph variant = "small" > Error loading queues</ Paragraph > }
287287 >
288288 { ( [ q , environment ] ) =>
289289 q . length > 0 ? (
@@ -321,14 +321,14 @@ export default function Page() {
321321 ) : (
322322 < TableRow >
323323 < 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" >
325325 No queues found
326- </ div >
326+ </ span >
327327 </ TableCell >
328328 </ TableRow >
329329 )
330330 }
331- </ Await >
331+ </ TypedAwait >
332332 </ Suspense >
333333 </ TableBody >
334334 </ Table >
@@ -419,7 +419,9 @@ function EnvironmentPauseResumeButton({
419419 < Paragraph >
420420 { env . paused
421421 ? `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.`}
423425 </ Paragraph >
424426 < Form method = "post" onSubmit = { ( ) => setIsOpen ( false ) } >
425427 < input
0 commit comments