You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it should have two basic entries: edit which just opens the Data Picker, and delete in places where we support deletion of data (ie the optional props of a component)
It should have, greyed out, three more items:
• Jump to data source
• Open in CMS
• Edit Value
The text was updated successfully, but these errors were encountered:
This PR adds a basic context menu to the Data Reference Cartouche.
<img width="315" alt="image"
src="https://github.com/concrete-utopia/utopia/assets/2226774/a4f57aae-cc2c-4fce-8389-376e28d3a68c">
Most of my evening was spent wrestling ContextMenuWrapper. I decided to
"give up" and create a new component which uses a proper portal instead
of horrible x-hacks and whatevers.
**Commit Details:**
- Renamed `ContextMenuWrapper` to `ContextMenuWrapper_DEPRECATED` also
marked it as deprecated
- Added new `ContextMenuWrapper` which takes way less props, uses less
wrapping divs, and uses a Portal.
- `DataCartoucheInner` uses `ContextMenuWrapper`.
- The only actually working option is `Replace...` which just opens the
data picker
- Everything else is a placeholder for future capability
Fixes#5972
---------
Co-authored-by: Berci Kormendy <[email protected]>
This PR adds a basic context menu to the Data Reference Cartouche.
<img width="315" alt="image"
src="https://github.com/concrete-utopia/utopia/assets/2226774/a4f57aae-cc2c-4fce-8389-376e28d3a68c">
Most of my evening was spent wrestling ContextMenuWrapper. I decided to
"give up" and create a new component which uses a proper portal instead
of horrible x-hacks and whatevers.
**Commit Details:**
- Renamed `ContextMenuWrapper` to `ContextMenuWrapper_DEPRECATED` also
marked it as deprecated
- Added new `ContextMenuWrapper` which takes way less props, uses less
wrapping divs, and uses a Portal.
- `DataCartoucheInner` uses `ContextMenuWrapper`.
- The only actually working option is `Replace...` which just opens the
data picker
- Everything else is a placeholder for future capability
Fixes#5972
---------
Co-authored-by: Berci Kormendy <[email protected]>
add a context menu for the data cartouche.
it should have two basic entries: edit which just opens the Data Picker, and delete in places where we support deletion of data (ie the optional props of a component)
It should have, greyed out, three more items:
• Jump to data source
• Open in CMS
• Edit Value
The text was updated successfully, but these errors were encountered: