From ff2d2c2ce2d9e9e5efc5668de31d7e8d95e50bdb Mon Sep 17 00:00:00 2001 From: dkmyta Date: Thu, 12 Dec 2024 14:09:41 -0800 Subject: [PATCH] Disable hiding of relevant fields --- .../components/components/scan-report/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) 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 } ) {