diff --git a/web/package.json b/web/package.json
index fcde25251..e819e0bb0 100644
--- a/web/package.json
+++ b/web/package.json
@@ -51,7 +51,7 @@
"@codemirror/view": "^6.9.6",
"@harnessio/design-system": "^2.1.1",
"@harnessio/icons": "^2.1.9",
- "@harnessio/react-har-service-client": "^0.16.0",
+ "@harnessio/react-har-service-client": "^0.17.0",
"@harnessio/react-ng-manager-client": "^1.40.0",
"@harnessio/react-ssca-manager-client": "^0.65.0",
"@harnessio/uicore": "^4.1.2",
diff --git a/web/src/ar/pages/artifact-list/components/ArtifactListTable/ArtifactListTableCell.tsx b/web/src/ar/pages/artifact-list/components/ArtifactListTable/ArtifactListTableCell.tsx
index 6f7e8fa22..78c711bfe 100644
--- a/web/src/ar/pages/artifact-list/components/ArtifactListTable/ArtifactListTableCell.tsx
+++ b/web/src/ar/pages/artifact-list/components/ArtifactListTable/ArtifactListTableCell.tsx
@@ -14,16 +14,17 @@
* limitations under the License.
*/
-import React, { useState } from 'react'
+import React from 'react'
+import QueryString from 'qs'
import { defaultTo } from 'lodash-es'
-import { Link, useHistory } from 'react-router-dom'
-import { Menu, Position } from '@blueprintjs/core'
+import { Link } from 'react-router-dom'
+import { Position } from '@blueprintjs/core'
import { Color, FontVariation } from '@harnessio/design-system'
import { Button, ButtonVariation, Layout, Text } from '@harnessio/uicore'
import type { Cell, CellValue, ColumnInstance, Renderer, Row, TableInstance } from 'react-table'
import type { ArtifactMetadata, StoDigestMetadata } from '@harnessio/react-har-service-client'
-import { useParentComponents, useRoutes } from '@ar/hooks'
+import { useRoutes } from '@ar/hooks'
import TableCells from '@ar/components/TableCells/TableCells'
import { PageType, RepositoryPackageType } from '@ar/common/types'
import LabelsPopover from '@ar/components/LabelsPopover/LabelsPopover'
@@ -126,65 +127,66 @@ export const ArtifactListPullCommandCell: CellType = ({ value, row }) => {
}
}
+interface ScannedDigestListProps {
+ list: StoDigestMetadata[]
+ metadata: ArtifactMetadata
+}
+
+const ScannedDigestList = (props: ScannedDigestListProps) => {
+ const { list, metadata } = props
+ const routes = useRoutes()
+ return (
+
+ {list.map(each => (
+
+
+
+
+
+ ))}
+
+ )
+}
+
export const ArtifactListVulnerabilitiesCell: CellType = ({ row }) => {
const { original } = row
- const { stoMetadata, registryIdentifier, name, version } = original
+ const { stoMetadata } = original
const { scannedCount, totalCount, digestMetadata } = stoMetadata || {}
- const [isOptionsOpen, setIsOptionsOpen] = useState(false)
const { getString } = useStrings()
- const { RbacMenuItem } = useParentComponents()
- const routes = useRoutes()
- const history = useHistory()
-
- const handleRenderDigestMenuItem = (digest: StoDigestMetadata) => {
- return (
- {
- const url = routes.toARVersionDetailsTab({
- repositoryIdentifier: registryIdentifier,
- artifactIdentifier: name,
- versionIdentifier: version as string,
- versionTab: VersionDetailsTab.SECURITY_TESTS,
- pipelineIdentifier: digest.stoPipelineId,
- executionIdentifier: digest.stoExecutionId
- })
- history.push(`${url}?digest=${digest.digest}`)
- }}
- />
- )
- }
if (!scannedCount) {
return {getString('artifactList.table.actions.VulnerabilityStatus.nonScanned')}
}
return (
-