Skip to content

docs(uikit): fix Provider Tree diagram text truncation in React Integration#7

Merged
pasevin merged 4 commits intocursor/openzeppelin-uikit-documentation-5e15from
cursor/fix-uikit-provider-tree-diagram-05ec
Apr 9, 2026
Merged

docs(uikit): fix Provider Tree diagram text truncation in React Integration#7
pasevin merged 4 commits intocursor/openzeppelin-uikit-documentation-5e15from
cursor/fix-uikit-provider-tree-diagram-05ec

Conversation

@pasevin
Copy link
Copy Markdown
Owner

@pasevin pasevin commented Apr 9, 2026

Documentation Pull Request

Summary

Fixes the Provider Tree Mermaid diagram in the UIKit React Integration page where node text was being truncated (e.g. "EcosystemRuntir" instead of "EcosystemRuntime instances", "wallet stat" instead of "wallet state · hooks").

The previous commit switched the diagram to flowchart LR which caused Mermaid to constrain node widths and truncate descriptive text. This PR:

  • Switches to flowchart TD (top-down) layout for better node width behavior
  • Adds wrappingWidth: 400 and classDef width: 350px to prevent text truncation
  • Uses bold provider names with descriptions on separate lines for readability
  • Uses classDef for cleaner style definitions, matching other UIKit diagram patterns

Before (truncated):
Provider Tree before fix showing truncated text

After (full text visible):
Provider Tree after fix with full text

Demo:
provider_tree_diagram_demo.mp4

Type of Change

  • Documentation update/revision
  • Fix typos or grammar

Related Issues

Relates to the UIKit documentation effort

Checklist

  • Build succeeds locally with pnpm run build
  • Lint is successful when running pnpm run check (pre-existing link errors for /ecosystem-adapters/* routes are unrelated)
  • Docs follow OpenZeppelin Documentation Standards

Additional Notes

The lint check reports 11 pre-existing errors for broken /ecosystem-adapters/* links across multiple UIKit pages — these exist on the parent branch and are unrelated to this change.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 4 commits April 9, 2026 07:46
The previous commit reduced the information shown to users (e.g. 'EcosystemRuntir'
truncated to fit narrow LR nodes). Restored full descriptive text using bold
provider names with descriptions on separate lines, increased node spacing,
and set useMaxWidth:false to prevent truncation.

Co-authored-by: Aleksandr Pasevin <aleksandr.pasevin@openzeppelin.com>
LR layout with subgraph truncates descriptive text. TD layout without
subgraph wrapper allows full-width nodes that display all information.
Matches the clean node style used by other UIKit diagrams.

Co-authored-by: Aleksandr Pasevin <aleksandr.pasevin@openzeppelin.com>
Add wrappingWidth:400 and classDef width:350px to prevent Mermaid
from truncating descriptive text in Provider Tree nodes. Use classDef
for cleaner style definitions matching other UIKit diagram patterns.

Co-authored-by: Aleksandr Pasevin <aleksandr.pasevin@openzeppelin.com>
… for provider tree diagram

Co-authored-by: Aleksandr Pasevin <aleksandr.pasevin@openzeppelin.com>
@pasevin pasevin marked this pull request as ready for review April 9, 2026 20:01
@pasevin pasevin merged commit b8d3f8f into cursor/openzeppelin-uikit-documentation-5e15 Apr 9, 2026
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