Commit Graph

65411 Commits

Author SHA1 Message Date
Ivan Stojadinov a06c6ba496
[e2e] External sites - Include API tests for Pressable and WPCOM (#51284)
* Pressable - run only /api-tests

* Skip on Pressable

* Fix lint errors

* WPCOM - run API only

* Revert "WPCOM - run API only"

This reverts commit 5e59be1663.

* WPCOM - run API only

* Update settings-crud.test.js so they are passing against Pressable

* Skip "can retrieve all tax settings"

* Skip "can view all system status items" on WPCOM

* Several skips in settings-crud.test.js

* Skip "Product review tests: CRUD" on WPCOM

* Skip "List all products > categories" on WPCOM

* Skip "can view all payment gateways" on WPCOM

* Skip "Orders API tests" on WPCOM

* Skip "Customers API tests: CRUD" on WPCOM

* Revert `playwright.config.js` files and include '**/api-tests/**/*.test.js',

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

* Skip three more API tests for WPCOM

* Skip two coupons tests

* Update report name for Pressable and WPCOM to ``*-core-e2e-and-api`

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-12 16:01:40 +02:00
Christopher Allford d53df24528
Merge branch 'trunk' into add/49335-related-products-collection 2024-09-12 06:57:35 -07:00
Naman Malhotra 2433f9f1c4
Update changelog.txt - trunk (#51324) 2024-09-12 14:55:47 +01:00
Christopher Allford c35a64721e
Fixed Test 2024-09-12 06:54:54 -07:00
Brent MacKinnon 5e4a6fc5e6
Update totals-footer-item.md (#51261)
* Update totals-footer-item.md

replacing `<` & `>` with `&lt;` & `&gt;` for the purposes of displaying html within code snippets on woocommerce docs site.

* update < > with &lt; &gt;

* more small fixes

* update manifiest

* update erroneous tag swap

---------

Co-authored-by: piinthecloud <stephanie.pi@automattic.com>
Co-authored-by: Jacklyn Biggin <hi@jacklyn.dev>
2024-09-12 13:51:32 +00:00
Ilyas Foo 3dc0d69091
Re-enable remote logging feature by default (#51320)
* Reenable remote logging feature by default

* Changelog
2024-09-12 21:36:08 +08:00
Raja sekar 97182ef9ca
Changes to IAM footer (#51315)
* add max-width and border raidus to footer container
- to make it look similar to design your own theme box

* remove marketplace copy from footer

* add another tab to footer

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

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

* add feedback on code

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-12 18:28:48 +05:30
Raja sekar 358bc1fee2
Make padding consistent and remove bottom margin for for all types of product cards (#51288)
* Make padding consistent for all type of card contents as 24px

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

* override margin bottom added by woo payments plugin for product cards

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-12 17:44:25 +05:30
github-actions[bot] c7c054d8f8
Delete changelog files based on PR 51312 (#51319)
Delete changelog files for 51312

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-09-12 19:03:04 +07:00
Bart Kalisz 03ca14c52e Improve the query merging logic 2024-09-12 12:44:49 +02:00
Bart Kalisz 4e63fc9d52
Merge branch 'trunk' into add/pc-hand-picked-collection 2024-09-12 12:21:24 +02:00
Mike Jolley b0401ef25d
[Experimental] Delayed Account Creation Block (#50934)
* Add block to templates

* Register block type with php

* Create block type class

* Update webpack

* Move password strength meter component

* Add button styles when disabled

* Move password strength component

* Block WIP

* CSRF token handling

* Put new block behind feature flag

* Add experimental flag docs

* Update icon + description

* Changelog

* Lint errors

* Style controls

* Adjust icon markup

* subsctring match

* More specific import

* Fix test fail caused by layout shift

* Wording changes from Figma

* Check if logged in, not just if the current email is registered

* Use opacity for disabled button text

* Sync order data with customer after account creation

* Add id/fragment to form
2024-09-12 11:18:13 +01:00
Brent MacKinnon d1f80608b2
Update development-environment.md (#51259)
* Update development-environment.md

fixing a character encoding issue

* add manifest

---------

Co-authored-by: piinthecloud <stephanie.pi@automattic.com>
2024-09-12 12:13:18 +02:00
Ilyas Foo 7eb31840e7
Disable remote logging feature by default (#51312)
* Disable remote logging feature by default

* Changelog
2024-09-12 18:12:29 +08:00
Chi-Hsuan Huang 56c04f2bfb
Fix unsnooze notes not working (#51254)
* Fix saving note timestamp

* Fix missing wc_admin_unsnooze_admin_notes action

* Add changelog

* Update tests
2024-09-12 09:14:25 +00:00
Miguel Pérez Pellicer c96f9f38bd
Reduce slow reports tests (#51279)
* Fix slow tests

* Lint

* Changelog

* Lint

* Lint
2024-09-12 13:07:28 +04:00
Karol Manijak ed9742f18b
Skip failing tests from experimental Product filters feature (#51305)
* Skip failing tests from experimental feature

* Add changelog
2024-09-12 10:37:51 +02:00
Christopher Allford 47d8a139db
Merge branch 'trunk' into add/49335-related-products-collection 2024-09-11 23:47:59 -07:00
Christopher Allford cea2512412
Fixed Preview Mode Query
It looks like we were checking the wrong place for the preview
state.
2024-09-11 23:47:14 -07:00
Christopher Allford 3c5b47e2b7
Revert "Support Unlimited `wc_get_related_products()`"
This reverts commit 41c837202e.
2024-09-11 23:15:03 -07:00
Christopher Allford 9926d9d20b
Added Related Product Collection Handlers 2024-09-11 23:02:19 -07:00
Christopher Allford bd29f481c5
Removed Second Test Query Construction
As it was, `build_query_vars_from_query_block()` was triggering the
ProductCollection instance hooked into WordPress. After that, we
called `build_frontend_query()` on our test instance. This caused some
weird behavior in tests. As a result, however, the tax_query merge
test couldn't rely on the tax_query transformation done by WordPress.
2024-09-11 23:01:49 -07:00
Christopher Allford b47b0f638f
Added Custom Collection Handlers
Developers can register collections along with handlers that implement
the custom behavior.
2024-09-11 14:30:22 -07:00
Roy Ho 41cf2b285e
[Experimental] Product filters/overlay nav block redesign (#51211)
* Remove overlay icon settings from parent block

* Change overlay block icon to generic button icon

* Add logic to remove overlay nav when overlay mode is set to never

* Add logic to add overlay nav when overlay mode is not never

* Add default attributes for overlay nav button

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

* Use unique icons for each overlay navigation close and open

* Add icon picker for open overlay navigation

* Add trigger type for overlay close navigation

* Add missing settings label

* Fix e2e tests

* Skip a test for overlay-navigation block

* Add e2e tests for overlay button behavior

* Fix linting error

* Skip overlay nav tests

* Fix icon size value not saving

* Revise logic to target explicitly the innerblock of product-filters

* Ensure overlay navigation is of type open-overlay

* Prevent possible race conditions

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-11 12:11:51 -07:00
Adrian Moldovan 0c8a8bd6cf
[e2e tests] Fix flakiness and refactor create-order spec (#51292) 2024-09-11 21:10:00 +03:00
Adrian Moldovan 0e2258b57d
[e2e tests] Fix flaky test and refactor admin-tasks payment spec (#51269) 2024-09-11 10:32:18 -07:00
Bart Kalisz f25b39f99b Improve the query merging logic 2024-09-11 18:32:22 +02:00
Mike Jolley d87c3d38d7
Performance: Move collectableMethodIds to cart/checkout block assets rather than loading it sitewide (#51174)
* Move collectableMethodIds to cart/checkout block assets

* changelog
2024-09-11 16:25:20 +01:00
github-actions[bot] d4cc6578c7
Delete changelog files based on PR 51289 (#51294)
Delete changelog files for 51289

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-09-11 21:48:29 +07:00
Alexandre Lara 0b16cfa06a
[Experimental] Product Filters Redesign > Overlay: Add Fullscreen view (#50505)
* Add variation to Product Filters Overlay Navigation

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

* Move Product Filters Overlay Navigation to correct position

* Hide block when it is outside the Product Filters template part

* Display Navigation block in the frontend

* Show the Product Filters Overlay Navigation on the frontend

* Add logic to hide Product Filters Overlay Navigation block on the frontend

* Hide block on the Overlay template part

* Fix eslint errors

* Update the block variation title

* Remove the `isActive` property from the block variations

* Use Product Filters block context

* Replace enum with const

* Remove unnecessary `StyleAttributesUtils`

* Rename context key

* Move BlockOverlayAttribute to the constants.ts file

* fix BlockOverlayAttribute import

* Fix import error

* Improve code for the shouldHideBlock method

* Remove unnecessary attributes property

* Fix error in ProductFiltersOverlay block

* Add dialog to the Product Filters block

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

* Fix interactivity api error

* Prevent block from being hidden on Product Filters template part

* Fix inspector controls when block is hidden

* Add clickable action to the Product Filters Overlay Navigation block

* Fix interactivity directives that were not working for the Overlay

* Fix issue with dialog styles not being correctly applied

* Add the `closeDialog` functionality

* Parse and render blocks for the Product Filters overlay

* Fix padding

* Fix style for Product Filters Overlay navigation block

* Add e2e test

* Add e2e test to Product Filters Overlay template part

* Fix e2e test

* Fix issue causing the trigger button to show even though the overlay mode is set to 'Never"

* Fix issue causing close button to not be displayed in the dialog

* Add e2e tests

* Fix issue that was preventing users from scrolling down the dialog content

* Remove text duplication in e2e tests

* Remove unnecessary imports

* Fix php cs errors

* Fix php cs error

* Revert changes on Product Gallery modal styles

* Fix lint errors

* fix php cs lint errors

* fix php cs error

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-11 11:30:35 -03:00
Seghir Nadir 96497814e4
Revert update to createRoot in Checkout block. (#51289)
* Revert "[React 18] Use `createRoot().render()` instead of `render()` (#48843)"

This reverts commit 752273e6ce.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-11 13:44:09 +00:00
Fernando Marichal e4f03589ab
Deprecate single product block save (#51153)
* Add deprecated save

* Fix button styles

* Add changelog

* Add attributes to deprecated prop

* Add supports prop to deprecated obj

* Add code comment
2024-09-11 09:54:43 -03:00
Christopher Allford 2f85a455cf
Merge branch 'trunk' into add/49335-related-products-collection 2024-09-11 01:30:02 -07:00
Christopher Allford 440cdba53e
Pass Collection Name To Final Query 2024-09-11 01:24:10 -07:00
Chi-Hsuan Huang b728f53f29
Fix duplicate spec evaluation in `evaluate_specs()` (#51166)
* feat: Add memoization to EvaluateSuggestion class

This commit adds memoization to the `EvaluateSuggestion` class in order to improve performance by caching the results of the `evaluate_specs` method. The memoization is implemented using an associative array called `$memo`, which stores the results of previous evaluations based on the input specifications and logger arguments. The memoization logic checks if the results for a given set of specifications and logger arguments already exist in the `$memo` array, and if so, returns the cached results instead of re-evaluating the specs. This helps to avoid redundant computations and improves the overall efficiency of the `evaluate_specs` method.

* Add changelog

* Only use specs as key

* Move shipping test to correct folder

* Fix tests

* Fix tests

* Fix lint

* Address PR feedback
2024-09-11 08:13:48 +00:00
Chi-Hsuan Huang 007bd21a35
Clean up purchase task (#51274)
* Remove Purchase task

* Add changelog
2024-09-11 15:39:28 +08:00
Christopher Allford e34a24b195
Simplified `post__in` Filtering
Since `merge_queries` was already using an intersection merge for
`post__in`, this second function is unnecessary. I've removed it
as well as refactored the merging logic.
2024-09-10 23:54:11 -07:00
Chi-Hsuan Huang 057e118a34
Fix size for coming soon banner login button (#51251)
* Fix coming soon banner login button style

* Add changelog
2024-09-11 13:47:02 +08:00
Christopher Allford aa1ffdcecd
Removed `woocommerceRelatedTo` Param
Since we're going to use the collection name, we don't need
this functionality any longer.
2024-09-10 20:49:30 -07:00
Tomek Wytrębowicz 065470dea8
Use `get_filtered_ids` consistently in `taxes` and `…/stats` datastores (#51219) 2024-09-10 23:17:10 +02:00
Álvaro Thomas be79bcca84
E2e Tests Order Copying Billing Shipping Address (#50131)
* Update order edit tests with shipping address tests

Update order edit tests with shipping address tests

* Add changelog

* Refactor new tests

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-09-10 23:13:54 +03:00
Adrian Moldovan d409d6db99
[e2e tests] Don't catch api errors in fixtures (#51265) 2024-09-10 10:32:41 -07:00
jonathansadowski 9c81006156
Update team flux PR review assignments (#51241) 2024-09-10 12:13:24 -05:00
Boro Sitnikovski da7cf716d8
Add chevron after See more to the list header (#51199)
* Add chevron after See more to the list header

* Changelog

* Correct changelog path

* Alphabetically ordered imports :)
2024-09-10 18:28:31 +02:00
Adrian Moldovan 70716d1a6a
[e2e tests] Fix flaky product images test: can update a product gallery (#51263) 2024-09-10 09:16:52 -07:00
louwie17 cf4f76ecfb
Add Storybook GitHub workflow for publishing to GH pages (#51235)
* Add storybook workflow

* Update version and add trigger for push on trunk

* Add workflow_dispatch for manual trigger also

* Add permissions

* Add trigger for current branch

* Set install to true for monorepo setup

* Add write permissions

* Use hashes for GH action versions and add --quiet for building storybook

* Remove on push trigger for now
2024-09-10 12:19:57 -03:00
DAnn2012 b72e07c605
Fix typos (WooCommrece) (#50333)
* Update README.md

* Update 722.md

* Update 741.md

* Update docs-manifest.json

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

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
Co-authored-by: Roy Ho <roykho77@gmail.com>
2024-09-10 08:15:36 -07:00
Bart Kalisz f6d040915d Enable sorting by entered order 2024-09-10 16:10:42 +02:00
Adrian Moldovan 31a2474c3b
[e2e tests] Fix flaky test create-variable-product-block-editor > can create a variation option and publish the product (#51246) 2024-09-10 14:51:45 +02:00
Bart Kalisz a1a23f32d4 Update titles and description 2024-09-10 14:28:25 +02:00