MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / useCatalogRows

Function useCatalogRows

packages/react/src/pages/admin-users.tsx:190–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188 * `isConnectableIntegration`). Empty while the catalog loads, which degrades to
189 * "connected only" rather than blocking the users table on a second request. */
190const useCatalogRows = (): readonly AdminCatalogRow[] => {
191 const catalog = useAtomValue(integrationsOptimisticAtom);
192 return Option.match(AsyncResult.value(catalog), {
193 onNone: (): readonly AdminCatalogRow[] => [],
194 onSome: (integrations: readonly Integration[]) =>
195 integrations.map((row) => ({ slug: row.slug, kind: row.kind })),
196 });
197};
198
199/**
200 * The connection summary: one slot per integration in the catalog, lit when

Callers 1

AdminUsersPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected