Skip to content

fix: update mermaid component - #162

Merged
pqoqubbw merged 21 commits into
mainfrom
dmytro/eng-5664-update-mermaid-component-to-support-new-props
Jan 22, 2026
Merged

fix: update mermaid component#162
pqoqubbw merged 21 commits into
mainfrom
dmytro/eng-5664-update-mermaid-component-to-support-new-props

Conversation

@pqoqubbw

@pqoqubbw pqoqubbw commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

ENG-5664: Update mermaid component to support new props


Note

Introduces optional props to control interactive controls and their position while preserving defaults.

  • Adds actions prop to Mermaid to explicitly show/hide controls; keeps auto-show via ResizeObserver when actions is undefined (threshold 120px)
  • Adds placement prop (top-left, top-right, bottom-left, bottom-right) and threads it to ZoomControls for positional classes; default remains bottom-right
  • Exports MermaidPlacement type; passes placement to ZoomControls
  • Updates Storybook: new ActionsHidden, ActionsVisible, and Placement stories; enhances LargeDiagram with placement and docs descriptions

Written by Cursor Bugbot for commit d863dbc. This will update automatically on new commits. Configure here.

@linear

linear Bot commented Jan 22, 2026

Copy link
Copy Markdown

Base automatically changed from dmytro/ultracite-integration to main January 22, 2026 17:45
…ytro/eng-5664-update-mermaid-component-to-support-new-props
@pqoqubbw
pqoqubbw marked this pull request as ready for review January 22, 2026 17:51

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Comment thread packages/components/src/components/mermaid/zoom-controls.tsx
…ytro/eng-5664-update-mermaid-component-to-support-new-props
@pqoqubbw
pqoqubbw merged commit 10dd7f3 into main Jan 22, 2026
3 checks passed
@pqoqubbw
pqoqubbw deleted the dmytro/eng-5664-update-mermaid-component-to-support-new-props branch January 22, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants