From 06581087b0e0cb9d50aca0a926725220fc333a2f Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 26 Oct 2023 18:14:44 +0200 Subject: [PATCH] fix(ui): metric of and disable retention --- frontend/app/constants/card.ts | 14 +++++++------- frontend/app/mstore/types/widget.ts | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/app/constants/card.ts b/frontend/app/constants/card.ts index b2a4da493..fbe40bd17 100644 --- a/frontend/app/constants/card.ts +++ b/frontend/app/constants/card.ts @@ -191,13 +191,13 @@ export const TYPES: CardType[] = [ description: 'See where users are flowing and explore their journeys.', slug: USER_PATH, }, - { - title: 'Retention', - icon: 'arrow-repeat', - description: 'Get an understanding of how many users are returning.', - slug: RETENTION, - disabled: true, - }, + // { + // title: 'Retention', + // icon: 'arrow-repeat', + // description: 'Get an understanding of how many users are returning.', + // slug: RETENTION, + // disabled: true, + // }, // { // title: 'Feature Adoption', // icon: 'card-checklist', diff --git a/frontend/app/mstore/types/widget.ts b/frontend/app/mstore/types/widget.ts index daf46e59c..ec992979f 100644 --- a/frontend/app/mstore/types/widget.ts +++ b/frontend/app/mstore/types/widget.ts @@ -232,6 +232,7 @@ export default class Widget { data.startType = this.startType; data.startPoint = [this.startPoint.toJson()]; data.excludes = this.series[0].filter.excludes.map((i: any) => i.toJson()); + data.metricOf = 'sessionCount'; } return data; }