Commit Graph

52999 Commits

Author SHA1 Message Date
jonathansadowski 9887601901
Update beta tester build step (#39732)
* Update beta tester build step

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-15 08:16:19 -05:00
nigeljamesstevenson d1f2218f71
Add loading indicator when submitting location in Tax task (#39613)
thanks a lot!
2023-08-15 13:49:13 +01:00
RJ 964dd1f449
dev/refactor core profiler utils (#39581)
* dev: added useFullScreen hook

- foresee using this in more developments

* dev: made findComponentMeta generic

* changelog
2023-08-15 19:26:37 +08:00
Sam Seay 45c49dc232
Add a workflow to separate out eslint and annotate PRs. (#39704) 2023-08-15 18:21:51 +12:00
RJ 3611fafe79
dev: upgrade storybook to 6.5.17 for TypeScript 5 compatibility (#39745)
There's been a Storybook breakage with Typescript 5 detailed here: https://github.com/hipstersmoothie/react-docgen-typescript-plugin/issues/78

This fix should allow us to continue using Storybook 6 until we upgrade to Storybook 7 down the road.

Even though it relies on an alpha release of 6.5.17-alpha, the only change in the alpha is https://github.com/storybookjs/storybook/pull/21745.

It should be an acceptable risk considering that Storybook is internal dev tooling for now.
2023-08-15 14:13:42 +08:00
Sam Seay 728c0db95f
Implement a workflow that lints changed markdown files. (#39707)
* Implement a workflow that lints changed markdown files.

* Supposed to pipe the contents of files not file names.

* Fix typos in the command.

* Test changing a markdown file.

* Use a more reliable action to determine changed files.

* Adjust glob.

* Try a faster setup approach with wp-scripts installed globally

* std in does not work with wp scripts, run markdownlint directly, improve output for multiple file failures

* Try simplify the script.

* Try basic colorizing to help read output.

* separate output with a line, remove ignore because we use stdin for this.

* Play around with separation of output.

* Try use ccze to colorize output more simply.

* Remove attempt at colorizing.

* Copy config from Gutenberg to match, try coloring again.

* Do not fail after first failure found.

* Try capture errors.

* Capture in var and capture error.

* Now we capture, add back colors.

* Minor formatting adjustments.

* More minor formatting improvements.

* Add a second file to test multiple lints.

* Revert changes to md files to show a run with no lint issues.

* Test fixing a markdown file to have a lint pass with changes.

* Revert testing changes to markdown file.

* Revert lock changes we dont have dep changes in this PR.
2023-08-15 09:13:01 +08:00
Sam Seay 837c2d9961
Support git worktrees (#39705)
Test if git is a dir before trying to update hooks.
2023-08-15 09:11:09 +08:00
Vedanshu Jain 1566416f46
Add migration to move incorrectly stored payment token IDS to HPOS tables (#39724)
* Add migration to move incorrectly stored payment token IDS to HPOS tables from postmeta.

* Move migration to last + update WC version.
2023-08-14 21:31:17 +01:00
Tam Mullen 5cfd509dc7
Update PR scrub action to display different message for merged PRs (#39723)
* Update PR Scrub to display different message for merged PRs

* Created separate steps for open and merged PRs
2023-08-14 21:27:53 +01:00
louwie17 3edd1bd823
Auto delete unused variations when auto generating variations (#39733)
* Add auto delete functionality for variations

* Add the remove confirmation modal

* Update delete unmatched product variation logic

* Add tests

* Add changelogs

* Fix lint errors

* Fix lint errors
2023-08-14 16:35:16 -03:00
Ilyas Foo 6be7c4b5e3 Lint again 2023-08-14 13:42:00 +08:00
Ilyas Foo 4a04d19b60 Lint 2023-08-14 13:23:45 +08:00
Ilyas Foo f95fdd83c9 Remove unused attribute 2023-08-14 12:03:07 +08:00
Ilyas Foo e3caf5e540 Changelog 2023-08-14 11:48:45 +08:00
Ilyas Foo b497df10d8 Add preemptive set isRequesting when optimistically updating settings 2023-08-14 11:47:34 +08:00
Ilyas Foo 8aa753d917 Fix unintended reset of isRequesting when updating settings 2023-08-14 11:47:15 +08:00
Ilyas Foo a585555d92 Use try catch to handle error, better flux flow to handle next step 2023-08-14 11:45:56 +08:00
Ilyas Foo dc2c4e7c48 Merge remote-tracking branch 'origin/trunk' into tweak/loading-indicator-tax-task-store-location 2023-08-14 10:16:11 +08:00
github-actions[bot] e8d0a081ad
Delete changelog files based on PR 39639 (#39661)
Delete changelog files for 39639

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-13 13:52:17 -05:00
Vedanshu Jain 5dc3f65522
Store transactional meta in HPOS tables. (#39381)
* Store transactional meta in HPOS tables.

* Add transaction to the list of legacy meta, since we have getters for it, but its not stored in custom table.

* Add unit test.

* Unit test fixups + mark payment tokens as non internal for datastore.

* Use correct filename for HPOS.

* Mark payment_tokens as internal and update getter/setters accordingly.

* Fix indentation.

* Address PR review feedback.
2023-08-11 12:28:11 -07:00
Barry Hughes 26abedebe0
Add date index to order tables for speeding up order list query. (#39682) 2023-08-11 10:39:54 -07:00
Sam Seay b5636cbf1d
Delete the build-release workflow, it has not been used in a long time. (#39677) 2023-08-12 01:03:50 +08:00
Barry Hughes 453a92c0ca
Update Action Scheduler to 3.6.2. (#39665) 2023-08-11 18:00:57 +01:00
github-actions[bot] 365740bdc0
Update changelog.txt from release 8.0.1 (#39662)
* Prep trunk post release 8.0.1

* Don't re-add 8.0.0 changelog

---------

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
2023-08-11 11:26:54 -05:00
jonathansadowski 3363ba8d16
Update stable tag to 8.0.1 (#39632)
* woorelease: Update stable tag to 8.0.0

* Update stable tag to 8.0.1
2023-08-11 11:13:36 -05:00
github-actions[bot] 6890bbe8bf
Delete changelog files based on PR 39686 (#39692)
Delete changelog files for 39686

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-11 10:10:21 -05:00
Sam Seay 760c604e7c
Revert behaviour of code that was using nullish coalescing operator. (#39686)
* Revert behaviour of code that was using nullish coalescing operator.

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-11 10:07:26 -05:00
louwie17 71e8b699db
Convert simple to variable product and auto add variations (#39673)
* Auto create variations and move product to variable when adding variation options

* Delete unused components

* Add tour to variation options

* Remove unneeded options

* Add changelog

* Fix types

* Fix lint errors

* Fix broken tests

* FIlter out option tags when not included in attributes

* Don't invalidate variations data when no new variations are created
2023-08-11 11:15:05 -03:00
Vedanshu Jain 9b6c7ba266 Add changelogs. 2023-08-11 14:58:07 +05:30
Vedanshu Jain e667965f60 Connect HPOS tables to wc_install. 2023-08-11 14:56:32 +05:30
Vedanshu Jain feccb3c8e0 dbDelta dont like it when there are spaces in decimal specification. 2023-08-11 14:56:15 +05:30
Vedanshu Jain 632b0c2034 Modify index to also add created date to speed up order list. 2023-08-11 14:54:33 +05:30
Vedanshu Jain 05dfaacd37
Bulk actions: within URL, specify orders using `id[]` rather than `order[]` (#39524) 2023-08-11 14:25:35 +05:30
Jaclyn Chen f9b68e22c7
WC Telemetry: add `first_used` and `installation_date` data to WCTracker (#39605)
* WC_REST_Telemetry_Controller: add `first_used` and `installation_date` meta fields for WCTracker.

* Add `installation_date` parameter to the endpoint parameter collection.

* Update implementation with unit tests.

* Update comments in the test class.

* Auto fixes from phpcbf.

* Attempt fixing lint errors in the tests.

* Set the installation date with the same date format as the pre-existing `last_used`.

* Add changelog.

* Fix an issue where the lack of installation date in the request still sets the field to the current date.

* Attempt fixing lint errors with phpcbf.
2023-08-11 14:32:40 +08:00
jonathansadowski 67079574cc
Add support for releasing Beta Tester to WooCommerce.com (#39671) 2023-08-11 12:51:01 +12:00
Matt Sherman e805b6b075
Core block-based template PHP API (adding blocks to templates) (#39470)
* Initial BlockTemplate implementation

* Initial BlockTemplate tests

* FIx undefined array key errors

* Fix linter errors (except for missing docs ones)

* Get as simple array

* Unit test updates for get_as_simple_array()

* Remove inner content (not used currently)

* Rename attrs to attributes

* Move name out of data array

* Move id out of data array

* Move order out of data array

* Move attributes out of data array; remove data array

* Add doc comments to Block

* Add doc comments to BlockTemplate

* Add doc comments to BlockContainerInterface and BlockContainerTrait

* Doc comment updates.

* Add doc comments to BlockTest

* Add doc comments to BlockTemplateTest

* Add BlockInterface

* Remove key consts from Block

* Move implementations to internal

* Clean up interfaces

* Do not have BlockInterface extend BlockContainerInterface

* FIx case in namespace declaration

* Add exceptions to add_block doc

* Rename BlockTemplate to BlockBasedTemplate

* Rename block-based template vars in tests

* Fix missing get_parent on block containers

* Changelog

* Add get_block_by_id to BlockBasedTemplateInterface

* Rename get_block_by_id to get_block

* Rename get_as_simple_array to get_as_formatted_template

* Rename child blocks to inner blocks

* Rename BlockBasedTemplate to BlockTemplate

* Move validation to separate method

* Move namespace to be non-product editor specific

* Rename get_as_formatted_ methods to get_formatted_

* Rename BlockBasedTemplateTest to BlockTemplateTest

* Add ability to use a custom block generator with add_block

* Add check that block belongs to root template in internal_add_block_to_template

* Fix up code docs related to $block_creator

* Fix code doc linting errors in tests

* Add test for a buggy block creator implementation

* Add test for an invalid block creator

* Rename internal_add_block_to_template to cache_block

* Add add_block_container() method

* Fix linting issue.

* Fix minor issues in ContainerInterface with get_root_template() and get_parent()

* Add block template with abstract blocks and templates (#39630)

* Make block template abstract and protected add block methods

* Create block abstraction and generic block

* Remove add_block from container interface

* Update tests for generic and custom blocks

* Add tests around custom block templates

* Fix up lint errors

* Fix errant comment for add_block

---------

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2023-08-10 15:52:44 -07:00
Fernando Marichal 91fadfd8fe
[Product Block Editor] Remove additional create term modal (#39610)
* Remove additional create term modal

# Conflicts:
#	packages/js/product-editor/src/components/attribute-term-input-field/attribute-term-input-field.tsx

# Conflicts:
#	packages/js/product-editor/src/style.scss

* Add changelog

* Fix list refresh and add loading state

* Remove duplicated "invalidateResolutionForStoreSelector"

* Add modal and `autoCreateOnSelect`

* Update packages/js/product-editor/src/components/attribute-term-input-field/attribute-term-input-field.tsx

Co-authored-by: louwie17 <lourensschep@gmail.com>

* Add Attributes `invalidateResolution`

* Improve error handling

* Add term_exists error

* Fix lint errors

* Fix isOpen variable

* Fix lint

---------

Co-authored-by: louwie17 <lourensschep@gmail.com>
2023-08-10 14:21:28 -03:00
RJ 106e15f74a
fix: core-profiler intro opt in page tracks ordering (#39508) 2023-08-10 14:25:44 +08:00
Barry Hughes dda93bfe51
Add filter to allow preventing deletion. (#39650) 2023-08-09 15:50:57 -07:00
Maikel David Pérez Gómez 3ffe7b8376
Create variation items block (#39657)
* Create and register product-variation-items-field block

* Create variations-table component

* Use variations-table component in variation-items block

* Remove last border bottom from the variation options list

* Add changelog file

* Add changelog file
2023-08-09 16:06:59 -03:00
Barry Hughes f36cb3a50c
Autoload test helpers and exclude from test suites. (#39586)
* Autoload test helpers and exclude from test suites.

This avoids loading order problems, and eliminates warnings (about HposTestCase) not containing any tests.

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-09 15:48:04 -03:00
Luigi Teschio a5539edd14
bump WooCommerce blocks version to 10.6.5 (#39639) 2023-08-09 19:05:05 +02:00
louwie17 592b4feb5e
Fix attribute terms disappearing in list (#39620)
* Fix enhance attribute logic

* Add changelog

* Fix test

* Add auto create global attribute term and fix bug with terms for global attribute

* Fix test and update changelogs

* Add invalidate resolution call and error notice

* Revert auto create on select changes
2023-08-09 10:41:47 -03:00
Vedanshu Jain 97cd0abda9
Compare props to set changed array between post and order data. (#39653)
* Compare props to set changed array between post and order data.

* Use correct classname so that props can be set.

* Also clear cache after update and before backfill.
2023-08-09 10:25:21 -03:00
Thomas Shellberg 9418072a47
Add Branding + Tone to Product Descriptions (#39253)
* [Woo AI] generate product descriptions using tone of voice and/or business description context.
2023-08-09 14:15:18 +02:00
Vedanshu Jain fc7e6871ed Add changelog. 2023-08-09 15:04:30 +05:30
Vedanshu Jain 722bbd8147 Add filter to allow preventing deletion. 2023-08-09 15:01:02 +05:30
Sam Seay d08780f139
Bump beta tester to 2.2.2 in prep to release bugfixes (#39603) 2023-08-09 13:06:02 +12:00
Sam Seay 3a6c3cde9f
Code analyzer: find multiple hooks in single patch, add tests (#39566) 2023-08-09 13:05:00 +12:00
Christopher Allford 4549bc82c5
Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00