@@ -19,6 +19,7 @@ import relativeTime from 'dayjs/plugin/relativeTime';
19
19
import updateLocale from 'dayjs/plugin/updateLocale' ;
20
20
import React , { useCallback , useMemo , useRef , useState } from 'react' ;
21
21
import { Link } from 'react-router-dom' ;
22
+ import { CreateCatalogViewButton } from 'shared/assets/CreateCatalogViewButton.oss' ;
22
23
import styled from 'styled-components' ;
23
24
24
25
import { AssetHealthStatusString , STATUS_INFO , statusToIconAndColor } from './AssetHealthSummary' ;
@@ -33,7 +34,6 @@ import {AssetTableFragment} from './types/AssetTableFragment.types';
33
34
import { useAssetsHealthData } from '../asset-data/AssetHealthDataProvider' ;
34
35
import { AssetHealthFragment } from '../asset-data/types/AssetHealthDataProvider.types' ;
35
36
import { useAssetSelectionInput } from '../asset-selection/input/useAssetSelectionInput' ;
36
- import { useDebugChanged } from '../hooks/useDebugChanged' ;
37
37
import { useBlockTraceUntilTrue } from '../performance/TraceContext' ;
38
38
import { SyntaxError } from '../selection/CustomErrorListener' ;
39
39
import { IndeterminateLoadingBar } from '../ui/IndeterminateLoadingBar' ;
@@ -65,8 +65,6 @@ export const AssetsCatalogTableV2Impl = React.memo(() => {
65
65
useMemo ( ( ) => filtered . map ( ( asset ) => asAssetKeyInput ( asset . key ) ) , [ filtered ] ) ,
66
66
) ;
67
67
68
- console . log ( Object . keys ( liveDataByNode ) . length ) ;
69
-
70
68
const healthDataLoading = useMemo ( ( ) => {
71
69
return Object . values ( liveDataByNode ) . length !== filtered . length ;
72
70
} , [ liveDataByNode , filtered ] ) ;
@@ -98,27 +96,6 @@ export const AssetsCatalogTableV2Impl = React.memo(() => {
98
96
}
99
97
} , [ selectedTab , filtered , groupedByStatus , loading ] ) ;
100
98
101
- useDebugChanged ( [
102
- liveDataByNode ,
103
- filtered ,
104
- assets ,
105
- errorState ,
106
- filterInput ,
107
- loading ,
108
- assetsLoading ,
109
- error ,
110
- selectedTab ,
111
- groupedByStatus ,
112
- content ,
113
- healthDataLoading ,
114
- assetsLoading ,
115
- loading ,
116
- error ,
117
- selectedTab ,
118
- groupedByStatus ,
119
- content ,
120
- ] ) ;
121
-
122
99
if ( error ) {
123
100
return < PythonErrorInfo error = { error } /> ;
124
101
}
@@ -140,7 +117,13 @@ export const AssetsCatalogTableV2Impl = React.memo(() => {
140
117
minHeight : 600 ,
141
118
} }
142
119
>
143
- < Box padding = { { vertical : 12 , horizontal : 24 } } > { filterInput } </ Box >
120
+ < Box
121
+ flex = { { direction : 'row' , alignItems : 'center' , gap : 8 } }
122
+ padding = { { vertical : 12 , horizontal : 24 } }
123
+ >
124
+ < Box flex = { { grow : 1 , shrink : 1 } } > { filterInput } </ Box >
125
+ < CreateCatalogViewButton />
126
+ </ Box >
144
127
< IndeterminateLoadingBar $loading = { loading || healthDataLoading } />
145
128
< Box border = "bottom" >
146
129
< Tabs
@@ -368,7 +351,16 @@ const AssetRow = React.memo(({asset}: {asset: AssetHealthFragment}) => {
368
351
</ AssetIconWrapper >
369
352
{ asset . assetKey . path . join ( ' / ' ) }
370
353
</ Box >
371
- < AssetRecentUpdatesTrend asset = { asset } />
354
+ { /* Prevent clicks on the trend from propoagating to the row and triggering the link */ }
355
+ < div
356
+ onClick = { ( e ) => {
357
+ e . stopPropagation ( ) ;
358
+ e . preventDefault ( ) ;
359
+ } }
360
+ className = "test"
361
+ >
362
+ < AssetRecentUpdatesTrend asset = { asset } />
363
+ </ div >
372
364
</ Box >
373
365
</ RowWrapper >
374
366
) ;
0 commit comments