From cb1bb2d952a2f3b6036d09a09bb5f734f286f605 Mon Sep 17 00:00:00 2001 From: Nate Weller Date: Thu, 14 Nov 2024 10:42:12 -0700 Subject: [PATCH 1/2] Init project branch From 5cf0fbff599ecab78728aff657e8bfd340684282 Mon Sep 17 00:00:00 2001 From: dkmyta Date: Thu, 12 Dec 2024 14:09:41 -0800 Subject: [PATCH 2/2] 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 } ) {