Commit Graph

47343 Commits

Author SHA1 Message Date
Fernando Marichal c065121582 Add call to method `can_view_woocommerce_menu_item` 2022-01-21 17:29:44 -03:00
Nestor Soriano 2565df378e
Add scafolding for the custom orders table feature.
- Add the src/Internal/DataStores/Orders, with the appropriate
  class files.

- Add an entry in the tools page to initiate the (re)generation
  of the table data (does nothing for now).

- Add a new data store class (empty for now).
2022-01-21 16:17:18 +01:00
Fernando Marichal 8e1bd702e4 Add calls to method `can_view_woocommerce_menu_item` 2022-01-21 11:02:23 -03:00
Fernando Marichal 317e530fba Add method can_view_woocommerce_menu_item
This commit adds a method to check if the user can access the top-level WooCommerce item.
2022-01-21 11:02:02 -03:00
Jacob Sewell 1e8cdb3543 Reduce padding around plugin list titles for marketing tools page. (https://github.com/woocommerce/woocommerce-admin/pull/8171)
* Reduce padding around plugin list titles for marketing tools page.

* Changelog for 8164/8171.

* Update plugin list title padding

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-01-20 20:50:21 -06:00
dependabot[bot] f217131dd0 Bump trim-off-newlines from 1.0.1 to 1.0.3 (https://github.com/woocommerce/woocommerce-admin/pull/8195)
Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/stevemao/trim-off-newlines/releases)
- [Commits](https://github.com/stevemao/trim-off-newlines/compare/v1.0.1...v1.0.3)

---
updated-dependencies:
- dependency-name: trim-off-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-20 16:41:17 +08:00
RJ 49bf6a5c81 Updated frontend email validation to use @wordpress/url (https://github.com/woocommerce/woocommerce-admin/pull/8197)
* Updated frontend email validation to use @wordpress/url

- added testing for StoreDetails
- changed basic email validation to use @wordpress/url isEmail
2022-01-20 16:40:20 +08:00
renovate[bot] 8af4fe6311 Update dependency follow-redirects to 1.14.7 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8194)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 16:33:34 +08:00
Chi-Hsuan Huang ff1e31cfd4 Enhance report chart i18n support (https://github.com/woocommerce/woocommerce-admin/pull/8129)
* Support i18n texts for report chart

* Add changelogs

* Add d3-time-format to date pkg devDependencies

* Fix date php format and add tests

* Add date changelog

* Fix date test

* Escape week of string for php formatter
2022-01-20 08:20:18 +08:00
Chi-Hsuan Huang 19e7345f01 Fix undefined derived_currency value for the track 'wcadmin_storeprofiler_store_details_continue' (https://github.com/woocommerce/woocommerce-admin/pull/8193)
* Fix undefined store_country value for the track wcadmin_storeprofiler_store_details_continue

* Add changelog
2022-01-20 08:19:20 +08:00
Jonathan Lane dc381f4305
Merge pull request #31625 from woocommerce/e2e/test-results-full-path
Show full path to test-result.json file
2022-01-19 14:26:32 -08:00
Jonathan Lane 978046f09a
Merge pull request #31681 from woocommerce/fix/checkout-create-account
Add a timeout to the beforeAll hook for the Shopper Checkout Create Account E2E test
2022-01-19 14:25:36 -08:00
Lucas Bustamante baa2d15c2d ts-jest ^27 is incompatible with chalk <3.0.0
This breaks the build in the monorepo due to some package using chalk <3.0.0, reverting back to jest/ts-jest ^25 seems like the lesser evil
2022-01-19 13:47:29 -03:00
Fernando b74600593e Change the reviews empty state panels logic (https://github.com/woocommerce/woocommerce-admin/pull/8147)
* Add unapproved reviews check

* Add tests

* Add changelog

* Create a review e2e test

* Fix lint

* Rename some constants (https://github.com/woocommerce/woocommerce-admin/pull/8178)

* Renamed `countUnapprovedReviews`

* Renamed `lowStockProductsCount`

* Renamed `unreadOrdersCount`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-01-19 13:45:17 -03:00
Lucas Bustamante 58e2c6ecaa Merge branch 'trunk' into packages/api/json-transform-tests 2022-01-19 13:28:32 -03:00
Lucas Bustamante 5deef1b4b2 Add tests and partial fix of coupon_lines and refunds 2022-01-19 13:28:16 -03:00
Lucas Bustamante 5ea6f671d3 Add tests and partial fix of tax_lines 2022-01-19 13:16:45 -03:00
Lucas Bustamante f23587cde6 Add tests and partially fix line_items, fee_lines, shipping_lines 2022-01-19 13:11:59 -03:00
Peter Fabian 7412e8e174
Merge pull request #31193 from azygis/feature/30006-cart-product-modified-hook
New hook: cart item removed because of hash change
2022-01-19 15:57:15 +01:00
Joshua T Flowers ecd8c34c42 Hide store address fields in regions that specify hidden (https://github.com/woocommerce/woocommerce-admin/pull/8172)
* Hide store address fields in regions that specify hidden

* Add changelog entry
2022-01-19 09:07:43 -05:00
Žygimantas Arūna db6f6f22ca New hook: cart item removed because of hash change 2022-01-19 15:01:21 +01:00
Peter Fabian af3c2732c1
Merge pull request #31508 from woocommerce/update/revert-Customize-WC-logic
Revert #30044
2022-01-19 14:50:02 +01:00
Peter Fabian 322696b2fa
Merge pull request #31506 from siliconforks/woocommerce_product_recount_terms-filter
Change '__return_true' to true in apply_filters()
2022-01-19 14:38:14 +01:00
Chi-Hsuan Huang 9cfd69d778 Fix incorrect date options when the "Default Date Range" is set from Analytics settings (https://github.com/woocommerce/woocommerce-admin/pull/8189)
* Add defaultDateRange argument to getAllowedIntervalsForQuery function for default period value

* Fix incorrect date options when the "Default Date Range" is set

* Add changelog
2022-01-19 10:15:33 +08:00
Jeff Stieler 8c78791c37 Fix styling of order pay form via my account. 2022-01-18 16:50:30 -07:00
Jeff Stieler 1a8e27e5ca Fix my account orders action button spacing. 2022-01-18 16:50:07 -07:00
jamelreid 7eef1abb02 Added a 45 second timeout to the beforeAll hook 2022-01-18 17:52:11 -05:00
Lucas Bustamante 6489025273 Hydrate from snake_case or camelCase, depending on applied transformers 2022-01-18 19:36:38 -03:00
Lucas Bustamante 2120c08eb0 Tests WIP 2022-01-18 19:36:18 -03:00
Lucas Bustamante 46af82a842 Make OrderLineItem hydratable 2022-01-18 19:36:06 -03:00
Lucas Bustamante 3c8c6e7718 Rename properties according to WooCommerce API 2022-01-18 19:35:56 -03:00
Lucas Bustamante 6a6ceaa3f4 Add more keys to be converted 2022-01-18 19:35:38 -03:00
Joshua T Flowers 067c9f763e Fix task ID class check and add tests around tracking (https://github.com/woocommerce/woocommerce-admin/pull/8185)
* Fix task ID class check and add tests around tracking

* Add changelog entry

* Add doc comment for return value of recorded tracks event
2022-01-18 15:29:14 -05:00
Joel Thiessen 96c7eb4e26 Adding tooltip to describe the lack of refund deductions from revenue summaries (https://github.com/woocommerce/woocommerce-admin/pull/8187) 2022-01-18 12:07:32 -08:00
jonathansadowski 5239cf62e7
Merge pull request #31672 from woocommerce/update/partially-revert-31113
Partially revert #31113 `is_ajax` deprecation.
2022-01-18 13:16:13 -06:00
jonathansadowski 5e4f6c7413
Add `@see` tag to hint at usage of `wp_doing_ajax` 2022-01-18 13:15:32 -06:00
mrleemon f5411284a5
Wrap terms and conditions required asterisk symbol with <abbr> tag 2022-01-18 20:00:33 +01:00
Jonathan Sadowski d39bd0eb54 Partially revert #31113
This commit reverts the deprecation if `is_ajax` that occurred in #31113. It leaves beind the changes to use the native function `wp_doing_ajax` instead.
2022-01-18 11:28:35 -06:00
jamelreid af8fedf6f6 Removed whitespace 2022-01-18 11:46:09 -05:00
Fernando 3c424992a4 Refactor selling options - OBW - Business Details (https://github.com/woocommerce/woocommerce-admin/pull/8081)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-01-18 10:46:10 -03:00
Chi-Hsuan Huang 2ce17ed7c0 Fix incorrect total count of downloads on the analytics download report (https://github.com/woocommerce/woocommerce-admin/pull/8182)
* Fix incorrect total count of downloads on download analytics report

* Add changelog
2022-01-18 19:04:20 +08:00
Chi-Hsuan Huang 18a4a467f8 Fix get_automated_tax_supported_countries doesn't include UK (https://github.com/woocommerce/woocommerce-admin/pull/8180)
* Add GB to automated tax supported countries list

* Add changelog
2022-01-18 18:31:46 +08:00
Chi-Hsuan Huang 3b8c6662e8 Fix incorrectly displayed note created date (https://github.com/woocommerce/woocommerce-admin/pull/8179)
* Fix incorrectly displayed note created date

* Add changelog

* Add package changelog
2022-01-18 18:24:15 +08:00
Menaka S 80bf1cfb76 Add WcPay settings info to WC Tracker 2022-01-18 14:22:42 +04:00
Chi-Hsuan Huang 08acc3e2f7 Fix incorrect reader text generated for data points on charts table (https://github.com/woocommerce/woocommerce-admin/pull/8181)
* Fix incorrect screen reader text generated for data points on charts table

* Add changelog
2022-01-18 18:10:23 +08:00
Ron Rennick 7c04c5893c e2e package changelog cleanup 2022-01-18 05:04:32 -04:00
Nestor Soriano dbb4605e8e
Change db update version from 6.2 to 6.3.
Also rename the db update function to include the Woo version number.
2022-01-18 09:28:54 +01:00
Nestor Soriano 806c4f2ed3
Add a table regeneration step size filter and a "regeneration aborted" warning
Add a new filter: woocommerce_attribute_lookup_regeneration_step_size,
it allows to choose how many products will be processed on each
step when the product attributes lookup table is being regenerated,
the default is the previous fixed value, 10.

Also when the regeneration is manually aborted (via deleting the
woocommerce_attribute_lookup_regeneration_in_progress option), the
products - advanced settings section will still allow to enable the
usage of the table, but a warning will be shown because the table
will be in an inconsistent state.
2022-01-18 09:06:14 +01:00
Chi-Hsuan Huang ae0ea6df2c Fix php unit test "test_deleted_coupons" for wc >= 6.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/8162)
* Fix bin/install-wp-tests.sh for wc >= 6.0.0

* Fix php unit test "test_deleted_coupons" for wc >= 6.1.0

* Update WC_Tests_Reports_Coupons test_populate_and_query test

Fix test
2022-01-18 13:31:21 +08:00
Lucas Bustamante b75f8adbb5 Test that a JSON payload is transformed as expected (WIP) 2022-01-17 16:25:49 -03:00