Repository navigation
Add split-button caret to Trigger DAG button - #73564
Closed
kartik00052 wants to merge 1 commit into
Closed
kartik00052 wants to merge 1 commit into
kartik00052 wants to merge 1 commit into
Conversation
Turn the Trigger Dag control into a split button: the main part always opens the trigger form in one click, while an always-visible caret reveals a menu with "Trigger with config" and, when a previously selected run carried a config, "Trigger again with this config". Closes: apache#73177 Generated-by: opencode (big-pickle) following the guidelines: https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions
1 of 2 tasks
1 task done
pierrejeambrun
left a comment
Member
There was a problem hiding this comment.
Thanks for the PR, closing in favor of #74039 which is closer to being merged.
Also please add screenshots to UI PRs as requested in our contributing policy, this will make review process easier.
| @@ -0,0 +1 @@ | |||
| The Trigger Dag control is now a split button: the main part opens the trigger form in one click, while an always-visible caret reveals a menu with "Trigger with config" and, when a previously selected Dag run carried a config, "Trigger again with this config". | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the split-button pattern (GitHub-style) for the "Trigger Dag" control in the React UI.
Problem
When a DAG run with a config is selected (e.g. the Dag Details page of that run), the entire
Trigger button turns into a dropdown. Every click now opens a menu first, and the plain
"Trigger" action takes an extra interaction, so triggering a run no longer works with the one
click users expect. The dropdown also hides its options behind a button that looks exactly like
the previous single-action control.
Solution
Keep the main part of the button always acting as the plain trigger (opens the trigger form in
one click, exactly as before), and add an always-visible caret next to it that opens a menu with
"Trigger with config" (opens the existing
TriggerDAGForm/modal) and, when a previouslyselected run carried a config, "Trigger again with this config" (prefills the form from that
run, the behaviour previously shown by #56406).
DagCardActions, the Dags list cell,and
DetailsLayout), including thevariant/withTextprops, the "manual runs notallowed" disabled state and its tooltip.
aria-label, part of a ChakraButtonGroup attached, soit renders as a cohesive split control. Its
Menuis fully keyboard-navigable (the searchableChakra menu) with the reference
idswired for the tooltip.triggerDag.triggerOptionsandtriggerDag.triggerWithConfigadded to thecomponentsnamespace inen(the authoritative source locale). Nested keys fall back toenfor other locales via the configured
fallbackLng; the other locale files carry only realtranslations, per repo convention.
Related issue
closes: #73177
Note: related open PR #70413 adds a recent-config dropdown inside the trigger form
(closes #69820). This PR is orthogonal to it — it fixes the button itself so the default action
is always reachable with one click (option (b) of #73177). Both can coexist; they target
different layers of the same UX problem.
Tests added
New
TriggerDAGButton.test.tsxcovering:ArrowDownon the caret opens the menu andEnteractivates an itemValidated with
pnpm lintandpnpm test(148 of 150 test files pass; the sole failure is apre-existing 5s timeout in
src/queryClient.test.tsreproducible on a clean checkout).Breaking changes
None.
Was generative AI tooling used to co-author this PR?