Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix(intake): include all supported diagram types in issue forms

Rudy Celekli3a9a055aff92
diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml
index ec1deab6..cfb3e64f 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.yml
+++ b/.github/ISSUE_TEMPLATE/bug-report.yml
@@ -40,6 +40,11 @@ body:
- Sequence
- Data flow
- Lifecycle
+ - ERD
+ - Class
+ - Tree
+ - Timeline
+ - Waterfall
- Installation or packaging
- Generated viewer
validations:
diff --git a/.github/ISSUE_TEMPLATE/showcase.yml b/.github/ISSUE_TEMPLATE/showcase.yml
index 8da5be66..0bd7f0de 100644
--- a/.github/ISSUE_TEMPLATE/showcase.yml
+++ b/.github/ISSUE_TEMPLATE/showcase.yml
@@ -19,6 +19,11 @@ body:
- Sequence
- Data flow
- Lifecycle
+ - ERD
+ - Class
+ - Tree
+ - Timeline
+ - Waterfall
validations:
required: true
diff --git a/test/intake-diagram-types.test.mjs b/test/intake-diagram-types.test.mjs
new file mode 100644
index 00000000..451103a1
--- /dev/null
+++ b/test/intake-diagram-types.test.mjs
@@ -0,0 +1,12 @@
+import assert from 'node:assert/strict';
+import test from 'node:test';
+import fs from 'node:fs';
+import { parse } from 'yaml';
+const labels=['Architecture','Workflow','Sequence','Data flow','Lifecycle','ERD','Class','Tree','Timeline','Waterfall'];
+for(const form of ['bug-report','showcase']) test(`${form} intake lets users identify every supported diagram type`,()=>{
+ const source=fs.readFileSync(new URL(`../.github/ISSUE_TEMPLATE/${form}.yml`,import.meta.url),'utf8');
+ const field=parse(source).body.find(item=>item.id==='diagram_type');
+ assert.equal(field.type,'dropdown');
+ for(const label of labels) assert.ok(field.attributes.options.includes(label),`${form} missing ${label}`);
+ assert.equal(new Set(field.attributes.options).size,field.attributes.options.length);
+});