Commit Graph

82 Commits

Author SHA1 Message Date
Alex Florisca cda0f8a3f8
Revert "Add new buttonAttributes API to style express checkout buttons coherently (#47899) (#50763)
* Revert "Add new buttonAttributes API to style express checkout buttons coherently (#47899)"

This reverts commit 006fbc6714.

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

* Update changelog

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-19 18:54:58 +01:00
Alex Florisca 006fbc6714
Add new buttonAttributes API to style express checkout buttons coherently (#47899)
* Expose buttonAttributes to the express payment methods

* Add size and label attributes to the express checkout area

* Remove defaultHeight

* default button Label

* Remove the button label attribute

* Remove px from height

* Change large button height to 55px

* Load express checkout block with attributes

* Add toggle and borderRadius controls and remove getting border radius from the theme

* Remove extra border radius text

* Only pass buttonAttributes if toggled on

* Move express payment block attribute logic into a Provider

* Tidy up editor grid and parse attributes into context on frontend

* Add px to border-radius input

* Express payment methods not selectable

* Add a test

* lint fixes

* default button height is 48 not 4

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

* Update docs

* Add tests for express payment methods

* Center images within the express payment area in the editor

* Apply the buttonAttributes to the li container in the editor regardless of showButtonStyles

* Fix style issue

* fix linting

* fix lint again

* Update manifest

* Update docs manifest

* Resize images in editor

* lint fix

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-14 11:02:58 +01:00
Heitor Pedroso b2f5f98593
Update additional-checkout-fields.md (#50377)
* Update additional-checkout-fields.md

* Update docs-manifest.json

---------

Co-authored-by: Alex Florisca <alex.florisca@automattic.com>
2024-08-13 12:03:21 +01:00
Karol Manijak 8bdc78c777
Product Collection: Trigger `wc-blocks_product_list_rendered` JS event (#50166)
* Dispatch JS event about PC being rendered

* Revert format changes

* Write the callback

* Add functions descriptions

* Add changelog

* Remove empty line

* Add tests

* Rename test cases

* Replace waiting for page load with more reliable expect.poll

* Remove leftover step

Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>

* Fix typo in function name

* Add collection name to default Product Collection block

* Expect collection name in the event

* Expose the collection name through IAPI context

* Send the collection name with the event

* Trigger event also on page change

* Remove unused CUSTOM collection type

* Provide documentation

* Update TOC

* Update tests that verify the event payload

* Improve E2E tests further

* Don't add a Product Catalog collection type to default collection

* Avoid repeating the same piece of code by extracting some function on tag processor

* Rename function to better depict its purpose

* Move the documentation to the right place

* Remove the unused variable

* Add example to dom-events doc

* Update documentation

* Update docs manifest

* Attach default collection name

* Add the default collection context in PHP so it covers all the cases

* Prevent exposing product catalog collection name in event

* Update docs

* Update test

---------

Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>
2024-08-13 12:29:04 +02:00
piinthecloud f7f280fd1b
create product collection category and move to main docs folder (#50368)
* create product collection category and move to main docs folder

* add readme

* update title

* update title

* add changelog and remove emojis

* Update docs/product-collection-block/register-product-collection.md

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>

---------

Co-authored-by: Shani <shanibanerjee@gmail.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-08-05 11:51:32 -04:00
piinthecloud d92161cbd1
Move checkout docs to main v2 (#49984)
* move checkout docs with front matter to main folder (#49186)

* move checkout docs with front matter to main folder

---------

Co-authored-by: Jacklyn Biggin <hi@jacklyn.dev>

* initial commit to reapply changes from PR #49186

* update html tags to unicode and clean up hashlinks

* revert unicode

* remove emoji

* update manifest

* test readme page

* remove avail-filters since it is now redundant with the readme

* update links

* test htmlentity

* pdate links

* typo fix

* update readme with actual doc

* fix links

---------

Co-authored-by: Jacklyn Biggin <hi@jacklyn.dev>
2024-08-02 20:12:06 +02:00
louwie17 97b3b10a2b
Add product form extensibility tutorials (#50137)
* Start on the generic fields tutorial

* Add custom field tutorial

* Some small updates

* Address linting

* Minor updates

* Update manifest

* Address PR feedback, mostly formatting changes
2024-08-01 10:50:51 -03:00
Shani 752e80acfa
Docs/linter fixes code snippets (#50102)
* Adds merchant code-snippets

* Adds updated manifest.json

* Fixes linting issues on a number of files

* Adds manifest.json again

* Additional linter fixes

* Updates manifest.json

---------

Co-authored-by: Shani Banerjee <shanibanerjee@Shanis-MBP.lan>
2024-07-30 10:46:59 -04:00
Fernando Marichal 4e368a1b67
Add readme for validations (#49723)
* Add readme for validators

* Add changelog

* Add docs manifest

* Fix product-editor.md

* Fix readme
2024-07-24 13:02:02 -03:00
Corey McKrill aa1eae6c17
Docs: Updates to the Logging doc (#49430)
* Docs: Updates to the Logging doc

This tweaks the wording in a few places and adds
a new suggestion under the "Customizing" header
about changing the directory where log files are
stored.

* Update docs manifest
2024-07-12 11:11:08 -07:00
piinthecloud cae3937ee6
Revert move docs (#49354)
* revert moving docs to main folder ahead of issues with subcategories

* add changelog

* add changelog
2024-07-10 17:33:15 +02:00
piinthecloud ec82b3f08f
move checkout docs with front matter to main folder (#49186)
* move checkout docs with front matter to main folder

* add manifest

* add core changelog

* Remove emojis, unsupported links and table of contents

* pr comments

* update folder name and remove toc

* title fix

---------

Co-authored-by: Jacklyn Biggin <hi@jacklyn.dev>
2024-07-10 16:53:52 +02:00
Ilyas Foo eefcd429dd
Remove duplicate title in coming soon dev docs (#48938)
Remove duplicate title
2024-06-29 18:49:04 +08:00
Ilyas Foo d9e837a8ca
Add coming soon example code documentation (#48748)
* Add coming soon docs

* Update manifest

* Add new example and fix writing

* Update docs/extension-development/integrating-coming-soon-mode.md

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

* Add example for a single page exclusion

* Add example for 2-way sync and fix trigger from woocommerce example to use update_option action

* Lint

* Update docs according to style guide

* Better structure for custom exclusions filter

* Update manifest

---------

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2024-06-26 17:07:06 +08:00
Chi-Hsuan Huang ab1789afd2
Remove onboarding welcome modals (#48346) 2024-06-13 10:39:21 +08:00
Albert Juhé Lluveras 545e48e05a
Expand block templates documentation (#48247)
* Expand block templates documentation

* Add changelog file

* New manifest

* Minor changes

* Add Page: Coming soon template
2024-06-11 10:04:48 +02:00
Thomas Roberts b0db3aeab4
Update payment method integration links for improved a11y and not to point to WC Blocks repo (#47936) 2024-06-03 11:29:11 -07:00
Brent MacKinnon 64281612aa
docs: Adding Performance category and best practices (#48027) 2024-05-30 17:01:28 -04:00
Brent MacKinnon 50396961b0
Adding tutorials for Extensible Product Type Onboarding and Tour Guide (#48024) 2024-05-30 15:22:39 -04:00
Brent MacKinnon 0606b9580b
Docs: Adding Best Practices for Compatibility, Maintainability, Privacy Standards, Support and Documentation (#47976)
Adding quality+best practices docs
2024-05-30 12:40:59 -04:00
Matt Sherman fd85199f9a
Doc: Fix product editor block template lifecycle doc (#46767)
* Fix action names

* Add missing slash in endpoint URL

* Doc manifest
2024-05-23 07:48:39 -04:00
Maikel Perez 4c0399991a
Replace copy: List Price to Regular Price (#47658)
* Replace copy: List Price to Regular Price

* Add changelog files

* Fix md-docs linter errors and update the manifest
2024-05-21 16:28:01 -04:00
Seghir Nadir ccba86a616
Update additional fields document's TOC and link to it from another document. (#47137)
* update docs

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

* fix linting

* update manifest

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-13 15:46:46 +00:00
Brent MacKinnon a9c4dedc20
Update security-best-practices.md (#46200)
* Update security-best-practices.md

* Update security-best-practices.md

* Update security-best-practices.md

* Update docs-manifest.json

* Update docs-manifest.json

---------

Co-authored-by: piinthecloud <stephmpi@gmail.com>
2024-04-29 11:04:59 +02:00
Matt Sherman b0517d0652
Doc: Fix product editor dev handbook doc (#46770)
* Fix broken image

* Fix create-product-editor-block link

* Fix related documentation links

* Docs manifest
2024-04-24 14:31:41 -04:00
Jorge A. Torres a6222d6828
Fix encoding on a few HPOS docs (#46786)
* Fix encoding in some HPOS docs

* Update manifest
2024-04-22 18:23:14 +05:30
Leif Singer d1be68b88c
Update @woo.com email addresses to @woocommerce.com (#46387)
* update @woo.com email addresses

* update %40woo.com email address

* add changelog file

* update docs manifest
2024-04-19 21:11:01 +00:00
Jorge A. Torres 5fe34385a1
Migrate HPOS wiki docs to the docs site (#46724)
* Add HPOS CLI tools doc

* Add HPOS extension recipe book

* Add HPOS querying improvements

* Update manifest

* Fix some linting issues

* Apply suggestions from review

* Update manifest
2024-04-19 11:51:10 -07:00
Brent MacKinnon b530a6e9dd
Update guide-large-store.md (#46697)
* Update guide-large-store.md

* Update docs-manifest.json
2024-04-17 11:14:38 -06:00
piinthecloud 50b58e54ff
updated instances in docs (#46618)
* updated instances in docs

* Fix beta testing title + regen manifest

---------

Co-authored-by: Jacklyn Biggin <hi@jacklyn.dev>
2024-04-15 23:49:06 +00:00
Brent MacKinnon 8fc82e9bfd
Fix broken links from issue #46336 (#46381)
* Fixing broken links

* Update docs/payments/payment-gateway-api.md

Co-authored-by: Leif Singer <leif@automattic.com>

* Update docs/contributing/common-issues.md

Co-authored-by: Néstor Soriano <konamiman@konamiman.com>

* Update docs/payments/payment-gateway-api.md

Co-authored-by: Leif Singer <leif@automattic.com>

* Update writing-high-quality-testing-instructions.md

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

* ignore MD029 rule (1/2/3) as the linebreaks that are needed for the code block confuse its numbering

* update the docs manifest

`pnpm utils md-docs create docs woocommerce -o docs/docs-manifest.json`

---------

Co-authored-by: Leif Singer <leif@automattic.com>
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Leif Singer <git@singer.sh>
2024-04-15 14:30:37 +02:00
Jonathan Lane c7de30b773
[DOCS] Update core critical flows with update e2e tests (#46400)
* Update core critical flows with update e2e tests

* Updated docs manifest

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-04-09 19:14:20 -04:00
Jacklyn Biggin 462afb0282
Fix remaining broken links discovered in SEO orbit (#46398) 2024-04-09 17:10:23 -03:00
Jacklyn Biggin 04c3d9119c
Fix broken links in payments onboarding doc (#46388) 2024-04-09 16:56:10 +00:00
Shani a7b3727063
Contributions guidelines cleanup 2 (#46384)
* Removes duplicate contribution doc

* Removes duplicate title

* Adds manifest.json

---------

Co-authored-by: Shani Banerjee <shanibanerjee@Shanis-MBP.lan>
2024-04-09 16:07:37 +00:00
Jacklyn Biggin 24bed48bb8
Fix internal broken links on docs site (initial test) (#46378)
* Fix broken internal links on the docs site

* Update docs manifest
2024-04-09 14:40:56 +00:00
Leif Singer 8ee74ede0e
Update Woo.com references to WooCommerce.com (#46259)
* replace capitalized Woo.com with WooCommerce.com

* replace http URLs

* replace https URLs

* replace developer.woo.com

* add missing version in `@since` tag

* unslash the HTTP_REFERER

* WordPress.Security.ValidatedSanitizedInput.InputNotSanitized

* add changelog file

* add more changelog files

* address linter errors

* address more linter errors

* fix test

* more linter errors
2024-04-09 09:50:15 +01:00
Shani b78f1487e5
Remove heading testing category docs (#46338)
* Removes title causing double heading

* adds manifest.json

---------

Co-authored-by: Shani Banerjee <shanibanerjee@Shanis-MBP.lan>
2024-04-08 15:16:07 +00:00
Shani 3af1ff3f68
Adds testing readme to docs (#46249)
* Renames beta testing directory and adds readme

* Adds manifest.json

* Adds meta tags to readme

* Fixes linting issue

---------

Co-authored-by: Shani Banerjee <shanibanerjee@Shanis-MBP.lan>
2024-04-05 09:36:22 -04:00
Shani d80086ef87
Beta testing doc addition (#46244)
* Adds beta testing directory and doc to docs directory

* Adds manifest.json

* Fixes typo

* Linter fix

---------

Co-authored-by: Shani Banerjee <shanibanerjee@Shanis-MacBook-Pro.local>
2024-04-04 17:56:50 +00:00
Shani 790373ba3b
Edit contributing docs readme (#46197)
* Directs devs to docs site where contributing to woo links are clearly laid out and defined

* Adds updated manifest.json

* Fixes typo

---------

Co-authored-by: Shani Banerjee <shanibanerjee@Shanis-MBP.lan>
2024-04-04 13:09:27 -04:00
Vedanshu Jain 5dc662b736
Add guide to enable HPOS on high volume stores. (#46084)
* Add guide to enable HPOS on high volume stores.

Co-authored-by: Stephanie <stephmpi@gmail.com>
Co-authored-by: Jorge Torres <jorge.torres@automattic.com>

* Addressed review comments.

* Add manifest file.

---------

Co-authored-by: Stephanie <stephmpi@gmail.com>
Co-authored-by: Jorge Torres <jorge.torres@automattic.com>
2024-04-03 13:20:07 +02:00
Shani 073c3ff3b4
Update for dev environment doc (#45460)
* Dev environment doc edited

* Building first extension doc update

* Adds updated manifest.json file

---------

Co-authored-by: Shani Banerjee <shanibanerjee@Shanis-MBP.lan>
2024-03-27 17:01:24 +00:00
Shani ed296e5b93
Update developer resources tools docs (#45567)
* Removes dev resources file, edits dev tools, adds new contribution file

* Adds meta tags

* Adds updated manifest.json

* Fixes typo

* Update contributing-to-core-and-marketplace.md

---------

Co-authored-by: Shani Banerjee <shanibanerjee@Shanis-MBP.lan>
Co-authored-by: Jacklyn Biggin <hi@jacklyn.dev>
2024-03-25 21:19:54 +00:00
Paulo Arromba f1dd1e02a6
Docs: migrate Template structure & Overriding templates via a theme (#43571)
* Removed wrong blockquote

* Lint exception

* Added changelog

* Update docs-manifest.json
2024-03-20 14:49:20 +00:00
Jacklyn Biggin 9f7e019d02
Fix character encoding issues across the docs site (#45518)
* Fix character encoding issues across the docs site

* Fix manifest
2024-03-12 11:06:37 -04:00
Brent MacKinnon babf31877f
Docs fix ux guidelines (#45323)
* Update accessibility.md

* Update docs-manifest.json

* Update theme design accessibility guidlelines

* Update theme-accessibility.md

* Update docs-manifest.json

---------

Co-authored-by: Jacklyn Biggin <hi@jacklyn.dev>
2024-03-05 17:25:24 +00:00
Brent MacKinnon 21ba2275da
Update accessibility.md (#45316)
* Update accessibility.md

* Update docs-manifest.json
2024-03-05 15:01:52 +00:00
Shani 76b776d71c
Update build first extension doc (#44870)
* Init commit

* Updates remainder of the doc

* Fixes linting issues

* Updates manifest from rebase

* Updated manifest using command in this branch

---------

Co-authored-by: Shani Banerjee <shanibanerjee@Shanis-MBP.lan>
2024-03-04 17:36:55 +00:00
Corey McKrill d581512171
Logging: Improve compatibility with multisite (#44735)
* Add static method for getting the log directory

* Add filter for customizing the log directory path

* Handle case where constant is already defined

* Do directory creation on the fly instead of during install

* Replace all Core usages of WC_LOG_DIR

* Ensure each site's log handler setting is respected

* Add unit tests

* Fix legacy logger unit tests

* Update docs

* Regenerate docs manifest file (required by GitHub CI)

---------

Co-authored-by: Nestor Soriano <konamiman@konamiman.com>
2024-02-28 12:31:31 +01:00