feat(ui): bind an event to a workflow from its Start node
Pick a source and one of its captured events, map each declared input to a payload path or a fixed value with a live preview, and save the mapping and binding together. Existing bindings open from Starts when for editing and approval; the Start node updates at once.
This commit is contained in:
1 parent
a8c2068b7d
commit
282f31fef2
6 files changed
+543
-87
No files matched your search
@@ -88,7 +88,7 @@ async function restartFrom(from: string): Promise<void> {
|
||||
restarting.value = false;
|
||||
}
|
||||
}
|
||||
const triggers = useWorkflowTriggers(selected);
|
||||
const { triggers, reload: reloadTriggers } = useWorkflowTriggers(selected);
|
||||
|
||||
// Canvas edits are edits to the YAML; a newly placed step opens for editing.
|
||||
const stepTypeNames = computed(() => vocabulary.value.map((info) => info.name));
|
||||
@@ -272,7 +272,7 @@ function syncScroll(event: Event): void {
|
||||
leave-active-class="transition duration-150"
|
||||
>
|
||||
<div v-if="settingsOpen" class="absolute inset-y-0 right-0 overflow-hidden rounded-r-lg">
|
||||
<WorkflowSettings v-model:yaml="yaml" :triggers="triggers" @close="settingsOpen = false" />
|
||||
<WorkflowSettings v-model:yaml="yaml" :triggers="triggers" @close="settingsOpen = false" @bound="reloadTriggers" />
|
||||
</div>
|
||||
</Transition>
|
||||
<Transition
|
||||
|
||||
Reference in new issue
Block a user