@@ -54,6 +54,7 @@ import {
5454import { type RuntimeEnvironmentType } from "@trigger.dev/database" ;
5555import { environmentFullTitle } from "~/components/environments/EnvironmentLabel" ;
5656import { Callout } from "~/components/primitives/Callout" ;
57+ import upgradeForQueuesPath from "~/assets/images/queues-dashboard.png" ;
5758
5859const SearchParamsSchema = z . object ( {
5960 page : z . coerce . number ( ) . min ( 1 ) . default ( 1 ) ,
@@ -101,8 +102,6 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
101102
102103 return typeddefer ( {
103104 ...queues ,
104- success : false ,
105- code : "engine-version" ,
106105 environment : environmentQueuePresenter . call ( environment ) ,
107106 } ) ;
108107 } catch ( error ) {
@@ -358,18 +357,7 @@ export default function Page() {
358357 ) : (
359358 < div className = "grid place-items-center py-6 text-text-dimmed" >
360359 { 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 >
360+ < EngineVersionUpgradeCallout />
373361 ) : (
374362 < Callout variant = "error" > Something went wrong</ Callout >
375363 ) }
@@ -468,6 +456,30 @@ function EnvironmentPauseResumeButton({
468456 ) ;
469457}
470458
459+ function EngineVersionUpgradeCallout ( ) {
460+ return (
461+ < div className = "mt-4 flex max-w-lg flex-col gap-4 rounded-sm border border-grid-bright bg-background-bright px-4" >
462+ < div className = "flex items-center justify-between gap-2 border-b border-grid-dimmed py-4" >
463+ < h4 className = "text-base text-text-bright" > New queues table</ h4 >
464+ < LinkButton LeadingIcon = { BookOpenIcon } to = { docsPath ( "v4-upgrade" ) } variant = { "docs/small" } >
465+ Upgrade guide
466+ </ LinkButton >
467+ </ div >
468+ < div className = "space-y-4 pb-4" >
469+ < Paragraph variant = "small" >
470+ Upgrade to SDK version 4+ to view the new queues table, and be able to pause and resume
471+ individual queues.
472+ </ Paragraph >
473+ < img
474+ src = { upgradeForQueuesPath }
475+ alt = "Upgrade for queues"
476+ className = "rounded-sm border border-grid-dimmed"
477+ />
478+ </ div >
479+ </ div >
480+ ) ;
481+ }
482+
471483export function isEnvironmentPauseResumeFormSubmission (
472484 formMethod : string | undefined ,
473485 formData : FormData | undefined
0 commit comments