UI: remove useTrigger from TriggerDAGForm by Lee-W · Pull Request #1566 · astronomer/airflow
Why
Address review feedback in apache#64211 while keeping materialize and trigger separate and avoiding callback/type confusion.
What
- Kept
TriggerDAGModal.tsxunchanged. - Simplified
TriggerDAGForm.tsxto use a single callback prop:onSubmitTrigger. - Removed unused
onTriggercompatibility path after confirming no call sites use it. - Preserved submit behavior: pause toggle (if checked) then
onSubmitTriggerinvocation. - Keeps TypeScript clean without
possibly undefinedcallback invocation.
Validation
pnpm run lint(inairflow-core/src/airflow/ui)
Was generative AI tooling used to co-author this PR?
- Yes — GPT-5 Codex
Generated-by: GPT-5 Codex following the guidelines