-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Folders auto-expand on save #2530
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
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
Interesting issue! I suspect this has to do with replacing the entire files state in Redux when saving. |
Yes, I can confirm this issue. On autosaving folder collapsed folder are automatically expanding. |
As you said , I think this issue is caused while syncing the updated files state from the server and the local state .Need to sync the correct folder state too . I'd like to work on this issue , Can you assign it to me . |
@lindapaiste I have successfully fixed this issue and raised a PR along with demonstration video.This is my first ever contribution so any feedback/suggestions would be greatly appreciated. |
The fundamental question is why the existing code does not work. We're already setting the One option is that we make no change to the frontend, but we change the backend so that the The other approach is what @7070Shreyash is doing in PR #2543, which is to repopulate the the FYI I definitely want to rewrite that whole reducer and change the state structure but that's a low priority. |
the way I approached it was populating the correct isFolderClosed property when we sync the project contents in getSynchedProject(actions/project.js). |
p5.js version
p5.js v1.7.0 July 10, 2023
What is your operating system?
Windows
Web browser and version
1.59.120 Chromium: 118.0.5993.88 (Official Build) (64-bit)
Actual Behavior
When I save my work in the the p5.js Web editor (or an auto-save occurs), all the folders expand to reveal their contents, even after I contract them.
Expected Behavior
Folders should retain their collapsed or expanded state when a save or auto-save occurs.
Steps to reproduce
Steps:
The text was updated successfully, but these errors were encountered: