diff --git a/src/screens/HyperSwitch/SDKPayment/TestCredentials.res b/src/screens/HyperSwitch/SDKPayment/TestCredentials.res
index 80878a989..fefab5baf 100644
--- a/src/screens/HyperSwitch/SDKPayment/TestCredentials.res
+++ b/src/screens/HyperSwitch/SDKPayment/TestCredentials.res
@@ -38,7 +38,9 @@ let make = () => {
{
- Window._open("https://hyperswitch.io/docs/paymentMethods/testCredentials")
+ Window._open(
+ "https://docs.hyperswitch.io/hyperswitch-cloud/connectors/test-a-payment-with-connector",
+ )
}}>
{"Test creds for other connectors here"->React.string}
From e27d91b93a4848d6a0bd898f63042f320491f873 Mon Sep 17 00:00:00 2001
From: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Fri, 15 Dec 2023 12:56:20 +0000
Subject: [PATCH 2/5] chore(version): v1.9.0
---
CHANGELOG.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 913787d01..38bf80925 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
- - -
+## 1.9.0 (2023-12-15)
+
+### Features
+
+- Show Orders Enhancements & sidebar value changes ([#103](https://github.com/juspay/hyperswitch-control-center/pull/103)) ([`a1631f3`](https://github.com/juspay/hyperswitch-control-center/commit/a1631f3b1f3e6021053cae934146ca09368ab333))
+
+### Refactors
+
+- Refactoring key errors ([#98](https://github.com/juspay/hyperswitch-control-center/pull/98)) ([`50b86b9`](https://github.com/juspay/hyperswitch-control-center/commit/50b86b9670ecec63ddc6ed8221e55b9ae593e20a))
+- Refactoring key errors ([#100](https://github.com/juspay/hyperswitch-control-center/pull/100)) ([`1ddbe68`](https://github.com/juspay/hyperswitch-control-center/commit/1ddbe6874c93dccee2cfc1d73281ba6ce9008323))
+
+**Full Changelog:** [`v1.8.0...v1.9.0`](https://github.com/juspay/hyperswitch-control-center/compare/v1.8.0...v1.9.0)
+
+- - -
+
+
## 1.8.0 (2023-12-14)
### Features
From 134d470ceadef14e02c5ca6b31d1475b25212d0d Mon Sep 17 00:00:00 2001
From: Pritish Budhiraja <77892330+PritishBudhiraja@users.noreply.github.com>
Date: Fri, 15 Dec 2023 19:25:36 +0530
Subject: [PATCH 3/5] feat: Show Details Paymentb Enhancement (#104)
---
src/screens/HyperSwitch/Order/OrderEntity.res | 114 +-----------------
.../HyperSwitch/Order/OrderUIUtils.res | 6 +-
src/screens/HyperSwitch/Order/ShowOrder.res | 43 +++++--
.../HyperSwitch/PaymentLogs/PaymentLogs.res | 45 ++++---
4 files changed, 59 insertions(+), 149 deletions(-)
diff --git a/src/screens/HyperSwitch/Order/OrderEntity.res b/src/screens/HyperSwitch/Order/OrderEntity.res
index e169b398f..65583afef 100644
--- a/src/screens/HyperSwitch/Order/OrderEntity.res
+++ b/src/screens/HyperSwitch/Order/OrderEntity.res
@@ -1,35 +1,6 @@
open OrderTypes
open LogicUtils
-let getDateCreatedObject = () => {
- let currentDate = Js.Date.now()
- let filterCreatedDict = Js.Dict.empty()
- let currentTimestamp = currentDate->Js.Date.fromFloat->Js.Date.toISOString
- Js.Dict.set(
- filterCreatedDict,
- "lte",
- Js.Json.string(currentTimestamp->TimeZoneHook.formattedISOString("YYYY-MM-DDTHH:mm:[00][Z]")),
- )
-
- let prevMins = {
- let presentDayInString = Js.Date.fromFloat(currentDate)
- let prevDateInFloat = Js.Date.getMinutes(presentDayInString) -. 30.0
- Js.Date.setMinutes(presentDayInString, prevDateInFloat)
- }
-
- Js.Dict.set(
- filterCreatedDict,
- "gte",
- Js.Json.string(
- prevMins
- ->Js.Date.fromFloat
- ->Js.Date.toISOString
- ->TimeZoneHook.formattedISOString("YYYY-MM-DDTHH:mm:[00][Z]"),
- ),
- )
-
- Js.Json.object_(filterCreatedDict)
-}
module CurrencyCell = {
@react.component
let make = (~amount, ~currency) => {
@@ -785,38 +756,7 @@ let getCell = (order, colType: colType): Table.cell => {
}
}
-let ordersDefaultCols = Recoil.atom(. "hyperSwitchOrderDefaultCols", defaultColumns)
-
-let getOptionsArr = optionObjArr => {
- optionObjArr->Js.Array2.map(item => {
- let temp: EntityType.optionType<'t> = {
- urlKey: item.urlKey,
- field: FormRenderer.makeFieldInfo(
- ~label=item.label,
- ~name=item.urlKey,
- ~customInput=InputFields.textInput(),
- (),
- ),
- parser: val => {
- val
- },
- localFilter: None,
- }
- temp
- })
-}
-
-// let options: array
> = getOptionsArr(optionObj)
-
-let getDefaultFilters = dateCreatedObject => {
- let dict = Js.Dict.empty()
- let filtersDict = Js.Dict.empty()
- Js.Dict.set(filtersDict, "dateCreated", dateCreatedObject)
- Js.Dict.set(dict, "offset", Js.Json.number(0.0))
- Js.Dict.set(dict, "filters", Js.Json.object_(filtersDict))
-
- Js.Json.object_(dict)
-}
+let _ = Recoil.atom(. "hyperSwitchOrderDefaultCols", defaultColumns)
let itemToObjMapperForFRMDetails = dict => {
{
@@ -888,58 +828,6 @@ let itemToObjMapper = dict => {
}
}
-let datePickerField = (~limit) => {
- FormRenderer.makeMultiInputFieldInfo(
- ~label="Date Range",
- ~comboCustomInput=InputFields.dateRangeField(
- ~startKey="filters.dateCreated.gte",
- ~endKey="filters.dateCreated.lte",
- ~format="YYYY-MM-DDTHH:mm:ss[Z]",
- ~showTime=true,
- ~disablePastDates={false},
- ~disableFutureDates={true},
- ~predefinedDays=[
- Hour(0.5),
- Hour(1.0),
- Hour(6.0),
- Today,
- Yesterday,
- Day(2.0),
- Day(7.0),
- Day(30.0),
- ThisMonth,
- LastMonth,
- ],
- ~numMonths=2,
- ~disableApply=false,
- ~dateRangeLimit=limit,
- ~optFieldKey="filters.dateCreated.opt",
- (),
- ),
- ~inputFields=[],
- ~isRequired=true,
- (),
- )
-}
-
-/* let initialFilterFields: array> = [
- {
- field: makeFieldInfo(
- ~label="Customer Id",
- ~name="customer_id",
- ~customInput=orderFilterInput(),
- ~parse=Parsers.arrayParser,
- ~format=Formatter.numericArrayStringFormat,
- (),
- ),
- localFilter: None,
- },
- {
- localFilter: None,
- field: datePickerField(~limit=7),
- },
-] */
-
let getOrders: Js.Json.t => array = json => {
getArrayDataFromJson(json, itemToObjMapper)
}
diff --git a/src/screens/HyperSwitch/Order/OrderUIUtils.res b/src/screens/HyperSwitch/Order/OrderUIUtils.res
index 2514bd116..49fa5ba7e 100644
--- a/src/screens/HyperSwitch/Order/OrderUIUtils.res
+++ b/src/screens/HyperSwitch/Order/OrderUIUtils.res
@@ -19,16 +19,12 @@ module PaymentLogs = {
let make = (~id, ~createdAt) => {
let {auditTrail} = HyperswitchAtom.featureFlagAtom->Recoil.useRecoilValueFromAtom
let isSmallDevice = MatchMedia.useMatchMedia("(max-width: 700px)")
- let showPaymentLogsComp = auditTrail
-
- {HSwitchOrderUtils.eventLogHeader}
-
-
+
diff --git a/src/screens/HyperSwitch/Order/ShowOrder.res b/src/screens/HyperSwitch/Order/ShowOrder.res
index 6a438365a..bb8945edf 100644
--- a/src/screens/HyperSwitch/Order/ShowOrder.res
+++ b/src/screens/HyperSwitch/Order/ShowOrder.res
@@ -147,17 +147,6 @@ module OrderInfo = {