diff --git a/src/components/Assets/AssetList/AssetEntry/index.tsx b/src/components/Assets/AssetList/AssetEntry/index.tsx
index 825d1dff1..0f15b007c 100644
--- a/src/components/Assets/AssetList/AssetEntry/index.tsx
+++ b/src/components/Assets/AssetList/AssetEntry/index.tsx
@@ -1,9 +1,12 @@
+import { useContext } from "react";
import { DefaultTheme, useTheme } from "styled-components";
-import { InsightType } from "../../../../types";
+import { getFeatureFlagValue } from "../../../../featureFlags";
+import { FeatureFlag, InsightType } from "../../../../types";
import { formatTimeDistance } from "../../../../utils/formatTimeDistance";
import { getInsightImportanceColor } from "../../../../utils/getInsightImportanceColor";
import { getInsightTypeInfo } from "../../../../utils/getInsightTypeInfo";
import { getInsightTypeOrderPriority } from "../../../../utils/getInsightTypeOrderPriority";
+import { ConfigContext } from "../../../common/App/ConfigContext";
import { ImpactScore } from "../../../common/ImpactScore";
import { Tooltip } from "../../../common/Tooltip";
import { GlobeIcon } from "../../../common/icons/GlobeIcon";
@@ -25,6 +28,11 @@ const getServiceIconColor = (theme: DefaultTheme) => {
export const AssetEntry = (props: AssetEntryProps) => {
const theme = useTheme();
const serviceIconColor = getServiceIconColor(theme);
+ const config = useContext(ConfigContext);
+ const isOverallImpactHidden = getFeatureFlagValue(
+ config,
+ FeatureFlag.IS_ASSETS_OVERALL_IMPACT_HIDDEN
+ );
const handleLinkClick = () => {
props.onAssetLinkClick(props.entry);
@@ -159,20 +167,22 @@ export const AssetEntry = (props: AssetEntryProps) => {
-
- Overall impact
-
-
-
-
-
-
+ {!isOverallImpactHidden && (
+
+ Overall impact
+
+
+
+
+
+
+ )}
)}
diff --git a/src/components/Assets/AssetList/index.tsx b/src/components/Assets/AssetList/index.tsx
index fd7585c63..23f4212e9 100644
--- a/src/components/Assets/AssetList/index.tsx
+++ b/src/components/Assets/AssetList/index.tsx
@@ -1,10 +1,12 @@
import { ChangeEvent, useContext, useEffect, useRef, useState } from "react";
import { DefaultTheme, useTheme } from "styled-components";
import { dispatcher } from "../../../dispatcher";
+import { getFeatureFlagValue } from "../../../featureFlags";
import { useDebounce } from "../../../hooks/useDebounce";
import { usePrevious } from "../../../hooks/usePrevious";
import { isNumber } from "../../../typeGuards/isNumber";
import { isString } from "../../../typeGuards/isString";
+import { FeatureFlag } from "../../../types";
import { ConfigContext } from "../../common/App/ConfigContext";
import { EmptyState } from "../../common/EmptyState";
import { Menu } from "../../common/Menu";
@@ -165,6 +167,17 @@ export const AssetList = (props: AssetListProps) => {
const assetTypeInfo = getAssetTypeInfo(props.assetTypeId);
+ const isOverallImpactHidden = getFeatureFlagValue(
+ config,
+ FeatureFlag.IS_ASSETS_OVERALL_IMPACT_HIDDEN
+ );
+
+ const sortingCriteria = isOverallImpactHidden
+ ? Object.values(SORTING_CRITERION).filter(
+ (x) => x !== SORTING_CRITERION.OVERALL_IMPACT
+ )
+ : Object.values(SORTING_CRITERION);
+
useEffect(() => {
window.sendMessageToDigma({
action: actions.GET_DATA,
@@ -444,7 +457,7 @@ export const AssetList = (props: AssetListProps) => {