Commit Graph

61904 Commits

Author SHA1 Message Date
Tarun Vijwani 29b4217f15 Update the border colors in the Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/11474)
* Change border color to Gutenberg 100 for Cart and Checkout blocks

* Change form input color to Gutenberg 900 for Cart and Checkout blocks

* Fix additional border colors of Checkout block

* Update borders and form field colors in Cart Block

* Change border color to $universal-border-light

* Change border color for cart line items to $universal-border-light

* Change  form input fields border color to $universal-border-dark

- Add $universal-border-dark color variable for woocommerce/woocommerce-blocks#1e1e1e on white.

* Fix colors of text area border and form steps

* Change  form input fields border color to $universal-border-dark

- Add $universal-border-dark color variable for woocommerce/woocommerce-blocks#1e1e1e on white.

* Fix form steps

* Update universal dark border rgba value

- Update universal dark border rgba value from rgba(0, 0, 0, 0.882) to rgba(17, 17, 17, .80) to keep it consistent with universal-border colors

* Update $universal-border-light color

* Update the opacity of the borders

* Update the border color to rgba (17, 17, 17, 0.12)

* Roll back $universal-border-light value to the original value: 0.115

* Remove Opacity and pass it as argument in with-translucent-border

- We have with-translucent-border option that accepts border and opacity for pseudo elements.

* Remove additional spaces

* Replace with-translucent-border with normal border

- Since we're are not mixing the opacity to the border color so we don't need to use mixin with-translucent-border.

* Fix applied css and add low contrast Color usage details

-  Fix minor CSS as per the standards.
- Add comments for universal border colors that they're low contrast colors and should be used for decorative elements only

* Fix border gap and double border for multiple shipping packages

* Fix payment method borders and Cart line items borders

- Change border bottom to border-top for cart line items.
- Fix payment method radio control borders.

* Fix local pickup border

- Local pickup was using  with-translucent-borders so it has some opacity, changed it to border-bottom.

* Add border-bottom to cart items

* Remove additional border from Cart items

* Fix radio and checkbox borders as per the design

* Fix shipping method borders and background color as per the design.

* Force align left on the description for the local pickup options.

* Update border color in quantity selector component

* Fix Shipping options radio selection alignment

- Add left padding to wc-block-components-shipping-rates-control__package element.

* Update colors and variables

* Change checkbox and radio button colors

- Change checkbox and radio button colors from  rgba(25, 23, 17, 0.3) to  rgba(25, 23, 17, 0.48).

* Remove bottom property from express payment style
2023-12-07 21:37:48 +04:00
Thomas Roberts 906961be3b Move merchant-side Checkout E2E tests to Playwright (https://github.com/woocommerce/woocommerce-blocks/pull/11853) 2023-12-07 17:32:18 +00:00
Alefe Souza 4b58adde04 Fix casting error on Utils::wp_version_compare (https://github.com/woocommerce/woocommerce-blocks/pull/11802)
* Fix casting on Utils::wp_version_compare

* Fix linting issue

* Apply version number fix on current wp version

* Fix linter errors

* Fix linter errors
2023-12-07 18:18:34 +01:00
Niels Lange 7a0835e354 Migrate translation tests to Playwright (https://github.com/woocommerce/woocommerce-blocks/pull/12070)
* Migrate translation tests to Playwright

* Optimise tests

* Migrate translation tests to Playwright

* Optimise tests

* Run test as side effects
2023-12-07 16:50:00 +00:00
Luigi Teschio 88562d1106 Products By Attribute: E2E tests - skip test (https://github.com/woocommerce/woocommerce-blocks/pull/12085) 2023-12-07 17:19:50 +01:00
Hsing-yu Flowers 2578fa11e9 Update the checkout order endpoint allowed order statuses for payment complete (https://github.com/woocommerce/woocommerce-blocks/pull/12018)
* Update the allowed order statuses for payment complete

* Check if order exists before checking needs_payment
2023-12-07 11:09:19 -05:00
Matt Sherman c892074b76 Update comment for phpcs:disable 2023-12-07 10:58:19 -05:00
Matt Sherman 7c14b27f36 Extract public function to register block type 2023-12-07 10:55:46 -05:00
Fernando Marichal defa590f32
Show feedback bar only once (#41787)
* Show feedback bar only once

* Add changelog

* Add isFeedbackBarHidden

* rename showFeedbackBarOnce

---------

Co-authored-by: Fernando Marichal <fernandomarichal@fernandos-mbp.lan>
2023-12-07 12:40:12 -03:00
Luigi Teschio d959781fc6 Social Follow Us Pattern: fix width image (https://github.com/woocommerce/woocommerce-blocks/pull/12080) 2023-12-07 15:42:45 +01:00
Mike Jolley efe2017794 Fix classname for dark mode in validation notice (https://github.com/woocommerce/woocommerce-blocks/pull/12037) 2023-12-07 14:41:31 +00:00
Mike Jolley 45ae286a10 Change guest permissions to full after verification (https://github.com/woocommerce/woocommerce-blocks/pull/12072) 2023-12-07 14:41:12 +00:00
ragulka ba9760baa3 reset array keys after filtering to prevent conversion to JSON object (https://github.com/woocommerce/woocommerce-blocks/pull/11070) 2023-12-07 14:40:34 +00:00
Luigi Teschio be79b9864e
Fix: `useEditorBlocks` hook always returns an array (#41874)
* fix: useEditorBlocks hook always returns an array

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-07 14:41:44 +01:00
Patricia Hillebrandt 4467715546
[CYS] Update the call to the ai product endpoint to account for the newly introduced last_product param. (#41842) 2023-12-07 09:17:29 -03:00
Patricia Hillebrandt d9ca827083
[CYS] Temporarily remove the survey button (#41781) 2023-12-07 09:16:15 -03:00
Patricia Hillebrandt 396f1e5169 Merge branch 'trunk' into 41637/remove-survey-button 2023-12-07 08:49:10 -03:00
Patricia Hillebrandt c60992e061
Update color palettes when AI is no available (#41880) 2023-12-07 08:39:13 -03:00
Barry Hughes e9ba3d3755
Make the process for initiating the password strength meter more robust. (#41822) 2023-12-07 12:25:13 +01:00
Patricia Hillebrandt 4c62ac23ee Address build and lint errors 2023-12-07 08:05:06 -03:00
Patricia Hillebrandt 90dc7aaa41 Fix lint error 2023-12-07 07:55:35 -03:00
Patricia Hillebrandt 00b7b78ee8 Merge branch 'trunk' into update/ai-product-endpoint-last-product-param 2023-12-07 07:27:14 -03:00
Patricia Hillebrandt 422e9ce1b9 Merge branch 'trunk' into update-color-palettes-no-ai 2023-12-07 07:22:53 -03:00
Patricia Hillebrandt a8d4de29f9 Address lint errors. 2023-12-07 06:26:55 -03:00
Niels Lange ab766273ff Fix font weight of cart totals title in site editor (https://github.com/woocommerce/woocommerce-blocks/pull/12051)
* Fix font weight of cart totals title in site editor

* Set explicit font-weight for th in cart line items
2023-12-07 15:55:47 +07:00
Luigi Teschio f59b95d6e3
CYS: Reset products when the AI is offline (#41923)
* CYS: Reset products when the AI is offline

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-07 09:42:16 +01:00
Luigi Teschio 60efd15e7e CYS: Add DELETE private/ai/products endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/12076)
* CYS: Add DELETE private/ai/products endpoint

* Ensure the hash for the product is also updated on content reset.

---------

Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com>
2023-12-07 09:27:57 +01:00
Luigi Teschio 01d9bfc678
CSY: Update copy when AI is offline (#41900)
* fix: CSY - update font copy when ai is offline

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

* update font

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-07 09:16:28 +01:00
Chi-Hsuan Huang f793b64c64
Make CYS loader smoother (#41772)
* Make CYS loading sequence smoother

* Add changelog
2023-12-07 12:14:57 +08:00
Matt Sherman 1451626182 Make the BlockRegistry a singleton 2023-12-06 20:07:52 -05:00
Marco Almeida dd1a76d2be
Cart shortcode: Format postcode before validation on the shipping calculator (#41917)
In the shortcode-based Cart, format postcode before validation on the shipping calculator to be coherent with the checkout behaviour.

Fixes #41913
2023-12-06 16:43:57 -08:00
Corey McKrill d82747f643
Add changelog file 2023-12-06 16:34:05 -08:00
Corey McKrill 57804c0ed5
Improve backtrace getter 2023-12-06 16:05:26 -08:00
barryhughes 6dd6866640 Changelog. 2023-12-06 15:43:43 -08:00
barryhughes b186a83aea Set version tag to 8.5.0. 2023-12-06 15:35:38 -08:00
barryhughes 64206a9a6d Use strict array searching. 2023-12-06 15:35:04 -08:00
Corey McKrill 651e754fdd
Show log context as additional togglable table row
This is partly based on the work done by @johnregan3 in #31823.

Co-authored-by: John Regan <john.m.regan@gmail.com>
2023-12-06 15:03:22 -08:00
Patricia Hillebrandt 89108c348b ditch spacing. 2023-12-06 19:04:21 -03:00
Patricia Hillebrandt 6bc41b24e3 Fix lint error. 2023-12-06 19:01:28 -03:00
Damián Suárez 6fab5dc8eb
[Product Block Editor]: move Modal editor out of the description block edit component (#41878) 2023-12-06 18:28:36 -03:00
Damián Suárez e494d53aee introduce showBackButton prop 2023-12-06 17:38:47 -03:00
Damián Suárez 035280b426 do not sub registry for the Product Editor 2023-12-06 17:38:10 -03:00
Damián Suárez f58405f1a3 dispatching action to close from modal cmp 2023-12-06 17:38:10 -03:00
Damián Suárez 39778dadf4 fix prettier issue 2023-12-06 17:38:10 -03:00
Damián Suárez 3f39802848 minor doc comment 2023-12-06 17:38:10 -03:00
Damián Suárez 9fed1e67ff update deps 2023-12-06 17:38:10 -03:00
Damián Suárez 42a9ed7087 remove useSubRegistry prop 2023-12-06 17:38:10 -03:00
Damián Suárez 26f44671a2 do not memoize parsed blocks 2023-12-06 17:38:10 -03:00
Damián Suárez adefe04c84 set the Modal editor content when clicking 2023-12-06 17:38:10 -03:00
Damián Suárez c9a4a1aab7 add a line break (minor) 2023-12-06 17:38:10 -03:00