[v3-1-test] Manually Backport fix(ui): handle pools with unlimited (-1) slots in UI components (#62831)#63872
Merged
pierrejeambrun merged 1 commit intoMar 18, 2026
Conversation
…che#62831) * fix(ui): handle pools with unlimited (-1) slots in UI components When a pool has slots set to -1 (unlimited), the UI now properly handles this case instead of showing broken bars or negative values. Changes: - PoolBar: render infinity symbol and proportional bar for unlimited pools - PoolBarCard: display ∞ instead of -1 in pool header - PoolSummary: correctly aggregate slots when any pool is unlimited - PoolForm: set min to -1 and add helper text explaining the convention Closes: apache#61115 * fix(ui): simplify PoolBar unlimited slots computation per review Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(ui): rename short identifier in PoolBar filter/reduce Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(ui): resolve linting and typing errors caught by prek - Fix indentation in PoolBar.tsx map callback (formatting) - Fix JSX line break in PoolBarCard.tsx (formatting) - Widen slotType cast to TaskInstanceState | "open" since open_slots produces "open" which is not a TaskInstanceState - Add explicit cast for StateIcon prop where "open" is already filtered out by infoSlots Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
vatsrahul1001
pushed a commit
that referenced
this pull request
Mar 25, 2026
) (#63872) * fix(ui): handle pools with unlimited (-1) slots in UI components When a pool has slots set to -1 (unlimited), the UI now properly handles this case instead of showing broken bars or negative values. Changes: - PoolBar: render infinity symbol and proportional bar for unlimited pools - PoolBarCard: display ∞ instead of -1 in pool header - PoolSummary: correctly aggregate slots when any pool is unlimited - PoolForm: set min to -1 and add helper text explaining the convention Closes: #61115 * fix(ui): simplify PoolBar unlimited slots computation per review * fix(ui): rename short identifier in PoolBar filter/reduce * fix(ui): resolve linting and typing errors caught by prek - Fix indentation in PoolBar.tsx map callback (formatting) - Fix JSX line break in PoolBarCard.tsx (formatting) - Widen slotType cast to TaskInstanceState | "open" since open_slots produces "open" which is not a TaskInstanceState - Add explicit cast for StateIcon prop where "open" is already filtered out by infoSlots --------- Co-authored-by: Antonio Mello <ajgcvm@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.
Backport of #62831
When a pool has slots set to -1 (unlimited), the UI now properly handles this case instead of showing broken bars or negative values.
Changes:
Closes: #61115
fix(ui): simplify PoolBar unlimited slots computation per review
fix(ui): rename short identifier in PoolBar filter/reduce
fix(ui): resolve linting and typing errors caught by prek
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.