diff --git a/projects/js-packages/components/components/scan-report/index.tsx b/projects/js-packages/components/components/scan-report/index.tsx index 4600ecf98d9db..37047071d10e5 100644 --- a/projects/js-packages/components/components/scan-report/index.tsx +++ b/projects/js-packages/components/components/scan-report/index.tsx @@ -88,6 +88,7 @@ export default function ScanReport( { dataSource, data, onChangeSelection } ): J id: FIELD_STATUS, elements: STATUS_TYPES, label: __( 'Status', 'jetpack-components' ), + enableHiding: false, getValue( { item } ) { if ( item.checked ) { if ( item.threats.length > 0 ) { @@ -152,18 +153,25 @@ export default function ScanReport( { dataSource, data, onChangeSelection } ): J id: FIELD_TYPE, label: __( 'Type', 'jetpack-components' ), elements: TYPES, + enableHiding: false, }, { id: FIELD_NAME, label: __( 'Name', 'jetpack-components' ), + enableHiding: false, enableGlobalSearch: true, getValue( { item }: { item: ScanReportExtension } ) { + if ( view.type === 'list' && item.type === 'files' ) { + return 'Files'; + } + return item.name ? item.name : ''; }, }, { id: FIELD_VERSION, label: __( 'Version', 'jetpack-components' ), + enableHiding: false, enableSorting: false, enableGlobalSearch: true, getValue( { item }: { item: ScanReportExtension } ) {