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

Function nodeDisplayName

graph-ui/src/galaxy/node-names.ts:51–56  ·  view source on GitHub ↗
(node: NodeNameParts, words: BranchNameWords = galaxyNodeNameText)

Source from the content-addressed store, hash-verified

49
50/** The shown name: "django-demo · detached HEAD" for a Branch node, the node's own name for every other. */
51export function nodeDisplayName(node: NodeNameParts, words: BranchNameWords = galaxyNodeNameText): string {
52 const branch = branchNodeOf(node);
53 if (!branch) return node.name;
54 const what = branch.state === 'detached' ? words.detached : branch.state === 'working-tree' ? words.workingTree : words.branch(branch.name);
55 return branch.project ? words.inProject(branch.project, what) : what;
56}
57
58const partsOf = (node: GraphNode): NodeNameParts => ({ name: node.name, label: node.label, qualifiedName: node.qualified_name });
59

Callers 9

node-names.test.tsFile · 0.90
choicesFromSearchHitsFunction · 0.90
typeLineFunction · 0.90
viewAnswerFunction · 0.90
relationshipLineFunction · 0.90
rootNameFunction · 0.90
selectionNameFunction · 0.90
graphNodeNameFunction · 0.85
scopeDisplayNameFunction · 0.85

Calls 1

branchNodeOfFunction · 0.85

Tested by

no test coverage detected