From da9a7fa5ce03ded823a5cd45d5eea2871704b5f4 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Mon, 5 Feb 2024 12:28:46 +0530 Subject: [PATCH] chore: Remove Customers Module Feature flag (#336) --- README.md | 4 ---- config/FeatureFlag.json | 1 - src/entryPoints/hyperswitch/FeatureFlagUtils.res | 2 -- src/entryPoints/hyperswitch/HyperSwitchApp.res | 4 +--- src/entryPoints/hyperswitch/SidebarValues.res | 9 +++------ 5 files changed, 4 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index de312d8d8..0b5987d27 100644 --- a/README.md +++ b/README.md @@ -158,10 +158,6 @@ The `production_access` feature flag enables a flow for users to request live pr The `quick_start` feature flag enables the simplified onboarding flow for new users, where they connect to processors, configure payment routing and test a payment, all in one flow. -#### Customers Module - -The `customers_module` feature flag enables the customers module in dashboard. Users can see the customers and their details via enabling this flag. - --- ## Deployment diff --git a/config/FeatureFlag.json b/config/FeatureFlag.json index 9be490978..7b23378dd 100644 --- a/config/FeatureFlag.json +++ b/config/FeatureFlag.json @@ -22,7 +22,6 @@ "forgot_password": false, "user_journey_analytics": false, "surcharge": false, - "customers_module": false, "permission_based_module": false, "dispute_evidence_upload": false, "paypal_automatic_flow": false diff --git a/src/entryPoints/hyperswitch/FeatureFlagUtils.res b/src/entryPoints/hyperswitch/FeatureFlagUtils.res index f28768982..f9c974864 100644 --- a/src/entryPoints/hyperswitch/FeatureFlagUtils.res +++ b/src/entryPoints/hyperswitch/FeatureFlagUtils.res @@ -23,7 +23,6 @@ type featureFlag = { forgetPassword: bool, userJourneyAnalytics: bool, surcharge: bool, - customersModule: bool, permissionBasedModule: bool, disputeEvidenceUpload: bool, paypalAutomaticFlow: bool, @@ -57,7 +56,6 @@ let featureFlagType = (featureFlags: JSON.t) => { forgetPassword: dict->getBool("forgot_password", false), userJourneyAnalytics: dict->getBool("user_journey_analytics", false), surcharge: dict->getBool("surcharge", false), - customersModule: dict->getBool("customers_module", false), permissionBasedModule: dict->getBool("permission_based_module", false), disputeEvidenceUpload: dict->getBool("dispute_evidence_upload", false), paypalAutomaticFlow: dict->getBool("paypal_automatic_flow", false), diff --git a/src/entryPoints/hyperswitch/HyperSwitchApp.res b/src/entryPoints/hyperswitch/HyperSwitchApp.res index 09bc59cb7..7fa145204 100644 --- a/src/entryPoints/hyperswitch/HyperSwitchApp.res +++ b/src/entryPoints/hyperswitch/HyperSwitchApp.res @@ -281,9 +281,7 @@ let make = () => { /> | list{"customers", ...remainingPath} => - + { }) } -let operations = (isOperationsEnabled, customersModule, ~permissionJson) => { +let operations = (isOperationsEnabled, ~permissionJson) => { let payments = payments(permissionJson) let refunds = refunds(permissionJson) let disputes = disputes(permissionJson) @@ -115,9 +115,7 @@ let operations = (isOperationsEnabled, customersModule, ~permissionJson) => { name: "Operations", icon: "hswitch-operations", showSection: true, - links: customersModule - ? [payments, refunds, disputes, customers] - : [payments, refunds, disputes], + links: [payments, refunds, disputes, customers], }) : emptyComponent } @@ -387,13 +385,12 @@ let useGetSidebarValues = (~isReconEnabled: bool) => { userJourneyAnalytics: userJourneyAnalyticsFlag, surcharge: isSurchargeEnabled, isLiveMode, - customersModule, } = featureFlagDetails let sidebar = [ productionAccess->productionAccessComponent, default->home, - default->operations(customersModule, ~permissionJson), + default->operations(~permissionJson), default->analytics(userJourneyAnalyticsFlag, ~permissionJson), default->connectors(isLiveMode, ~permissionJson), default->workflow(isSurchargeEnabled, ~permissionJson),