(integration: Integration)
| 561 | const items = useMemo(() => groupIntegrations(props.integrations), [props.integrations]); |
| 562 | |
| 563 | const renderEntry = (integration: Integration) => { |
| 564 | const pluginKey = KIND_TO_PLUGIN_KEY[integration.kind] ?? integration.kind; |
| 565 | const plugin = pluginByKind.get(pluginKey); |
| 566 | const SummaryComponent = plugin?.summary; |
| 567 | const slug = String(integration.slug); |
| 568 | const name = integration.name || slug; |
| 569 | return ( |
| 570 | <CardStackEntry key={slug} asChild searchText={`${name} ${slug} ${integration.kind}`}> |
| 571 | <Link |
| 572 | to="/{-$orgSlug}/integrations/$namespace" |
| 573 | params={{ namespace: slug }} |
| 574 | data-testid={`integration-entry-${slug}`} |
| 575 | > |
| 576 | <IntegrationIconWithAccount |
| 577 | icon={integrationPresetIconUrl( |
| 578 | { id: slug, kind: integration.kind, name, url: integration.displayUrl }, |
| 579 | integrationPlugins, |
| 580 | )} |
| 581 | integrationId={slug} |
| 582 | url={integration.displayUrl ?? integrationInferredUrl({ id: slug, name }) ?? undefined} |
| 583 | /> |
| 584 | <CardStackEntryContent> |
| 585 | <CardStackEntryTitle>{name}</CardStackEntryTitle> |
| 586 | <CardStackEntryDescription>{slug}</CardStackEntryDescription> |
| 587 | </CardStackEntryContent> |
| 588 | <CardStackEntryActions> |
| 589 | {SummaryComponent && ( |
| 590 | <Suspense fallback={null}> |
| 591 | <SummaryComponent integrationId={slug} /> |
| 592 | </Suspense> |
| 593 | )} |
| 594 | <IntegrationHealthSummary integration={integration.slug} /> |
| 595 | </CardStackEntryActions> |
| 596 | </Link> |
| 597 | </CardStackEntry> |
| 598 | ); |
| 599 | }; |
| 600 | |
| 601 | const rendered: ReactNode[] = []; |
| 602 | let flatRun: Integration[] = []; |
nothing calls this directly
no test coverage detected