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
Fix (Whiteboards): arrow positions on initialization, undo group delete, hover links jumping and other issues #9480
Conversation
sprocketc
commented
May 24, 2023
•
edited
edited
- cd8e4b8 Fix Quick links component memoization (resolves [Whiteboards] Related page hover link jumps to another block #9436)
- c34d5c9 Cleanup all whiteboard shapes on initialization to fix existing incorrect arrow positions and 3ba55fa update nonce to properly persist updated arrow positions when they are modified (resolves Logseq whiteboard bug #9439 and Failing initial layout of connectors #9511, see this video to reproduce). Also related to this discord message.
- Fix meta-data of ungroup action (resolves Deleting group on whiteboard not undoable #9486)
- 72097e6 Remove empty groups (resolves Error caught by UI! TypeError: Cannot read properties of undefined (reading 'minX') #8938). I don't know how I ended up in this state, so there are no reproduce steps here. You would have to manually edit the edn file to remove the children, without changing the group element. Empty groups are invalid, and since their bounds are calculated based on their children's bounds, this can crash the application. I need to figure out how this happened, but we need a way to remove the existing empty groups anyway.
@sprocketc I took myself for now since this is wip and I get notified on every git push. Feel free to ping when this is ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sprocketc Nice fixes! 🐛 ⚡ Confirmed the ungroup deletion bug and the hover links bug
@@ -126,6 +126,37 @@ test('clone the rectangle', async ({ page }) => { | |||
await expect(page.locator('.logseq-tldraw .tl-box-container')).toHaveCount(2) | |||
}) | |||
|
|||
test('group the rectangles', async ({ page }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️