Skip to content

6338: allow direction TD inside subgraphs#6989

Merged
shubhamparikh2704 merged 1 commit intodevelopfrom
subgraph-td-direction
Oct 13, 2025
Merged

6338: allow direction TD inside subgraphs#6989
shubhamparikh2704 merged 1 commit intodevelopfrom
subgraph-td-direction

Conversation

@darshanr0107
Copy link
Copy Markdown
Contributor

@darshanr0107 darshanr0107 commented Sep 24, 2025

📑 Summary

This PR fixes an issue where direction TD inside subgraphs caused a parsing error. While TB, LR, and RL were supported, TD was not recognized.

Resolves #6338

📏 Design Decisions

Updated the flow.jison grammar to allow direction TD and other directions inside subgraphs.

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added necessary unit/e2e tests.
  • 📓 have added documentation. Make sure MERMAID_RELEASE_VERSION is used for all new features.
  • 🦋 If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Sep 24, 2025

🦋 Changeset detected

Latest commit: 1a9d45a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
mermaid Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 24, 2025

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit 1a9d45a
🔍 Latest deploy log https://app.netlify.com/projects/mermaid-js/deploys/68d3967886478a0008ed1337
😎 Deploy Preview https://deploy-preview-6989--mermaid-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Sep 24, 2025

Open in StackBlitz

@mermaid-js/examples

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/examples@6989

mermaid

npm i https://pkg.pr.new/mermaid-js/mermaid@6989

@mermaid-js/layout-elk

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/layout-elk@6989

@mermaid-js/layout-tidy-tree

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/layout-tidy-tree@6989

@mermaid-js/mermaid-zenuml

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/mermaid-zenuml@6989

@mermaid-js/parser

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/parser@6989

@mermaid-js/tiny

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/tiny@6989

commit: 1a9d45a

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 3.57%. Comparing base (d5c4eff) to head (1a9d45a).
⚠️ Report is 68 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #6989      +/-   ##
==========================================
- Coverage     3.57%   3.57%   -0.01%     
==========================================
  Files          473     474       +1     
  Lines        47139   47150      +11     
  Branches       730     730              
==========================================
  Hits          1687    1687              
- Misses       45452   45463      +11     
Flag Coverage Δ
unit 3.57% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@argos-ci
Copy link
Copy Markdown

argos-ci Bot commented Sep 24, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ⚠️ Changes detected (Review) 1 added Sep 24, 2025, 7:09 AM

@shubhamparikh2704 shubhamparikh2704 added this pull request to the merge queue Oct 13, 2025
Merged via the queue into develop with commit 2bb57bf Oct 13, 2025
25 checks passed
@shubhamparikh2704 shubhamparikh2704 deleted the subgraph-td-direction branch October 13, 2025 13:24
This was referenced Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Direction TD Inside subgraph Causes Parsing Error

3 participants