Commit Graph

49438 Commits

Author SHA1 Message Date
RJ 046fb2100e
Dev: remove vscode typescript build task (#34278)
* dev: remove vscode tsc build task

* dev: remove .gitignore entry for vscode build task
2022-08-11 17:08:44 +08:00
Jorge A. Torres 055ed34c0d
[COT] Add support for /v3/orders (#34178)
* Use WC_Order_Query for REST API v3 requests when COT is enabled

* Remove pre-COT internal meta keys from metadata in REST order responses

* Add changelog

* Add unit tests

* Fix test in `ProductAttributesLookup\FiltererTest`

Some tests in this class relied on a particular ordering of an array of IDs returned by a query with an `ORDER BY` that doesn’t really disambiguate sorting (all rows have the same values for the fields). As such, `assertEquals()` can’t be used to make sure arrays had the same values.

* Use `get_internal_meta_keys()` from a CPT instance to hide certain meta on COT REST response

* Move COT REST test outside of the COT datastore tests

* Fix typo

* Remove unnecessary imports
2022-08-11 13:11:18 +05:30
RJ 8af95fb700
fix: removed Step 1 of 1 for 1 step tours (#34249) 2022-08-11 11:42:07 +08:00
Chi-Hsuan Huang 831c9fcab3
Keep the user in the marketing task after installing an extension (#34241)
* Keep the user in the marketing task after installing an extension

* Add changelog
2022-08-11 08:56:58 +08:00
Roy Ho 42deef4a52
Add cherry pick tool workflow (#34160)
* Add cherry pick tool workflow

* Update cherry pick workflow

* Add Slack ping overrides

* Update .github/workflows/cherry-pick.yml

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>

* Update logic to be more clear

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
2022-08-10 16:36:59 -07:00
Sam Seay ed912cb984
Fix wp-env to 5.0.0 until we can fix issues causing it to crash in CI (#34267) 2022-08-11 11:07:09 +12:00
Sam Seay c10d34742b
Ensure that schema and DB changes are reported to the changes JSON file, fix reporting bugs(#34238) 2022-08-11 10:49:20 +12:00
Seghir Nadir 0a9c0049b3
support single_select_page_with_search in WC REST API (#34234)
Support single_select_page_with_search in WC REST API
2022-08-10 14:37:53 -07:00
Chi-Hsuan Huang 58ff656764
Remove @wordpress/eslint-plugin from woo admin package.json (#34240)
* Remove @wordpress/eslint-plugin from woo admin package.json

* Add changelog

* Update pnpm-lock.yaml
2022-08-10 14:45:40 +08:00
Moon dd794e8e26
Update/34063 store location skip btn (#34176)
* Make ProfileItems properties optional

* Remove skip button codes and replace them with SkipButton component

* Add SkipButton component

* Add changelog

* Add back continue button callback

* Apply popover styles globally

* Add skip button on the industry step

* Add skip button on the product types step

* Add skip button on the Business Details step

* Support onSkipped callback

* Record skip event

* Add skip event track for industry, product types, and business details

* Add SkipButton to the theme step

* Update snapshot

* Change track name to separate business details and free features

* Add changelog

* Remove unused code

* Update product types test snapshot

* Add back UsageModal on Continue click

* Update e2e tests to use Skip

* Use button selector for skip btn

* Fix duplicate event dispatch

* Do not call onClose and onContinue during the rendering -- it causes cannot update a component while rendering a different warning. Instead, call them when the button is clicked

* Skip the profiler without rendering usage modal when woocommerce_allow_tracking is set

* Skip the profiler without rendering usage modal when woocommerce_allow_tracking is set

* Go to the next step when allowTracking is yes
2022-08-08 21:08:03 -07:00
Paul Sealock 2fe344e2af
Remove cherry-picked 34209 changelogs (#34216)
remove wc-admin changelogs
2022-08-09 11:15:52 +12:00
Néstor Soriano cc779db83c
Add the woocommerce_cart_session_initialize-hook (#34156)
* Add the woocommerce_cart_session_initialize-hook

* Add changelog file
2022-08-08 16:54:44 -03:00
Oliver Juhas bb02983893
Accessibility: Adding missing form field and table header labels to template files (#31211)
Add screen reader labels to improve accessibility in various locations.

* Adding missing table header labels
* Adding missing form field labels
* Adding missing form field label
* Adding missing form field labels — Ideally we would add these with `<labe>` tag (may be hidden with `screen-reader-text` class), but playing safe here to prevent CSS style issues.
* Adding missing form field label
* Changing `aria-label` attribute to actual `<label>` tag
* Rebase; add changelog.

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-08-08 12:32:51 -07:00
Vedanshu Jain fe27a9a87c
Add various Util methods to OrderUtil class (#34141)
Add method in utils to check whether posts and order tables are in sync.

* Add changelog.
* Fix Yoda condition

Co-authored-by: Nestor Soriano <konamiman@konamiman.com>
2022-08-08 11:28:35 -07:00
nigeljamesstevenson fbb6bd1c53
Add e2e test to check ability to add and remove regions from shipping… (#34187)
* Add e2e test to check ability to add and remove regions from shipping zone

* Add changelog file

* skip test in order to check CI

* add skipped test back in

* group shipping zone tests to avoid concurrency issues

* update assertions relevant to added zone region

* update test file

* update test to select appropriate delete based on other tests

* Ensure the correct Shipping Zone has been removed

* remove attempt to delte zone via front end as API call will handle this
2022-08-08 11:26:35 -06:00
Chi-Hsuan Huang af97aaf410
Migrate @woocommerce/data settings store to TS (#34184)
* Migrate wc.data.settings to TS

* Correct data.settings type

* Fix wc admin client type errors

* Add changelog

* Add changelog

* Update types

* Update RawSetting type
2022-08-08 13:25:46 +08:00
Chi-Hsuan Huang 3bbee139ed
Update "Add store details" task complete logic (#34206)
* Update store details task complete logic

Mark as completed if the store address, city and postcode are set.

* Add changelog

* Update store details test
2022-08-08 13:21:10 +08:00
Fernando 88c7cfb628
Fix Customer Effort Score Tracks (#34209)
* Rename sent prop (CustomerEffortScore)

* Add changelog

* Fix changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-08-05 15:40:01 -03:00
Jorge A. Torres c2cd415ab5
[COT] Misc test fixes (#34210)
* Stop resetting all definations in DI to not initialize hooks again.

* Adjust setting test to account for COT feature.

* Support temporary tables.

* Add changelog

Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2022-08-05 11:08:35 -07:00
Néstor Soriano 3a76aa4255
Disable the WordPress.PHP.YodaConditions.NotYoda phpcs rule (#34204) 2022-08-05 10:39:55 +02:00
Ilyas Foo bc98010cd3
Fix set default homescreen layout after setup task completion or dismissal (#34191)
* Add set layout function after setup task completion or dismissal

* Add test

* Changelog
2022-08-05 15:53:11 +08:00
RJ f3e436f991
fix: type definition issues related to pnpm hoisting rules in preparation for pnpm 7 upgrade (#34154)
- added missing TS definition dependencies
2022-08-05 15:19:08 +08:00
Néstor Soriano a397168a37
Disallow/discourage Yoda comparisons in the WooCommerce codebase (#34185)
- Use the built-in phpcs sniff for "includes" (as warnings)
- Use the slevomat coding standards package for the rest of the code
  (as errors, with the ability to auto-correct)
2022-08-05 09:02:20 +02:00
Jorge A. Torres 7a1999ec86
[COT] `query()` method: add support for date queries (#34119)
* Add some date-related query arg mappings

* Add `join()` utility method

* Add support for date_query

* Add date_query tests

* Add changelog

* Address feedback

* ‘type’ not yet implemented

* Remap legacy date columns too
2022-08-05 08:59:12 +05:30
Sam Seay 5becf47d60
Simplify turbo commands (#34055)
* Change package json commands and turbo repo config to allow for greatly simplifying running turbo
* Remove require-turbo script which was causing caching issues
* Colorize CI output from scripts
* Add missing changelog script to extend-cart-checkout-block
2022-08-05 12:03:17 +12:00
Alba Rincón 4a4de7a7f6
Hide the customizer when the active theme is a FSE theme (#34022)
Only register the customizer and related scripts when the active theme is a classic one.

* See https://woofse.wordpress.com/2022/06/07/pt-ensure-customizer-doesnt-show-up-with-block-themes-active-2/
* Skip the test if the WP version is not compatible with the block theme.
* Move the condition to avoid the class instantiation when theme is fse.
2022-08-04 09:57:50 -07:00
louwie17 339756ff7a
Add/32 react provider to form component (#34082)
* Add a FormContext to the Form component, to prevent the need for property drilling

* Add changelog

* Add PR number to changelog

* Replace some of the unknown types with any types to keep things more generic
2022-08-04 11:14:16 -03:00
louwie17 470fc899e1
Add/33 two column product page layout (#34113)
* Add product page layout components

* Add a quick sample page to test the product form layout

* Add changelog

* Add option 2

* Refactor the product field layout structure

* Update page component structure of product form

* Add simple SlotFill support

* Update product page chunk name

* Add order to slot fill and move product field layout wrapper into product category layout

* Remove unused import

* Consolidate the slot fill ordering logic

* Rename category component to section component to prevent confusion

* Remove edit product page and use the new add product page instead

* Add tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-08-04 10:15:30 -03:00
Vedanshu Jain 5f0efcf02f
Fixes a WP nightly unity test (#34190)
* Dont check for cache when there are no cached templates.

* Add changelog.
2022-08-04 10:00:39 -03:00
Néstor Soriano 0e0212254e
[COT] Add unique key constraints for the addresses and operational data tables (#34144)
* Add unique constraints to the COT addresses and operational tables

* Add changelog file
2022-08-04 16:52:08 +05:30
RJ 75f6ec3a43
dev: refactor Homescreen component to use useQuery hook (#34183)
- added useQuery hook for usage in functional components
- refactored Homescreen component to useQuery instead of prop drilling
2022-08-04 16:57:53 +08:00
Chi-Hsuan Huang cb87be1552
Update store location profiler (#34153)
* Update store details unit tests

* Update store details subheading and field order

* Update obw store details e2e tests

* Add changelog

* Add changelog

* Update Store owner can go through setup Task List test
2022-08-04 09:02:50 +08:00
Fernando 835f3d548e
Add/42 new product page (#34115)
* Add feature falg

* Modify href to menu item

* Modify page title href button

* Add product files on Client

* Change button's URL for new Nav

* Add changelog

* Moved changelog

* Fix URL for new nav

* Change URL for add product task

* Add Tracks event

* Change const name

* Renamed tracks event name

* Undo Add New Product redirect

* Undo use Products addition

* Undo lint fix to woocommerce_admin.js

* Rename component and file (AddProductPage)

* Set flag in core.json to false

* Fix typo

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-08-03 14:42:22 -03:00
Vedanshu Jain e4dae58502
Upgrade misc WooCommerce bits to support COT (#34124)
Update miscellanous WC bits to support custom tables.

* Add changelog.
* Add test for order_meta call.
* Make CI happy.
* Add tests for before_delete_order.
* Add test for is_valid_resource
* Add tests for PayPal API.
* Add test for save paypal meta data.
* Minor fixup.
2022-08-03 09:41:37 -07:00
Luigi Teschio 397a7846b5
JQuery FlexSlider: Fix innerHeight computation (#33847)
Fix computation innerHeight
2022-08-03 09:20:42 -07:00
Jacob Sewell f71f480027
Add product categories datastore (#33984)
* First draft of product categories datastore changes.
Heavily based on product shipping classes code.

* Fix constant name in product categories data store index.

* Create changelog for 33464/33984.

* Move changelog to correct folder.

* Remove redundant context param in product categories Query (already in BaseQueryParams).

* Apply Partial to BaseQueryParams.
2022-08-03 10:55:13 -05:00
Joel Thiessen fd04261cab
Adding CollapsibleContent component (#34129)
* Basic version of CollapsibleContent component

* Adding changelog

* Add story for component

* Update styling to match designs

* Add initially expanded example

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2022-08-03 08:09:00 -07:00
Vedanshu Jain ef08507c13
Add support for updating values in order edit form inside WP Admin (#33972)
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-08-03 13:55:54 +02:00
RJ d44942dc0d
fix: e2e test on shipping task (#34165)
- shipping task was recently changed and shipping method is set up automatically now
2022-08-03 15:08:27 +08:00
jonathansadowski 9cb0e76160
Update changelogger pre-push hook to remove verbosity (#34163) 2022-08-02 15:24:20 -05:00
Paul Sealock 0ac969f584
Cherry-Pick Tool: Fix stderr output (#34132)
* formatting

* log stdout
2022-08-03 06:54:41 +12:00
Kaavya a9b0542532
Fix/33253 fix order number in notice (#33802)
Fix order number displayed in order status changed notice
2022-08-02 10:02:15 -07:00
Néstor Soriano c06ae5d903
Add a namespace prefix to the Psr/Container package (#33703)
Remove the explicit dependency from the psr/container package

* Prepend the psr/container package classes with a namespace using Mozart. This is done to prevent conflicts with other versions of the package used by other packages or plugins.
* Add changelog file
* Minor documentation/indentation updates
2022-08-02 09:59:32 -07:00
Roy Ho e4541390e1
Add cherry pick workflow (#34157) 2022-08-02 08:14:58 -07:00
Roy Ho 0f3dc183ab
Update the readme link to Facebook WC group (#34150) 2022-08-01 21:20:39 -07:00
RJ cb09649a4c
add: store location settings tour (#34137) 2022-08-02 11:10:34 +08:00
Néstor Soriano e05697dfab
[COT] Fix order related methods in customer data store (#34121) 2022-08-01 11:13:55 +02:00
Néstor Soriano 5459f7e8ef
[COT] Add remove_processor method in batch processing controller, use it when disabling orders sync (#34122)
Also fix a bug: force_clear_all_processes wasn't actually unscheduling the watchdog.
2022-08-01 11:13:15 +02:00
Paul Sealock 06d5222585
Changelog removals due to 34133 (#34134)
remove changelog
2022-08-01 12:19:43 +08:00
Jorge A. Torres 0a3c3e7463
[COT] Make sure status is correctly prefixed for saving (#34128)
Make sure status is correctly prefixed for saving
2022-07-29 19:11:36 -07:00