From b69c294272678d88a313201244554e9b5d3730f0 Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Tue, 7 May 2024 11:52:38 +0300 Subject: [PATCH] feat: pass metrics to feature component (#6994) ![image](https://github.com/Unleash/unleash/assets/964450/39bb4551-dc03-4931-8a7f-cd9c0ceda056) --- .../FeatureOverviewMetaData/FeatureOverviewMetaData.tsx | 2 ++ frontend/src/interfaces/featureToggle.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx index 2d36a06160..a2c4c5aa67 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.tsx @@ -109,6 +109,8 @@ const FeatureOverviewMetaData = () => { name: env.name, lastSeenAt: env.lastSeenAt, enabled: env.enabled, + yes: env.yes, + no: env.no, })); const IconComponent = getFeatureTypeIcons(type); diff --git a/frontend/src/interfaces/featureToggle.ts b/frontend/src/interfaces/featureToggle.ts index b10b5f2ac8..165ba75797 100644 --- a/frontend/src/interfaces/featureToggle.ts +++ b/frontend/src/interfaces/featureToggle.ts @@ -69,6 +69,8 @@ export interface IFeatureEnvironment { strategies: IFeatureStrategy[]; variants?: IFeatureVariant[]; lastSeenAt?: string; + yes?: number; + no?: number; } export interface IFeatureEnvironmentWithCrEnabled extends IFeatureEnvironment {