Skip to content
Merged
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
14 changes: 13 additions & 1 deletion app/_lib/integration-catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ const getToolkitDocsLink = (toolkit: Toolkit): string | undefined => {
return;
};

/**
* Toolkits that have launched but are still flagged `isComingSoon` in the
* design-system catalog. Remove an entry once DS ships the flag as `false`.
*/
const LAUNCHED_TOOLKIT_IDS = new Set(["workday"]);

const clearLaunchedComingSoon = (toolkit: Toolkit): Toolkit =>
LAUNCHED_TOOLKIT_IDS.has(normalizeToolkitId(toolkit.id))
? { ...toolkit, isComingSoon: false }
: toolkit;

/**
* The full integrations catalog the index renders: design-system toolkits
* (enriched with a `docsLink` from their data file when the catalog entry
Expand Down Expand Up @@ -41,7 +52,8 @@ export const getToolkitsWithDocsLinks = async (): Promise<
})
);

const dsToolkits: ToolkitWithDocsLink[] = TOOLKITS.map((toolkit) => {
const dsToolkits: ToolkitWithDocsLink[] = TOOLKITS.map((dsToolkit) => {
const toolkit = clearLaunchedComingSoon(dsToolkit);
const existing = getToolkitDocsLink(toolkit);
const docsLink =
existing ?? docsLinkById.get(normalizeToolkitId(toolkit.id));
Expand Down
Loading