@@ -3,13 +3,15 @@ import DataTable from '@gravity-ui/react-data-table';
33import { EMPTY_DATA_PLACEHOLDER } from '../../utils/constants' ;
44import { formatNumber , roundToPrecision } from '../../utils/dataFormatters/dataFormatters' ;
55import { getUsageSeverity } from '../../utils/generateEvaluator' ;
6+ import { LabelWithPopover } from '../LabelWithPopover/LabelWithPopover' ;
67import { LinkToSchemaObject } from '../LinkToSchemaObject/LinkToSchemaObject' ;
78import { NodeId } from '../NodeId/NodeId' ;
89import { TabletNameWrapper } from '../TabletNameWrapper/TabletNameWrapper' ;
910import { UsageLabel } from '../UsageLabel/UsageLabel' ;
1011
1112import type { TopShardsColumnId } from './constants' ;
1213import { TOP_SHARDS_COLUMNS_IDS , TOP_SHARDS_COLUMNS_TITLES } from './constants' ;
14+ import i18n from './i18n' ;
1315import type { GetShardsColumn } from './types' ;
1416import { prepareDateTimeValue } from './utils' ;
1517
@@ -31,7 +33,12 @@ export const getPathColumn: GetShardsColumn = ({databaseFullPath = ''}) => {
3133export const getDataSizeColumn : GetShardsColumn = ( ) => {
3234 return {
3335 name : TOP_SHARDS_COLUMNS_IDS . DataSize ,
34- header : TOP_SHARDS_COLUMNS_TITLES . DataSize ,
36+ header : (
37+ < LabelWithPopover
38+ text = { TOP_SHARDS_COLUMNS_TITLES . DataSize }
39+ popoverContent = { i18n ( 'context_data-size' ) }
40+ />
41+ ) ,
3542 render : ( { row} ) => {
3643 return formatNumber ( row . DataSize ) ;
3744 } ,
0 commit comments