5 Commits
Author SHA1 Message Date
Sidharth VinodandClaude Opus 5.5 7cb51a1d4f feat: Link docs for the diagram types added in mermaid 11.6–12
Adds docs paths for agentflow, cynefin, eventmodeling, ishikawa, radar,
the four railroad variants, swimlane, treeView, usecase, venn and
wardley, taken from packages/mermaid/src/docs/syntax in the mermaid repo
and checked against the published pages (config anchors included).

A new test parses every @mermaid-js/examples sample and fails when a
detected diagram type has no docs entry, so the next new type is caught
on the dependency bump instead of silently linking to the docs home.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 10:29:49 +05:30
Sidharth VinodandClaude Opus 5.5 ff0c822bd0 fix: Link Docs button to the right page for each diagram type (#1955)
- Resolve the docs base so a bare mermaid.ai origin maps to
  mermaid.ai/open-source instead of a missing page.
- Add a diagram-type catalog (diagramTypes.ts) keyed by mermaid's
  detector ids that owns docs paths, visual-edit support and
  external-service support. Replaces standardizeDiagramType, the
  component-local docMap and the visual-edit set.
- Fixes class diagrams falling back to the docs home page (the detector
  id was normalized to 'classDiagram', which the docMap didn't have) and
  sequence diagrams never offering visual edit ('sequence' vs
  'sequenceDiagram').

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 01:36:46 +05:30
Sidharth Vinod 1a2d752ca4 test: Update diagram names 2025-08-02 19:29:46 +05:30
Sidharth Vinod 501c983b99 test: Fix tests 2025-03-19 19:10:51 -07:00
Sidharth Vinod bb084867fa chore: Add playwright tests 2025-03-17 19:47:13 -07:00