fix(ui): handle pools with unlimited (-1) slots in UI components (#62831) (#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>
Y
Yeonguk Choo committed
0dd9444919d7492d6bfa2f8a3e0b2a5e4ea66a98
Parent: 41e1d61
Committed by vatsrahul1001 <rah.sharma11@gmail.com>
on 3/25/2026, 1:25:46 PM