Resolve #3500083 "Managing components sourced"
Closes #3500083
- This MR
- Adds contextual menu (right clickable) and three dots menu (left click) for Remove from components, Edit code, Rename, and Delete with their own dialogs.
- Opens a dialog if a user tries to delete or remove a component that is used in the page and prompts them to remove the usages.
- Not sure if that's the UX that product expects, but it at least makes this MR smaller without having the app delete all usages from layout.
- New API called componentAndLayoutApi so changed all usages of the old API to this new one, including the xb_test_extension which is why the bundle file is updated
- Can't manually test the "Remove from components" action yet due to a backend issue. But the frontend work is already in place for it.
- Sending a PATCH request to set
status: FALSE
on thejs_component
config entity butcomponent
config entity is still being returned from/xb/api/config/component
- Sending a PATCH request to set
Out of scope:
- I de-scoped
Copy component
from this issue. -
Edit code
will be implemented in https://www.drupal.org/project/experience_builder/issues/3500081
Edited by Harumi Jang