arunsarin85 opened a new pull request, #10026:
URL: https://github.com/apache/ozone/pull/10026
## What changes were proposed in this pull request?
Added fixed: 'left' to the Hostname column definition in the DataNodes table
so that the Hostname column (along with the row-selection checkbox) remains
sticky/frozen on the left side while the user scrolls horizontally through the
other columns.
Please describe your PR in detail:
The DataNodes tab in Recon v2 displays a wide table with many optional
columns. When users scroll horizontally to view columns on the right (e.g.,
Pipelines, Containers, Version, Build Date, etc.), the Hostname column scrolls
out of view, making it difficult to correlate data with the correct datanode.
This PR freezes the Hostname column to the left edge of the table by setting
fixed: 'left' on its column definition in datanodesTable.tsx. Since Ant
Design's Table automatically pins the rowSelection checkbox alongside any
fixed: 'left' column, the checkbox and Hostname stay visible together during
horizontal scrolling. The table already had scroll={{ x: 'max-content' }}
configured, so no additional scroll or layout changes were needed.
File changed:
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/components/tables/datanodesTable.tsx
- added fixed: 'left' as const to the Hostname column definition.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-14824
## How was this patch tested?
- Manually verified in the Recon UI that the Hostname column (and the
row-selection checkbox) remains frozen on the left while scrolling horizontally
across all other columns in the DataNodes table.
- Confirmed that selecting/deselecting columns via the Columns dropdown
still works correctly and that the Hostname column stays pinned regardless of
which other columns are toggled.
- Confirmed that sorting, filtering, and pagination behavior is unaffected.
<img width="1474" height="852" alt="image"
src="https://github.com/user-attachments/assets/42ff154c-4959-4515-9df3-e5566e9ea493"
/>
<img width="1728" height="957" alt="image"
src="https://github.com/user-attachments/assets/9e7a6771-751e-4e93-85e4-efb9bbebf184"
/>
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]