From 709077b51a8d607101218c3aafbd6e4e6547900d Mon Sep 17 00:00:00 2001 From: Shivanand Sonnad Date: Fri, 14 Mar 2025 11:14:18 +0000 Subject: [PATCH] feat: [AH-1020]: update artifact list actions column and remove artifact modification event from webhooks (#3557) * feat: [AH-1020]: remove artifact modification from webhooks * feat: [AH-1020]: remove artifact and version actions for non oci types --- .../components/ArtifactListTable/ArtifactListTable.tsx | 3 ++- web/src/ar/pages/webhook-list/components/Forms/constants.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/src/ar/pages/artifact-list/components/ArtifactListTable/ArtifactListTable.tsx b/web/src/ar/pages/artifact-list/components/ArtifactListTable/ArtifactListTable.tsx index 1ba8fb29e..8a533b832 100644 --- a/web/src/ar/pages/artifact-list/components/ArtifactListTable/ArtifactListTable.tsx +++ b/web/src/ar/pages/artifact-list/components/ArtifactListTable/ArtifactListTable.tsx @@ -28,6 +28,7 @@ import { ArtifactListPullCommandCell, ArtifactListVulnerabilitiesCell, ArtifactNameCell, + ArtifactVersionActions, LatestArtifactCell } from './ArtifactListTableCell' import css from './ArtifactListTable.module.scss' @@ -111,7 +112,7 @@ export default function ArtifactListTable(props: ArtifactListTableProps): JSX.El { Header: '', accessor: 'actions', - Cell: LatestArtifactCell, + Cell: ArtifactVersionActions, disableSortBy: true } ].filter(Boolean) as unknown as Column[] diff --git a/web/src/ar/pages/webhook-list/components/Forms/constants.ts b/web/src/ar/pages/webhook-list/components/Forms/constants.ts index ffca60191..80bf79d96 100644 --- a/web/src/ar/pages/webhook-list/components/Forms/constants.ts +++ b/web/src/ar/pages/webhook-list/components/Forms/constants.ts @@ -25,6 +25,6 @@ interface TriggerLabelOption { export const TriggerLabelOptions: TriggerLabelOption[] = [ { label: 'webhookList.triggers.artifactCreation', value: 'ARTIFACT_CREATION' }, - { label: 'webhookList.triggers.artifactDeletion', value: 'ARTIFACT_DELETION' }, - { label: 'webhookList.triggers.artifactModification', value: 'ARTIFACT_MODIFICATION' } + { label: 'webhookList.triggers.artifactDeletion', value: 'ARTIFACT_DELETION' } + // { label: 'webhookList.triggers.artifactModification', value: 'ARTIFACT_MODIFICATION' } ]