@@ -53,6 +53,7 @@ import {
53
53
} from "~/components/primitives/Tooltip" ;
54
54
import { type RuntimeEnvironmentType } from "@trigger.dev/database" ;
55
55
import { environmentFullTitle } from "~/components/environments/EnvironmentLabel" ;
56
+ import { Callout } from "~/components/primitives/Callout" ;
56
57
57
58
const SearchParamsSchema = z . object ( {
58
59
page : z . coerce . number ( ) . min ( 1 ) . default ( 1 ) ,
@@ -100,6 +101,8 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
100
101
101
102
return typeddefer ( {
102
103
...queues ,
104
+ success : false ,
105
+ code : "engine-version" ,
103
106
environment : environmentQueuePresenter . call ( environment ) ,
104
107
} ) ;
105
108
} catch ( error ) {
@@ -354,11 +357,22 @@ export default function Page() {
354
357
</ >
355
358
) : (
356
359
< div className = "grid place-items-center py-6 text-text-dimmed" >
357
- < p >
358
- { code === "engine-version"
359
- ? "Please upgrade your engine to v3 to use queues."
360
- : "Something went wrong" }
361
- </ p >
360
+ { code === "engine-version" ? (
361
+ < div className = "flex flex-col gap-2" >
362
+ < div className = "flex items-center justify-between gap-2" >
363
+ < h4 className = "text-base text-text-bright" > New queues table</ h4 >
364
+ < LinkButton
365
+ LeadingIcon = { BookOpenIcon }
366
+ to = { docsPath ( "v4-upgrade" ) }
367
+ variant = { "docs/small" }
368
+ >
369
+ Upgrade guide
370
+ </ LinkButton >
371
+ </ div >
372
+ </ div >
373
+ ) : (
374
+ < Callout variant = "error" > Something went wrong</ Callout >
375
+ ) }
362
376
</ div >
363
377
) }
364
378
</ div >
0 commit comments