* Move API instance generation into functions to ensure they don't run on import.
* Dont use extraneous variables, call singleton fns directly.
* Get rid of accidental change
* Add core profiler - welcome to woo page
* Update checkbox styles
* Add tracks
* Update default tracking value
* Update copies
* using invoked promise instead of useState
- take advantage of xstate's built ins for side effects instead of useEffect/hooks
- discovered that error result wasn't really handled in original useEffect
- use text labels instead of inline functions so that we can decouple the implementation from the machine model
- todo: can move the invoked function out elsewhere and also tests if needed (not necessary here because it's a simple call)
* add: core profiler scaffolding using xstate
* Add navigation and progress-bar components
* fix css lint error
* Update plugins/woocommerce-admin/client/core-profiler/components/navigation/woologo.tsx
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
* Update plugins/woocommerce-admin/client/core-profiler/components/progress-bar/progress-bar.tsx
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
* Update plugins/woocommerce-admin/client/core-profiler/components/navigation/navigation.tsx
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
* Remove var from __ function
* Use woocommerce prefix for classnames
* Fix css lint error
* Fix broken tests
* Add business location page
* Remove unwanted changes from rebase
* Remove unwanted changes from rebase
* Redirect to Woo Home on exit
* Add tracks
* Fix js lint error
* Add loader page
* Support meta value from nested states
* Use navigateTo
* Add tests for getCountryStateOptions
* Use Country type from navigation package
* Rename useStages to getLoaderStageMeta
* Add changelog
* Move progress from 20 to 80
* Fix xstate warning
* Fix broken pnpm lock
* Fix eslint errors
* Update plugins/woocommerce-admin/client/core-profiler/services/country.ts
Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
* Update plugins/woocommerce-admin/client/core-profiler/index.tsx
Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
* Save country to option
* Fix jslint error
* Update plugins/woocommerce-admin/client/core-profiler/services/country.ts
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
* Update plugins/woocommerce-admin/client/core-profiler/style.scss
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
* Fix eslint error
* Use decodeEntities directly
* Update comment for artificial 3 seconds wait
* Disable Go to my store button when country is empty
* Style for mobile devices
* Style updates for the country dropdown
* Fix js lint error
* Update country dropdown border color
* Style the loader
* Fix css lint
---------
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: rjchow <me@rjchow.com>
Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
* Add `aria-describedby` to select options button
* add a changelog
* update the chnagelog file
* fix type
* fix the function name
* remove `aria-describedby`s if with value
* suggestions implemented
* Minor PHPCS fixes
---------
Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
We change the behavior of how we decide whether to continue or stop the migration. Earlier, when deciding, we were counting all pending orders which was slow especially on large sites, and will continue to get slower as the migration processes. However, now we will only fetch if there is any order that needs migrating to decide whether to go ahead with the migration or not, which should be much faster then calculating the total count.
* Add create-page.spec.js
Create e2e test for Critical Flow: Merchant > Pages > Can create a new page
* Add changelog entry
* Update selector for close dialog
---------
Co-authored-by: Jon Lane <jon.lane@automattic.com>
* Create new attribute to calculate more accurately if activity tab has something "new"
* Fix wrong attribute name
* Revert previous change, rename functions and remove isPanelOpen clause from hasAbbreviatedNotifications logic
* Rename functions
* Updated `wp-env` To 7.0.0
* Adopted `wp-env` Changes To `update-wp-env.php`
* Updated E2E Test Bootstrapping
With the changes to `wp-env` we can update our
test bootstrapping to use the new functionality.
* Changelogs
* Restored `update-wp-env.php` Usage
There's a bit of work to do in support of this and I
don't want it to hold up the pull request!
* Fixed `wp-env` JSON Problems
It was writing an empty array in places where the
expectation was an empty object.
* Fixed Broken Echo Escape
* Fixed Init Quoting
* Update close button locator
* Reverted Quote Removal
There is an upstream bug relating to quotes that needs to be resolved!
* Reverted Quote Removal
---------
Co-authored-by: rodelgc <rodel.calasagsag@automattic.com>
* Add single mode for SelectTree
* Add storybook example for single selection in SelectTree
* Add changelog
* Improve type definitions and refactor code
* Add onRemove to story
* Add test for inbox_note_view event
* Add tracks test for Layout's page_view
* Add test to inbox_action_click
* Add tests to analytics_filter tracks event
* Add tracks event test to activity_panel_open
* Add tests to tracks event activity_panel_orders_orders_begin_fulfillment
* Add tracks tests to activity_panel_stock_update_stock
* Improve tests based on code review comments
* Mock recordEvent and recordPageView globally
* Add missing mock
* Improve inbox panel tests