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(graph-ui): label Project name honestly as permanent ID
Martin Vogelb56cb592e963
diff --git a/graph-ui/src/components/StatsTab.test.tsx b/graph-ui/src/components/StatsTab.test.tsxindex f0cc22d58..bc6d41fe8 100644--- a/graph-ui/src/components/StatsTab.test.tsx+++ b/graph-ui/src/components/StatsTab.test.tsx@@ -65,7 +65,7 @@ describe("StatsTab index modal", () => {fireEvent.change(await screen.findByLabelText("Repository path"), {target: { value: "D:\\work\\信租风控通后端" },});- fireEvent.change(screen.getByLabelText("Project name"), {+ fireEvent.change(screen.getByLabelText("Project ID (optional — permanent, cannot be renamed)"), {target: { value: "信租风控通后端" },});fireEvent.click(screen.getByRole("button", { name: "Index This Folder" }));diff --git a/graph-ui/src/components/StatsTab.tsx b/graph-ui/src/components/StatsTab.tsxindex 07e15fd5a..67c38810f 100644--- a/graph-ui/src/components/StatsTab.tsx+++ b/graph-ui/src/components/StatsTab.tsx@@ -269,6 +269,7 @@ function CreateIndexModal({ onClose, onCreated }: { onClose: () => void; onCreatonChange={(e) => setProjectName(e.target.value)}className="w-full bg-white/[0.04] border border-white/[0.06] rounded-lg px-3 py-2 text-[12px] text-foreground outline-none focus:border-primary/40 placeholder:text-foreground/20"/>+ <span className="block text-[10px] text-foreground/25 mt-1">{t.index.projectNameHelp}</span></label></div>diff --git a/graph-ui/src/lib/i18n.ts b/graph-ui/src/lib/i18n.tsindex 942d67ade..e98e1de4e 100644--- a/graph-ui/src/lib/i18n.ts+++ b/graph-ui/src/lib/i18n.ts@@ -45,8 +45,9 @@ export const messages = {selectRepositoryFolder: "Select Repository Folder",instructions: "Navigate to the project root and click \"Index This Folder\".",repositoryPath: "Repository path",- projectName: "Project name",- projectNamePlaceholder: "Optional display name",+ projectName: "Project ID (optional — permanent, cannot be renamed)",+ projectNamePlaceholder: "Derived from folder name if blank",+ projectNameHelp: "Becomes the database name and query prefix. Leave blank to derive it from the path.",filterFolders: "Filter folders",noSubdirectories: "No subdirectories",indexThisFolder: "Index This Folder",@@ -116,8 +117,9 @@ export const messages = {selectRepositoryFolder: "选择仓库目录",instructions: "导航到项目根目录,然后点击“索引此目录”。",repositoryPath: "仓库路径",- projectName: "项目名称",- projectNamePlaceholder: "可选显示名称",+ projectName: "项目 ID(可选,永久且不可重命名)",+ projectNamePlaceholder: "留空则从路径派生",+ projectNameHelp: "将作为数据库名称与查询前缀;留空则从路径派生。",filterFolders: "筛选目录",noSubdirectories: "没有子目录",indexThisFolder: "索引此目录",