-
Notifications
You must be signed in to change notification settings - Fork 280
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: resolve state-related bugs in the editor #1696
Conversation
Deploying with Cloudflare Pages
|
± Registry diff
📊 PerformanceKeyNote that each bar component rounds up to the nearest 100ms, so each full bar is an overestimate by up to 400ms.
If a row has only one bar instead of four, that means it's not a trio and the bar just shows the total time spent for that example, again rounded up to the nearest 100ms. Data
|
Just went through the example cases and all seemed good. There's a very noticeable delay after every keystroke. I'm guessing this has something to do with the debounced function? |
After some more tinkering, looks like commenting out the |
The beforeunload event handler is causing unexpected lag throughout the event handlers in the editor. For now, opted to remove the event handler and reimplement in a future PR. |
Description
Resolves the non-flaky bugs in #1683.
(fyi: draft state = user has unsaved changes that are not tracked in a workspace. currently, this is visually indicated by the presence of a "save" button on top left side of the TopBar)
Many changes related to importing a Penrose SVG to the editor:
Other fixes:
Implementation strategy and design decisions
I decided not to handle the flaky bugs in this PR because I believe they will require more involved changes to the recoil state, refer to issue #1695 for more information.
Examples with steps to reproduce them
How to get into draft state:
Testing changes that involve discarding a draft:
Testing changes involving importing:
Checklist
Open questions
Questions that require more discussion or to be addressed in future development: