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

Add ER Diagram feature using mermaid #28

Merged
merged 16 commits into from
Dec 30, 2022
Merged

Add ER Diagram feature using mermaid #28

merged 16 commits into from
Dec 30, 2022

Conversation

badsyntax
Copy link
Owner

@badsyntax badsyntax commented Dec 28, 2022

Overview

  • Use scaffolding with a custom .t4 template to generate the mermaid code, which is then rendered in a custom webview
  • Add a new project to generate the webview build
  • Use d3 to add zooming features
  • Lots of various fixes and improvements

ScreenShots

Screenshot 2022-12-29 at 21 52 46

Screenshot 2022-12-30 at 12 46 10

Screenshot 2022-12-28 at 13 44 07

TODO

  • CLR type to DB type & mermaid ER attributes
  • Better provider selection using transitive packages
  • Maybe don't save the t4 template in the dest project?
  • Improve cli args (eg plural names)
  • Add tests to check this works in windows Too many bugs in the test framework, eg: ViewItem.getActionButton/s hangs webdriverio-community/wdio-vscode-service#61
  • Improve FK names (it can be too noisy)
  • Improve cli loading states
  • Zoom controls
  • Inputs should not close when loosing focus
  • Handle closing webview
  • Fix svg export
  • Fix diagram title (can we use the db name?)

We now get the default provider by searching through all (including transitive) deps in all projects in the solution
@badsyntax badsyntax merged commit e3c5f21 into master Dec 30, 2022
@badsyntax badsyntax deleted the er-diagram branch December 30, 2022 16:09
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.

1 participant