oskar-anderson / HedgehogDBD

ERD modeling tool for visualizing database diagrams
https://hedgehog-dbd.vercel.app/
MIT License
11 stars 1 forks source link

Feature/21 add relationship creation to draw view #24

Closed oskar-anderson closed 1 year ago

oskar-anderson commented 1 year ago

Creating a pull request to see the actual changes for #21

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated (UTC)
hedgehog-dbd ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2023 11:52pm
oskar-anderson commented 1 year ago

For some reason switching between table and draw page sometimes (about 1 in 30 chance) causes the node component to become invisible. React devtools shows NodeWrapper component has props.hidden: undefined which seem to equal hidden: true. Adding hidden: false to convertTableToNode makes the props.hidden: false, but no node will be shown.

CSS also has attribute visibility: hidden on element:

<div class="react-flow__node react-flow__node-tableNode nopan selectable" style="z-index: 0; transform: translate(1183px, 378px); pointer-events: all; visibility: hidden;" data-id="7ff2bbe6-f403-48d6-b4b6-5cb340a9cd9d" data-testid="rf__node-7ff2bbe6-f403-48d6-b4b6-5cb340a9cd9d" tabindex="0" role="button">

This issue does not seem to exist on current master.

oskar-anderson commented 1 year ago

For some reason switching between table and draw page sometimes (about 1 in 30 chance) causes the node component to become invisible. React devtools shows NodeWrapper component has props.hidden: undefined which seem to equal hidden: true. Adding hidden: false to convertTableToNode makes the props.hidden: false, but no node will be shown.

CSS also has attribute visibility: hidden on element:

<div class="react-flow__node react-flow__node-tableNode nopan selectable" style="z-index: 0; transform: translate(1183px, 378px); pointer-events: all; visibility: hidden;" data-id="7ff2bbe6-f403-48d6-b4b6-5cb340a9cd9d" data-testid="rf__node-7ff2bbe6-f403-48d6-b4b6-5cb340a9cd9d" tabindex="0" role="button">

This issue does not seem to exist on current master.

2a09d7d