From 278d8428de8f024eefaf99e460f0f767ed78ad0a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 5 Apr 2026 21:13:09 +0300 Subject: [PATCH] feat(mermaid): integrate two new note types --- .../src/translations/en/translation.json | 4 +- .../type_widgets/mermaid/sample_diagrams.ts | 41 +++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index ce49038fb5..2455120cf2 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -2304,7 +2304,9 @@ "sample_user_journey": "User Journey", "sample_xy": "XY", "sample_venn": "Venn", - "sample_ishikawa": "Ishikawa" + "sample_ishikawa": "Ishikawa", + "sample_treeview": "TreeView", + "sample_wardley": "Wardley Map" }, "mind-map": { "addChild": "Add child", diff --git a/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts b/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts index 29b62b1e38..8d53bdec82 100644 --- a/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts +++ b/apps/client/src/widgets/type_widgets/mermaid/sample_diagrams.ts @@ -505,6 +505,47 @@ ishikawa-beta Environment Subject moved too quickly Too dark +` + }, + { + name: t("mermaid.sample_treeview"), + content: `\ +treeView-beta + "src" + "components" + "Button.tsx" + "Modal.tsx" + "services" + "api.ts" + "utils.ts" + "index.ts" + "package.json" + "README.md" +` + }, + { + name: t("mermaid.sample_wardley"), + content: `\ +wardley-beta + title Tea Shop + + anchor Customers [0.95, 0.63] + anchor Business [0.95, 0.27] + + component Cup of Tea [0.79, 0.61] + component Tea [0.63, 0.81] + component Cup [0.57, 0.46] + component Water [0.52, 0.89] + component Kettle [0.47, 0.53] + component Power [0.36, 0.72] + + Customers -> Cup of Tea + Business -> Cup of Tea + Cup of Tea -> Tea + Cup of Tea -> Cup + Cup of Tea -> Water + Water -> Kettle + Kettle -> Power ` } ];