MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / section

Function section

ui/src/lib/entry-model.ts:212–232  ·  view source on GitHub ↗
(
  id: EntrySection['id'],
  title: string,
  note: string,
  list: WireList<unknown>,
  groups: EntryGroup[],
  floor: boolean,
  extraMeta = ''
)

Source from the content-addressed store, hash-verified

210}
211
212function section(
213 id: EntrySection['id'],
214 title: string,
215 note: string,
216 list: WireList<unknown>,
217 groups: EntryGroup[],
218 floor: boolean,
219 extraMeta = ''
220): EntrySection {
221 const counts = countMeta(list, floor);
222 return {
223 id,
224 title,
225 meta: extraMeta ? `${counts} · ${extraMeta}` : counts,
226 note,
227 groups,
228 shown: list.shown,
229 total: list.total,
230 floor,
231 };
232}
233
234export function buildEntryPanel(entries: WireEntryPoints | null): EntryPanel {
235 if (!entries) return { sections: [], rows: [], empty: null };

Callers 1

buildEntryPanelFunction · 0.85

Calls 1

countMetaFunction · 0.85

Tested by

no test coverage detected