diff --git a/CHANGELOG.md b/CHANGELOG.md index a02d3249d..4c030976f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [conven - - - +## 2024.10.25.0 + +### Bug Fixes + +- Auto retry bug ([#1639](https://github.com/juspay/hyperswitch-control-center/pull/1639)) ([`46f4de6`](https://github.com/juspay/hyperswitch-control-center/commit/46f4de64f0c68e587a62c876b56e94a5e25ec26d)) +- Merchant account credentials not shown in profile view ([#1626](https://github.com/juspay/hyperswitch-control-center/pull/1626)) ([`9108801`](https://github.com/juspay/hyperswitch-control-center/commit/9108801555d2e3e03908dbe33f4a52ce9c0503a3)) + +### Miscellaneous Tasks + +- TwoFa restriction after multiple failed attempts before login ([#1594](https://github.com/juspay/hyperswitch-control-center/pull/1594)) ([`9ff488b`](https://github.com/juspay/hyperswitch-control-center/commit/9ff488b8edc99af45fc8f77ab1f56e6cef34a838)) +- Add merchant specific config ([#1643](https://github.com/juspay/hyperswitch-control-center/pull/1643)) ([`aac4ada`](https://github.com/juspay/hyperswitch-control-center/commit/aac4adabf17e96ef7d02fe91048fca8b668030a8)) + +**Full Changelog:** [`2024.10.24.0...2024.10.25.0`](https://github.com/juspay/hyperswitch-control-center/compare/2024.10.24.0...2024.10.25.0) + +- - - + ## 2024.10.24.0 ### Testing diff --git a/src/screens/NewAnalytics/NewAnalyticsContainerUtils.res b/src/screens/NewAnalytics/NewAnalyticsContainerUtils.res index 7754ccd11..ac5bc62c5 100644 --- a/src/screens/NewAnalytics/NewAnalyticsContainerUtils.res +++ b/src/screens/NewAnalytics/NewAnalyticsContainerUtils.res @@ -18,7 +18,11 @@ let getPageFromIndex = index => { } } -let (startTimeFilterKey, endTimeFilterKey) = ("startTime", "endTime") +let (startTimeFilterKey, endTimeFilterKey, smartRetryKey) = ( + "startTime", + "endTime", + "is_smart_retry_enabled", +) let initialFixedFilterFields = () => { let newArr = [ diff --git a/src/screens/NewAnalytics/NewAnalyticsHelper.res b/src/screens/NewAnalytics/NewAnalyticsHelper.res index 3b49aab76..beb38ca06 100644 --- a/src/screens/NewAnalytics/NewAnalyticsHelper.res +++ b/src/screens/NewAnalytics/NewAnalyticsHelper.res @@ -221,3 +221,44 @@ module GraphHeader = { } } + +module SmartRetryToggle = { + open LogicUtils + open NewAnalyticsContainerUtils + @react.component + let make = () => { + let {updateExistingKeys, filterValue, filterValueJson} = React.useContext( + FilterContext.filterContext, + ) + let (isEnabled, setIsEnabled) = React.useState(_ => false) + + React.useEffect(() => { + let value = filterValueJson->getString(smartRetryKey, "true")->getBoolFromString(true) + setIsEnabled(_ => value) + None + }, [filterValueJson]) + + let onClick = _ => { + let updatedValue = !isEnabled + let newValue = filterValue->Dict.copy + newValue->Dict.set(smartRetryKey, updatedValue->getStringFromBool) + newValue->updateExistingKeys + } + +
+ {"Include Payment Retries data: "->React.string} + + {"Your data will consist of all the payment retries that contributed to the success rate"->React.string} + +
+