Skip to content

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 the js_component config entity but component config entity is still being returned from /xb/api/config/component

Out of scope:

Edited by Harumi Jang

Merge request reports

Loading