fix: guard workflow names against blanks and collisions

- refuse blank or duplicate spec names and duplicate step ids, with inline errors
- offer a payload path for every array item in event previews, not just the first three
- trim multiline step settings and apply them on change
This commit is contained in:
sam committed 2026-11-13 14:16:22 +11:00
1 parent 39929b9e48
commit 806c82bda3
8 files changed
+65 -9

No files matched your search

+2 -1
View File
@@ -99,7 +99,8 @@ function commitRename(event: Event): void {
.toLowerCase()
.replace(/[^a-z0-9]+/g, "-")
.replace(/^[^a-z]+|-+$/g, "");
if (name !== (props.data.name ?? "")) props.data.onRename?.(name);
// Nothing usable typed keeps the current id rather than dropping it.
if (name && name !== (props.data.name ?? "")) props.data.onRename?.(name);
}
</script>