From e0a82d3532c32ac86560274da3e6a435d0a082aa Mon Sep 17 00:00:00 2001 From: Dat Hoang Date: Tue, 2 Dec 2025 12:41:22 +0700 Subject: [PATCH 1/3] Account Details: Remove the feature flag to open up this feature to all sites --- ...he-feature-isaccountdetailsenabled-flag-on-the-client-side | 4 ++++ client/overview/index.js | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side diff --git a/changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side b/changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side new file mode 100644 index 00000000000..23e7f56fbd8 --- /dev/null +++ b/changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Open up new Account Details in the Overview page by removing the feature flag diff --git a/client/overview/index.js b/client/overview/index.js index 9672b7a287c..075ac0d4be0 100644 --- a/client/overview/index.js +++ b/client/overview/index.js @@ -65,7 +65,6 @@ const OverviewPage = () => { accountLoans: { has_active_loan: hasActiveLoan }, overviewTasksVisibility, wpcomReconnectUrl, - featureFlags: { isAccountDetailsEnabled }, accountDetails, } = wcpaySettings; @@ -376,7 +375,7 @@ const OverviewPage = () => { ) } - { isAccountDetailsEnabled && accountDetails ? ( + { accountDetails ? ( Date: Wed, 3 Dec 2025 11:52:39 +0700 Subject: [PATCH 2/3] Enable Account Details feature flag by default --- ...the-feature-isaccountdetailsenabled-flag-on-the-client-side | 2 +- client/overview/index.js | 3 ++- includes/class-wc-payments-features.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side b/changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side index 23e7f56fbd8..9929272e4d7 100644 --- a/changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side +++ b/changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side @@ -1,4 +1,4 @@ Significance: minor Type: add -Open up new Account Details in the Overview page by removing the feature flag +Open up new Account Details in the Overview page by enabling the feature flag by default diff --git a/client/overview/index.js b/client/overview/index.js index 075ac0d4be0..9672b7a287c 100644 --- a/client/overview/index.js +++ b/client/overview/index.js @@ -65,6 +65,7 @@ const OverviewPage = () => { accountLoans: { has_active_loan: hasActiveLoan }, overviewTasksVisibility, wpcomReconnectUrl, + featureFlags: { isAccountDetailsEnabled }, accountDetails, } = wcpaySettings; @@ -375,7 +376,7 @@ const OverviewPage = () => { ) } - { accountDetails ? ( + { isAccountDetailsEnabled && accountDetails ? ( Date: Wed, 3 Dec 2025 16:22:06 +0700 Subject: [PATCH 3/3] fix tests --- tests/unit/test-class-wc-payments-features.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/test-class-wc-payments-features.php b/tests/unit/test-class-wc-payments-features.php index a719cff4aa6..65b867fb93c 100644 --- a/tests/unit/test-class-wc-payments-features.php +++ b/tests/unit/test-class-wc-payments-features.php @@ -26,7 +26,8 @@ class WC_Payments_Features_Test extends WCPAY_UnitTestCase { private $mock_wcpay_account; const FLAG_OPTION_NAME_TO_FRONTEND_KEY_MAPPING = [ - '_wcpay_feature_customer_multi_currency' => 'multiCurrency', + '_wcpay_feature_customer_multi_currency' => 'multiCurrency', + WC_Payments_Features::ACCOUNT_DETAILS_FLAG_NAME => 'isAccountDetailsEnabled', ]; public function set_up() {