Skip to content

Commit f5d73f4

Browse files
committed
Added a blank state
1 parent 2b21ca3 commit f5d73f4

File tree

2 files changed

+30
-2
lines changed
  • apps/webapp/app

2 files changed

+30
-2
lines changed

apps/webapp/app/components/BlankStatePanels.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { TextLink } from "./primitives/TextLink";
3636
import { InitCommandV3, PackageManagerProvider, TriggerDevStepV3 } from "./SetupCommands";
3737
import { StepContentContainer } from "./StepContentContainer";
3838
import { WaitpointTokenIcon } from "~/assets/icons/WaitpointTokenIcon";
39+
import { HttpCallbackIcon } from "~/assets/icons/HttpCallbackIcon";
3940

4041
export function HasNoTasksDev() {
4142
return (
@@ -431,6 +432,33 @@ export function NoWaitpointTokens() {
431432
);
432433
}
433434

435+
export function NoHttpCallbacks() {
436+
return (
437+
<InfoPanel
438+
title="You don't have any HTTP callbacks"
439+
icon={HttpCallbackIcon}
440+
iconClassName="text-teal-500"
441+
panelClassName="max-w-md"
442+
accessory={
443+
<LinkButton
444+
to={docsPath("wait-for-http-callback")}
445+
variant="docs/small"
446+
LeadingIcon={BookOpenIcon}
447+
>
448+
Waitpoint docs
449+
</LinkButton>
450+
}
451+
>
452+
<Paragraph spacing variant="small">
453+
HTTP callbacks are used to pause runs until an HTTP request is made to a provided URL.
454+
</Paragraph>
455+
<Paragraph spacing variant="small">
456+
They are useful when using APIs that provide a callback URL. You can send the URL to them
457+
and when they callback your run will continue.
458+
</Paragraph>
459+
</InfoPanel>
460+
);
461+
}
434462
function SwitcherPanel() {
435463
const organization = useOrganization();
436464
const project = useProject();

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.waitpoints.http-callbacks/route.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Outlet, useParams, type MetaFunction } from "@remix-run/react";
33
import { type LoaderFunctionArgs } from "@remix-run/server-runtime";
44
import { typedjson, useTypedLoaderData } from "remix-typedjson";
55
import { AdminDebugTooltip } from "~/components/admin/debugTooltip";
6-
import { NoWaitpointTokens } from "~/components/BlankStatePanels";
6+
import { NoHttpCallbacks } from "~/components/BlankStatePanels";
77
import { MainCenteredContainer, PageBody, PageContainer } from "~/components/layout/AppLayout";
88
import { ListPagination } from "~/components/ListPagination";
99
import { LinkButton } from "~/components/primitives/Buttons";
@@ -132,7 +132,7 @@ export default function Page() {
132132
<PageBody scrollable={false}>
133133
{!hasAnyTokens ? (
134134
<MainCenteredContainer className="max-w-md">
135-
<NoWaitpointTokens />
135+
<NoHttpCallbacks />
136136
</MainCenteredContainer>
137137
) : (
138138
<ResizablePanelGroup orientation="horizontal" className="max-h-full">

0 commit comments

Comments
 (0)