Workflow editor fields lose data silently #1947

Closed
opened 2026-11-13 02:49:19 +00:00 by sam · 1 comment
Owner
  • Inputs/outputs list drops an entry renamed to blank or to an existing name (SpecList.vue).
  • The one-per-line textarea eats newlines (StepEditor.vue).
  • Renaming a step to text that slugifies to empty writes id: undefined; duplicate step ids are never flagged (StepNode.vue, workflow-yaml.ts).
  • Event preview cuts payload arrays at three items, so later fields can't be bound (bind-event.ts).

Done when: none of these lose input; invalid names are refused with a reason.

- Inputs/outputs list drops an entry renamed to blank or to an existing name (`SpecList.vue`). - The one-per-line textarea eats newlines (`StepEditor.vue`). - Renaming a step to text that slugifies to empty writes `id: undefined`; duplicate step ids are never flagged (`StepNode.vue`, `workflow-yaml.ts`). - Event preview cuts payload arrays at three items, so later fields can't be bound (`bind-event.ts`). Done when: none of these lose input; invalid names are refused with a reason.
sam added the criticalbug labels 2026-11-13 02:49:19 +00:00
Author
Owner

Fixed in 806c82bd (another session committed these edits from the shared tree) and e2df9cbd. Inputs/outputs list refuses a blank or duplicate name with an inline reason and keeps the entry. The one-per-line field applies on blur, so Enter adds a line. Renaming a step to text that slugifies to nothing keeps its id, and a rename onto another step's id is refused. The event preview lists every array item; ui/test/binding-event-types.test.ts covers that, and it failed before the change (only items 0-2 listed). Checked the list in the browser: duplicate and blank are refused and the name is restored. task check passed.

Fixed in 806c82bd (another session committed these edits from the shared tree) and e2df9cbd. Inputs/outputs list refuses a blank or duplicate name with an inline reason and keeps the entry. The one-per-line field applies on blur, so Enter adds a line. Renaming a step to text that slugifies to nothing keeps its id, and a rename onto another step's id is refused. The event preview lists every array item; ui/test/binding-event-types.test.ts covers that, and it failed before the change (only items 0-2 listed). Checked the list in the browser: duplicate and blank are refused and the name is restored. task check passed.
sam closed this issue 2026-11-13 03:19:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1947