Skip to content

Commit 4cd97c8

Browse files
committed
Swapped out the Integration page skeleton state for a simpler message
1 parent d0d5a69 commit 4cd97c8

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.integrations_.$clientParam._index

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.integrations_.$clientParam._index/route.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Callout } from "~/components/primitives/Callout";
88
import { Header2 } from "~/components/primitives/Headers";
99
import { Help, HelpContent, HelpTrigger } from "~/components/primitives/Help";
1010
import { Input } from "~/components/primitives/Input";
11+
import { Paragraph } from "~/components/primitives/Paragraph";
1112
import { useFilterJobs } from "~/hooks/useFilterJobs";
1213
import { useIntegrationClient } from "~/hooks/useIntegrationClient";
1314
import { JobListPresenter } from "~/presenters/JobListPresenter.server";
@@ -52,10 +53,8 @@ export default function Page() {
5253
{(open) => (
5354
<div className={cn("grid h-full gap-4", open ? "grid-cols-2" : "grid-cols-1")}>
5455
<div className="grow">
55-
<div className="mb-2 flex items-center justify-between gap-x-2">
56-
{jobs.length === 0 ? (
57-
<Header2>Jobs using this integration will appear here</Header2>
58-
) : (
56+
<div className="mb-2 flex items-center justify-end gap-x-2">
57+
{jobs.length !== 0 && (
5958
<Input
6059
placeholder="Search Jobs"
6160
variant="tertiary"
@@ -68,9 +67,9 @@ export default function Page() {
6867
<HelpTrigger title="How do I use this integration?" />
6968
</div>
7069
{jobs.length === 0 ? (
71-
<>
72-
<JobSkeleton />
73-
</>
70+
<div className="mt-8 rounded border border-border px-2 py-6 text-center">
71+
<Paragraph variant="small">Jobs using this Integration will appear here.</Paragraph>
72+
</div>
7473
) : (
7574
<JobsTable
7675
jobs={filteredItems}

0 commit comments

Comments
 (0)