Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion app/_lib/integration-index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ export function resolveIndexToolkits(
}
seen.add(link);
}
resolved.push({ ...toolkit, hasPage });

// "Coming soon" means there is nothing to read yet, so derive it from
// whether a page exists rather than trusting the design-system flag. That
// flag is a hand-maintained constant in a published package, so it goes
// stale the moment a toolkit ships and keeps a live toolkit looking
// unavailable. Deriving it here also keeps the badge and the sort order
// (`use-toolkit-filters`) reading the same value, which they previously
// did not.
resolved.push({ ...toolkit, hasPage, isComingSoon: !hasPage });
}

return resolved;
Expand Down
10 changes: 4 additions & 6 deletions app/en/resources/integrations/components/toolkits-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,10 @@ export default function ToolkitsClient({ toolkits }: ToolkitsClientProps) {
icon={IconComponent}
iconUrl={iconUrl}
isByoc={toolkit.isBYOC}
// Doc-less toolkits have no page; render them as
// non-clickable (coming-soon) cards instead of links to
// a 404.
isComingSoon={
toolkit.isComingSoon || toolkit.hasPage === false
}
// Resolved in `resolveIndexToolkits` from whether a page
// exists, so doc-less toolkits still render as
// non-clickable cards instead of links to a 404.
isComingSoon={toolkit.isComingSoon}
isPartner={toolkit.isPartner}
isPro={toolkit.isPro}
key={toolkit.id}
Expand Down
Loading