Add clear button to YML Flow Editor
What does this MR do and why?
Add clear button to YML Flow Editor. When hitting the clear button, the focus is set immediately on the editor enter. It is possible to use CMD+Z to undo the action.
References
In !211232 (merged) we will replace the "Flow Nodes" UI with a YML Editor. Here's an overview about the progress. In !211607 I want to add default values for both, DAP flows and Third-party Flows, so users have more guidance on what to enter as @tvanderhelm suggested in this note. I thought it could generally be nice to give the user a Clear button to refresh the state of the editor. They could e.g. use is if they do not want to work with the prefilled default value. Or any other time.
Screenshots or screen recordings
Final icon Screenshot
Screenrecording
Screen_Recording_2025-11-05_at_15.08.57
How to set up and validate locally
- Prerequisite: You have a Duo workflow-enabled project.
- Enable the feature flags for the global_ai_catalog and third party flows (Product decisions)
- If needed, add some seed data: Setting up GDK for Workflow Catalog Development
- Visit http://gdk.test:3000/explore/ai-catalog/flows
- Create or edit a flow
- Clear the editor field
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 #578228
