From 03c1b53868a2ab8bda86215a10cedede4db6ceae Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Mon, 16 Feb 2026 11:37:32 +0200 Subject: [PATCH 1/3] PM-3541 #time 1h show points on home dashboard --- .../components/Dashboard/Challenges/index.jsx | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/src/shared/components/Dashboard/Challenges/index.jsx b/src/shared/components/Dashboard/Challenges/index.jsx index b9ae24631..1bc3a5fd3 100644 --- a/src/shared/components/Dashboard/Challenges/index.jsx +++ b/src/shared/components/Dashboard/Challenges/index.jsx @@ -38,26 +38,32 @@ export default function ChallengesFeed({ ) : ( - (challenges || []).map(challenge => ( -
- - {challenge.name} - -
- - {`$${_.sum( - challenge.prizeSets - .filter(set => set.type === 'PLACEMENT') - .map(item => _.sum(item.prizes.map(prize => prize.value))), - ).toLocaleString()}`} - + (challenges || []).map(challenge => { + const placementPrizes = challenge.prizeSets + .filter(set => set.type === 'PLACEMENT') + .flatMap(item => item.prizes); + const prizeTotal = _.sum(placementPrizes.map(prize => prize.value)); + const prizeType = placementPrizes.length > 0 ? placementPrizes[0].type : null; + const isPointBasedPrize = prizeType === 'POINT'; + const prizeSymbol = isPointBasedPrize ? '' : '$'; + + return ( +
+ + {challenge.name} + +
+ + {`${prizeSymbol}${prizeTotal.toLocaleString()}`} + +
-
- )) + ); + }) )}
From 0fbfa7ef489ae3629bbde5535b31eb7768f80436 Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Mon, 16 Feb 2026 11:37:59 +0200 Subject: [PATCH 2/3] deploy --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4b1904184..4bcd34dfe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -180,6 +180,7 @@ workflows: only: - develop - PM-3087_virus-scan-fix + - PM-3541_home-points-challenge - "build-prod": context: org-global From d708cda7485f8089fb8b56f94f693d707e732961 Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Mon, 16 Feb 2026 11:41:13 +0200 Subject: [PATCH 3/3] lint --- src/shared/components/Dashboard/Challenges/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/Dashboard/Challenges/index.jsx b/src/shared/components/Dashboard/Challenges/index.jsx index 1bc3a5fd3..251c2b3c9 100644 --- a/src/shared/components/Dashboard/Challenges/index.jsx +++ b/src/shared/components/Dashboard/Challenges/index.jsx @@ -38,7 +38,7 @@ export default function ChallengesFeed({ ) : ( - (challenges || []).map(challenge => { + (challenges || []).map((challenge) => { const placementPrizes = challenge.prizeSets .filter(set => set.type === 'PLACEMENT') .flatMap(item => item.prizes);