antonio-mello-ai opened a new pull request, #62831:
URL: https://github.com/apache/airflow/pull/62831
## Summary
Fixes the remaining UI portion of #61115. The backend fix was already merged
in #61140.
When a pool has `slots` set to `-1` (unlimited), the UI components now
properly handle this case:
- **PoolBar.tsx**: Detects unlimited pools and renders the open slots
segment with `∞` symbol instead of computing broken flex ratios from dividing
by `-1`
- **PoolBarCard.tsx**: Displays `∞` instead of `-1` in the pool card header
(e.g., `my_pool (∞ Slots)`)
- **PoolSummary.tsx**: Correctly aggregates slot counts in the dashboard
when any pool is unlimited — avoids corrupting the total by adding `-1`
- **PoolForm.tsx**: Sets `min={-1}` on the slots input and adds a helper
text ("Use -1 for unlimited slots.") so users understand the convention
- **admin.json (en)**: Added `slotsHelperText` i18n key
## Testing
1. Create a pool with `-1` slots via the API
2. Navigate to the Pools page — the pool card should show `∞ Slots` with a
properly rendered bar
3. Navigate to the Dashboard — the Pool Summary should aggregate correctly
4. Edit a pool — the form should allow `-1` with helper text
Closes #61115
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]