mui / toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
1.27k stars 282 forks source link

Moving app to a different folder in the file manager resets app #1769

Closed prakhargupta1 closed 1 year ago

prakhargupta1 commented 1 year ago

Duplicates

Latest version

Steps to reproduce 🕹

Steps:

  1. Move an app from folder A to folder B
  2. queries.ts will reset to the original template also any custom component will be removed

Tried it with 2 apps.

Current behavior 😯

No response

Expected behavior 🤔

All files should be copied seamlessly.

Context 🔦

No response

Your environment 🌎

MacbookAir M1

Janpot commented 1 year ago

@prakhargupta1 Can you elaborate a bit more the steps to reproduce this problem? What do you mean exactly by "Move an app from folder A to folder B"? Do you stop toolpad dev, copy the files, start toolpad dev in the new folder? Be as detailed as possible.

prakhargupta1 commented 1 year ago

I tried doing it again today. First I copied and pasted, then moved (cut-paste) the app. It works fine. The app came with all the files and was not broken. I did it when toolpad dev was not running. Yesterday, I may have moved it with the running app and hence the files were came broken. Closing this issue.