diff --git a/client/public/locales/en/translation.json b/client/public/locales/en/translation.json index f7cd9808c4..46a981598c 100644 --- a/client/public/locales/en/translation.json +++ b/client/public/locales/en/translation.json @@ -96,6 +96,8 @@ "selectMany": "Select {{what}}", "selectOne": "Select a {{what}}", "selectAn": "Select an {{what}}", + "totalApplications": "{{count}} application", + "totalApplications_plural": "{{count}} applications", "workPriority": "Work priority (1=low, 10=high)" }, "dialog": { diff --git a/client/src/app/pages/dependencies/dependencies.tsx b/client/src/app/pages/dependencies/dependencies.tsx index df9c9d3591..0c61a698cb 100644 --- a/client/src/app/pages/dependencies/dependencies.tsx +++ b/client/src/app/pages/dependencies/dependencies.tsx @@ -1,6 +1,5 @@ import * as React from "react"; import { - Button, Label, LabelGroup, PageSection, @@ -30,7 +29,6 @@ import { useFetchDependencies } from "@app/queries/dependencies"; import { useSelectionState } from "@migtools/lib-ui"; import { DependencyAppsDetailDrawer } from "./dependency-apps-detail-drawer"; import { useSharedAffectedApplicationFilterCategories } from "../issues/helpers"; -import spacing from "@patternfly/react-styles/css/utilities/Spacing/spacing"; import { getParsedLabel } from "@app/utils/rules-utils"; export const Dependencies: React.FC = () => { @@ -47,8 +45,6 @@ export const Dependencies: React.FC = () => { foundIn: "Found in", provider: "Language", labels: "Labels", - sha: "SHA", - version: "Version", }, isFilterEnabled: true, isSortEnabled: true, @@ -101,7 +97,7 @@ export const Dependencies: React.FC = () => { const tableControls = useTableControlProps({ ...tableControlState, // Includes filterState, sortState and paginationState - idProperty: "name", + idProperty: "_ui_unique_id", currentPageItems, totalItemCount, isLoading: isFetching, @@ -123,7 +119,7 @@ export const Dependencies: React.FC = () => { getTrProps, getTdProps, }, - activeItemDerivedState: { activeItem, clearActiveItem, setActiveItem }, + activeItemDerivedState: { activeItem, clearActiveItem }, } = tableControls; return ( @@ -151,14 +147,18 @@ export const Dependencies: React.FC = () => { -
- | + | {dependency.name} | -- - | {dependency.provider} |
|
+ + {t("composed.totalApplications", { + count: dependency.applications, + })} + | ))} @@ -227,7 +219,7 @@ export const Dependencies: React.FC = () => {
---|