Skip to content

Commit 8ddaa62

Browse files
committed
WIP on upgrade panel
1 parent 57a57b4 commit 8ddaa62

File tree

1 file changed

+19
-5
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues

1 file changed

+19
-5
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues/route.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ import {
5353
} from "~/components/primitives/Tooltip";
5454
import { type RuntimeEnvironmentType } from "@trigger.dev/database";
5555
import { environmentFullTitle } from "~/components/environments/EnvironmentLabel";
56+
import { Callout } from "~/components/primitives/Callout";
5657

5758
const SearchParamsSchema = z.object({
5859
page: z.coerce.number().min(1).default(1),
@@ -100,6 +101,8 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
100101

101102
return typeddefer({
102103
...queues,
104+
success: false,
105+
code: "engine-version",
103106
environment: environmentQueuePresenter.call(environment),
104107
});
105108
} catch (error) {
@@ -354,11 +357,22 @@ export default function Page() {
354357
</>
355358
) : (
356359
<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+
)}
362376
</div>
363377
)}
364378
</div>

0 commit comments

Comments
 (0)