Closed prakhargupta1 closed 1 year ago
Latest version contains PR https://github.com/mui/mui-toolpad/pull/1831 Which should improve this process. After upgrading to this version, your application will be migrated to the new structure where there will be 1 file per page, and the content will be a hierarchical structure that doesn't contain the ids and should be more readable.
To migrate an app from master--toolpad I'd recommend the following:
yarn dev
, it should now create a toolpad folder with pages inside and remove the toopad.ymlpageRow is not visible in canvas because the this element is managed automatically (i.e. you never have to create, update or remove this element manually).
There might be a regression in 1: I have to recheck, but I think that right now it's not possible to hover over the container of the selected element to see the borders, so I'll still take a look at that.
Followed the instructions and the migration experience is a lot smoother now! It worked fine when moving an app from master--toolpad.
But there were 2 issues in the other case when I was upgrading the version of mui-public to v.0.1.5.
How can I fix the broken pages?
Update: 1) I just had to manually move the other queries to the resources folder. The pages are working now!
./bundleSizeQueries.ts
file inside of the resources
folderI'm also noticing an issue with the theme: https://tools-public-pr-96.onrender.com/prod/pages/9r8fshsf
Splitting into separate issues
Closing it, as the issues are being tackled separately.
Duplicates
Latest version
Summary 💡
So, I picked an app from master--toolpad and converted the JSON DOM to yaml. And copied a page to my localhost > toolpad.yaml. Initially it was a struggle, but later when I understood the indexing and parent, child mapping. It was quick. Some observations:
pageRow was not visible on canvas but was there in the yaml. It made it difficult to copy and correctly map the child parent ids, indexing.
Page Id is not there in the right panel anymore, had to pick from the URL. Not sure if we removed it in a previous task or is it regression.
Order of items (for an element) in master--toolpad was sometimes a bit random. I mean all key:value pairs should follow the same order in all elements. Like 1. id 2. name: 3 type:
Examples 🌈
No response
Motivation 🔦
No response