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

Function useCatalogRows

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

Source from the content-addressed store, hash-verified

186 * `isConnectableIntegration`). Empty while the catalog loads, which degrades to
187 * "connected only" rather than blocking the users table on a second request. */
188const useCatalogRows = (): readonly AdminCatalogRow[] => {
189 const catalog = useAtomValue(integrationsOptimisticAtom);
190 return Option.match(AsyncResult.value(catalog), {
191 onNone: (): readonly AdminCatalogRow[] => [],
192 onSome: (integrations: readonly Integration[]) =>
193 integrations.map((row) => ({ slug: row.slug, kind: row.kind })),
194 });
195};
196
197/**
198 * 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