* Add PluginInstaller class
* Redirect to referring page if one exists
* Store message and show after redirect
* Add transient notices feature
* Fix default and empty state of notices
* Use TransientNotices to display plugin notices
* Add transient notices readme
* Add feature unit tests
* Update notice queue client-side
* Add filter to queued option prior to notice creation
* Use the core/notices2 data store
* Fix filtered queued notices
* Add methods to get individual notices and queue
* Allow user ID specific notices
* Remove errant script asset dependencies
* Add user ID property to docs
* Use preloaded option instead of window var
* Refactor transient notices to directly use option instead of state
* Show error message from WP_Error in plugin installer
* Add tests around notice queue in client
* Add changelog entry
* Add notes helper method for date ranges
* Update two of the notes with date ranges
* Add tests and fix range logic
* Add changelog
* Update comments
* Update range name and added exception if invalid range passed in.
* Fix php unit tests
* Fix another test
* Update the get_script_asset_filename function calls to match new format
* Added e2e test for the coupons page
* Add changelog
* Remove typo in changelog
* Add initial task item component with the new task list
* Switch components to functional components
* Some minor updates from the last rebase
* Fix missing variables.
* Fix tests
* Add animation for the experimental list
* Fix lint error
* Add changelog
* Fix E2E tests
* Update PR suggestions and export list from experimental package
* Fix dismiss styling issue
Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
A custom exception `NotesUnavailableException` will be thrown on attempts to load the "admin-note" data store using the `Notes::load_data_store()` method introduced in this PR.
All calls to `\WC_Data_Store::load( 'admin-note' )` were replaced with calls to the above method.
* Add login page wait script for e2e tests
* Re-navigate to login page, if initial selector does not exist
* Add screenshot if login page did not render
* Add screenshot code, and screenshot artifacts to GH action
* Update screenshot logic for login
* Update artifact task
* Update upload artifact workflow
* Update jest config to make sure the screenshots work on test failures
* Remove old screenshot code
* Add screenshots to daily e2e tests as well incase of failure
* Add changelog
* Add initial payment recommendations code for the payments settings
* Added request data for the recommended payments
* Some styling updates and make sure it does not show when marketplace suggestions is disabled
* Update url
* Update comment in php class
* Add tests
* Fix lint errors
* Remove unnecessary type
* Fix lint error
* Fix broken test
* Convert plugin package to typescript
* Fix lint errors
* Add changelog
* Add support for locale-data
* Fix track name
* Fix up the tests
* Fix lint errors
* Address PR feedback
* Add tests for option hydration
* Make types more robust in plugins reducer
* Made use of SlotFill component instead of page registry and router
* Removed console log, and fixed types
* Add newer version of i18n to data package, for newer types
* Make the request to WooCommerce.com more restrictive
* Fix path of import
* Update PHP with suggested changes
* Remove SlotFill with applyFilters
* Update copy and PR feedback
* Update package lock
* Updated package lock
* Fix the package lock
* Added dot, and some minor styling changes
* Add test instructions
* Allow any plugin to be installed or activated
* Add PluginInstaller class
* Redirect to referring page if one exists
* Store message and show after redirect
* Add changelog and testing instructions
* Add database columns
* Add support for nonces in note actions
* Add test for nonces in note actions
* Fix db values should default to null
* Fix a bug where URLs had encoded ampersands
* Update variable naming for clarity
* Add throwing an exception when note name not found
* Add tests for nonces in the datastore
* Add changelog
* Fix default paramater name
* Add changelog
* Revert "Add changelog"
This reverts commit f842bc58e4db66c8a497ca4f38d1b0294590192d.
* Partial local version to run php8 unit tests
* Remove the post install scripts
* Remove tab
* Make sure woocommerce version contains patch number
* Remove unnecessary script
* Update bin settings and unit test script
* Remove phpunit binary
* Updated how php unit is being run
* Add specific phpunit version for php8
* Update bin phpunit composer.json
* Final cleanup of scripts
* Fix potential test where image is an object
* Move setting image below save
* Add changelog
* Do not convert obj/array to string for email_actions
* Remove some uses of tabs
* Set WP and WC version to minimum php 8 supported
* Remove unnecessary composer install within tests
* Add warning and default to empty array for contains operation, when value is not array
* Add changelog
* Move option is array check and warning to the OptionRuleProcessor
* Added a check for the new_value as well, given we do the same for the old_value
* Initial playwright
* Updated e2e to use playwright and typescript
* Update set up environment and jest package
* Add changelog
* Add await to uncheck
* Fix formatting
* Revert jset back to ~24, as >25 runs slower, see facebook/jestwoocommerce/woocommerce-admin#9457
* Removed some unnecessary uses of waitForSelector
* Fix eslint issue
* Fix the e2e tests with latest updates
* Running most tests, with typescript now
* Fix any outstanding queries for the tests to work
* Update changelog
* Remove unnecessary jest version and unnecessary transform setting
* Fix test case broken after rebase
* Add fix to make e2e tests more robust
* Making sure dropdown value is correct
* Reove the wcpay condition for features number
Fixeswoocommerce/woocommerce-admin#6488
Changes.
* See the issue for the discussion, but we're changing the behaviour of triggering the connection flow as part of this. Before it was required that both wc-services and wc-admin were installed before triggering the flow.
* Also the plugins value was not being updated properly in the new flow, but plugins is not used in any useful way in the onboarding profile, so I have removed it completely. We now rely on the actual installed plugins to determine what is installed/activated.
* Added "MailPoet" option to new Business Details step
This commit adds "MailPoet" option to the new Business Details step
* Modified the Creative Mail copy
* Added changelog
* Added testing instructions
# Conflicts:
# TESTING-INSTRUCTIONS.md
* Fixed testing instructions
* Fixed e2e tests
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
* Add tilde option for client root directory
* Support tilde start as internal to fix lint issues
* Update baseUrl and paths so auto complete works correctly
* Add changelogs
* Add eslint support for webpack resolvers
Co-authored-by: Matt Sherman <matt@jam123.com>
* Fixed related orders problem
This commit fixes the related orders problem
* Fixed customer type query
* Fixed get_order_number filtering
* Added a default value to totalResults
This commit adds a default value to totalResults (in order to avoid errors)
* Added testing instructions
# Conflicts:
# TESTING-INSTRUCTIONS.md
* Added changelog
# Conflicts:
# readme.txt
* Fixed orders without products
* Added tests
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
* Prune out old bundle flow and expand range of new one
* Add feature flag, default to true
* Update feature flag, and updated WcPay logic
* Fix lint errors
* Add changelog
* Onlly show WC payments task if part of the business extensions
* Remove stray console log
* Update copy of WCPay card
* Add a couple more e2e tests
* Add await for click
* Add test instructions
* Fixed hiding core task list
This commit fixes the hiding of the core task list
* Added tests
* Added fix to readme.txt
* Fixed readme.txt
* Added new test
* Hooks were fixed
* Refactored task lists handling
This commit refactors a few things related to the task lists handling
* Added tests
* Fixed task lists handling
* Fixed tests
* Renamed 'taskListHidden' to 'taskListsHidden'
* Added taskListsHidden util
* Fix completed tasks tracking infinite loop
This commit fixes the completed tasks tracking infinite loop (for multiple extended tasks)
* Refactored update check
* Hide task list if there aren't any visible tasks
* Fixed comment
* Fixed typo
* Renamed example method
* Fixed example extension
* Added tab to the extension example
* Fixed extended task list enabling option
* Added more tests
* Added PHP tests
* Fixed some comments
* Removed utils.js file
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
* Delete all products before running tests
* Delete products in tear down instead
* Only remove the color attribute, as other attitributes are necessary in other tests
* Make assertion more lenient, and remove all products deletion
* Fix lint errors
* Changed to check if imported is at-least 2 items
* Initial product template modal
* Add custom product template for the new-post route
* Add test, and code for making use of the insert_post action
* Added ProductTemplates Datastore to create template with REST api
* Add back variation method, deleted by accident
* Move product from template endpoint to OnboardingTasks class
* Fix lint errors
* Added tracks and template hooks
* Rename product create permission check function, for less confusion
* Remove duplicate recommended option
* Fix stylelint errors
* PHP tests for the product_from_template endpoint
* Fix onboarding php unit tests
* Write tests for client product template options
* Refactored list component, to use it as a radio control list
* Fix lint errors
* REmove assertion as it fails on the ci
* Add changelog
* Updating tests to make sure all product attribute taxonomies are removed
* Add more specific assertions for importing sample products test
* Update the sample products test
* Deconstruct item object, from PR suggestion
* Fix PHP errors, by updating the createProductFromTemplate call