+
{"Publishable Key"->React.string}
@@ -59,18 +59,18 @@ let make = () => {
String.length !== 0}>
-
+
{"Payment Response Hash Key"->React.string}
diff --git a/src/screens/Helpers/HelperComponents.res b/src/screens/Helpers/HelperComponents.res
index bd85b8af0..4ace0bc92 100644
--- a/src/screens/Helpers/HelperComponents.res
+++ b/src/screens/Helpers/HelperComponents.res
@@ -72,11 +72,13 @@ module EllipsisText = {
{`${displayValue->String.slice(~start=0, ~end=endValue)}`->React.string}
-
handleClick(ev)}>
- {"..."->React.string}
-
+
String.length > endValue}>
+ handleClick(ev)}>
+ {"..."->React.string}
+
+
diff --git a/src/screens/NewAnalytics/Graphs/BarGraph/BarGraph.res b/src/screens/NewAnalytics/Graphs/BarGraph/BarGraph.res
deleted file mode 100644
index 0285698e3..000000000
--- a/src/screens/NewAnalytics/Graphs/BarGraph/BarGraph.res
+++ /dev/null
@@ -1,10 +0,0 @@
-external barGraphOptionsToJson: BarGraphTypes.barGraphOptions => JSON.t = "%identity"
-@react.component
-let make = (~entity, ~object, ~className="") => {
- open NewAnalyticsTypes
- let options = entity.getChatOptions(object)->barGraphOptionsToJson
-
-
-
-
-}
diff --git a/src/screens/NewAnalytics/NewRefundsAnalytics/FailedRefundsDistribution/FailedRefundsDistribution.res b/src/screens/NewAnalytics/NewRefundsAnalytics/FailedRefundsDistribution/FailedRefundsDistribution.res
index 1763c490a..22e265c17 100644
--- a/src/screens/NewAnalytics/NewRefundsAnalytics/FailedRefundsDistribution/FailedRefundsDistribution.res
+++ b/src/screens/NewAnalytics/NewRefundsAnalytics/FailedRefundsDistribution/FailedRefundsDistribution.res
@@ -144,6 +144,8 @@ let make = (
yKey: Connector->getStringFromVariant,
}
+ let options = chartEntity.getChatOptions(chartEntity.getObjects(~params))
+
@@ -152,10 +154,7 @@ let make = (
{switch viewType {
- | Graph =>
-
+ | Graph =>
| Table =>
}}
diff --git a/src/screens/NewAnalytics/NewRefundsAnalytics/NewRefundsAnalytics.res b/src/screens/NewAnalytics/NewRefundsAnalytics/NewRefundsAnalytics.res
index fbffac260..bd2174b30 100644
--- a/src/screens/NewAnalytics/NewRefundsAnalytics/NewRefundsAnalytics.res
+++ b/src/screens/NewAnalytics/NewRefundsAnalytics/NewRefundsAnalytics.res
@@ -1,11 +1,14 @@
@react.component
let make = () => {
open NewRefundsAnalyticsEntity
+ let {newAnalyticsFilters} = HyperswitchAtom.featureFlagAtom->Recoil.useRecoilValueFromAtom
-
-
-
+
+
+
+
+
getStringFromVariant,
}
+ let options = chartEntity.getChatOptions(chartEntity.getObjects(~params))
+
@@ -129,10 +131,7 @@ let make = (
{switch viewType {
- | Graph =>
-
+ | Graph =>
| Table =>
}}
diff --git a/src/screens/NewAnalytics/PaymentAnalytics/FailedPaymentsDistribution/FailedPaymentsDistribution.res b/src/screens/NewAnalytics/PaymentAnalytics/FailedPaymentsDistribution/FailedPaymentsDistribution.res
index 1cded5c19..64ec3e517 100644
--- a/src/screens/NewAnalytics/PaymentAnalytics/FailedPaymentsDistribution/FailedPaymentsDistribution.res
+++ b/src/screens/NewAnalytics/PaymentAnalytics/FailedPaymentsDistribution/FailedPaymentsDistribution.res
@@ -4,6 +4,7 @@ open NewPaymentAnalyticsEntity
open BarGraphTypes
open FailedPaymentsDistributionUtils
open NewPaymentAnalyticsUtils
+
module TableModule = {
@react.component
let make = (~data, ~className="", ~selectedTab: string) => {
@@ -137,11 +138,15 @@ let make = (
}
None
}, [startTimeVal, endTimeVal, groupBy.value, currency])
+
let params = {
data: failedPaymentsDistribution,
xKey: Payments_Failure_Rate_Distribution->getKeyForModule(~isSmartRetryEnabled),
yKey: groupBy.value,
}
+
+ let options = chartEntity.getChatOptions(chartEntity.getObjects(~params))
+
@@ -150,10 +155,7 @@ let make = (
{switch viewType {
- | Graph =>
-
+ | Graph =>
| Table =>
{
open NewPaymentAnalyticsEntity
+ let {newAnalyticsFilters} = HyperswitchAtom.featureFlagAtom->Recoil.useRecoilValueFromAtom
-
+
+
+
@@ -150,10 +153,7 @@ let make = (
{switch viewType {
- | Graph =>
-
+ | Graph =>
| Table =>
}}
diff --git a/src/screens/NewAnalytics/SmartRetryAnalytics/FailureSmartRetryDistribution/FailureSmartRetryDistribution.res b/src/screens/NewAnalytics/SmartRetryAnalytics/FailureSmartRetryDistribution/FailureSmartRetryDistribution.res
index 941b5e4b7..07c65d060 100644
--- a/src/screens/NewAnalytics/SmartRetryAnalytics/FailureSmartRetryDistribution/FailureSmartRetryDistribution.res
+++ b/src/screens/NewAnalytics/SmartRetryAnalytics/FailureSmartRetryDistribution/FailureSmartRetryDistribution.res
@@ -126,11 +126,15 @@ let make = (
}
None
}, [startTimeVal, endTimeVal, groupBy.value, currency])
+
let params = {
data: paymentsDistribution,
xKey: Payments_Failure_Rate_Distribution_With_Only_Retries->getStringFromVariant,
yKey: groupBy.value,
}
+
+ let options = chartEntity.getChatOptions(chartEntity.getObjects(~params))
+
@@ -139,10 +143,7 @@ let make = (
{switch viewType {
- | Graph =>
-
+ | Graph =>
| Table =>
}}
diff --git a/src/screens/NewAnalytics/SmartRetryAnalytics/NewSmartRetryAnalytics.res b/src/screens/NewAnalytics/SmartRetryAnalytics/NewSmartRetryAnalytics.res
index 34f20413d..af1d6d9f8 100644
--- a/src/screens/NewAnalytics/SmartRetryAnalytics/NewSmartRetryAnalytics.res
+++ b/src/screens/NewAnalytics/SmartRetryAnalytics/NewSmartRetryAnalytics.res
@@ -1,11 +1,14 @@
@react.component
let make = () => {
open NewSmartRetryAnalyticsEntity
+ let {newAnalyticsFilters} = HyperswitchAtom.featureFlagAtom->Recoil.useRecoilValueFromAtom
-
-
-
+
+
+
+
+
getStringFromVariant,
yKey: groupBy.value,
}
+
+ let options = chartEntity.getChatOptions(chartEntity.getObjects(~params))
+
@@ -139,10 +143,7 @@ let make = (
{switch viewType {
- | Graph =>
-
+ | Graph =>
| Table =>
}}