Add text wrap fix to item name in agent/flow delete modal
What does this MR do and why?
This adds the gl-wrap-anywhere class to the name of the agent/flow in the delete modal so that very long names without spaces will wrap within the box rather than overflowing.
Screenshots or screen recordings
Screenshots after fix
User can hard delete
Agent
Flow
User cannot hard delete
Agent
Flow
How to set up and validate locally
- Create a new agent or flow as a user who can hard delete agents/flows
- Make the name of the agent/flow the max number of characters (255) without spaces
- Create a new agent or flow as a user who cannot hard delete agents/flows
- Make the name of the agent/flow the max number of characters (255) without spaces
- Try to delete the new agent or flow and check that the name does not overflow out of the box.
Or
- Within
ee/app/assets/javascripts/ai/catalog/components/ai_catalog_item_actions.vue, temporarily set the value of the computed valuecanHardDelete()tofalse - Create a new agent or flow. Make the name of the agent/flow the max number of characters (255) without spaces.
- Try to delete the new agent or flow and check that the name does not overflow out of the box.
- Change the value of
canHardDelete()to true, test again. - Revert the value of
canHardDelete()toBoolean(this.item.userPermissions?.forceHardDeleteAiCatalogItem)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #582876
Edited by Allison Villa



