MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / placeholderSection

Function placeholderSection

graph-ui/src/twin/render-model.ts:452–468  ·  view source on GitHub ↗

* One placeholder section: a heading, and the sentence saying that this panel * does not answer the lens behind it and which surface does. * * The row carries an empty fact path, which is how the renderer knows there is * no citation to offer. An evidence button over a claim CodeAtlas has not ma

(
    spec: { name: string; subject: string; sentence: string },
    labels: Readonly<Record<string, string>>
)

Source from the content-addressed store, hash-verified

450 * would be an affordance that leads nowhere.
451 */
452function placeholderSection(
453 spec: { name: string; subject: string; sentence: string },
454 labels: Readonly<Record<string, string>>
455): TwinSection {
456 return {
457 name: spec.name,
458 title: labels[spec.name] ?? spec.name,
459 subject: spec.subject,
460 icon: SECTION_ICONS[spec.name],
461 state: 'unsupported',
462 stateNote: LENS_ANSWERED_ELSEWHERE_NOTE,
463 factPath: '',
464 rows: [{ id: `${spec.name}-placeholder`, label: spec.sentence, factPath: '' }],
465 emptyText: spec.sentence,
466 populated: false
467 };
468}
469
470/**
471 * The sections this presentation shows, titled in its terminology.

Callers 1

visibleSectionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected