Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove mermaid in favor of react archer #6320

Merged
merged 5 commits into from
Feb 23, 2024

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Feb 22, 2024

https://linear.app/unleash/issue/2-1968/use-react-archer-instead-of-mermaid-in-the-network-overview

This PR removes mermaid in favor of react-archer, which meant adapting NetworkOverview to use react-archer instead, since that was the only remaining feature using mermaid.

Opted not to use RPS labels in the lines since it was very noisy visually. Took the liberty to make some visual changes, but we can align afterwards with @nicolaesocaciu if needed.

Example with 1 app

image

Example with 3 apps

image

Example with 30 apps

image

Example in light theme

image

Copy link

vercel bot commented Feb 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 8:25am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Feb 23, 2024 8:25am

return <Alert severity='warning'>No data available.</Alert>;
}

const mockApps = new Array(30).fill(1).map((_, i) => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

is the mock apps intended?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, you're right. I thought I had reverted this but it slipped by. Nice catch! Cleaned up in b2221f7

Copy link
Contributor

@kwasniew kwasniew left a comment

Choose a reason for hiding this comment

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

I am a big fan of what you did here

@nunogois nunogois merged commit a54ef27 into main Feb 23, 2024
13 checks passed
@nunogois nunogois deleted the chore-remove-mermaid-in-favor-of-react-archer branch February 23, 2024 08:31
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