* Added note to Personalize Store
Added note to Personalize Store, 5 days after registration or when the user completes the task list.
* Lint repeared
Lint error repeared.
* Moved homepage_id < 0 check to OnboardingTasks.php
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
add data store for settings using wp.data
add use-select-with-refresh example
replace fresh-data usage with new settings data store for settings page
Add data package
move to packages
Fix isDirty after save
Add isBusy to primary button when saving
update Readme
remove comment
readme to use useSelect
Revert "update Readme"
This reverts commit 7402fd49b8f384fde5878e0bee0616f0a87bb4f6.
Data Layer: Settings page to use Settings store (https://github.com/woocommerce/woocommerce-admin/pull/3430)
* Data Layer: Settings store as source of truth for settings page
This reverts commit 7402fd49b8f384fde5878e0bee0616f0a87bb4f6.
* fixup
* save on reset
* non mutable constants
* add set/getSettings
* save using setSettings
* separate HOC
* cleanup
* remove settingsToData
* withHydration
* remove withSettings HOC
* renmove useSettins for now
* withSettingsHydration updates
* Revert "withSettingsHydration updates"
This reverts commit f2adf108fbe19b574978fea5925a1a18e7ed3007.
* rename withSettingsHydration
* redo withSettingsHydration simplification
* restore
* useSettings
* render using useSettings
* handleInputChange working
* get setIsDirty working
* saving works
* reset and cleanup
* cleanup
* use snake case on hook files
* use clearIsDirty
* Avoid mutation on setting update
* remove @todo
* persiting -> isPersisting
* better reducer ternaries
* add wcSettings as arg to withSettingsHydration
reset package-lock
Settings: split out mutable wcAdminSettings (https://github.com/woocommerce/woocommerce-admin/pull/3675)
Settings: handle async settings groups (https://github.com/woocommerce/woocommerce-admin/pull/3707)
* Fix AnimationSlider example code buttons
* Fixes disable state logic on forward button
* Fixes back property
* Update readme to indicate AnimationSlider example fix
Before 0.10.0 notes had a default content_data of array(). If stored in the database, these notes would be unable to be loaded. This adds some resiliency to the loading so that invalid content_data fields don't break WC_Admin_Note::set_content_data().
Co-authored-by: Christopher Allford <christopher.allford@automattic.com>
* Make WooCommerce breadcrumbs use WooCommerce branding if it is installed
* Undo everything
* Whoops, add missing reverted code
* Push 'WooCommerce' out to breadcrumbs from the server except for where it is built up on the client
* Pass translated 'WooCommerce' down from the server to the front end
* Fix comment
* Use `admin_url` to build up the URL
Co-Authored-By: Ron Rennick <ron@ronandandrea.com>
* Use admin_url()
Co-Authored-By: Ron Rennick <ron@ronandandrea.com>
* Show WooCommerce breadcrumb on analytics pages
* Stop double appending the admin URL to the root WooCommerce breadcrumb url
Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Ron Rennick <ron@ronandandrea.com>
* Refactor logic for showing dashboard reports and tasklist
* Check for complete option status instead of visible tasks in dashboard
* Update task list status on task list completion
* Track task completion event server-side on option add
* Add option to track previousdly completed events
* Track previously untracked tasks on option update
* Get flat rate and free shipping methods in Rates component
* Update shipping methods by type
* Disable all shipping methods except the one being updated
* Update toggleEnabled to be toggleable for readability
* Check if shipping method has cost before getting value
* remove replace_actionscheduler_store_class function from master
* remove AS store class file
* reuse variable
* Fix test helper queue action cancellation for AS 2.x.x.
* Remove WPPostStore logic from SchedulerTraits.
* Remove dead queue code from WC_Admin_Notes.
Missed in https://github.com/woocommerce/woocommerce-admin/pull/3662.
Co-authored-by: Paul Sealock <psealock@gmail.com>
Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
* Onboarding: Modified the recorded data in profile wizard
In the second step of the profile wizard, now 'industries_with_detail' is a 'string' instead of an 'object'.
* Selected industries converted to a string
Selected industries are converted to a string to send to recordEvent
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
* Add on Cash on Delivery method to payment methods
* Add direct bank transfer method
* Update enabled paymet methods in markConfigured
* Add missing bacs property
* Add bacs styling
* Add isConfigured property to all payment methods
* Remove payment configuration checks from server side
* Add isEnabled flags to all payment methods
* Add payment method toggle methods
* Extract payment methods
* Fix update options selectors
* Add error handling for payment method updates
* Remove configured from saved option
* Add event when payment is toggled
* Check if payment option exists before checking config
* Only fetch PayPal connection URL when plugin is active
* Only fetch Stripe connection URL when plugin is active
* Onboarding: business step: add Google Ads extension install
* Updated extension slug etc to match the extension
* Fix a couple of slugs that were missed
* Remove extra div that was breaking because of an unrelated change (reused class name)
Co-authored-by: Bec Scott <me@becdetat.com>
* Add new payment method cards
* Refactor payment methods
* Track payment configuration and completion client-side
* Record tasklist_payment_connect_method event in markConfigured
* Record event on payment setup
* Add recommended payment method ribbon
* Return to payments task even when previously configured
* Script that hides or shows menu items
* Hook up buttons to task list, hook up options to onboarding-experience to set up the menu
* Fix some little code style issues
* Remove LinkButton in favour of the existing Button in @wordpress/components
* Remove reference to removed style file
* Move menu experience script to /client/wp-admin-scripts to match current style
* Only load the onboarding menu experience script if onboarding is enabled
* Localise some strings
* Separate the "Setup" link from the existing items to avoid conflicts with extensions that modify the menu
* Use the item key instead of title to report back completed tasks
* Change from skip_option to reason to make this easier to grok
* Use existing woocommerce_task_list_hidden option instead of creating a new one
* Tweak options to get menu experience working again
* Simplify skip actions logic
* Preload woocommerce_task_list_do_this_later option
* Nicer event key names
* Clean up the styling
* Remove wcSettings.onboarding check from the task items list in `customizable`
* Remove spinner from customizable
* Fix translated string for WooCommerce menu setup anchor
* Use predef color instead of a hard-coded hex code
* Remove superfluous ={ true } from markup
Co-authored-by: Rebecca Scott <me@becdetat.com>
This commit updates the "WC tested up to" tag to the latest WooCommerce core version to avoid showing an erroneous message to the users in the WooCommerce core system status page saying that WC Admin is not tested with the latest WC version.
* Manually call on_plugins_loaded after loading plugins for testing
* Update import tests to cancel all pending actions in new AS tables
* Fix deprecated next method in AS
* Remove priority queue test for unused priority in AS 3.0
* Check only for pending status actions in batch queue tests
* Add cancel_actions_by_group method to WPPostStore
* Add method to check for next blocking job time
* Force delete scheduled actions on older versions of AS