@@ -18,6 +18,7 @@ import useResponsiveLayout from '@hooks/useResponsiveLayout';
1818import useThemeStyles from '@hooks/useThemeStyles' ;
1919import { resetFailedWorkspaceCompanyCardUnassignment } from '@libs/actions/CompanyCards' ;
2020import { getDefaultCardName , getPlaidInstitutionId } from '@libs/CardUtils' ;
21+ import type { SkeletonSpanReasonAttributes } from '@libs/telemetry/useSkeletonSpan' ;
2122import tokenizedSearch from '@libs/tokenizedSearch' ;
2223import WorkspaceCompanyCardPageEmptyState from '@pages/workspace/companyCards/WorkspaceCompanyCardPageEmptyState' ;
2324import WorkspaceCompanyCardsFeedAddedEmptyPage from '@pages/workspace/companyCards/WorkspaceCompanyCardsFeedAddedEmptyPage' ;
@@ -330,6 +331,12 @@ function WorkspaceCompanyCardsTable({
330331 </ View >
331332 ) : undefined ;
332333
334+ const reasonAttributes : SkeletonSpanReasonAttributes = {
335+ context : 'WorkspaceCompanyCardsTable' ,
336+ isLoading,
337+ isLoadingCards,
338+ } ;
339+
333340 return (
334341 < Table
335342 ref = { tableRef }
@@ -342,14 +349,28 @@ function WorkspaceCompanyCardsTable({
342349 isItemInFilter = { isItemInFilter }
343350 filters = { filterConfig }
344351 initialSortColumn = "member"
345- ListEmptyComponent = { isLoadingCards ? < TableRowSkeleton fixedNumItems = { 5 } /> : < WorkspaceCompanyCardsFeedAddedEmptyPage shouldShowGBDisclaimer = { shouldShowGBDisclaimer } /> }
352+ ListEmptyComponent = {
353+ isLoadingCards ? (
354+ < TableRowSkeleton
355+ fixedNumItems = { 5 }
356+ reasonAttributes = { reasonAttributes }
357+ />
358+ ) : (
359+ < WorkspaceCompanyCardsFeedAddedEmptyPage shouldShowGBDisclaimer = { shouldShowGBDisclaimer } />
360+ )
361+ }
346362 ListHeaderComponent = { shouldUseNarrowTableLayout ? headerButtonsComponent : undefined }
347363 >
348364 { shouldRenderHeaderAsChild && headerButtonsComponent }
349365
350366 { ( isLoading || isFeedPending || isNoFeed ) && ! feedErrorKey && (
351367 < ScrollView >
352- { isLoading && < TableRowSkeleton fixedNumItems = { 5 } /> }
368+ { isLoading && (
369+ < TableRowSkeleton
370+ fixedNumItems = { 5 }
371+ reasonAttributes = { reasonAttributes }
372+ />
373+ ) }
353374
354375 { ! isLoading && isFeedPending && (
355376 < View style = { styles . flex1 } >
0 commit comments