diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceSection.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceSection.tsx index 5935fdc5d..644a250fe 100644 --- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceSection.tsx +++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceSection.tsx @@ -1,6 +1,3 @@ -import { faExpand } from "@fortawesome/free-solid-svg-icons"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; - import { createNotification } from "@app/components/notifications"; import { ProjectPermissionCan } from "@app/components/permissions"; import { Button } from "@app/components/v2"; @@ -63,7 +60,6 @@ export const SecretScanningResourceSection = ({ dataSource }: Props) => { {(isAllowed) => ( } onClick={handleTriggerScan} isDisabled={!isAllowed || triggerDataSourceScan.isPending} isLoading={triggerDataSourceScan.isPending} diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanSection.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanSection.tsx index 271a6538d..5f9480e19 100644 --- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanSection.tsx +++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanSection.tsx @@ -1,3 +1,4 @@ +import { RESOURCE_DESCRIPTION_HELPER } from "@app/helpers/secretScanningV2"; import { TSecretScanningDataSource } from "@app/hooks/api/secretScanningV2"; import { SecretScanningScanTable } from "./SecretScanningScanTable"; @@ -7,10 +8,18 @@ type Props = { }; export const SecretScanningScanSection = ({ dataSource }: Props) => { + const resourceDetails = RESOURCE_DESCRIPTION_HELPER[dataSource.type]; + return (
Scan History
+Scan History
++ Detailed history of when {resourceDetails.singularNoun} scans occurred and their + findings +
+