de337d581c
* Update Payments menu item display and linking behavior (#51541) * Minor cleanup * refact: Rename must_be_visible to is_incentive_visible for clarity * refact: Rename register_payments_welcome_page to register_menu_and_page for clarity * Don't show the incentive page if the user can't manage WC * Introduce menu item when no incentive * Don't recommend additional gateways when WCPay is present * Render gateway suggestions on the WCPay task page, also * Add changelog entry * Remove short array syntax * Lint fixes * Simplify Payments task view logic * Simplify WooPayments task view logic * Improve WooPayments task complete logic * WooPayments can't be connected or onboarded if it is not active * refact: Rename private static method * Improve logic to determine the Payments task slug by factoring in the extended task list also * docs: Add details about our use of the Payments task logic * Add type hint * Do not recommend offline methods when WooPayments is supported * On suggestion enablement redirect to the same task page * Lint fixes * test: Fix unit tests * Maintain deprecated navigation logic * Prep for cherry pick 51541 --------- Co-authored-by: Vlad Olaru <vlad.olaru@automattic.com> Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com> |
||
---|---|---|
.. | ||
components | ||
fills | ||
hooks | ||
progress-title | ||
reminder-bar | ||
setup-task-list | ||
test | ||
index.ts | ||
task-lists.scss | ||
task-lists.tsx |