Skip to content

Commit

Permalink
fix: analytics sessionizer bugs (#1671)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 authored Nov 4, 2024
1 parent 1e94fad commit f73a5b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ let make = () => {
moduleName="payments_analytics_amount"
formaPayload
/>
<SmartRetryAnalytics filterKeys=tabKeys moduleName="payments_smart_retries" />
<SmartRetryAnalytics moduleName="payments_smart_retries" />
<OverallSummary
filteredTabVales=tabValues
moduleName="overall_summary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ let smartRetrivesAmountColumns: array<DynamicSingleStat.columns<colT>> = [
]

@react.component
let make = (~filterKeys, ~moduleName) => {
let make = (~moduleName) => {
open APIUtils
let getURL = useGetURL()
let smartRetryAnalyticsUrl = getURL(
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -280,7 +280,7 @@ let make = (~filterKeys, ~moduleName) => {
entity={singleStatEntity}
startTimeFilterKey
endTimeFilterKey
filterKeys
filterKeys=[]
moduleName
showPercentage=false
statSentiment={singleStatEntity.statSentiment->Option.getOr(Dict.make())}
Expand All @@ -293,7 +293,7 @@ let make = (~filterKeys, ~moduleName) => {
entity=singleStatAMountEntity
startTimeFilterKey
endTimeFilterKey
filterKeys
filterKeys=[]
moduleName
showPercentage=false
statSentiment={singleStatAMountEntity.statSentiment->Option.getOr(Dict.make())}
Expand Down
2 changes: 1 addition & 1 deletion src/screens/NewAnalytics/NewAnalyticsUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ module PaymentsSuccessRateHeader = {
<div className="w-full px-7 py-8 grid grid-cols-2">
// will enable it in future
<div className="flex gap-2 items-center">
<div className="text-3xl font-600"> {primaryValue->Float.toString->React.string} </div>
<div className="text-3xl font-600">
{primaryValue->valueFormatter(Rate)->React.string}
</div>
<RenderIf condition={comparison == EnableComparison}>
<StatisticsCard value direction />
</RenderIf>
Expand Down

0 comments on commit f73a5b7

Please sign in to comment.