fix: generate-task-trigger-id #11946
Open
+79
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes: #8921
What changes are being made and why?
✅ Added automatic ID generation for tasks and triggers in the No-Code editor when the user does not specify an ID.
✅ IDs follow the pattern "task1", "task2", "trigger1", etc., incrementing based on existing elements.
✅ Updated TaskEditor to assign an auto-generated ID immediately when a new task/trigger is created or a type is selected.
✅ Ensured backend allows saving flows with tasks/triggers that have no user-specified ID.
Fix:
Updated UI components and logic so that:
This improves UX by ensuring all tasks/triggers have valid IDs, even if the user omits them, and aligns with backend requirements.