From f73a5b7798522e1ca6233be0d6daeed5d8314a4d Mon Sep 17 00:00:00 2001 From: Jeeva Ramachandran <120017870+JeevaRamu0104@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:18:57 +0530 Subject: [PATCH 1/2] fix: analytics sessionizer bugs (#1671) --- .../Analytics/PaymentsAnalytics/PaymentAnalytics.res | 2 +- .../Analytics/PaymentsAnalytics/SmartRetryAnalytics.res | 8 ++++---- src/screens/NewAnalytics/NewAnalyticsUtils.res | 2 +- .../PaymentsSuccessRate/PaymentsSuccessRate.res | 4 +++- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res b/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res index e8031b940..d1f335767 100644 --- a/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res +++ b/src/screens/Analytics/PaymentsAnalytics/PaymentAnalytics.res @@ -273,7 +273,7 @@ let make = () => { moduleName="payments_analytics_amount" formaPayload /> - + > = [ ] @react.component -let make = (~filterKeys, ~moduleName) => { +let make = (~moduleName) => { open APIUtils let getURL = useGetURL() let smartRetryAnalyticsUrl = getURL( @@ -251,7 +251,7 @@ let make = (~filterKeys, ~moduleName) => { let formaPayload = (singleStatBodyEntity: DynamicSingleStat.singleStatBodyEntity) => { [ AnalyticsUtils.getFilterRequestBody( - ~filter=singleStatBodyEntity.filter, + ~filter=None, ~metrics=singleStatBodyEntity.metrics, ~delta=?singleStatBodyEntity.delta, ~startDateTime=singleStatBodyEntity.startDateTime, @@ -280,7 +280,7 @@ let make = (~filterKeys, ~moduleName) => { entity={singleStatEntity} startTimeFilterKey endTimeFilterKey - filterKeys + filterKeys=[] moduleName showPercentage=false statSentiment={singleStatEntity.statSentiment->Option.getOr(Dict.make())} @@ -293,7 +293,7 @@ let make = (~filterKeys, ~moduleName) => { entity=singleStatAMountEntity startTimeFilterKey endTimeFilterKey - filterKeys + filterKeys=[] moduleName showPercentage=false statSentiment={singleStatAMountEntity.statSentiment->Option.getOr(Dict.make())} diff --git a/src/screens/NewAnalytics/NewAnalyticsUtils.res b/src/screens/NewAnalytics/NewAnalyticsUtils.res index 2d1814d74..422d37e17 100644 --- a/src/screens/NewAnalytics/NewAnalyticsUtils.res +++ b/src/screens/NewAnalytics/NewAnalyticsUtils.res @@ -141,7 +141,7 @@ let getLabelName = (~key, ~index, ~points) => { if key === "time_bucket" { let pointsArray = points->getArrayFromJson([]) let startPoint = pointsArray->getDateObject(0) - let endPoint = pointsArray->getDateObject(1) + let endPoint = pointsArray->getDateObject(pointsArray->Array.length - 1) let startDate = startPoint->formatDateValue let endDate = endPoint->formatDateValue diff --git a/src/screens/NewAnalytics/PaymentAnalytics/PaymentsSuccessRate/PaymentsSuccessRate.res b/src/screens/NewAnalytics/PaymentAnalytics/PaymentsSuccessRate/PaymentsSuccessRate.res index db4b310a7..7f53ce58c 100644 --- a/src/screens/NewAnalytics/PaymentAnalytics/PaymentsSuccessRate/PaymentsSuccessRate.res +++ b/src/screens/NewAnalytics/PaymentAnalytics/PaymentsSuccessRate/PaymentsSuccessRate.res @@ -35,7 +35,9 @@ module PaymentsSuccessRateHeader = {
// will enable it in future
-
{primaryValue->Float.toString->React.string}
+
+ {primaryValue->valueFormatter(Rate)->React.string} +
From 237b5ac2c2b6a27a54b062c8a1bbee4aef8b064f Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 10:49:41 +0000 Subject: [PATCH 2/2] chore(version): 2024.11.04.0 --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e9a9b0fe..2d0cabbae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. See [conven - - - +## 2024.11.04.0 + +### Features + +- Create compare date filter ([#1678](https://github.com/juspay/hyperswitch-control-center/pull/1678)) ([`86264d0`](https://github.com/juspay/hyperswitch-control-center/commit/86264d00d9f4f3bf18707b9f3806cdf528d9ff25)) +- Enable comparison filter in new analytics ([#1679](https://github.com/juspay/hyperswitch-control-center/pull/1679)) ([`03bf0ba`](https://github.com/juspay/hyperswitch-control-center/commit/03bf0bae2535b9ea5c7e3bfe3b4952ffb12fbcc5)) + +### Bug Fixes + +- Remove dispute stage col ([#1676](https://github.com/juspay/hyperswitch-control-center/pull/1676)) ([`1e94fad`](https://github.com/juspay/hyperswitch-control-center/commit/1e94fad454a2c1c37ef27945c48022a481ddb87f)) +- Analytics sessionizer bugs ([#1671](https://github.com/juspay/hyperswitch-control-center/pull/1671)) ([`f73a5b7`](https://github.com/juspay/hyperswitch-control-center/commit/f73a5b7798522e1ca6233be0d6daeed5d8314a4d)) + +### Refactors + +- Resource-access-added ([#1635](https://github.com/juspay/hyperswitch-control-center/pull/1635)) ([`e6cd819`](https://github.com/juspay/hyperswitch-control-center/commit/e6cd819b97fe3b876aed757fe4c36ae9b0478d76)) +- Invite user api restructure v2 ([#1681](https://github.com/juspay/hyperswitch-control-center/pull/1681)) ([`47d26b3`](https://github.com/juspay/hyperswitch-control-center/commit/47d26b3005759a09bbb75140391bd0433bb6f7ab)) + +**Full Changelog:** [`2024.10.31.0...2024.11.04.0`](https://github.com/juspay/hyperswitch-control-center/compare/2024.10.31.0...2024.11.04.0) + +- - - + ## 2024.10.31.0 ### Miscellaneous Tasks