fix: table columns width misconfigured#233619
Conversation
|
/ci |
|
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
|
@p55d2k thanks for opening this! You'll need to sign the CLA: elastic.co/contributor-agreement I've reviewed the PR, and it looks good. |
|
Hi @rmyz I've signed the CLA and downloaded it, do I have to upload it somewhere? Thanks! |
I think if you already did the process it should be enough |
💚 Build Succeeded
Metrics [docs]Async chunks
Saved Objects .kibana field count
|
|
@elasticmachine run docs-build |
Co-authored-by: Sergi Romeu <sergi.romeu@elastic.co>
Co-authored-by: Sergi Romeu <sergi.romeu@elastic.co>
Co-authored-by: Sergi Romeu <sergi.romeu@elastic.co>
Infrastructure Hosts Alert Column Width Fix
Fix to Issue #233398.
Problem Analysis
The issue was that when OpenTelemetry schema (
semconv) is selected, the alerts column was taking up too much space compared to when System Integration schema (ecs) is used.Root Cause
Schema-dependent columns: When OpenTelemetry schema is selected, the network columns (rx/tx) are hidden based on this condition:
Fixed width allocation: The alerts column had a fixed width of
95px, while metric columns used percentage-based widths (12%when alerts are shown,16%when not shown).Insufficient responsive calculation: The column width calculations didn't account for the presence/absence of network columns based on the schema.
Solution Implemented
1. Dynamic Metric Column Width Calculation
2. Dynamic Title Column Width Calculation
3. Reduced Alert Column Width
width: '95px'towidth: '80px'for a more compact alerts columnWidth Allocation Summary
ECS Schema (with network columns):
OpenTelemetry Schema (without network columns):
Files Modified
/x-pack/solutions/observability/plugins/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx