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

Function committedIndex

packages/react/src/pages/policies.tsx:414–415  ·  view source on GitHub ↗
(id: string, owner: Owner)

Source from the content-addressed store, hash-verified

412 const committedForOwner = (owner: Owner) =>
413 sorted.filter((p) => p.owner === owner && p.position !== "");
414 const committedIndex = (id: string, owner: Owner): number =>
415 committedForOwner(owner).findIndex((p) => p.id === id);
416 const positionAbove = (id: string, owner: Owner): string => {
417 const committed = committedForOwner(owner);
418 const j = committedIndex(id, owner);

Callers 3

positionAboveFunction · 0.85
positionBelowFunction · 0.85
PoliciesPageFunction · 0.85

Calls 1

committedForOwnerFunction · 0.85

Tested by

no test coverage detected