Skip to content

Commit

Permalink
Merge branch 'main' of github.com:juspay/hyperswitch-control-center
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 committed Nov 4, 2024
2 parents 6572b00 + 237b5ac commit e4ccb1f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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 e4ccb1f

Please sign in to comment.