Skip to content

Fix per-option button rendering for 4 options#64453

Merged
kaxil merged 6 commits intoapache:mainfrom
Shrividya:fix/-for-HITLOperator-allowing-display-options-more-than-4
Mar 30, 2026
Merged

Fix per-option button rendering for 4 options#64453
kaxil merged 6 commits intoapache:mainfrom
Shrividya:fix/-for-HITLOperator-allowing-display-options-more-than-4

Conversation

@Shrividya
Copy link
Copy Markdown
Contributor

@Shrividya Shrividya commented Mar 30, 2026

The condition `options.length < 4` caused exactly 4 options to render nothing — shouldRenderOptionButton was false but no fallback UI was triggered either. Changed to `options.length <= 4` so 4 options render as buttons.

Was generative AI tooling used to co-author this PR?
  • Yes (Claude Sonnet) - used for reviewing and test run setup.

Generated-by: [Claude Sonnet 4.6] following the guidelines

Local testing post fix :
Screenshot 2026-03-30 at 00 14 18

The condition \`options.length < 4\` caused exactly 4 options to render
nothing — shouldRenderOptionButton was false but no fallback UI was
triggered either. Changed to \`options.length <= 4\` so 4 options render
as buttons.

Fixes apache#64413
@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Mar 30, 2026
@Shrividya Shrividya marked this pull request as draft March 30, 2026 15:47
@Shrividya Shrividya marked this pull request as ready for review March 30, 2026 15:55
@bbovenzi bbovenzi added this to the Airflow 3.2.1 milestone Mar 30, 2026
@bbovenzi bbovenzi added the backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch label Mar 30, 2026
@kaxil kaxil merged commit a48d8a5 into apache:main Mar 30, 2026
83 checks passed
github-actions bot pushed a commit that referenced this pull request Mar 30, 2026
The condition \`options.length < 4\` caused exactly 4 options to render
nothing — shouldRenderOptionButton was false but no fallback UI was
triggered either. Changed to \`options.length <= 4\` so 4 options render
as buttons.

Fixes #64413

* add ci fixes

---------
(cherry picked from commit a48d8a5)

Co-authored-by: Shrividya Hegde <5312302+Shrividya@users.noreply.github.com>
Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Backport successfully created: v3-2-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-2-test PR Link

@Shrividya Shrividya deleted the fix/-for-HITLOperator-allowing-display-options-more-than-4 branch March 30, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HITLOperator doesn't always display options

5 participants