Skip to content

Conversation

@darshanr0107
Copy link
Contributor

@darshanr0107 darshanr0107 commented Oct 27, 2025

πŸ“‘ Summary

This PR fixes an issue where architecture diagram parsing fails when an ID starts with one of the edge direction letters β€” L, R, T, or B.
Resolves #7022

πŸ“ Design Decisions

Describe the way your implementation works or what design decisions you made if applicable.

πŸ“‹ 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:.

@changeset-bot
Copy link

changeset-bot bot commented Oct 27, 2025

πŸ¦‹ Changeset detected

Latest commit: 5e74f76

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

netlify bot commented Oct 27, 2025

βœ… Deploy Preview for mermaid-js ready!

Name Link
πŸ”¨ Latest commit 5e74f76
πŸ” Latest deploy log https://app.netlify.com/projects/mermaid-js/deploys/69119d3250d1220008816ded
😎 Deploy Preview https://deploy-preview-7106--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

pkg-pr-new bot commented Oct 27, 2025

Open in StackBlitz

@mermaid-js/examples

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

mermaid

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

@mermaid-js/layout-elk

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

@mermaid-js/layout-tidy-tree

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

@mermaid-js/mermaid-zenuml

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

@mermaid-js/parser

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

@mermaid-js/tiny

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

commit: 5e74f76

@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 3.55%. Comparing base (85a13da) to head (5e74f76).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #7106      +/-   ##
==========================================
- Coverage     3.55%   3.55%   -0.01%     
==========================================
  Files          473     474       +1     
  Lines        47496   47507      +11     
  Branches       730     730              
==========================================
  Hits          1687    1687              
- Misses       45809   45820      +11     
Flag Coverage Ξ”
unit 3.55% <ΓΈ> (-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

argos-ci bot commented Oct 27, 2025

The latest updates on your projects. Learn more about Argos notifications β†—οΈŽ

Build Status Details Updated (UTC)
default (Inspect) βœ… No changes detected - Nov 10, 2025, 8:18 AM

@darshanr0107 darshanr0107 changed the title Fix parser error when service IDs start with edge direction letters (L, R, T, B) 7022: Fix parser error when service IDs start with edge direction letters (L, R, T, B) Oct 27, 2025
lhsId=ID lhsGroup?=ARROW_GROUP? Arrow rhsId=ID rhsGroup?=ARROW_GROUP? EOL
;

terminal ARROW_DIRECTION: 'L' | 'R' | 'T' | 'B';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this removing the ARROW_DIRECTION feature then? Is that not being used?
Was it undocumented?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TheARROW_DIRECTIONfeature is still supported. The terminal was removed to fix parsing conflicts with IDs starting with L/R/T/B. Directions are now parsed as IDs and validated downstream(in DB layer)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any code related to DB in this PR πŸ€”
Also, rhsDir=ID ':' now rhsDir is ID, so not a direction at all, so shouldn't we fix the jison as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any code related to DB in this PR πŸ€” Also, rhsDir=ID ':' now rhsDir is ID, so not a direction at all, so shouldn't we fix the jison as well?

The DB validations were already in place , rhsDir suggests it should be a direction, it's still semantically correct - it will be a direction after validation

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.

Unable to create ID starting with a "T" in architecture-beta

3 participants