Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

refactor(diagram): remove redundant type badge

tianma-if138ad11b3f65
diff --git a/apps/web/src/components/DiagramEditorPane.test.mjs b/apps/web/src/components/DiagramEditorPane.test.mjs
index 7a5a7032..827efade 100644
--- a/apps/web/src/components/DiagramEditorPane.test.mjs
+++ b/apps/web/src/components/DiagramEditorPane.test.mjs
@@ -50,6 +50,9 @@ describe("diagram editor canvas surface", () => {
expect(source).toContain('t("templates.saveAsTemplate")');
expect(source).toContain("<RevisionHistoryDialog");
expect(source).toContain("<ShareMemoDialog");
+ expect(source).not.toContain('>{kindLabel}</div>');
+ expect(source).toContain('placeholder={kindLabel}');
+ expect(source).toContain('aria-label={t("diagram.canvas", { type: kindLabel })}');
});
test("autosaves diagram changes without a persistent save button", () => {
diff --git a/apps/web/src/components/DiagramEditorPane.tsx b/apps/web/src/components/DiagramEditorPane.tsx
index c6f81064..70fd5ad4 100644
--- a/apps/web/src/components/DiagramEditorPane.tsx
+++ b/apps/web/src/components/DiagramEditorPane.tsx
@@ -2228,7 +2228,6 @@ export const DiagramEditorPane = ({
}
}}
/>
- <div className="shrink-0 rounded-full border border-[var(--brand-green-border)] bg-[var(--brand-green-soft)] px-2.5 py-1 text-xs font-semibold text-[var(--brand-green-text)]">{kindLabel}</div>
</div>
</header>