Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(ui): name the branch node in German answers as the Galaxy label does
Bernhard Jackiewicz5a75016d152a
diff --git a/graph-ui/src/browser-ai/BrowserChatDock.view.test.tsx b/graph-ui/src/browser-ai/BrowserChatDock.view.test.tsxindex 37a796d46..6ef0eefe2 100644--- a/graph-ui/src/browser-ai/BrowserChatDock.view.test.tsx+++ b/graph-ui/src/browser-ai/BrowserChatDock.view.test.tsx@@ -16,7 +16,7 @@ describe('questions about the current view are answered from the loaded scope (Hawait dock.ask(question);const answer = dock.answerOf(dock.last()).replace(/\s+/g, ' ');expect(answer).toContain('.github (Ordner) steht in der Mitte; der Ausschnitt geht 1 Schritt in beide Richtungen.');- expect(answer).toContain('Links, eingehend: CONTAINS_FOLDER (1): django-demo · losgelöster HEAD');+ expect(answer).toContain('Links, eingehend: CONTAINS_FOLDER (1): django-demo · detached HEAD');expect(answer).toContain('Rechts, ausgehend: CONTAINS_FILE (4): CODE_OF_CONDUCT.md, FUNDING.yml, pull_request_template.md, SECURITY.md CONTAINS_FOLDER (1): workflows');expect(answer).toContain('So liest du die Hierarchie: eingehende Beziehungen stehen links, ausgehende rechts.');expect(answer).toContain('Aus dem indizierten Graphen gelistet, nicht vom Modell erzeugt.');diff --git a/graph-ui/src/browser-ai/galaxy-evidence.branch.test.ts b/graph-ui/src/browser-ai/galaxy-evidence.branch.test.tsindex d6acdcee8..eea23c19d 100644--- a/graph-ui/src/browser-ai/galaxy-evidence.branch.test.ts+++ b/graph-ui/src/browser-ai/galaxy-evidence.branch.test.ts@@ -29,7 +29,7 @@ it('N1: the related Branch node of .github is listed by its shown name, in Engliconst evidence = readGalaxyEvidence(githubContext().text)!;const [group] = evidence.relationships.incoming;expect(relationshipLine(group!, 'incoming', Infinity, relationshipWords.en, true).text).toBe('- **CONTAINS_FOLDER (1):** `django-demo · detached HEAD` (Branch)');- expect(relationshipLine(group!, 'incoming', Infinity, relationshipWords.de, true).text).toBe('- **CONTAINS_FOLDER (1):** `django-demo · losgelöster HEAD` (Branch-Knoten)');+ expect(relationshipLine(group!, 'incoming', Infinity, relationshipWords.de, true).text).toBe('- **CONTAINS_FOLDER (1):** `django-demo · detached HEAD` (Branch-Knoten)');});it('N1: a selected Branch node is named for what it is in the evidence, the topic and the listed answer', () => {@@ -40,20 +40,21 @@ it('N1: a selected Branch node is named for what it is in the evidence, the topiexpect(evidence.label).toBe('DETACHED');expect(evidence.roots[0]).toMatchObject({ name: 'DETACHED', kind: 'Branch', qualifiedName: 'django-demo.__branch__.detached' });expect(selectionSentence(evidence, relationshipWords.en)).toEqual(['Selected: django-demo · detached HEAD (Branch).']);- expect(selectionSentence(evidence, relationshipWords.de)).toEqual(['Ausgewählt: django-demo · losgelöster HEAD (Branch-Knoten).']);+ expect(selectionSentence(evidence, relationshipWords.de)).toEqual(['Ausgewählt: django-demo · detached HEAD (Branch-Knoten).']);expect(chatTopic('django-demo:galaxy', { graph })?.label).toBe('django-demo · detached HEAD');// A typed "DETACHED" still names the selection; the answer names it as the Galaxy does.const english = relationshipAnswer('Who calls DETACHED?', [graph])!;expect(english.markdown).toContain('No CALLS edge reaches `django-demo · detached HEAD` in this scope.');expect(english.markdown).not.toContain('`DETACHED`');const german = relationshipAnswer('Wer ruft DETACHED auf?', [graph])!;- expect(german.markdown).toContain('`django-demo · losgelöster HEAD`');+ expect(german.markdown).toContain('`django-demo · detached HEAD`');expect(german.markdown).not.toContain('`DETACHED`');});it('N1: the working tree of cbm and a named branch read the same way', () => {const words = relationshipWords.de.nodeNames;- expect(words.workingTree).toBe('Arbeitsverzeichnis');+ // The German answer names the node as the Galaxy label does, so it can be found in the picture.+ expect(words.workingTree).toBe('working tree');expect(words.branch('main')).toBe('Branch main');expect(relationshipWords.en.nodeNames.workingTree).toBe('working tree');});diff --git a/graph-ui/src/browser-ai/strings.ts b/graph-ui/src/browser-ai/strings.tsindex a0fb84bac..301e363c2 100644--- a/graph-ui/src/browser-ai/strings.ts+++ b/graph-ui/src/browser-ai/strings.ts@@ -50,11 +50,12 @@ const GERMAN_KINDS: Readonly<Record<string, readonly [string, string, 'f' | 'm'test: ['Test', 'Tests', 'm'], channel: ['Kanal', 'Kanäle', 'm'], node: ['Knoten', 'Knoten', 'm'], symbol: ['Symbol', 'Symbole', 'n'],branch: ['Branch-Knoten', 'Branch-Knoten', 'm'],};-/** The Branch node in the words of the answer: "django-demo · detached HEAD", "django-demo · losgelöster HEAD" (round 4, N1). */+/** The Branch node in the words of the answer: "django-demo · detached HEAD" (round 4, N1). A German+ * answer keeps the words of the Galaxy label, so the node it names can be found in the picture. */const englishNodeNames: BranchNameWords = galaxyNodeNameText;const germanNodeNames: BranchNameWords = {- detached: 'losgelöster HEAD',- workingTree: 'Arbeitsverzeichnis',+ detached: galaxyNodeNameText.detached,+ workingTree: galaxyNodeNameText.workingTree,branch: (name: string) => `Branch ${name}`,inProject: (project: string, what: string) => `${project} · ${what}`,};diff --git a/graph-ui/src/browser-ai/view-answer.test.ts b/graph-ui/src/browser-ai/view-answer.test.tsindex c47cdba14..7a1241613 100644--- a/graph-ui/src/browser-ai/view-answer.test.ts+++ b/graph-ui/src/browser-ai/view-answer.test.ts@@ -44,7 +44,7 @@ describe('the listed answer about the current view (H1)', () => {expect(answer.split('\n\n')).toEqual(['`.github` (Ordner) steht in der Mitte; der Ausschnitt geht 1 Schritt in beide Richtungen.',// The branch node is named as the Galaxy names it, not by its bare "DETACHED" (K47).- 'Links, eingehend:\n- **CONTAINS_FOLDER (1):** `django-demo · losgelöster HEAD`',+ 'Links, eingehend:\n- **CONTAINS_FOLDER (1):** `django-demo · detached HEAD`','Rechts, ausgehend:\n- **CONTAINS_FILE (4):** `CODE_OF_CONDUCT.md`, `FUNDING.yml`, `pull_request_template.md`, `SECURITY.md`\n- **CONTAINS_FOLDER (1):** `workflows`','So liest du die Hierarchie: eingehende Beziehungen stehen links, ausgehende rechts.','7 Symbole und 6 Beziehungen, alle Beziehungstypen; vollständig geladen.',