diff --git a/ui/src/workflows/BindEvent.vue b/ui/src/workflows/BindEvent.vue deleted file mode 100644 index ce0df1855..000000000 --- a/ui/src/workflows/BindEvent.vue +++ /dev/null @@ -1,394 +0,0 @@ - - - - - - Remove event binding?This event will stop starting this workflow. The event source and mapping are kept.CancelRemove binding - - - - {{ binding ? binding.name : "Bind an event" }} - {{ statusLabel(status) }} - - - - - {{ loadError }} - Retry - - - - Source - - - Create source - - - - - - Example event - - - - #{{ c.id }} · {{ c.event_type ? "" : " · unidentified" }} - - - {{ capturesError }} - No events - - - - Inputs - - - - {{ name }} - {{ spec.type ?? "string" }} - * - - - - - - - {{ resolved(name).failure }} - {{ resolved(name).value }} - - - Repository - - {{ resolved(REPOSITORY_FIELD).failure }} - {{ resolved(REPOSITORY_FIELD).value }} - - No inputs. - - - - - {{ error }} - {{ errors.workflows.bindingSave.cannotSave(blockers[0] ?? "") }} - - Save binding - Approve - Pause - Resume - Remove binding - - - - - diff --git a/ui/src/workflows/ScheduleTrigger.vue b/ui/src/workflows/ScheduleTrigger.vue deleted file mode 100644 index 2f0edb529..000000000 --- a/ui/src/workflows/ScheduleTrigger.vue +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - - Remove schedule trigger? - The schedule keeps running; it stops starting this workflow. - - - Cancel - Remove trigger - - - - - - {{ schedule?.name ?? "Add a schedule" }} - {{ statusLabel(status) }} - - - - - - Schedule - {{ loadError }} - - - - - Inputs - - - - {{ name }} - {{ spec.type ?? "string" }} - * - - - - - No inputs. - - - - - {{ error }} - {{ errors.workflows.bindingSave.cannotSave(blockers[0] ?? "") }} - - Save trigger - Approve - Pause - Resume - Remove trigger - - - - - - - diff --git a/ui/src/workflows/StepNode.vue b/ui/src/workflows/StepNode.vue index 0d453efce..fadd80d6e 100644 --- a/ui/src/workflows/StepNode.vue +++ b/ui/src/workflows/StepNode.vue @@ -2,7 +2,7 @@ import { stageStatusMeta } from "@/tasks/stage-rail"; import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue"; import { Handle, Position } from "@vue-flow/core"; -import { CircleAlert, CircleCheck, CircleMinus, CircleX, EllipsisVertical, Flag, LoaderCircle, Play, Repeat, Settings2, SkipForward, Tag, Workflow, Zap, BookOpen, CalendarClock } from "@lucide/vue"; +import { CircleAlert, CircleCheck, CircleMinus, CircleX, EllipsisVertical, Flag, LoaderCircle, Play, Repeat, Settings2, SkipForward, Zap, CalendarClock } from "@lucide/vue"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; @@ -29,11 +29,8 @@ export interface StepCardData extends StepNodeData { const props = defineProps<{ data: StepCardData }>(); const TRIGGER_KINDS = { - issue: { icon: Tag, label: "Issue route" }, - event: { icon: Zap, label: "Event binding" }, + event: { icon: Zap, label: "Event trigger" }, schedule: { icon: CalendarClock, label: "Schedule" }, - playbook: { icon: BookOpen, label: "Playbook" }, - workflow: { icon: Workflow, label: "Workflow" }, } as const; const STATE_CLASSES: Record = { diff --git a/ui/src/workflows/TriggerSettings.vue b/ui/src/workflows/TriggerSettings.vue deleted file mode 100644 index f7df18db8..000000000 --- a/ui/src/workflows/TriggerSettings.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - Add a schedule - Bind an event - - - - - {{ trigger.label }} - {{ statusLabel(trigger.binding.status) }} - {{ trigger.detail }} - - - {{ trigger.label }}{{ trigger.detail }} - - - {{ trigger.label }} - Built-in - {{ trigger.detail }} - - - - - {{ error }} - Retry - - Manual runs only. - - - - diff --git a/ui/src/workflows/WorkflowEditorPage.vue b/ui/src/workflows/WorkflowEditorPage.vue index cc228ae4f..aa6399476 100644 --- a/ui/src/workflows/WorkflowEditorPage.vue +++ b/ui/src/workflows/WorkflowEditorPage.vue @@ -1,5 +1,5 @@
{{ capturesError }}
No events
{{ resolved(name).value }}
{{ resolved(REPOSITORY_FIELD).value }}
No inputs.
{{ errors.workflows.bindingSave.cannotSave(blockers[0] ?? "") }}
Manual runs only.