@@ -42,6 +42,7 @@ import OTLPLogRowModal from '../OTLPLogRowModal'
4242import OTLPMetricsSeriesModal from '../OTLPMetricsSeriesModal'
4343import MessageModal from '../MessageModal'
4444import { useLocale } from '@/components/locale/locale-provider'
45+ import { columnDisplayLabel , columnDisplayTitle } from '../resultColumnLabels'
4546
4647const OTLP_TRACES_PROTO = 200
4748const OTLP_METRICS_PROTO = 201
@@ -1108,7 +1109,11 @@ export default function ResultsPanel({ widgetId, config: _config }) {
11081109 'whitespace-nowrap border-b border-border px-2 py-1.5 text-left font-medium text-slate-600 dark:text-slate-300' ,
11091110 col !== '_actions' && col !== '_select' && 'cursor-pointer select-none hover:text-slate-900 dark:hover:text-sky-100' ,
11101111 ) }
1111- title = { col !== '_actions' && col !== '_select' ? `Sort by ${ col } ` : undefined }
1112+ title = {
1113+ col !== '_actions' && col !== '_select'
1114+ ? `Sort by ${ columnDisplayTitle ( col ) } `
1115+ : undefined
1116+ }
11121117 >
11131118 { col === '_select' ? (
11141119 < span className = "inline-flex items-center" onClick = { ( e ) => e . stopPropagation ( ) } >
@@ -1128,7 +1133,7 @@ export default function ResultsPanel({ widgetId, config: _config }) {
11281133 < span className = "text-[10px] uppercase tracking-wider" > Actions</ span >
11291134 ) : (
11301135 < span className = "inline-flex items-center gap-1" >
1131- { col }
1136+ { columnDisplayLabel ( col ) }
11321137 { sortCol === col ? (
11331138 sortDir === 'asc' ? (
11341139 < ArrowUp className = "h-3 w-3" />
@@ -1390,8 +1395,12 @@ export default function ResultsPanel({ widgetId, config: _config }) {
13901395 } )
13911396 } }
13921397 />
1393- < label htmlFor = { `col-${ col } ` } className = "flex-1 cursor-pointer truncate" >
1394- { col }
1398+ < label
1399+ htmlFor = { `col-${ col } ` }
1400+ className = "flex-1 cursor-pointer truncate"
1401+ title = { columnDisplayTitle ( col ) }
1402+ >
1403+ { columnDisplayLabel ( col ) }
13951404 </ label >
13961405 < Button
13971406 type = "button"
0 commit comments