mui / toolpad

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

Issues with the page hierarchy explorer #2360

Open Janpot opened 1 year ago

Janpot commented 1 year ago

TODO:

P2:

P3:

FIxed in #2397

https://github.com/mui/mui-toolpad/assets/2109932/89208dd8-5a26-43ec-9927-36651b9b380a

https://github.com/mui/mui-toolpad/assets/2109932/ec357dbd-dfc1-4bd3-9fcb-cffcf3a2b3a4

https://github.com/mui/mui-toolpad/assets/92228082/06acd7e3-ad3e-4b8b-a124-9df9f0fad3ea

bharatkashyap commented 1 year ago

@Janpot Is there any additional information you could share? Context/Browser/error messages in the console? I can't replicate 1. without those.

https://github.com/mui/mui-toolpad/assets/19550456/2b9e58fb-2d79-430f-b40b-7239b293c1b3

Janpot commented 1 year ago

Yes, it seems to happen when I click the text itself, or the vertical center in the whitespace left of the text, basically anything in this area:

Screenshot 2023-07-25 at 10 40 50

When I click on the icon or the padding it always selects

Janpot commented 1 year ago

I also updated the issue with 4. and 5. that I ran into.

bharatkashyap commented 1 year ago

On 3., "Components" makes sense to me given that :

Appsmith Dynaboard Retool
Screenshot 2023-07-31 at 4 42 11 PM Screenshot 2023-07-31 at 4 36 17 PM Screenshot 2023-07-31 at 4 34 13 PM

The title of the section that shows the tree is the same as the entity which you drag on to the page - So "add new widget" translates to a "Widgets" explorer; similar for Retool and Dynaboard

Janpot commented 1 year ago
  • Adding a new term for a component when instantiated on the page seems like an unnecessary complication

The distinction between "template" and "instance" is a very natural one for programmers:

bharatkashyap commented 1 year ago
  • Adding a new term for a component when instantiated on the page seems like an unnecessary complication

The distinction between "template" and "instance" is a very natural one for programmers:

  • a class vs. an object
  • a React component vs. a jsx element
prakhargupta1 commented 1 year ago

A code component currently comes without any icon, let's use the icon that we are using in the Component library.

Screenshot 2023-08-07 at 2 00 57 PM