@@ -180,16 +180,31 @@ export function ObjectSummary({
180180
181181 const title = < EntityTitle data = { PathDescription } /> ;
182182
183- const getDatabaseOverview = ( ) => [
184- {
185- label : i18n ( 'summary.paths' ) ,
186- value : PathDescription ?. DomainDescription ?. PathsInside ,
187- } ,
188- {
189- label : i18n ( 'summary.shards' ) ,
190- value : PathDescription ?. DomainDescription ?. ShardsInside ,
191- } ,
192- ] ;
183+ const getDatabaseOverview = ( ) => {
184+ const { PathsInside, ShardsInside, PathsLimit, ShardsLimit} =
185+ PathDescription ?. DomainDescription ?? { } ;
186+ let paths = formatNumber ( PathsInside ) ;
187+ let shards = formatNumber ( ShardsInside ) ;
188+
189+ if ( paths && PathsLimit ) {
190+ paths = `${ paths } / ${ formatNumber ( PathsLimit ) } ` ;
191+ }
192+
193+ if ( shards && ShardsLimit ) {
194+ shards = `${ shards } / ${ formatNumber ( ShardsLimit ) } ` ;
195+ }
196+
197+ return [
198+ {
199+ label : i18n ( 'summary.paths' ) ,
200+ value : paths ,
201+ } ,
202+ {
203+ label : i18n ( 'summary.shards' ) ,
204+ value : shards ,
205+ } ,
206+ ] ;
207+ } ;
193208
194209 const getPathTypeOverview : Record < EPathType , ( ( ) => InfoViewerItem [ ] ) | undefined > = {
195210 [ EPathType . EPathTypeInvalid ] : undefined ,
0 commit comments