@@ -40,6 +40,8 @@ import {isIndexTableType, isTableType} from '../utils/schema';
40
40
41
41
import { ObjectTree } from './ObjectTree' ;
42
42
import { SchemaActions } from './SchemaActions' ;
43
+ import { RefreshTreeButton } from './SchemaTree/RefreshTreeButton' ;
44
+ import { TreeKeyProvider } from './UpdateTreeContext' ;
43
45
import i18n from './i18n' ;
44
46
import { b } from './shared' ;
45
47
import { isDomain , transformPath } from './transformPath' ;
@@ -83,6 +85,7 @@ export function ObjectSummary({
83
85
undefined ,
84
86
getTenantCommonInfoState ,
85
87
) ;
88
+
86
89
const { summaryTab = TENANT_SUMMARY_TABS_IDS . overview } = useTypedSelector (
87
90
( state ) => state . tenant ,
88
91
) ;
@@ -419,43 +422,47 @@ export function ObjectSummary({
419
422
420
423
const renderContent = ( ) => {
421
424
return (
422
- < div className = { b ( ) } >
423
- < div className = { b ( { hidden : isCollapsed } ) } >
424
- < SplitPane
425
- direction = "vertical"
426
- defaultSizePaneKey = { DEFAULT_SIZE_TENANT_SUMMARY_KEY }
427
- onSplitStartDragAdditional = { onSplitStartDragAdditional }
428
- triggerCollapse = { commonInfoVisibilityState . triggerCollapse }
429
- triggerExpand = { commonInfoVisibilityState . triggerExpand }
430
- minSize = { [ 200 , 52 ] }
431
- collapsedSizes = { [ 100 , 0 ] }
432
- >
433
- < ObjectTree tenantName = { tenantName } path = { path } />
434
- < div className = { b ( 'info' ) } >
435
- < div className = { b ( 'sticky-top' ) } >
436
- < div className = { b ( 'info-header' ) } >
437
- < div className = { b ( 'info-title' ) } >
438
- { renderEntityTypeBadge ( ) }
439
- < div className = { b ( 'path-name' ) } > { relativePath } </ div >
440
- </ div >
441
- < div className = { b ( 'info-controls' ) } >
442
- { renderCommonInfoControls ( ) }
425
+ < TreeKeyProvider >
426
+ < div className = { b ( ) } >
427
+ < div className = { b ( { hidden : isCollapsed } ) } >
428
+ < SplitPane
429
+ direction = "vertical"
430
+ defaultSizePaneKey = { DEFAULT_SIZE_TENANT_SUMMARY_KEY }
431
+ onSplitStartDragAdditional = { onSplitStartDragAdditional }
432
+ triggerCollapse = { commonInfoVisibilityState . triggerCollapse }
433
+ triggerExpand = { commonInfoVisibilityState . triggerExpand }
434
+ minSize = { [ 200 , 52 ] }
435
+ collapsedSizes = { [ 100 , 0 ] }
436
+ >
437
+ < ObjectTree tenantName = { tenantName } path = { path } />
438
+ < div className = { b ( 'info' ) } >
439
+ < div className = { b ( 'sticky-top' ) } >
440
+ < div className = { b ( 'info-header' ) } >
441
+ < div className = { b ( 'info-title' ) } >
442
+ { renderEntityTypeBadge ( ) }
443
+ < div className = { b ( 'path-name' ) } > { relativePath } </ div >
444
+ </ div >
445
+ < div className = { b ( 'info-controls' ) } >
446
+ { renderCommonInfoControls ( ) }
447
+ </ div >
443
448
</ div >
449
+ { renderTabs ( ) }
444
450
</ div >
445
- { renderTabs ( ) }
451
+ < div className = { b ( 'overview-wrapper' ) } > { renderTabContent ( ) } </ div >
446
452
</ div >
447
- < div className = { b ( 'overview-wrapper' ) } > { renderTabContent ( ) } </ div >
448
- </ div >
449
- </ SplitPane >
453
+ </ SplitPane >
454
+ </ div >
455
+ < Flex className = { b ( 'actions' ) } gap = { 0.5 } >
456
+ { ! isCollapsed && < RefreshTreeButton /> }
457
+ < PaneVisibilityToggleButtons
458
+ onCollapse = { onCollapseSummary }
459
+ onExpand = { onExpandSummary }
460
+ isCollapsed = { isCollapsed }
461
+ initialDirection = "left"
462
+ />
463
+ </ Flex >
450
464
</ div >
451
- < PaneVisibilityToggleButtons
452
- onCollapse = { onCollapseSummary }
453
- onExpand = { onExpandSummary }
454
- isCollapsed = { isCollapsed }
455
- initialDirection = "left"
456
- className = { b ( 'action-button' ) }
457
- />
458
- </ div >
465
+ </ TreeKeyProvider >
459
466
) ;
460
467
} ;
461
468
0 commit comments