Commit Graph

64 Commits

Author SHA1 Message Date
paul sealock 3a541ffd37 handle all scripts 2024-08-29 12:11:42 +12:00
paul sealock 9db7e547f1 remove jquery-in-react 2024-08-29 11:54:30 +12:00
paul sealock e2ec1c46f8 fix conflict resolution 2024-08-27 13:22:24 +12:00
paul sealock 5ed03a729f Merge branch 'trunk' into try/add-settings-refresh-next 2024-08-27 13:11:04 +12:00
paul sealock 1065e6d450 re run callbacks on tab change 2024-08-16 10:59:01 +12:00
paul sealock d08a064bbb jquery in react script 2024-08-16 10:27:44 +12:00
Moon 0468bdbe82
blueprint - add php package and cli commands (#49763)
* Add blueprint package

* Add blueprint to composer

* Register blueprint cli commands

* Add feature flag

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

* Update packages/php/blueprint/src/Exporters/HasAlias.php

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

* Update packages/php/blueprint/src/Exporters/ExportInstallThemeSteps.php

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

* Update packages/php/blueprint/src/UseWPFunctions.php

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

* Set destination correctly

* Make sure the given path is within wp content dir

* Remove debug code

* Fix typo

* Fix typo

* Fix lint errors with README

* Move READMD.md from src to the root directory and add development.md

* Add run-unit-tests.sh

* Setup test env

* Create dirs recursively

* Remove debug code

* Update packages/php/blueprint/src/Util.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update packages/php/blueprint/src/ZipExportedSchema.php

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

* Check for steps key

* Use if statement

* Add hook comment for wooblueprint_exporters and wooblueprint_importers

* Fix plugin activation condition

* Check for download_link -- it can be empty

* Check to make sure a file was written

* Plugin must be deactivated before attemping to delete it

* Lint fixes

* Lint fixes

* blueprint - add rest api (#49765)

* Add blueprint rest api endpoint

* Rename process to import

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

* Update plugins/woocommerce/src/Admin/Features/Blueprint/Init.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce/src/Admin/Features/Blueprint/RestApi.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce/src/Admin/Features/Blueprint/RestApi.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce/src/Admin/Features/Blueprint/RestApi.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce/src/Admin/Features/Blueprint/RestApi.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Remove unavailable 2nd argument from get_param -- default values are already set from the rest api def.

* blueprint - add builder page  (#49774)

* Add blueprint builder page

* Change to the correct endpoint

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

* Note that the builder intro page is temporary

* Remove unused code

---------

Co-authored-by: github-actions <github-actions@github.com>

* blueprint - add blueprint settings page (#49775)

* Add blueprint settings page

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

---------

Co-authored-by: github-actions <github-actions@github.com>

* Fix broken test

* Lint fixes

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update unit test env

* Added composer scripts to setup and run tests
* Moved tests to Unit dir to make space for Integration tests later

* WIP Add tests

* Use full if statement

* Use the correct step names

* Use activate_plugin and wp_get_thmes from wp functions trait

* Skip inactive plugins

* Use plural for collections

* Add a comment for StepExporter

* Remove unused construct code

* Correct function return types

* Update packages/php/blueprint/src/Importers/ImportActivateTheme.php

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

* Use full if statement

* Make sure plugin is installed

* Use functions from trait

* Remove unused functions

* Pass $force_convert correctly

* Correctly assign $this->validator

* Fix lint issues

* Rename setOptions to setSiteOptions

* Do not use die() -- throw an exception instead

* Make sure slug is a valid WP plugin slug

* Remove hardcoded string with get_step_name()

* Fix lint issues

* Update json example files

* Removed woo-specific examples -- these should be placed in the core
* Updated the built-in steps to reflect the recent changes

* Update packages/php/blueprint/src/docs/json-examples/deletePlugin.json

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

* Update plugins/woocommerce/src/Admin/Features/Blueprint/RestApi.php

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

* Rename to correct filename

* Set version number

* Use mime_content_type for checking mime type

* Catch all exceptions

* Only allow zip and json

* Remove unused function

* Remove unused functions

* Add PHPCS command and ruleset

* PHP lint fixes

* Update plugins/woocommerce/src/Admin/Features/Blueprint/Init.php

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

* Add back removed functions

* blueprint - Add woo blueprint exporters and importers (#50057)

* Add woo blueprint exporters and importers

* Comment fix

* Update plugins/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCSettings.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCSettings.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCSettings.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce/src/Admin/Features/Blueprint/Exporters/ExportWCSettings.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Add a test for ImportSetWCTaxRates

* Lint fixes

* Lint fixes

* Fix setWCShipping schema and data format

* Add woocommerce_default_country option

* Lint fixes

* Fix typo -- it should be decode, not encode

* Fix incorrect argument order

* Fix typo

* Export and import shipping method settings

* Lint fixes

* Lint fixes

* Type functions -- base PR has changed

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Require admin for import and export

* Use mime type from $_FILES -- mime_content_type can return incorrect mime type depending on the system configuration

* Enable export button when backend errors out

* Enable export button when backend errors out

* Allow WooCommerce export

* Change copy text

* Remove redundant check

* Fix lint issues

* Fix lint issues

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2024-08-12 16:33:05 -07:00
RJ c4beb062bf
fix: fixed react18 React.render deprecation notice for WCAdmin (#48785) 2024-08-02 06:53:49 +00:00
paul sealock 1b0fc149a2 clsx 2024-07-10 13:54:47 +12:00
paul sealock 97c5800dcf save 2024-07-10 13:54:47 +12:00
paul sealock 2526712142 fix 2024-07-10 13:54:47 +12:00
paul sealock 24dd8df071 close sidebar on tab change 2024-07-10 13:54:47 +12:00
paul sealock 25e2e1cb42 add sidebar content cmponent 2024-07-10 13:54:47 +12:00
paul sealock 9d7161d736 slotfill working 2024-07-10 13:54:47 +12:00
paul sealock fb4e55e6cf Get sidebar working 2024-07-10 13:54:47 +12:00
paul sealock 18119dcfea Settings view component 2024-07-10 13:54:47 +12:00
paul sealock 32cc91b29d handle no sections 2024-07-10 13:54:47 +12:00
paul sealock e13fc91235 get output() working 2024-07-10 13:54:47 +12:00
paul sealock 7b0a5151fc Start settings-next 2024-07-10 13:54:47 +12:00
paul sealock 5daf3ec66d finally get slotFill right 2024-07-10 13:54:47 +12:00
paul sealock 961e4e4a6f save slotfill not working 2024-07-10 13:54:47 +12:00
paul sealock 2c8783e8ad fix selected section 2024-07-10 13:54:47 +12:00
paul sealock 094fa28f90 custom html and slotfills working 2024-07-10 13:54:47 +12:00
paul sealock bb197dd8bf styles 2024-07-10 13:54:47 +12:00
paul sealock c7460c6209 handleFormINput on submit 2024-07-10 13:54:47 +12:00
paul sealock a837e52f80 wording 2024-07-10 13:54:47 +12:00
paul sealock 79f6c4d2cb add inputs 2024-07-10 13:54:47 +12:00
paul sealock 6fbdb39ae8 notice and isBusy 2024-07-10 13:54:47 +12:00
paul sealock 862215e50f save options - working 2024-07-10 13:54:47 +12:00
paul sealock 5822842b19 POST request - not working 2024-07-10 13:54:47 +12:00
paul sealock 60934d5588 gather form data 2024-07-10 13:54:47 +12:00
paul sealock f81321be4c smash nav bugs 2024-07-10 13:54:47 +12:00
paul sealock 63e751a3a2 get slotfill_placeholder type working 2024-07-10 13:54:46 +12:00
paul sealock 884f00cf73 handle no section param 2024-07-10 13:54:46 +12:00
paul sealock b51ee52fd0 better key 2024-07-10 13:54:46 +12:00
paul sealock 868b3c149c cleanup 2024-07-10 13:54:45 +12:00
paul sealock 214d3fb839 content layout 2024-07-10 13:54:19 +12:00
paul sealock cbe8bfae63 start components 2024-07-10 13:54:19 +12:00
paul sealock 410904fc5b nav styles 2024-07-10 13:54:19 +12:00
paul sealock d40993bcec layout with nav 2024-07-10 13:54:19 +12:00
paul sealock 238aece4e8 rename section nav 2024-07-10 13:54:19 +12:00
paul sealock b10bff957d list section data 2024-07-10 13:54:19 +12:00
paul sealock 1ee9b5a756 tabs styles better 2024-07-10 13:54:19 +12:00
paul sealock 5342b6cbcc get routing working 2024-07-10 13:54:19 +12:00
paul sealock e774182158 tab styles 2024-07-10 13:54:19 +12:00
paul sealock 20a4cab4c6 add tabPanel 2024-07-10 13:54:19 +12: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
Moon def3ac920d
Move site visibility settings to a new tab (#46140)
* Move site visibility settings to a new tab

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

* Update tab id to site-visibility and link to it from the homescreen badge

* Fix tests

* Remove unused code

* Lower case tab title

* Remove general from the slotfill id

* Remove typo

* Lint fix

* Lint fix

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-04 14:28:58 -07:00
Paul Sealock 619804cff3
Stylelint: Update config to double quotes (#45607)
* Add eslint override

* bump versions stylelint config

* re pnpm install

* fix config

* move to double quotes in scss

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

* lint fix new scss files

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-26 10:41:34 -03:00
Moon 1f914c755e
Add Launch Your Store settings section (#45402)
* Support div setting type

* Add wc_settings_general_site_visibility_slotfill slotfill

* Add site visibility setting section

* Add placeholder

* Rename div to slotfill_placeholder

* Add comment

* Fix component name

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

* Use unique id

* Rename option names

* Put LYS settings behind launch-your-store flag

* Move Site Visibility header to component

* Lint fixes

* Lint fixes

* Use woocommerce-settings scope

* lint fix

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-03-08 04:11:52 +00:00