woocommerce/plugins/woocommerce-admin/client
RJ 68cdc2941c
add: render react placeholders for offline and woocommerce_payments settings sections (#50008)
* Added a whitelist of sections to render an alternative output in the WC_Settings_Payment_Gateways_React class.

* Renamed constant and updated its contents to only include 'offline'

* Added a branch in the `output()` method to output an appropriate div with an id if the current section is in the whitelist.

* Added "experimental" prefix to payment settings div ID.

* Replicated the render for the offline section similar to the main payments settings.

* Added a new settings-payments-offline screen to the WooCommerce admin plugin.

* Implemented new offline settings page component.

* Removed the ErrorBoundary components from the SettingsPaymentsMainWrapper and SettingsPaymentsOfflineWrapper.

* Added a new SettingsPaymentsOfflineWrapper component and its corresponding SCSS styles.

* Implemented the WooCommerce Payments section in the settings page.

* Removed WooCommerce Payments settings logic and replaced with a placeholder.

* Added a placeholder for the offline payments screen.

* Added 'main' to the REACTIFY_RENDER_SECTIONS array and refactored the output method to improve readability and maintainability.

* Renamed `render_gateway_section` method to `render_classic_gateway_settings_page` in the `class-wc-settings-payment-gateways-react.php` file.

* Added a filter for the REACTIFY_RENDER_SECTIONS so that plugins can modify this list.

* Added inline documentation for the filter in the `get_reactify_render_sections` method.

* changelog

* Matched the CSS styles for the WooCommerce Payments section to the offline section.

* Removed unnecessary Card component and placeholder text from WooCommerce Payments settings.

* Linted the `class-wc-settings-payment-gateways-react.php` file, addressing the reported linting issues.

* Refactored the payment settings UI to use React components and lazy loading.

* lint

* Nit: Removed unnecessary comment and moved a small code

* Update name to experimental

* Fix save button missing from section pages

* Fix saving sections

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2024-07-26 20:55:19 +08:00
..
activity-panel Rename Google Listings and Ads with Google for WooCommerce (#47614) 2024-07-22 18:59:43 +04:00
analytics [WooCommerce Analytics] Add Guest label when no customer name (#49594) 2024-07-17 21:12:11 +04:00
core-profiler Core profiler: set default for props to avoid crashes (#49519) 2024-07-23 10:45:58 +08:00
customize-store CYS - Update the intro pages for different type of themes (#49910) 2024-07-24 18:09:12 +02:00
dashboard [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
embedded-body-layout Fix Layout Controller forwarding arrays from the URL query string. (#38593) 2023-06-05 04:55:20 -03:00
error-boundary Wrap activity panels in error boundary (#48415) 2024-06-17 13:05:11 +08:00
guided-tours Update @automattic/tour-kit to 1.1.3 and @automattic/components to 2.1.1 (#47129) 2024-05-09 08:56:08 +08:00
header Reduce redundant LYS option API Calls (#48303) 2024-06-11 13:28:05 +08:00
homescreen Store Alerts: Update widths to match main body (#48487) 2024-06-28 08:37:25 +12:00
hooks Add variation switcher in footer for variation page (#40713) 2023-10-12 11:56:48 -03:00
inbox-panel Add tests to tracks events fired through JS (#38124) 2023-05-10 09:36:42 -03:00
launch-your-store Update link to caching documentation in store launch message (#49961) 2024-07-26 09:46:43 +00:00
layout [Store Alerts] Adjust inner styles (#49174) 2024-07-16 06:19:33 +00:00
lib Fix variation name in WC Analytics Variations report (#49440) 2024-07-15 16:55:06 +08:00
marketing Rename Google Listings and Ads with Google for WooCommerce (#47614) 2024-07-22 18:59:43 +04:00
marketplace [Store Alerts] Adjust inner styles (#49174) 2024-07-16 06:19:33 +00:00
mobile-banner Stylelint: Update config to double quotes (#45607) 2024-03-26 10:41:34 -03:00
navigation Remove onboarding welcome modals (#48346) 2024-06-13 10:39:21 +08:00
payments Add reactified main payments screen (#49972) 2024-07-26 12:40:18 +08:00
payments-welcome Add new shared payment methods logos component (#49300) 2024-07-16 17:42:52 +03:00
products Address React 18 race condition issue and `setCategories` console error (#49642) 2024-07-22 09:22:35 -03:00
profile-wizard [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
settings Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
settings-payments add: render react placeholders for offline and woocommerce_payments settings sections (#50008) 2024-07-26 20:55:19 +08:00
settings-recommendations [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
shipping Don't recommend WCS&T on shipping settings page if WCShip or WCTax is active (#48701) 2024-06-27 15:36:00 +02:00
store-management-links fix: fixed all instances of no-use-before-define lint rule violations 2023-11-16 19:21:30 +08:00
stylesheets Optimize text wrapping prevent orphans (#48131) 2024-06-06 09:42:06 +08:00
task-lists Update the footer section in "Add products" task (#49782) 2024-07-23 21:31:46 +08:00
typings add: reactify payments settings feature flag (#49966) 2024-07-25 12:48:34 +08:00
utils fix: lys hub show only incompleted and recent tasks (#46190) 2024-04-05 09:54:30 +08:00
wp-admin-scripts Add Woo product usage notice (#47697) 2024-07-17 16:38:08 +07:00
index.js add: render react placeholders for offline and woocommerce_payments settings sections (#50008) 2024-07-26 20:55:19 +08:00
jest.config.js Fix Jest Preset (#42707) 2023-12-12 09:58:13 -08:00
tsconfig.test.json Update admin tsconfig to isolated from other projects 2022-04-15 13:50:18 +08:00
xstate.js dev: disable xstate inspector in prod build (#46109) 2024-04-03 13:53:19 +08:00