Commit Graph

1529 Commits

Author SHA1 Message Date
Moon 4ff99a8555
Migrate Section component to TS (#36298)
* Convert to ts

* Add changelog

* Fix style

* Remove propTypes

* Remove unused import

* Only allow false

* Update packages/js/components/src/section/section.tsx

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

* Update packages/js/components/src/section/section.tsx

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

* Update packages/js/components/src/section/section.tsx

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

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-01-12 13:57:15 -08:00
louwie17 b8c25b49bf
Initial product form field store (#36362)
* Add initial product fields registry store and helper functions

* Add changelog

* Change edit to render and address PR feedback

* Make use of memoize-one instead of rememo as memoize-one is already installed
2023-01-12 04:02:35 -04:00
Matt Harrison e588c560bf
Update spelling of Cancelled to Canceled for US English. (#36294)
* Update spelling of Cancelled to Canceled for US English.

This only updates output display text that uses US English. All code that uses
the form Cancelled is unchanged and is perfectly fine to stay as Cancelled.
(since it is behind the scenes and would require changes in other plugins)

For languages where Cancelled is preferred such as UK English the approprate
form can be applied in the translation files.

Fixes https://github.com/woocommerce/woocommerce/issues/25847

* add changelog file

* Update plugins/woocommerce/tests/api-core-tests/tests/settings/settings-crud.test.js

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

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-01-12 12:13:36 +08:00
Joel Thiessen 6e428201c1
Adding WooProductSectionItem slotfill (#36331) 2023-01-11 10:00:20 -08:00
Maikel David Pérez Gómez 8bada412d4
Product variations should inherit parent product properties (#36234)
Remove manage_stock 'parent' value before saving the variation
2023-01-11 11:41:25 -03:00
Miguel Pérez Pellicer ef3d15fcd4
Make secondQuestion and title params optional in CES Prompt (#36270)
* Set secondQuestion and title as optional

* Update docs and changelog

* Fixes after review
2023-01-11 18:53:36 +07:00
Joel Thiessen f429b9444c
Adding WooProductFieldItem slotfill (#36315) 2023-01-10 10:13:02 -08:00
RJ 4927a2e412
dev: migrate @woocommerce/components/link to ts (#36285) 2023-01-10 19:12:22 +08:00
Roy Ho aca46fb7d1
Dev/woo ext/components (#36328)
* Add woo components and lock wp scripts dep

* Add some example usage of Woo components

* Update packages/js/create-woo-extension/src/index.js.mustache

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>

* Update packages/js/create-woo-extension/src/index.js.mustache

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>

* Update packages/js/create-woo-extension/src/index.js.mustache

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>

* Update packages/js/create-woo-extension/src/index.js.mustache

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>

* Update packages/js/create-woo-extension/src/index.js.mustache

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>

* Update packages/js/create-woo-extension/src/index.js.mustache

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>

* Update packages/js/create-woo-extension/src/index.js.mustache

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
2023-01-06 14:04:08 -08:00
Maikel David Pérez Gómez 1ab678c13f
Include tax options in pricing section (#36299)
* Add Charge sales tax on sub section to pricing section when enable taxes is set to yes

* Add tax classes datastore

* Load tax classes in pricing section

* Set empty value when tax class is standard rate

* Add changelog files

* Add custom resolver to use slug as id for tax classes

* Add helper text and learn more link to tax class radio group
2023-01-06 09:41:45 -03:00
Fernando Marichal a9005c58f0
Fix moving list item also moves image gallery item (#36262)
* Fix list id

# Conflicts:
#	pnpm-lock.yaml

* Add changelog

* Add package changelog

* Remove changelog

* Add `-` between the item `index` and `id`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-01-06 08:53:33 -03:00
Chi-Hsuan Huang 2d4f62be7a
Migrate Tag component to TS (#36265)
* Migrate Tag components's tests and stories to TS

* Migrate tag component to TS

* Add changelog

* Fix prop types

* Remove jsdoc, proptype and add inline ts comments

* Remove unused import
2023-01-06 10:48:03 +08:00
Joshua T Flowers 8b905b92c0
Allow product tab navigation without prompting for unsaved changes (#36235)
* Add callback to confirm whether or not the prevent leaving page prompt should trigger

* Move prevent leaving logic to util and add tests

* Add changelog entry

* Add navigation changelog entry

* Fix WooCommerce data mock

* Revert desctructuring of nav properties
2023-01-05 18:30:36 -08:00
Vedanshu Jain f36a16cd06
Update changelogger to 3.3.0 to support PR number capturing with merge (#36266)
* Update changelogger.

* Add changelog.

* Update changelogger for all packages.

* Add changelogs.

* Update changelog for remaining packages.
2023-01-05 14:42:51 +05:30
github-actions[bot] 216a7505df
Prepare Packages for Release (#36210)
Automated change: Prep @woocommerce/components for release.

Co-authored-by: puntope <puntope@users.noreply.github.com>
2023-01-03 18:53:06 +07:00
Paul Sealock f557c44a0d
Create Woo Extension: Update Readme (#36156) 2023-01-03 07:03:44 +13:00
Chi-Hsuan Huang 9f0d718a33
Cleanup product task experiment (#35950)
* Cleanup product task experiment

* Rename experimental-products -> products

* Add changelog

* Clean up product task experiment in woo/onboarding

Remove product variant

* Rename experimental-import-products -> import-products

* Clean up OnboardingTasks.php

* Add changelog

* Remove experimental-products-task feature flag
2022-12-28 16:08:54 +08:00
Miguel Pérez Pellicer b133ad98c7
Add noDataLabel into Table component allowing to customise No Data Label message. (#36124)
* Add noDataLabel property to allow No Data Message customization

* Adding changelog

* Update variable name

* Add story book use case
2022-12-28 12:31:35 +07:00
Joshua T Flowers 5137973d91
Add product variation header actions and persistence (#36155)
* Fix up updateItem query in CRUD data store

* Add product variation form header

* Fix gaps for variation and parent product actions

* Hide preview button on mobile for product variations

* Add changelog entry

* Add data package changelog entry

* Fix lint errors
2022-12-27 10:21:32 -08:00
Roy Ho d0e143a8bc
Dev/create woo extension/php cleanup (#36017)
* Clean up

* Add changelog
2022-12-26 07:07:11 -08:00
Gan Eng Chin 6382b4997c
Make `Table` component accept `className` prop (#36151) 2022-12-26 20:31:40 +08:00
Maikel David Pérez Gómez dd94bb78ee
Add product variation image (#36133)
* Convert getCheckboxTracks into generic function because of a type mismatch

* Add image to product variation and export types

* Add single image field

* Integrate SingleImageField in variation details section

* Add changelog file

* Add comment suggestions

* Fix set image onFileUploadChange
2022-12-23 10:28:44 -08:00
Maikel David Pérez Gómez bfa2d4f3a7
Product variation order should be persisted on save (#36109)
* Persist product variation order on product save

* Add batchUpdate to product variations datastore

* Add useVariationOrders hook to manage the ordering logic

* Add local ordering logic to variations field

* Persist variation orders on product save

* Add changelog file

* Add comments suggestions

* Add more comment seggestions
2022-12-22 16:01:51 -03:00
Joshua T Flowers 4b4fe7c227
Add product variation title to page header (#36085)
* Add method to get product variation title from data

* Conditionally add variation to page header

* Fix CRUD data store id query on selector

* Make getProductVariation calls and data types consistent to prevent multiple calls

* Add changelog entries

* Update product link type to avoid page refresh

* Expose function to truncate title to 32 character limit
2022-12-22 09:23:44 -08:00
Fernando Marichal a9986fe75e
Product variations - Set fixed height for card (#36053)
* Add className prop to Sortable

* Add styles

* Add `rows` class

* Add changelogs

* Remove `row-#` class

* Fix min-height

* Set task list item min height

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-12-22 09:03:07 -03:00
github-actions[bot] 4823a284dc
Prepare Packages for Release (#36084)
Automated change: Prep @woocommerce/create-woo-extension for release.

Co-authored-by: psealock <psealock@users.noreply.github.com>
2022-12-20 21:33:51 +13:00
Paul Sealock 378d5f525e
Create Extension: Fix install scripts (#36067)
* Update install scripts

* changelog
2022-12-20 13:53:59 +13:00
Joshua T Flowers 1d251f217c
Extend product variations data store with generate variations actions (#36058)
* Allow extending of CRUD data stores

* Add generate action to product variations data store

* Add controls to storeConfig

* Update readme with additional store config args

* Move key to catch

* Add changelog entry
2022-12-19 12:45:43 -08:00
Paul Sealock 23299dbafd
Create Extension: Prep for initial release (#36002)
* Add initial changelog

* run changelog release prep tool

* revert package.json version bump
2022-12-19 07:31:26 +13:00
Moon 62a957c75d
Add aria-label for simple select dropdown in select-control component (#35808)
* Add aria-label for simple select dropdown

* Add changelog

* Use placeholder value

* Allow aria label prop and use label as a fallback

* Update test snapshot

* Add changelog
2022-12-16 09:55:55 -08:00
Joshua T Flowers d46a1045e8
Add product variation form and routes (#36033)
* Add route for editing product variation

* Fix up ID selector for getItem in CRUD data store

* Add product variation form

* Add changelog entries
2022-12-16 11:20:10 -03:00
Matt Sherman c94a5c6f4b
Refactor AttributeField into sub-components (#35997)
* Add className support to ListItem
* Refactor to extract AttributeListItem component
* Use AttributeListItem component in AttributeField
* Extract AttributeEmptyState from AttributeField
* Use AttributeEmptyState in AttributeField
* Add default value for label prop on AddAttributeListItem
* Add props for labels in AddAttributeModal
* Add props for labels in EditAttributeModal
2022-12-15 21:49:02 -05:00
Joel Thiessen 54f22aa437
Adding delayed spotlight to feedback button on current product page (#35865) 2022-12-15 16:09:21 -08:00
Maikel David Pérez Gómez 393cc629d9
Add pagination to variations list (#35979)
* Add changelog

* Add pagination to variations list

* Apply styles for pagination paddings and to keep it at the bottom of the section card

* Returning back per page option from 2 to 25

* Fix pagination label text from uppercase to normal and font styles

* Update variation footer gap

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-12-15 10:13:29 -03:00
Chi-Hsuan Huang 736395ba3a
Fix wcpay benefits UI padding (#35946)
* Fix wcpay benefits padding

* Add changelog
2022-12-15 19:47:36 +08:00
Paul Sealock 3d0e8d500d
Rename package from create-extension to create-woo-extension (#35947)
* Rename package from create-extension to create-woo-extension

* update lock file
2022-12-15 17:45:28 +13:00
Roy Ho d0a464520d
Add WC active validation (#35891) 2022-12-14 07:35:22 -08:00
louwie17 c7132ec8f0
Add/35126 ces exit prompt settings (#35761)
* Add exit settings page tracker

* Add exception for when user hits the save button

* Update settings and add icon support

* Add changelog

* Add dismiss track for when user dismisses CES modal

* Add changelog

* Add tests for staticFormDataToObject function

* Fix imports of test file
2022-12-14 10:55:12 -04:00
Joshua T Flowers e1aabf2d9d
Add product variations list to new product management experience (#35889)
* Add product variations section

* Add variations list

* Add util to get product stock status

* Add variation specific attribute type

* Add currency code to header column

* Fix up variations header width

* Add variations loading state

* Add changelog entries

* Convert spaces to tabs

* Fix status typo

* Fix up return type for stock status
2022-12-13 15:29:05 -08:00
Joshua T Flowers 4eacc67501
Add product tabs to product layout (#35862)
* Add product form tabs to layout

* Move product sections to respective tabs

* Add tab styling

* Add changelog entry

* Scroll to top on tab change

* Update font weight on active or inactive tabs

* Add blank EOL
2022-12-13 08:13:12 -08:00
louwie17 613e58c061
CES exit prompt for product editing screens (#35728)
* Add exit page tracker logic and implement it for product pages

* Add changelog

* Fix lint errors and add comments

* Add ces_location prop

* Add mock to fix broken test

* Add CES exit page survey tests

* Fix a bug with React pages redirects and update actions

* Fix test

* Fix lint

* Add default inside location prop

* Remove exit prefix within action

* Address PR feedback and make sure its not triggered on save

* Update copy of exit feedback notice

* Add changelog

* Update name of param

* Fix lint error

* Use hasFinishedResolution vs isResolved in customerEffortScoreTracks
2022-12-12 09:56:28 -04:00
Maikel David Pérez Gómez 788b3ef59b
Add async filtering support to the select-control component (#35839)
* Add async filtering support to the select-control component

* Apply comment suggestions

* Apply more comment suggestions
2022-12-07 14:24:32 -03:00
Joshua T Flowers c5bb9a6879
Add product variations data store (#35838)
* Add product variations data store

* Add changelog entry

* Fix up lint errors

* Export product variation type
2022-12-06 13:17:49 -08:00
Paul Sealock d45d7dd64b
Add WooCommerce Extension environment scaffold (#35755) 2022-12-07 07:16:40 +13:00
Chi-Hsuan Huang 2a56407ba1
Migrate `@woocommerce/components/search` to TS (#35724)
* Migrate search component to TS

* Add @types/prop-types to @woocommerce/components

* Update search types

* Add changelog

* Update pnpm-lock.yaml

* Update ts doc comments
2022-12-06 13:21:10 +08:00
Matt Sherman 4b58bef897
Add __experimentalSelectControl suffix prop (#35809)
* SuffixIcon component
* Tests for SelectControl suffix prop
* Stories for SelectControl suffix prop
2022-12-02 11:53:53 -05:00
louwie17 0e8fbe083d
Add/35129 product mvp ces (#35652)
* Add product mvp ces footer

* Add changelog

* Reset action option name after CES action

* Make sure we make use of cesAction

* Add close button

* Fix formatting

* Fix css styling issues

* Add icon to success notice

* Add product mvp CES hook and modify logic a little bit

* Update the CES product action name

* Address PR feedback and fix styling for smaller screens

* Add second question to CES product footer and update options

* Add changelog

* Fix lint error

* Fix tests
2022-12-02 05:35:47 -04:00
Joshua T Flowers a6970f319c
Set editor mode on initialization to prevent initial text editor focus (#35701)
* Set editor mode on initialization to prevent initial text editor focus

* Add changelog entry

* Check for editor set method to prevent breaks in tests with older versions of block store

* Update argument name for initialization
2022-11-30 12:28:37 -08:00
Maikel David Pérez Gómez 25a7c35cf4
Improve element stacking in modals on tablet and mobile (#35733)
* Add updated versions of sr-only and not-sr-only mixins

* Improve element stacking in modals on tablet and mobile

* Add comment suggestion

* Change sr-only for screen-reader-only which is more descriptive
2022-11-30 13:28:00 -03:00
Fernando Marichal 1e9fff35c0
Allow the user to select multiple images in the Media Library (#35722)
* Add multiple selection to MediaUploader

# Conflicts:
#	packages/js/components/src/media-uploader/media-uploader.tsx

* Fix README.md

* Add multiple select to image section

# Conflicts:
#	plugins/woocommerce-admin/client/products/sections/images-section.tsx

* Add changelogs

* Fix repeated images addition

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-11-30 10:40:41 -03:00
Fernando Marichal 716d5ab322
Move file picker by clicking card into the MediaUploader component (#35738)
* Fix `MediaUploader` component

* Fix storybook

* Fix image section

* Add changelogs

* Fix code comment

* Fix text

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-11-30 09:00:14 -03:00
Joel Thiessen 4db5c0d8cd
Add additional question to CES modal (#35680) 2022-11-29 08:15:58 -08:00
Maikel David Pérez Gómez 6b3056422e
Align the field height across the whole form (#35720) 2022-11-25 11:58:38 -03:00
Matt Sherman ffb256df0e
Analytics: Fix custom date range calendar styling in WP 6.1 (#35649)
* Include react-dates styles (no longer included by WP 6.1+)

* Remove padding from filters popover content

* Changelog

* Include react-dates CSS directly from module instead of copy/pasting.
2022-11-25 11:57:20 -03:00
Maikel David Pérez Gómez 3ff334bec9
Fade the value selection field in the Attributes modal when no attribute is added (#35700)
* Fade the value selection field in the Attributes modal when no attribute is added

* Fix linter errors
2022-11-24 14:32:20 -03:00
Joshua T Flowers 527249f754
Fix unread notes count in inbox panel (#35396)
* Mark note as read when viewing

* Show unread note count

* Add ability to fetch read or unread notes

* Count unread notes on server side to avoid pagination limits

* Add changelog entry

* Add data changelog entry

* Add check for note actions before checking length

* Add changelog entry

* Mark note as read after 3s delay
2022-11-23 08:52:46 -08:00
Maikel David Pérez Gómez 29b9c691cd
Fix/unsaved prompt (#35657)
* Set initial values prop from reset form function as optional

* Fix unsaved modal propmt to not be shown during form submission

* Reset form on save draft and before navigation starts

* Add comments ssuggestions
2022-11-22 11:56:27 -03:00
Matt Sherman 995b587777
Analytics: Fix advanced filtering date selection in WordPress 6.1. (#35644)
* Fixed date filter date selection in WordPress 6.1.

* Move fix deeper into DatePicker itself.
2022-11-22 09:53:26 -05:00
Sam Seay 03dbab0edd
Fix some bugs in syncpack configuration (#35651)
* Fix syncpack config

* Loosen the matched version for typescript eslint

* Add changelog entries

* Update lockfile
2022-11-22 12:06:47 +13:00
github-actions[bot] ee64675fa5
Prepare Packages for Release (#35655)
Automated change: Prep @woocommerce/extend-cart-checkout-block for release.

Co-authored-by: opr <opr@users.noreply.github.com>
2022-11-21 09:50:20 -08:00
Paul Sealock 67ce24845e
@woocommerce/extend-cart-checkout-block: Add initial release to changelog (#35609)
* add initial release

* remove link to legacy changelog

* Change initial release to Patch
2022-11-21 05:27:28 -08:00
louwie17 6e90fb3d0a
Fix styling of CES modal (#35602)
* Add CES notice upon product creation/update

* Remove removal of icon

* Add changelog

* Add customer-effort-score library changelog

* Remove the cesTracks addition for now.

* Fix and add tests

* Revert CES notice changes as styling for this will change
2022-11-18 13:54:43 -04:00
Maikel David Pérez Gómez fc56dcf6e9
Add/35173 category field improvements (#35606)
* Add experimental open menu when user click the select control input element

* Open categories menu list when the user click the category field

* Fix linter error

* Move open menu from click to focus event

* Fix linter errors
2022-11-17 15:04:40 -03:00
Joshua T Flowers 233e23704f
Add product settings menu to new product management experience (#35592)
* Add icons

* Add classic editor url

* Remove welcome guide link and icon

* Add initial settings menu

* Fix up button styling

* Move product settings to its own folder

* Remove unnecessary registerPlugin call

* Use number type control for menu order field

* Add tests around product settings component

* Allow reviews by default on all new products

* Alphabetize product properties

* Add changelog entry

* Add data changelog entry

* Convert indentation to tabs

* Fix up scss linting errors

* Remove whitespace
2022-11-17 09:59:51 -08:00
louwie17 1550806efc
Add/34 create new category field modal (#35132)
* Add initial category field component with new typeahead

Move search logic to useCategorySearch hook

Add initial add new category logic

Add parent category field to add new category modal

Adding some debug changes

Update category control to make use of internal selectItem function of select control

Add changelogs

Update pagesize back to 100

Add placeholder

Empty placeholder

Fix input and icon sizes

Fix input underline

Add max height and scroll to category dropdown

Add sorting of category items

Auto open parents when traversing up the tree using arrow keys

Add several comments

Add some initial unit tests for the category field component

Add tests for useCategorySearch hook and fixed minor bug

Update styling and autoselect parent if child is selected

Fix styling issues for the select control dropdown inside a modal

Fix issue with creating new category with parent

Add function comment and fixed border styling

* Fix up some issues after the rebase

* Some small fixes for the Category creation

* Fix up some styling issues around the add-new-item

* Add changelogs

* Remove unneeded export of toggle button props

* Fix create category error and tests in attribute field

* Fix some minor bugs and styling changes that came up during PR feedback

* Fix tests

* Make use of $gap variable for css
2022-11-16 12:30:42 -04:00
Paul Sealock 0846ae58ed
Fix JS package readme (#35595) 2022-11-16 11:54:47 +13:00
timur987 8dc954d54b
Feature: Add the In-App Marketplace Tour (#35278)
Co-authored-by: Michal Iwanow <4765119+mcliwanow@users.noreply.github.com>
2022-11-15 11:12:17 +01:00
Matt Sherman 932b3386c3
Image Gallery: Update toolbar position and tooltips (#35534)
* Move image gallery toolbar up a bit
* Increase z-index of image gallery toolbar so that tooltips are not behind other images
* Update image gallery toolbar button tooltips
2022-11-14 16:08:27 -05:00
Matt Sherman 5b06618a6f
Add scheduled sale fields (#34538)
* Add scheduled sale fields to product form
* Close DateTimePickerControl's dropdown when blurring from input.
* Log when onChange is called for Controlled stories
* Handle when input changes occur but the end date is the same
* Fix DateTimePickerControl usage when uncontrolled
* Fix handling when blur happens before debounced onChange
2022-11-14 21:03:13 +00:00
Matt Sherman 17fe37cafe
Update DateTimePickerControl's popover styling to work with slot-fill (#35343)
* Tweak CSS styling of popover to accommodate usage with slot-fill

* Story for DateTimePickerControl use with slot-fill

* Changelog
2022-11-05 22:03:00 -04:00
Matt Sherman f0ee7a4882
DateTimePickerControl: Only call onChange when the date actually changes (#35397)
* Additional onChange tests
* Update handling when currentDate or dateTimeFormat changes to avoid errant onChange calls
* Remove unused changeImmediate function
* Refactor input change handling
* Refactoring of updateState* functions to reduce duplication and increase readability
* Refactor to remove a few unnecessary wrapper functions
* Rename setInputStringWithMoment to formatDateTimeForDisplay
* Refactor ISO formatting
* Rename parse functions
* Update controlled stories to properly use state
* Refactored to get rid of useEffect handling of currentDate and inputString changes
2022-11-03 12:54:17 -04:00
Joel Thiessen 5b1296fe45
Adding attribute edit modal for products MVP (#35269) 2022-11-03 08:20:29 -07:00
Chi-Hsuan Huang 76f99a482f
Cleanup and deprecate task properties and methods (#35450)
* Remove unused sectioned task code

* Remove section task type and update getVisibleTasks logic

* Clean up task list and deprecate methods/properties

* Add changelog

* Fix lint

* Remove snooze tests

* Remove snooze JS tests
2022-11-03 09:22:36 +08:00
Joshua T Flowers e1ebabba29
Fix up rich text editor initial selection and add blocks (#35286)
* Fix double click toolbar behavior

* Fix initial block selection on editor load

* Add placeholder option to RichTextEditor

* Add image and video blocks

* Set toolbar height

* Allow inserter to be shown

* Allow media uploads in rich text editor

* Add changelog entries

* Fix media upload

* Check for existence of selected blocks before checking length

* Pass blocks to avoid race in detecting initially empty blocks
2022-10-31 14:36:54 -07:00
louwie17 aea554bcdb
Fix/form ts error (#35394)
* Fix forwardRef type in the Form component

* Add changelog

* Revert type changes
2022-10-31 17:11:31 -03:00
Matt Sherman 12b79d32c2
DateTimePickerControl: Allow time to be set to beginning or end of day when in date-only mode (#35296) 2022-10-28 09:32:28 -04:00
Chi-Hsuan Huang a18f1bde92
Migrate @woocommerce/data report store to TS (#35048)
* Migrate reports store to TS

* Add changelog

* Update reports types
2022-10-28 11:29:03 +08:00
louwie17 04d6e8849c
Add name to select control popover slots (#35353)
* Add name to SelectControlMenuSlot

* Add changelogs

* Update changelog

* Fix typo in changelog
2022-10-27 12:52:29 -03:00
Thomas Roberts c539e5614f
Update `@woocommerce/extend-checkout-block` to include an example of a forced inner block (#33833)
* Update main integration file to register newsletter block scripts/styles

* Add files for example newsletter block

* Use only one internal dependencies comment

* Include newsletter block in index

* Move entry to correct position in webpack

* Rename functions to register scripts and styles

* Add changelog

* Remove block registration code

* Register slug as a block category to prevent warnings in console

* Add comment explaining the purpose of the function

* Bring templates up to date with latest changes to WC Blocks

The way the validation store selectors work was updated, so this template will use the new selectors.

* Ensure error message shows when box is not checked

* Ensure checkbox is targeted with CSS in editor
2022-10-27 01:28:44 -07:00
Maikel David Pérez Gómez 09df031593
Update font size and spacing in the tooltip component (#35265) 2022-10-25 17:00:11 -03:00
Matt Sherman 8ea8b532c0
Support PHP style date format specifiers in DateTimePickerControl (#35285)
* Use @wordpress/date to format for display in DateTimePickerControl
* Update default formats to PHP style
* Update tests to use @wordpress/date formatting
* Update CustomDateTimeFormat story to use PHP style formatting
2022-10-25 15:50:59 -04:00
Matt Sherman 9ca5cbe3a5
Fix DateTimePickerControl suffix style (#35256) 2022-10-25 14:56:29 -04:00
Joshua T Flowers 2aa4ce0d9f
Disable product inventory toggle when inventory management is disabled (#35059)
* Disable product inventory toggle when inventory management is disabled

* Export conditional wrapper as experimental component

* Conditionally show the tooltip

* Add comment explaining the tooltip overlay

* Add components changelog entry

* Display tooltip on hover any portion of toggle or label

* Add changelog entry

* Fix scss lint error

* Center tooltip over label and toggle

* Fix up input props after rebase

* Add wrapper around field to maintain block item formatting
2022-10-24 09:08:27 -07:00
github-actions[bot] a72e68ea65
Prepare Packages for Release (#35277)
Automated change: Prep @woocommerce/components for release.

Co-authored-by: chihsuan <chihsuan@users.noreply.github.com>
2022-10-24 16:37:07 +08:00
Joshua T Flowers 28f8e7f996
Enhance getInputProps to allow passing of non-overridden props (#35034)
* Allow additional props to be passed to the Form getInputProps method

* Remove getTextControlProps

* Pass additional shared props through getInputProps in shipping

* Simplify checkbox props

* Unwrap currency props

* Use onBlur event to sanitize prices

* Add changelog entry

* Add option to get checkbox props to form context helpers

* Update checkbox tracks handler naming and typing

* Fix up usage of getInputProps

* Add helper sanitize method

* Use sanitize helper method for product input fields

* Fix inventory input props after rebase

* Fix shipping typo

* Fix up form types after rebase

* Align all checkboxes on product page

* Rename new checkbox helper to getCheckboxControlProps

* Add helper method to get select control props

* Add data changelog entry

* Check for product name length on blur

* Add initial value for name to prevent uncontrolled value

* Add initial value for sku
2022-10-21 07:03:49 -07:00
github-actions[bot] 3d78fd24ee
Prepare Packages for Release (#35205)
Automated change: Prep @woocommerce/components for release.

Co-authored-by: chihsuan <chihsuan@users.noreply.github.com>
2022-10-20 13:21:11 +08:00
louwie17 5f2c656e6b
Add/34331 add attributes modal (#34999)
* Add initial add attribute modal

* Add async select control component and add attribute terms

* Make use of AsyncSelectControl for attributes

* Rearranged the add attribute form to make removing easier

* Make sure add button is disabled if fields are empty

* Remove the use of AsyncSelectControl for now

* Add disabled option and fix merge conflict

* Add attribute modal tests

* Remove unused trigger drag

* Add popover slot

* Small update to select control and fix multi selection in term field

* Add tests for attribute and attribute term fields

* Add changelogs

* Small fix after merge conflict

* Fix some styling and issue with select control when clearing item

* Fix lint error

* Fix up some styling issues after rebase

* Fix formatting, some styling issues, and address some PR feedback

* And confirmation dialog for closing the modal.
2022-10-19 16:28:29 -03:00
Joshua T Flowers c72e00d85c
Add Tooltip component and remove EnrichedLabel (#35024)
* Add experimental tooltip component

* Add tooltip stories

* Update EnrichedLabel component

* Remove EnrichedLabel

* Add changelog entries

* Fix up linting issues

* Handle PR feedback
2022-10-18 16:08:49 -07:00
louwie17 1f7deb139f
Add popover support to select control dropdown (#34967)
* Add dropdownPlacement option to SelectControl

* Make use of parent element of menu for width

* Add changelog

* Add useEffect for boundingRect so it gets updated accordingly

* Fix styling for popover dropdown

* Move popup markup down to render return

* Move getMenuProps up

* Move getMenuProps down to list again and always render the popover menu

* Add MenuSlot that adds popover slot to mody with aria-live=off so it is skipped by Modal

* Add comment in relation to the eslint-disable comment

* Fix flashing of popover and addressed some minor PR suggestions
2022-10-18 16:55:37 -03:00
Matt Sherman 0769625b72
Add DateTimePickerControl Form stories and tests (#34964)
* Add test for DataTImePickerControl in Form
* Add DateTimePickerControl to Form story
* Export type for InputProps
2022-10-18 15:06:04 -04:00
Joshua T Flowers 3c6681054a
Add product management description (#34961)
* Add label prop to rich text editor

* Create feature class and enqueue styles

* Add description editor and parsing

* Fix up incorrect context for product data

* Add styling to rich text editors in product form

* Fix editor initialization on new product

* Add changelog entries

* Use trunk lock file

* Add component changelog entry

* Update lock file

* Register block store provider in tests

* Fix up phpcs errors in product feature file
2022-10-18 08:55:31 -07:00
Matt Sherman 9fc0935e98
Remove non-gmt scheduled sale properties from Product type (#35096) 2022-10-17 16:50:18 -04:00
Greg 868f581af8
Prepare api-core-tests for release (#35001) 2022-10-17 12:24:07 -06:00
Matt Sherman e470c62650
Add date-only mode to DateTimePickerControl (#35066)
* Remove border from top of date picker
* Add isDateOnlyPicker, rename is12HourPicker
* Add tests for isDateOnlyPicker
* Add date only story
2022-10-14 16:48:03 -04:00
Matt Sherman 0cbc45ba85
Handle ambiguous dates (with no offset) in DateTimePickerControl (#35077)
* Add tests for ambiguous and unambiguous UTC dates

* Assume UTC for ambiguous dates

* Changelog

* Remove console statements
2022-10-14 15:38:18 -04:00
louwie17 c55c91d7e0
Add category field dropdown field (#34400)
* Add initial category field component with new typeahead

Move search logic to useCategorySearch hook

Add initial add new category logic

Add parent category field to add new category modal

Adding some debug changes

Update category control to make use of internal selectItem function of select control

Add changelogs

Update pagesize back to 100

Add placeholder

Empty placeholder

Fix input and icon sizes

Fix input underline

Add max height and scroll to category dropdown

Add sorting of category items

Auto open parents when traversing up the tree using arrow keys

Add several comments

Add some initial unit tests for the category field component

Add tests for useCategorySearch hook and fixed minor bug

Update styling and autoselect parent if child is selected

Fix styling issues for the select control dropdown inside a modal

Fix issue with creating new category with parent

Add function comment and fixed border styling

Prune out create new category logic

Fix minor css issue with border

Revert some of the select control changes and make use of the custom type

Fix up some styling changes

* Fix type conflict

* Revert change in state reducer

* Add cursor pointer

* Fix styling errors

* Fix broken category tests

* Fix merge conflict
2022-10-14 09:05:39 -03:00
Fernando Marichal ca4bd882ed
Improve the "Dismiss" button visibility (#35060)
* Improve `Dismiss` button visibility

* Add changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-10-13 09:42:35 -03:00
Joshua T Flowers 8fbdbaf354
Add product page inventory quantity management (#34984)
* Add manage stock section to product inventory section

* Fix up h4 styles in form sections

* Check if stock management is enabled in store settings

* Fix up more styles in form

* Extract inventory validation and add new validation rules

* Add changelog entry

* Add changelog entry

* Remove sku related validation
2022-10-12 14:30:02 -07:00
Joshua T Flowers 618cc54a3f
Add RichTextEditor component using native block editor toolbar (#34865)
* Add initial rich text editor component

* Use fixed toolbar and add base formatters

* Add link as formatter option

* Fix up references to core/link block

* Add quote transform

* Add changelog entry

* Add text alignment toolbar

* Remove references to checkbox list

* Update toolbar button organization

* Remove unused rtj format types

* Create unique instance for editor writing flow

* Add registry provider for storybook examples

* Update styling for editor

* Rebase and fix lock file

* Add packages and type dependencies

* Move component to experimental

* Fix up formatting

* Update editor to use default GB toolbar

* Prefix names with woocoommerce

* Create block on initialization so toolbar is visible

* Rely on insertBlock to handle selection

* Update text editor to use setting instead of BlockList prop

* Fix up lock file after rebase

* Handle PR feedback

* Move logic for force rerender

* Fix up pnpm lock file

* Use trunk lock file

* Update lock file

* Add missing semicolon

* Use Pauls lock file and package file
2022-10-12 14:15:55 -07:00
Fernando Marichal 98162b9d42
Images Product management MVP 1.0 (#34769)
* Add image section

# Conflicts:
#	plugins/woocommerce-admin/client/products/add-product-page.tsx

* Add `keepSpaceWhenDragging` to sortable

# Conflicts:
#	packages/js/components/src/sortable/sortable-item.tsx
#	packages/js/components/src/sortable/sortable.tsx

# Conflicts:
#	packages/js/components/src/sortable/sortable.tsx

* Export ImageGalleryItem

* Add props to `image-gallery`

# Conflicts:
#	packages/js/components/src/image-gallery/image-gallery-item.tsx
#	packages/js/components/src/image-gallery/image-gallery.tsx

* Changed `media-uploader` label

* Add changelogs

* Fix image-gallery and sortable components

# Conflicts:
#	packages/js/components/src/sortable/sortable-item.tsx
#	packages/js/components/src/sortable/sortable.tsx

# Conflicts:
#	packages/js/components/src/image-gallery/image-gallery.tsx
#	packages/js/components/src/sortable/sortable.tsx

* Set gallery min-height

* Add onOrderChange

* Show images section edit-product

# Conflicts:
#	plugins/woocommerce-admin/client/products/edit-product-page.tsx

# Conflicts:
#	plugins/woocommerce-admin/client/products/edit-product-page.tsx

# Conflicts:
#	plugins/woocommerce-admin/client/products/edit-product-page.tsx

* Fix styles

* Fix styles

* Fix image alt

* Fix TS any

* Add prop `onDragOver`

# Conflicts:
#	packages/js/components/src/image-gallery/image-gallery.tsx

* Fix styles

* Fix padding

* Fix image area min-height

* Fix subtitle copy

* Fix image margin

* Change `draggedImageId`

* Fix `setDraggedImageId` reset

* Rename `isRemoveZoneVisible`

* Add `CardBody` and remove redundant `setValue`

* Fix card styles

* Remove `getUniqueImages`

* Use url as a key when there is no image id

* Fix `orderedImages`

* Add hover to gallery images

* Fix gallery arrows and set cover problems

* Altering blur handler to prevent toolbar closure on media modal

* Fix toolbar drag and drop

* Add replace fn

* Restoring modal class for blur function

* Fix storybook

* Ensuring onBlur doesn't happen while dragging, resolving issue in Firefox

* Adding expected event object to drag callbacks

* Fix image size

* Fix lint

* Another fix lint

* Update plugins/woocommerce-admin/client/products/sections/images-section.tsx

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Fix `draggedImageId` default value

* Fix toolbar icon style

* Rename consts

* Update pnpm-lock.yaml

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Joel <dygerati@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-10-12 15:16:22 -03:00
Sam Seay 55b49cb50a
Fix and consolidate linting across the monorepo (#35012) 2022-10-12 15:05:01 +13:00
Matt Sherman 2605d14b9d
Make DateTimePickerControl debounce handling more robust (#34963) 2022-10-11 17:22:52 -04:00
Matt Sherman 0b70974d43
Fix DateTimePickerControl initial setting of input field (#34980)
* Fix expect checks to actually do something
* Fix default 24 hour format
* Add test for when currentDate is changed
* Fix up tests that were broken (and masked by no assertions)
* Fix initial setting of input
* Export default 12 hour and 24 hour formats
2022-10-11 14:55:08 -04:00
Maikel David Pérez Gómez e95bb3768e
Add new shipping class modal to a shipping class section in product page (#34937)
Add new shippping class modal to a shipping class section in product page
2022-10-11 12:00:35 -03:00
Sam Seay aec442139f
Update pnpm once again to fix issues with auto-install-peers (#35007) 2022-10-10 16:59:51 +13:00
RJ c67a0fbe27
Add Tiktok to OBW grow list (#34953) 2022-10-07 13:50:35 +08:00
louwie17 d756494bcc
Update/experimental select control (#34620)
* Combine last 23 commits into one.

Update css, so dropdown shows correctly

Add extra callbacks and expose some downshift combobox functions

Add changelog

Update stories to reflect new props

Update stories label

Removed `clearOnSelect` prop and reverted some other changes

Fix missed props during rebase

Remove old storybook story and slight fix from rebase

Remove unneeded code

Update default get filtered functionality and add regex escaping

Some updates by testing a new onStateChange callback

Expose the onStateChange callback for more fine control ove the useSelect

Some minor adjustments

Expose stateReducer and minor adjustments from PR review

Simplify logic around isOpen handling with outside component

Remove unused import

Remove onStateChange prop

Address PR feedback

Some minor adjustments to the input handling

Update the way the stateReducer is called

Remove some of the unneeded logic

Remove onStateChange and replace it with onSelectedItemChange and onInputValueChange for simplicity

Fix lint error

* Remove duplicate and unused import

* Fix call to ControlledPropUpdatedSelectedItem in story
2022-10-06 11:40:41 -03:00
Joshua T Flowers 048e04d192
Allow external tags in SelectControl component (#34823)
* Allow external tags in SelectControl component

* Add changelog entry

* Fix up changes after rebase

* Fix up custom item type example
2022-10-05 13:29:30 -07:00
Joshua T Flowers e4f9ccf184
Update text input placement in SelectControl (#34788)
* Move input next to selected items

* Keep input focused on clicking inside combobox

* Add changelog entry

* Handle PR feedback

* Vertically center search icon
2022-10-05 12:08:10 -07:00
Joel Thiessen 77700eb3cc
Adding toolbar to the Image Gallery component (#34871) 2022-10-05 12:07:03 -07:00
louwie17 6af1695f34
Add/34333 attribute list (#34841)
* Add initial attribute list with dragging and removing functionality

* Fix sortable styling and remove the default selected logic

* Fix css formatting

* Add changelogs

* Add missing question mark

* Add tests

* Some minor CSS updates and move some logic to a util function

* Fix lint issues and add extra test
2022-10-05 13:04:20 -03:00
Joshua T Flowers 4ca95b4fd1
Fix initially selected items in SelectControl component (#34794)
* Allow initial selection of items in SelectControl

* Update stories to include initially selected items

* Add changelog entry

* Update combobox single selected item name
2022-10-04 17:03:37 -07:00
RJ c19228da95
Dev: migrate @woocommerce/data reviews to Typescript (#34844) 2022-10-04 19:42:40 +08:00
Matt Sherman 3ea8c22af5
Remove unfinished and unused SplitDropdown component (#34806) 2022-10-03 14:23:57 -04:00
Sam Seay 59e0c80f3c
Update the pnpm constraint to 7.12.2+ now auto-install is fixed. (#34872) 2022-10-03 10:52:42 +13:00
Joshua T Flowers 3fd736c72f
Update plugins installer component to TS, Fix TS bugs and Syncpack TypeScript (#34787) 2022-09-30 10:59:07 +13:00
Maikel David Pérez Gómez 7fe05d65f3
Load size units to show them as a suffix of shipping dimensions fields (#34856)
* Add dimensions to shipping section
Change the FormComponent to support input name with dot notation like dimensions.width
Add the dimension controls to the product form

* Remove custom styles from FormSection component and use Card and CardBody instead

* Add dimension fields formating using the woo number global settings

* Add dimension fields validations

* Solve conflics from rebase

* Add changelogs

* Fix resetForm function to consider the passed params and the initialValues

* Load size units to show it as a suffix of shipping dimensions fields

* Fix card styles according the disign and pass props manually to BaseControl
2022-09-29 14:54:04 -03:00
Matt Sherman 35ede22a3d
DateTimePickerControl updates (#34656)
* Switch DateTimePickerControl to use InputControl instead of DateInput
* Add label, placeholder, help props to DateTimePickerControl
* Clean up DateTimePickerControl storybook stories
* Add additional tests for DateTimePickerControl
* Debounce changes in input for DateTimePickerControl
2022-09-29 11:13:31 -04:00
Matt Sherman b8066f9b31
Add FormContext().setValues() support (#34617)
* Add setValues to FormContext
* Add onChanges callback to handle when multiple values are changed at once
2022-09-27 19:06:53 -04:00
Sam Seay c0fe3ec18f
Fix pnpm version to 7.11.0 in engines and in CI (#34773) 2022-09-27 11:30:52 +13:00
louwie17 c01c48c8c3
Add initial attributes section for empty state (#34751)
* Add new attributes section and attributes field with just an empty state

* ADd changelogs

* Add check to not render the blank section when attributes exist

* Fix misspelling
2022-09-26 14:44:06 -03:00
Maikel David Pérez Gómez 2eda531d46
Add shipping class section and dropdown (#34684)
* Add shipping class section and dropdown

* Add comment suggestions

* Add a Spinner during shipping classes resolution
2022-09-23 09:54:52 -03:00
Joshua T Flowers b65d473796
Add Sortable component accessibility (#34539)
* Add key event handlers

* Track selected item and focus

* Fix selected indexes on up down selection and drop

* Consolidate update item order logic

* Hide horizontal items on drag

* Update naming of ordering persistence

* Announce keyboard events to screen readers

* Consolidate reset method

* Simplify drop index numbers and conditions

* Fix up announcements

* Add tests around new utils

* Fall back for item name in announcement from aria label or alt text

* Update lock file

* Add changelog entry

* Handle PR feedback

* Fix up lock file after rebase

* Update lock file

* Update lock file again

* Update lock file after pnpm7

* Use trunk lock file

* Update lock file with a11y package

* Try new lock file

* Try lock file with pnpm add

* pnpm add from root

* Fix itemToString in SelectControl

* Downgrade a11y to v3.5.0
2022-09-22 12:08:26 -07:00
Matt Sherman ea6a0d31f9
Fix EnrichedLabel Storybook styles (#34736)
Fix EnrichedLabel story to not bleed styles to other stories
2022-09-21 22:03:01 -04:00
Joshua T Flowers f39d8b6b39
Improve experimental select control accessibility (#34510)
* Use downshift built in methods to handle selection of items

* Fix menu styling

* Fix removal a11y announcement

* Don't show menu without results

* Fix async example a11y

* Add changelog entry

* Deselect item in state on remove

* Fix formatting issues

* Update lock file

* Update lock file after pnpm7

* Skip lib check breaking oclif build in package-release

* Rebase again and fix up lock file

* Skip lib check in monorepo-merge

* Fix the lock

* Ignore lint

Co-authored-by: Sam Seay <samueljseay@gmail.com>
Co-authored-by: Jonathan Sadowski <sadowski@automattic.com>
2022-09-20 14:29:27 -07:00
Joel Thiessen 09bfa0b737
Allowing generic item type in new experimental SelectControl (#34547)
Co-authored-by: Joel <joel.thiessen@a8c.com>
2022-09-16 13:35:14 -07:00
Sam Seay 04b74c1053
Upgrade to pnpm 7 (#34661)
* Remove -- -- from scripts that fixed issue in pnpm 6, fix a couple TS issues in sep packages
* Minor fixes to analyzer scripts and doco based on pnpm 7
* Add dompurify types to data package to avoid TS errors
* Remove pnpx in favor of pnpm exec
* Modify the code analyzer to respect pnpm version if present.
* Update instructions for running recursive lint, add comments to explain
2022-09-16 09:21:42 +12:00
RJ 29e70faf0f
fix: handle mobile app wrong user connection for mobile app modal (#34653) 2022-09-15 12:10:05 +08:00
RJ 6e2ada3706
Add: mobile app welcome modal and magic link (#34637) 2022-09-15 11:58:47 +08:00
louwie17 fa2df55f04
Add/crud get total count selector (#34613)
* Add getItemsTotalCount to crud data store

* Add changelog

* Make getTotalItemsCount more generic

* Rename total count resource name function, and add resolver for getTotalCount

* Remove deprecated data-controls function

* Add defaultArgs option for applyNamespace
2022-09-09 11:32:21 -03:00
louwie17 a7127a8456
Revert a condition change on third param in onChange prop (#34626)
* Revert back isValid condition on third param

* Add changelog
2022-09-09 09:57:56 -03:00
louwie17 1b2e9c120d
Fix form onchange callback (#34614)
* Fix onChange method, so it contains the newValues object

* Add changelog

* Update storybook to add onChange values

* Update tests and fix onChange isValidForm callback

* Fix radio control example
2022-09-08 16:24:39 -03:00
Joshua T Flowers 43a24bc6c3
Add image gallery component (#34435)
* Add initial ImageGallery component

* Add changelog entry

* Extract list item component and styles

* Rename SortableList to Sortable

* Add placeholders for dropping items

* Fix drag throttling delays

* Use placeholder component

* Move handles back to sortable

* Add horizontal option to sortable

* Use CSS for placeholder styles

* Remove placeholder component

* Add image gallery styles

* Add last droppable class

* Extract class utils and add tests

* Add list item stories

* Add readmes

* Handle PR feedback
2022-09-06 12:46:32 -07:00
Tomek Wytrębowicz a86e387667
Update/unify jest@27 across all packages (#34322)
* Update `jest-puppeteer@5.0.4` (from `4.4.0`)

to be albe to run with jest 28.

* Update `jest` and `ts-jest@^27` (from `25`),

to match `e2e-environment` needs.

* Update api-core-tests' `jest@^27` (from `25`),

to unify the used version across the stack.

* Update e2e-env's `jest@^27` & co.  (from `25`),

to unify the used version across the stack.

* Update e2e-env's `@jest/test-sequencer@^27`  (from `25`),

to unify the used version across the stack.

* Update admin-e2e-tests' `@jest/globals@^27`  (from `26`),

to unify the used version across the stack.

* Update woocommerce's `jest@^27.5.1`  (from `25`),

to unify the used version across the stack.

* Replace `mocked` from `ts-jest` to the one from `jest`,

Update `@types/jest@27.4.1` from `27.0.2`.
Try to fix broken tsc build.

* Update `e2e-core-tests`' `@jest/globals@^27.5.1`

from `^26.4.2`.

* Remove changelog entry for bumpin jest in `api-core-tests`

It was already covered in `trunk`.

Addresses https://github.com/woocommerce/woocommerce/pull/34322#discussion_r956019567

* Updated package-lock.yaml

* Updated timeout

* Added changelogs

Co-authored-by: jamelreid <jnoelreid@gmail.com>
2022-09-06 09:29:45 -05:00
Matt Sherman b7606083e1
Update DateTimePickerControl's onChange signature (TypeScript) (#34561)
* Omit HTML onChange evnt from DateTimePickerControl

* Changelog entry for DateTimePickerControl's onChange change.
2022-09-02 15:46:27 -04:00
Fernando Marichal 30151a6cf7
Add `recordEvent` validation to Tracks package (#34005)
* Add `recordEvent` validation

# Conflicts:
#	packages/js/tracks/package.json

* Convert tests to ts

* fix error message

* Add console.error message

* Fix `validateEventNameAndProperties`

* Add changelog

* Add validation method

* Fix tests

* Fix package

* Move changelog

* Add changelog

* Fix type

* Move env definition

* Fix tests

* Fix condition

* Fix regex and tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-09-01 13:34:42 -03:00
Chi-Hsuan Huang e687a48abf
Update dependencies and jest config to pass admin tests for pnpm 7 (#34428)
* Update @wordpress/data version to ^6.15.0

* Update jest.config.js to transform is-plain-obj js

* Update pnpm-lock.yaml

* Add changelog

* Add babel configs and update jest config

* Update tsconfig.json to exclude babel.config.js

* Add missing @types packages

* Add changelog

* Update pnpm-lock.yaml

* Update pnpm-lock.yaml

* Fix DateTimePickerControl type errors
2022-08-31 12:06:51 +08:00
Joshua T Flowers dc4a2ba741
Update tag component styling (#34457)
* Update tag to new style

* Add changelog entry
2022-08-30 07:45:50 -07:00
Fernando 33405283cd
Add Pricing section (#34382)
* Add pricing inputs

# Conflicts:
#	plugins/woocommerce-admin/client/products/add-product-page.tsx
#	plugins/woocommerce-admin/client/products/layout/product-section-layout.scss
#	plugins/woocommerce-admin/client/products/sections/product-details-section.tsx

* Add pricing inputs

* Add validation

* Fix scss

* Moved validations

* Add tests

* Add regex validations

* Add tax settings

* Fix comment

* Add product name validation

* Fix validation copy

* Rename `woocommerce-add` classes

* Fix texts i18n

* Remove image section

* Fix decimal separator error

* Add `FormSection` component

* Fix `Enriched-label` component

* Add packages changelog

* Removed not used styles

* Add error handling

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-08-30 10:26:24 -03:00
Chi-Hsuan Huang f813153ac5
Fix country field is empty when navigating back to the store details tab (#34484)
* Add is_store_country_set to onboarding profile items

* Fix country field is empty when navigating back to store details tab

* Add changelog
2022-08-30 09:43:59 +08:00
Chi-Hsuan Huang 72d8c791e6
Migrate @woocommerce/data notes store to TS (#34220)
* Migrate wc.data.notes to TS

* Add missing field "is_read" to notes item schema

* Add changelog

* Fix test_get_notes_schema test
2022-08-30 09:42:32 +08:00
Tomek Wytrębowicz eeb090ddf8
Update `jest-puppeteer@5.0.4` (from `4.4.0`) (#33827)
to be albe to run with jest 28.
2022-08-29 12:22:30 -06:00
Tomek Wytrębowicz ea8b44115b
chore: Unify imports syntax in admin-e2e, add missing dependencies (#33901)
* Unify test spec helpers `export` syntax to ESM,

to make it possible to impor them locally.

* Unify import syntax to ESM

* Install missing dependencies of admin-e2e-tests

* Do not import `expect` from `@jest/globals` in admin-e2e-tests

Let typescript pick the puppeteer extension from global.
Address https://github.com/woocommerce/woocommerce/pull/33901#issuecomment-1221650234

* Map unknown types in `admin-e2e-tests` to make tsc happy.

* Add changelog entry

* Use the angle-bracket syntax instead of type assertions

Address https://github.com/woocommerce/woocommerce/pull/33901#discussion_r955591953

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

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-08-29 10:36:36 +08:00
jonathansadowski 74f8d5f17a
Use syncpack to verify consistent versions for react and react-dom (#34397)
* Add GitHub action and pre-push hook for syncpack for react and react-dom

* Fix typo in pre-push script

* Don't execute suggested command to fix mismatches automatically.

* Update react and react-dom to 17.0.2

* Move changelog check to last, so that pre-push still fails if check isn't successful

* Add changelog files

* Correct issue with syncpack.yml referencing an internal action

* Add command to top-level package.json for fixing mismatches

* Update syncpack action to only run when package.json files are affected

* Update workflow to just run syncpack list-mismatches

* Add version pinning to syncpackrc
2022-08-24 10:15:22 -05:00
Joel Thiessen 668244b2d7
Adding DateTimePicker component (#34293)
* Rudimentary functional version of datetimepicker

* Adding changelog

* Adding package changelog

* Making component more than barely functional

* Removing unnecessary export

* Rename directory to date-time-picker

* Add initial story

* Pass datetime to onChange callback

* Localize error string

* Remove initial error prop

* Rename currentDate to initialDate

* Simplify state for selected date

* Add extra stories around component

* Trigger onChange whenever date is changed

* Add readme

* Allow currentDate to be changed via props

* Update readme

* Update name to DateTimePickerControl

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2022-08-23 15:19:46 -07:00
louwie17 78c28ae9f3
Add product link field (#34313)
* Add initial product field and modal for editing product link

* Create a product link modal for editing product link

* Only show permalink when product is published

* Add changelogs

* Add changelog for data package

* Change save button to primary

* Fix merge conflcts

* Add getPermalinkParts selector to products store

* Made use of getPermalinkParts to support draft products
2022-08-19 12:05:13 -03:00
Joshua T Flowers e73ffbe088
Add FormSection component (#34348)
* Add FormSection component

* Add changelog entry

* Move card styling outside component

* Add readme

* Allow JSX elements for title and description

* Fix lint errors
2022-08-18 10:36:43 -07:00
Joshua T Flowers 32de8bee6f
Add SearchControl component (#34159)
* Add initial SearchControl component

* Add async example

* Reorganize getItemPropsType type

* Create separate MenuItem component

* Update items to use value/label pairs

* Add fuzzy matching example

* Use MenuItem component in example

* Add callback method example and onSelect prop

* Add custom render example

* Add styling

* Simplify Menu component

* Add changelog entry

* Update SelectControl to DeprecatedSelectControl

* Rename SearchControl to SelectControl

* Add readme

* Add placeholder prop

* Add icon to combox box

* Rename deprecated SelectControl classes

* Add changelog entries

* Pass menu props to menu to fix ref issues

* Update lock file

* Rebase and update lock file

* Fix up IDs in e2e tests

* Make list structure more semantic

* Fix update conflict with pnpm-lock

* Move new SelectControl to experimental

* Change experimental class name to avoid style conflicts

* Fix up latest lock file from rebase

* Remove onboarding e2e changes

* Update changelogs

* Update lock file again

* Update pnpm-lock and fix lint error

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2022-08-18 10:36:20 -07:00
Alejandro López Ariza 64b0b2865e
Added new command to set up the local environment with COT enabled. (#34321)
* Added new command to set up the local environment with COT enabled.

* Removed new file added to e2e-environment, which we will no longer be using.

Co-authored-by: jamelreid <jnoelreid@gmail.com>
2022-08-18 08:49:20 +02:00
nigeljamesstevenson 301c02a757
add tests for shipping zone regions (#34339)
* add tests for shipping zone regions

* add changelog file

* add changelog file

* update files to disable use of linting rules via .elintrc.js rather than .eslintrc

Co-authored-by: Greg <zhongruige@gmail.com>
2022-08-17 14:50:31 -06:00
Jamel Noel Reid b85819f2a9
Fix broken API tests (#34345)
* Bumped jest to v27

* Used jest in packaged node_modules

* Jest bump

* Removed puppeteer related code

* Updated CHANGELOG

* Added changelog
2022-08-17 11:04:41 -07:00
Chi-Hsuan Huang 02b47a67db
Migrate @woocommerce/data navigation store to TS (#34239)
* Migrate woo data navigation store to TS

* Add changelog

* Fix action type

* Update packages/js/data/src/navigation/reducer.ts

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

* Add a doc comment to MenuItem type

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-08-17 14:32:38 +08:00
Joshua T Flowers a98f0fef52
Add Media Uploader component (#34181)
* Add media uploader component

* Expand on mocked examples in storybook

* Add styling

* Move MediaUploder out of index

* Add changelog entry

* Handle PR feedback

* Add readme

* Fix missing media utils types

* Rebase and use variant instead of isSecondary for Button

* Fix up lock file

* Fix up lint errors
2022-08-12 12:58:25 -07:00
Joshua T Flowers 19853e1577
Add SortableList component (#34237)
* Add initial draggable list component

* Add changelog entry

* Add drag and drop index

* Add util for checking target drop index

* Add handle component

* Rename component to SortableList

* Use dragged list item for placeholder height

* Add onOrderChange prop to subscribde to updates

* Throttle the drag over event

* Add base styles

* Add utils tests

* Add component tests

* Export component

* Update changelog entry

* Add readme

* Escape pipe in readme
2022-08-12 11:45:26 -07:00
Jacob Sewell 46762dab29
Add SplitDropdown component (#34180)
* Early draft of SplitButton component.

* Changelog for SplitButton component.

* Rename SplitButton to SplitButtonDropdown, apply styles to address toggle button location/size, take primary button from children.

* Address button variant styles

* Rename 'Default' SplitButtonDropdown story to 'Secondary' for clarity.

* Add a SplitButtonDropdown story where the component is disabled.

* README for SplitButtonDropdown component.

* Add disabled prop to SplitButtonDropdown README.

* Add a SplitButtonDropdown story where some but not all actions are disabled.

* Restore PrimaryDisabled story for SplitButtonDropdown.

* Reorganize SplitButtonDropdown properties inheritance to allow both disabled and variant to apply to both the main and toggle buttons.

* Rename SplitButtonDropdown to SplitDropdown.

* Hardcode menuIcon and menuIconExpanded in SplitDropdown.

* Fix outdated stylesheet import for SplitDropdown.

* Update SplitDropdown changelog to new component name.

* Update variable names that reference Actions to Items.

* Hardcode expanded/collapsed toggle button icons without extraneous const declarations.

* Use classNames() helper fn for className concatenation.

* Increase width of SplitDropdown toggle button.

* Add a specific className to the root ButtonGroup element of SplitDropdown.

* Simple rendering test for SplitDropdown.

* For consistency, move Button text out of props in SplitDropdown README and story.

* SplitDropdown does not render a toggle button if there is nothing to put in the menu.

* Fix variant prop type declaration in SplitDropdown.

* Improve SplitDropdown test: remove snapshot, add toggle click.

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2022-08-12 12:47:39 -05:00
Fernando 4693e251f7
Add product name and checkboxes for Product details (#34214)
* Add product details

# Conflicts:
#	plugins/woocommerce-admin/client/products/sections/product-details-section.tsx

# Conflicts:
#	plugins/woocommerce-admin/client/products/sections/product-details-section.tsx

* Rename folder

* Fix help icon

* Fix form

* Removed useless `useState`

* Add `getCheckboxProps`

* Add params to getCheckboxProps

* Add recordEvent

* Rename event

* Add changelog

* Fix texts

* Remove Fragment

* Fix useState initial state

* Convert EnrichedLabel to TS

* Fix unknown value prop

* Rename event

* Move EnrichedLabel

* Fix js warning

* Add storybook

* Add readme

* Add components changelog

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-08-12 10:47:54 -03:00
github-actions[bot] 3e7c2e52cd
Prepare Packages for Release (#34299)
Automated change: Prep @woocommerce/components for release.

Co-authored-by: ilyasfoo <ilyasfoo@users.noreply.github.com>
2022-08-12 16:05:13 +08:00
louwie17 a498cc8280
Add product form buttons and specific product edit page (#34211)
* Add initial product form action buttons to form

* Add new edit page and allow for updating and creating products

* Move crud functions to helper hook to keep things seperated better

* Add changelog

* ADd package changelogs

* Add isPending selector to products store

* Fix trash screen showing up when deleting product and add loading indicators

* Add extra types to Product type

* Update track names and add product data to tracks

* Update track logic when product is published

* Remove the Image section for now, to prevent confusion as it is not ready yet

* Add tests for the product form actions

* Update copy for publish & duplicate

* Remove unused code

* Set window.location correctly with href

* Reset changes in pnpm lock

* Moved pending action variables to product helper and updated buttons to reflect new suggestions

* Fix backwards compabitibility issue with Form changes

* Add switch to draft button
2022-08-11 11:04:14 -03:00
RJ 8af95fb700
fix: removed Step 1 of 1 for 1 step tours (#34249) 2022-08-11 11:42:07 +08:00
Moon dd794e8e26
Update/34063 store location skip btn (#34176)
* Make ProfileItems properties optional

* Remove skip button codes and replace them with SkipButton component

* Add SkipButton component

* Add changelog

* Add back continue button callback

* Apply popover styles globally

* Add skip button on the industry step

* Add skip button on the product types step

* Add skip button on the Business Details step

* Support onSkipped callback

* Record skip event

* Add skip event track for industry, product types, and business details

* Add SkipButton to the theme step

* Update snapshot

* Change track name to separate business details and free features

* Add changelog

* Remove unused code

* Update product types test snapshot

* Add back UsageModal on Continue click

* Update e2e tests to use Skip

* Use button selector for skip btn

* Fix duplicate event dispatch

* Do not call onClose and onContinue during the rendering -- it causes cannot update a component while rendering a different warning. Instead, call them when the button is clicked

* Skip the profiler without rendering usage modal when woocommerce_allow_tracking is set

* Skip the profiler without rendering usage modal when woocommerce_allow_tracking is set

* Go to the next step when allowTracking is yes
2022-08-08 21:08:03 -07:00
Chi-Hsuan Huang af97aaf410
Migrate @woocommerce/data settings store to TS (#34184)
* Migrate wc.data.settings to TS

* Correct data.settings type

* Fix wc admin client type errors

* Add changelog

* Add changelog

* Update types

* Update RawSetting type
2022-08-08 13:25:46 +08:00
RJ f3e436f991
fix: type definition issues related to pnpm hoisting rules in preparation for pnpm 7 upgrade (#34154)
- added missing TS definition dependencies
2022-08-05 15:19:08 +08:00
Sam Seay 5becf47d60
Simplify turbo commands (#34055)
* Change package json commands and turbo repo config to allow for greatly simplifying running turbo
* Remove require-turbo script which was causing caching issues
* Colorize CI output from scripts
* Add missing changelog script to extend-cart-checkout-block
2022-08-05 12:03:17 +12:00
louwie17 339756ff7a
Add/32 react provider to form component (#34082)
* Add a FormContext to the Form component, to prevent the need for property drilling

* Add changelog

* Add PR number to changelog

* Replace some of the unknown types with any types to keep things more generic
2022-08-04 11:14:16 -03:00
RJ 75f6ec3a43
dev: refactor Homescreen component to use useQuery hook (#34183)
- added useQuery hook for usage in functional components
- refactored Homescreen component to useQuery instead of prop drilling
2022-08-04 16:57:53 +08:00
Chi-Hsuan Huang cb87be1552
Update store location profiler (#34153)
* Update store details unit tests

* Update store details subheading and field order

* Update obw store details e2e tests

* Add changelog

* Add changelog

* Update Store owner can go through setup Task List test
2022-08-04 09:02:50 +08:00
Jacob Sewell f71f480027
Add product categories datastore (#33984)
* First draft of product categories datastore changes.
Heavily based on product shipping classes code.

* Fix constant name in product categories data store index.

* Create changelog for 33464/33984.

* Move changelog to correct folder.

* Remove redundant context param in product categories Query (already in BaseQueryParams).

* Apply Partial to BaseQueryParams.
2022-08-03 10:55:13 -05:00
Joel Thiessen fd04261cab
Adding CollapsibleContent component (#34129)
* Basic version of CollapsibleContent component

* Adding changelog

* Add story for component

* Update styling to match designs

* Add initially expanded example

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2022-08-03 08:09:00 -07:00
RJ cb09649a4c
add: store location settings tour (#34137) 2022-08-02 11:10:34 +08:00
Moon dfa8d017f3
Use the default payment suggestions when woocommerce_show_marketplace_suggestions is set to no (#34083)
* Support force_default_suggestions argument

* Use force_default_suggestions

* Support force_default_suggestions argument -- returns the default payment suggestions when both woocommerce_show_marketplace_suggestions and woocommerce_setting_payments_recommendations_hidden options are set to no

* Add changelog
2022-07-27 21:02:24 -07:00
Jamel Noel Reid c207005c85
Fix app root fetching when using PNPM version 7 (#33929)
* Updated to pass lint checks

* Used __dirname to determine package path
2022-07-27 14:13:17 -06:00
Ilyas Foo e41c8b027d
Fix unusable historical import (#34054)
* Add resolvers to data store

* Changelog
2022-07-25 11:20:40 +08:00
Joshua T Flowers 4c1a82dc26
Add data store attribute terms (#33721)
* Add product attribute terms store

* Add ability to add params to URL

* Allow IdQuery for all crud functions

* Add tests around item parent keys

* Add tests around new utils

* Throw error when not all params are replaced in REST URL

* Add require attributes for terms

* Allow urlParameters to be specified

* Use namespace to detect url parameters

* Fix up selector return after applying namespace

* Clean queries to prevent sending URL param data to endpoint

* Add tests around new utils

* Remove unused method import

* Remove urlParameters argument no longer being used

* Add changelog entry
2022-07-21 12:28:30 -04:00
github-actions[bot] 42401f212d
Prepare Packages for Release (#33970)
Automated change: Prep @woocommerce/components for release.

Co-authored-by: psealock <psealock@users.noreply.github.com>
2022-07-19 16:21:14 +12:00
Jamel Noel Reid 7265fde855
Update e2e core tests to pass lint checks (#33928)
Updated to pass lint checks
2022-07-18 15:27:05 -03:00
Joshua T Flowers 4f1bd278a3
Add product tags data store (#33682)
* Allow IDs to be numbers or strings

* Add product tags data store

* Remove duplicate IdType

* Add required fields

* Add changelog entry

* Prefix new data stores with EXPERIMENTAL_
2022-07-15 15:51:29 -04:00
Lucas Bustamante d239c17430
Fix e2e-environment lint (#33867)
* Fix e2e-environment lint

* Add changelog
2022-07-15 13:53:06 +02:00
louwie17 87e1f3106d
Add/33443 shipping zones data store (#33830)
* Add shipping zones data store

* Make query object optional in getItems call

* Make query optional

* Add changelog
2022-07-14 09:53:26 -03:00
louwie17 385fa1e3f9
Add required fields to CrudActions type (#33809) 2022-07-12 11:27:17 -03:00
Jacob Sewell 0142c16cd8
Add/33331 wcadmin install timestamp explat default (#33574)
* Add preloadOptions.woocommerce_admin_install_timestamp to wcSettings.admin definition in explat client.

* Add woo_wcadmin_install_timestamp to explat client queryArgs.

* Add checking for woo_wcadmin_install_timestamp in request args to explat fetch tests.

* Changelog for 33331/33574.
2022-07-11 11:59:41 -03:00
Chi-Hsuan Huang 8952dac7c0
Set up i18n-text-domain rule and fix missing text domain (#33780)
* Set allowedTextDomain to only allow woocommmerce text domain

* Set allowedTextDomain to only allow woocommerce text domain

* Fix wrong or missing i18n text domain

* Add changelog

* Add changelog
2022-07-08 18:37:30 +08:00
github-actions[bot] c33212e612
Prepare Packages for Release (#33776)
Automated change: Prep all packages for release.

Co-authored-by: psealock <psealock@users.noreply.github.com>
2022-07-08 14:04:49 +12:00
louwie17 9e3df911c8
Add shipping class data store (#33765)
* Add initial shipping classes data store

* Add types for the product shipping class store

* Filter out undefined items in list for when an item is deleted

* Add changelog

* Add data store README
2022-07-07 13:36:50 -03:00
Paul Sealock 72925142f3
Packages: Fix postinstall errors on install (#33724) 2022-07-07 14:53:59 +12:00
Paul Sealock 7229b65bc9
Changelogger: Fix PHPCS violations (#33664) 2022-07-07 08:54:48 +12:00
Joshua T Flowers 67d9ba3b19
Add CRUD data store typing (#33680)
* Rename and export selectors for easier typing

* Add CRUD action and selector type mapping

* Add product attribute types

* Separate getItem to provide correct return type

* Rename config to type

* Add generator return types
2022-07-06 12:04:16 -04:00
Chi-Hsuan Huang b274831334
Update wcpay suggestion UI in payment task (#33717)
* Add WCPayBanner & WCPayBenefits

* Update payment setting & welcome screen to use components from woo onboarding

* Update wcpay suggestion UI in payment task

* Add changelog

* Add WCPayBannerImageCut image and update wcpay banner style

* Update packages/js/onboarding/src/components/WCPayBanner/WCPayBanner.scss

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

* Set .woocommerce-recommended-payments-banner__image_container display: flex

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-07-06 14:20:11 +08:00
Moon 7c723583cb
Add tests for react admin translations (#33510)
* Add switch-language endpoint

* Add translation tests for PHP, react client, and component

* Fix component test

* Add Changelog

* Add Changelog
2022-07-05 17:16:15 -07:00
Miguel Pérez Pellicer bdb057c1ad
Add Tree Select Control Component (#33384)
* Add Tree Select Control Component

* Tweak test and code

* Fix Story path

* Restore .at

* Changelog

* Fix prettier error

* Update packages/js/components/src/tree-select-control/README.md

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

* Update packages/js/components/src/tree-select-control/tags.js

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

* Add comment regarding filter length

* Replace translate domain

* Document handleKeydown

* Refactor option object check

* Remove redundant check for disabled state

* Refactor tags & documentation

* Replace wrong domain for translations

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-07-06 10:07:50 +12:00
Joel Thiessen 57869a2ab7
Fixing activity panel does not appear after navigating to OBW and back (#33722) 2022-07-05 10:02:46 -07:00
Moon 76f9a1fc57
Fix export functionality on Analytic pages (#33709)
* Import correct controls

* Add changelog

* Add changelog
2022-07-04 12:55:39 +08:00
Joshua T Flowers 97f337ad8d
Add CRUD data store delete (#33596)
* Add delete actions

* Update CRUD actions in readme

* Allow IDs to be numbers or strings

* Update tests

* Update selectors to use IdType
2022-07-01 14:04:17 -04:00
RJ 04bef970ef
Dev: allow unused destructured variables in lint rules (#33548)
Allow unused destructured variables in lint rules

- there were exceptions to the rule being added everywhere and it seems to be a reasonable allowance
2022-06-29 16:56:31 +08:00
nigeljamesstevenson 00f4e9fa73
Update README.md to reference the correct port no. Change from 8084 to 8086 (#33635)
Update README.md to reference the correct port no.
2022-06-28 15:55:43 -06:00
Tomek Wytrębowicz a0aa8faf27
Bump `@wordpress/e2e-test-utils` from `4.16.1` to `wp-5.8` (#33257)
* Bump `@wordpress/e2e-test-utils` from `4.16.1` to `wp-5.8`

which resolves currently to  `5.3.2`,
to match minimum required WordPress version.

* Add changelog entry
2022-06-28 13:22:46 -06:00
jonathansadowski d48a0b2d90
Add helper tool for making sure build, lint, and test are run through Turborepo (#33573)
* Add helper tool for making sure build, lint, and test are run through Turborepo

* Update node version for require-turbo
2022-06-28 13:17:05 -05:00
Roy Ho 98cf4e7160
Add PR numbers to changelog entries on code freeze process (#33627)
* Add PR numbers to changelog entries on code freeze process

* Add markdown links to PR
2022-06-28 11:15:39 -07:00
Ilyas Foo b178e8a1f6
Add new flow shipping recommendation task (#33620)
* Plugins component skip button is now optional

* Add link from payment settings page

* Add new experimental shipping task flow

* Changelog

* Update plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/ExperimentalShippingRecommendation.php

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

* Rename all tracks to shipping_recommendation

* Add back skip installer bind

* Pass plugins list to pluginSlugs to be more predictable

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-06-28 13:53:03 +08:00
Joshua T Flowers adbe9f37d8
Add CRUD data store create and update actions (#33571)
* Alphabetize reducer

* Add create and update methods

* Add named dispatch actions

* Update data store tests

* Update readme to include dispatch action examples

* Add missing reducer type for update item error

* Fix whitespace issues
2022-06-27 09:36:00 -04:00
Chi-Hsuan Huang dcbae453f8
Update shipping recommendations display logic (#33529)
* Update shipping recommendations display logic

* Add todo comment

* Add changelog

* Render null for shipping recommendations if store only sells digital products

* Fix onboarding product type

* Update plugins/woocommerce-admin/client/shipping/test/experimental-shipping-recommendations.tsx

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

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-06-23 09:54:38 +08:00
Joshua T Flowers 59427def84
Add crud data store creator (#33546)
* Add initial get list data store methods

* Add product attributes data store

* Add method to retrieve single item resource

* Update use of endpoint to namespace

* Update resources naming to items to reduce ambiguity

* Use destructured object as argument for creators

* Move data store under the products namespace

* Add some tests around data store method creation

* Add readme for crud data store setup

* Add changelog entry

* Alphabetize method names

* Fix getItems selector resource name

* Remove unused vars
2022-06-22 19:35:02 -04:00
Chi-Hsuan Huang 3669426bd6
Migrate `@woocommerce/data` user and use-select-with-refresh to TS (#33512)
* Migrate wc.data user and use-select-with-refresh to TS

* Add changelog

* Update interval type

* Add doc comment

* Update use-user-preferences.ts test doc comment
2022-06-22 17:27:18 +08:00
Chi-Hsuan Huang e412d5912b
Migrate `@woocommerce/data` item store to TS (#33482)
Migrate item store to TS
2022-06-21 16:46:30 +08:00
Chi-Hsuan Huang 7068c78101
Fix JS lint errors (#33484)
* Fix @woocommerce/data lint errors

* Fix internal-e2e-builds lint error

* Fix lint errors
2022-06-21 16:37:34 +08:00
RJ a78670bfec
Updated @automattic/tour-kit to 1.1.1 which has live resize functionality (#33452) 2022-06-16 15:49:03 +08:00
Christopher Allford 6d0fc0d6ac
Expand Repository Development Documentation (#33423)
This commit reworks some of the documentation in the monorepo to better represent how to get started and develop projects in it.
2022-06-15 21:55:25 -07:00
Paul Sealock b79e54eb09
Update JS packages changelogs (#33412) 2022-06-16 10:06:31 +12:00
Fernando 55eebebeba
Add product deletion via datastore API (#33285)
* Add delete products via data store api

# Conflicts:
#	packages/js/data/src/products/action-types.ts
#	packages/js/data/src/products/actions.ts
#	packages/js/data/src/products/reducer.ts
#	packages/js/data/src/products/selectors.ts

* Add tests

# Conflicts:
#	packages/js/data/src/products/test/reducer.ts

* Set `force = false` by default

* Add changelog

* Fix thrown error

* Remove error

* Remove `DeleteProductType`

# Conflicts:
#	packages/js/data/src/products/actions.ts

* Remove conditional retrun

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-06-15 09:25:10 -03:00
Chi-Hsuan Huang 33ce73f47f
Fix explat fetchExperimentAssignment response (#33425)
Fix fetchExperimentAssignment response
2022-06-15 10:18:45 +08:00
Joel Thiessen 183ac65c82
Adding context property to tasklist tracks event, introducing LayoutContext (#33287) 2022-06-14 11:31:50 -07:00
Ilyas Foo 27041efdc5
Add event tracking product page spotlight tour (#33400)
* Update WooStep to have name in meta

* Add useProductStepChange hook and use it to detect form value changes in product tourkit, added tracking for tour view, tour dismiss, tour complete, and step complete

* Add tour view, tour dismiss, tour completion track to old product walkthrough

* Changelog

* Fix test

* Add listener to publish button for product spotlight tour

* Add track for old walkthrough publish button
2022-06-14 16:19:32 +08:00
Chi-Hsuan Huang 94367ca559
Migrate `@woocommerce/data` onboarding store to TS (#33401)
* Migrate onboarding data store to TS

* Update deprecated-tasks.tsx type annotations

* Fix onboarding resolvers
2022-06-14 10:23:40 +08:00
Chi-Hsuan Huang 4ebdd2b226
Add e2e test to make sure chunk URLs contain version param (#33402)
Add e2e test to make sure chunk URL contains version param
2022-06-14 10:23:23 +08:00
Chi-Hsuan Huang 7a1df3d1cd
Tweak tour kit gap between content and controls (#33394)
* Tweak tour-kit gap between content and controls

* Add changelog
2022-06-14 10:22:31 +08:00
Paul Sealock 413e327e4a
@woocommerce/components: Prep changelog for release (#33359)
* Prep changelog

* bump version in package.json
2022-06-14 14:21:02 +12:00
Adrian Duffell 1e03b68598
Update onboarding email marketing checkbox default to false (#33292) 2022-06-13 09:55:57 +08:00
Joshua T Flowers 9d98f1b1da
Add update product actions to product data store (#33282)
* Add update product actions to product data store

* Add changelog entry

* Use MutableProperties for update data

* Omit read only properties instead of picking mutable properties
2022-06-10 12:24:27 -04:00
Paul Sealock 16a478eeb2
Extend cart checkout block package: Prep for publish (#33355) 2022-06-10 15:25:17 +12:00
Christopher Allford b7931409f2
Migrate From Nx to Turborepo (#33079)
This replaces all `nx` commands with `turbo` commands and removes Nx from the repository. All of the `project.json` files have been removed and any commands that broke with Turborepo have been adjusted.
2022-06-09 14:40:07 -07:00
Chi-Hsuan Huang a3d42be6b0
Fix setup wizard click button loading state (#33358)
* Fix setup wizard usage button loading state

* Add e2e tests for usage button loading state
2022-06-09 17:30:06 +08:00
Chi-Hsuan Huang 5db5c8b110
Add tour kit component (#33229)
* Add tour-kit component

* Add @types/wordpress__viewport to @woocommerce/components devDeps

* Add tour-kit README.md

* Add primaryButtonText option to tour kit step meta

* Add changelog

* Remove unneeded style import

* Set position and z-index style for tour-kit

* Add disable primary button feature for tour kit

* Export TourKitTypes

* Update style-build config for @automattic/* packages

* Add @automattic/* deps for components

* Ignore fs in webpack.config.js

* Update tour-kit stories

* Add tour-kit tests

* Update tour-kit README.md

* Update tour-kit types

* Update webpack.config.js

* Update style.scss

* Add auto focus feature

* Update type doc
2022-06-08 17:16:31 +08:00
Joshua T Flowers 17d9e8072d
Add create product actions in products data store (#33278)
* Add create product actions in products data store

* Add changelog entry

* Yield to actions in generator

* Add mutable properties type
2022-06-07 09:23:27 -04:00
Christopher Allford bb320a935a
Removed `@woocommerce/notices` Internal Prefix (#33283)
Since we're exposing the package in some form,
we cannot rename it since that would break backwards
compatibility.  This commit changes it back.
2022-06-03 16:05:26 -07:00
Joep Schuurkes 7e54b8aea0
Add e2e tests to check shipping costs consistency in cart and checkout (#33208)
* Add e2e tests to check consistency in shipping costs for cart and checkout pages

Goal of these tests it to check if the cart and checkout pages are
consistent in calculuating shipping costs. Three tests added:
- shipping available to country with states
- shipping available to country without states
- no shipping available (fails, see issue #33205)

Reason to add these tests is PR #25916, which reverted PR #25128,
because the original PR worked for the cart page, but not for the
checkout page.

* Update e2e-core-tests changelog

* Skip failing e2e-core-test
2022-06-03 10:01:04 -06:00
Joel Thiessen ddafa8e380
Tasks chaining side panel (#33124) 2022-06-01 10:10:20 -07:00
Alejandro López Ariza ea25e2c5b2
Added new tests to cover editing product variations in the Product Edit page. (#32722) 2022-06-01 09:36:44 -06:00
Christopher Allford 112b9ac67a
Prefixed Private JS Packages (#33218)
In order to ease the identification of private packages within the monorepo, this adds an `internal-` prefix to all of the current private packages. This makes it immediately clear when reviewing `packages/js` what is and isn't a private package.
2022-05-31 15:42:00 -07:00
rodelgc 541abd9178
REP: Post daily smoke test report on Slack (#33203)
* Separate job for api test

* Remove unnecessary comment

* Use ubuntu 20.04 in job "publish-test-report"

* Simplify syntax in "if" condition

* Temporarily add push trigger for testing

* Temporarily disable running jest e2e tests for testing

* Remove unnecessary OR operator

* try: disable certain jobs for testing

* try: run 'hello' api test for testing

* Implement timeout override in API tests

* Allow workflow to override timeout of api tests

* Correct parsing of timeout override

* try: temporarily disable e2e job

* try: make api test verbose for troubleshooting

* try: temporarily disable some install steps for testing

* Correct smoke test env vars

* try: run all api tests

* Re-enable install-build steps

* Correct smoke test env var values

* Temporarily disable running all e2e tests after WC upgrade

* Remove unnecessary flag for daily smoke test runs

* Use different workflow for publishing daily smoke test report

* Use env vars instead of github expressions in accessing job outputs

* Correct multiline syntax

* Correct api_artifact input value

* Take only the first line of commit message

* Correct passing of input value

* Re-enable jobs before submitting for review

* Separate job for api test

* Remove unnecessary comment

* Use ubuntu 20.04 in job "publish-test-report"

* Simplify syntax in "if" condition

* Temporarily add push trigger for testing

* Temporarily disable running jest e2e tests for testing

* Remove unnecessary OR operator

* try: disable certain jobs for testing

* try: run 'hello' api test for testing

* Implement timeout override in API tests

* Allow workflow to override timeout of api tests

* Correct parsing of timeout override

* try: temporarily disable e2e job

* try: make api test verbose for troubleshooting

* try: temporarily disable some install steps for testing

* Correct smoke test env vars

* try: run all api tests

* Re-enable install-build steps

* Correct smoke test env var values

* Temporarily disable running all e2e tests after WC upgrade

* Remove unnecessary flag for daily smoke test runs

* Use different workflow for publishing daily smoke test report

* Use env vars instead of github expressions in accessing job outputs

* Correct multiline syntax

* Correct api_artifact input value

* Take only the first line of commit message

* Correct passing of input value

* Re-enable jobs before submitting for review

* Add push trigger for final testing

* Re-enable e2e tests, remove push trigger before merge

* Fix spacing

* Correct slack channel id
2022-05-31 12:57:04 -06:00
Chi-Hsuan Huang 822b4538ad
Update Tax task title (#33269)
Update the tax task title to "Set up tax rates"
2022-05-31 16:45:33 +08:00
RJ b051ed88db
Update react-router-dom to v6 for woocommerce-admin (#33156) 2022-05-30 14:51:33 +08:00
Christopher Allford 2101bf5c9c
Set Composer Platform Requirements (#33245)
This commit sets a platform requirement for all `composer.json` files to ensure that they are compatible with CI.
2022-05-27 14:57:33 -07:00
louwie17 83686b2980
Order product count api requests orders store (#33063)
* Add initial Order redux store

* Add unit tests for orders store

* Update fetch with headers to parse error

* Update action names, and consolidate request function

* Add chnagelog

* Update resolver to always include id and update reducer to prevent data overwrite
2022-05-27 11:12:00 -03:00
Jonathan Lane f70afccec9
Merge pull request #33139 from woocommerce/e2e/rep-playwright-feature-flag
Run Playwright tests behind feature flag
2022-05-25 14:55:23 -07:00
Lourens Schep defc559947 Make sure we always use id for receiving products and update reducer to handle _fields 2022-05-25 15:09:21 -03:00
Lourens Schep 1fc2f4ed22 Remove unused action 2022-05-25 12:09:39 -03:00
Lourens Schep 1299a799ab Update Product types, and allow for more extensibility 2022-05-25 12:09:10 -03:00
Lourens Schep df565786c0 Make sure we throw errors within resolvers 2022-05-25 12:09:09 -03:00
Lourens Schep 4f3bf0f112 Update action names, consolidate a request function, and update types 2022-05-25 12:09:09 -03:00
Lourens Schep 3d84cc0e03 Update selectors 2022-05-25 12:09:08 -03:00
Lourens Schep 8752e7b715 Add products data store 2022-05-25 12:09:05 -03:00
Thomas Roberts f571564346
Add `@woocommerce/extend-cart-checkout-block` package (#32323)
* initial commit

* 1.1.0

* Add additional files

* 1.2.0

* Add sass file and comment to webpack.config.js

* 1.3.0

* Use pascal case for class name

* 1.4.0

* Add package lock

* Add gitignore

* Add plugin header

* 1.5.0

* Add actions to initialise class

* 1.6.0

* Fix issue with __FILE__ and version constant

* 1.7.0

* Add scripts to package.lock.json

* 1.8.0

* Move scripts to src and remove package.json template

* 1.9.0

* Add JS script in root of src folder

* 1.10.0

* Add correct directory to JS script

* 1.11.0

* Add correct path to sass loader webpack

* 1.12.0

* 1.13.0

* Remove automattic colour import

* 1.14.0

* update src of scripts

* 1.15.0

* update example data

* 1.16.0

* update example with filters

* 1.17.0

* Add filter for cod payment method

* 1.18.0

* Create README.md

* Update package.json (https://github.com/woocommerce/blocks-template/pull/1)

* Add new file to house the integration class and prevent a fatal error (https://github.com/woocommerce/blocks-template/pull/2)

* 1.19.0

* Update integration to use correct hooks

* 1.20.0

* Include blocks integration file

* 1.21.0

* Remove package lock and update repo references

* Remove gitignore and update README

* Add project.json

* Move package to extend-cart-checkout-block

* Update pnpm lock for new package name

* Add new package name to dependency extraction webpack plugin

* Remove unnecessary config options from webpack.config.js.mustache

* Include npmDevDependencies in defaultValues

* Add changelog for dependency extraction plugin

* Add composer.json for changeglog generation

* Add postinstall script to package.json

* Remove test script from package.json

* Reset package version to 1.0.0

Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
2022-05-25 23:44:31 +12:00
Chi-Hsuan Huang 63bb681c14
Merge pull request #33134 from woocommerce/dev/33098-migrate-woo-notice-to-ts
Migrate `@woocommerce/notices` to TS
2022-05-25 13:20:24 +08:00
Chi-Hsuan Huang 0240a29eb6
Merge pull request #33168 from woocommerce/dev/migrate-woo-data-options-to-ts
Migrate `@woocommerce/data` options store to TS
2022-05-25 13:20:07 +08:00
Chi-Hsuan Huang 785466fdd2
Merge pull request #33155 from woocommerce/dev/migrate-woo-data-import-export-store-to-ts
Migrate `@woocommerce/data` import & export stores to TS
2022-05-25 10:53:25 +08:00
Chi-Hsuan Huang 8c7533a7e8 Add changelog 2022-05-25 10:13:26 +08:00
Chi-Hsuan Huang b8d79d86cf Migrate woo.data export & import store to TS 2022-05-25 10:13:24 +08:00
Joel Thiessen 5f56ecb9b0
Suppressing warnings for malformed metadata in product template downloads #32971 #32971 2022-05-24 11:12:02 -07:00
Chi-Hsuan Huang 4d9e07bbd4 Add changelogs 2022-05-24 21:41:36 +08:00
Chi-Hsuan Huang 5f7d0cd0e1 Migrate woo data options to TS 2022-05-24 21:41:34 +08:00
Chi-Hsuan Huang c5ccaa0056
Merge pull request #33108 from woocommerce/dev/33100-migrate-woo-date-to-ts
Migrate `@woocommerce/date` to TS
2022-05-24 14:21:21 +08:00
Chi-Hsuan Huang 6c4674fe9a Update tests fail messages 2022-05-24 11:14:44 +08:00
Chi-Hsuan Huang c83dedd849
Merge pull request #33153 from woocommerce/dev/33132-migrate-woo-onboarding-to-ts
Migrate `@woocmmerce/onboarding` to TS
2022-05-23 18:33:00 +08:00
Chi-Hsuan Huang 19a3e2c892 Rename files to TS 2022-05-23 16:49:07 +08:00
Chi-Hsuan Huang 02a483dc32
Merge pull request #33133 from woocommerce/dev/33101-migrate-woo-currency-to-ts
Migrate `woocommerce/currency` to TS
2022-05-23 16:21:08 +08:00
Chi-Hsuan Huang 54d145a526 Update getCurrentDatesMemoized types 2022-05-23 14:07:22 +08:00
Chi-Hsuan Huang 637ea244ea Add changelog 2022-05-23 13:28:31 +08:00
Chi-Hsuan Huang 76737b12f7 Migrate @woocommerce/onboarding to TS 2022-05-23 13:25:08 +08:00
Chi-Hsuan Huang da773d1730 Update default action value types 2022-05-23 12:03:12 +08:00
Saggre 7e298f56ac Add changelog entry 2022-05-20 11:09:17 +03:00
Sakri Koskimies 5927744e50 Fix typo in @woocommerce/number readme 2022-05-20 11:00:21 +03:00
Sakri Koskimies 899647d0ef Fix fn import and lodash call in @woocommerce/number readme 2022-05-20 11:00:20 +03:00
Rodel 99796df9d4 Ignore Allure directories globally 2022-05-20 15:08:01 +08:00
Chi-Hsuan Huang f1b4a7bfb9
Merge pull request #33110 from woocommerce/dev/33104-migrate-customer-effort-score-to-ts
Migrate `@woocommerce/customer-effort-score` to TS
2022-05-20 15:01:14 +08:00
Chi-Hsuan Huang 7e151d3f74
Merge pull request #33131 from woocommerce/dev/33102-migrate-csv-export-to-ts
Migrate `@woocommerce/csv-export` to TS
2022-05-20 14:56:13 +08:00
Chi-Hsuan Huang 5187c07e9e Update createNotice type 2022-05-20 14:43:38 +08:00
Chi-Hsuan Huang e16aae9a82 Update icon type 2022-05-20 14:35:48 +08:00
Chi-Hsuan Huang eb5d9b82fa Use React.VFC for CustomerEffortScore type instead 2022-05-20 14:33:59 +08:00
Chi-Hsuan Huang 16bb4b633a Update pnpm-lock.yaml 2022-05-20 13:15:13 +08:00
Chi-Hsuan Huang 65a8dbcd5a Add changelog 2022-05-20 13:15:13 +08:00
Chi-Hsuan Huang 286358d724 Migrate @woocommerce/notice to TS 2022-05-20 13:15:11 +08:00
Chi-Hsuan Huang 2885a0ae86 Update store index.js -> index.ts 2022-05-20 13:09:04 +08:00
Chi-Hsuan Huang b492be07e6 Migrate @woocommerce/currency to TS 2022-05-20 11:49:46 +08:00
Chi-Hsuan Huang d60ec328ac Migrate @woocommerce/currency to TS 2022-05-20 11:49:12 +08:00
Chi-Hsuan Huang 2c0b684719 Convert woo number test to TS 2022-05-20 10:53:41 +08:00
Chi-Hsuan Huang 4668dabe46 Add changelog 2022-05-20 10:53:41 +08:00
Chi-Hsuan Huang 78a9913bcc Migrate @woocommerce/number to TS 2022-05-20 10:53:41 +08:00
Chi-Hsuan Huang 2c69e78460 Update filesaver type 2022-05-20 10:51:52 +08:00
Moon 0b35ad678d
Merge pull request #33027 from woocommerce/update/update-history-package
Update history package to the latest 5.3.0 version
2022-05-19 18:27:12 -07:00
Joel T 9e62fb58b8 Updating references to old album-1 image 2022-05-19 16:05:23 -07:00
Chi-Hsuan Huang c967e9125f Add changelog 2022-05-19 16:56:27 +08:00
Chi-Hsuan Huang ff5417c99f Migrate @woocommerce/customer-effort-score to TS 2022-05-19 16:55:43 +08:00
Chi-Hsuan Huang b1b590c68c Convert woo date to TS 2022-05-19 16:38:56 +08:00
Chi-Hsuan Huang 16a3fa7b38 Migrate @woocommerce/csv-export to TS 2022-05-19 16:18:14 +08:00
Chi-Hsuan Huang 9fbe58833b Update chartType check 2022-05-19 15:03:01 +08:00
Chi-Hsuan Huang aebefa45c6 Change type check error to warn 2022-05-19 15:00:20 +08:00
Chi-Hsuan Huang c152efb71a Add changelog 2022-05-19 14:48:55 +08:00
Chi-Hsuan Huang 172a50cab0 Migrate @woocommerce/date to TS 2022-05-19 14:48:32 +08:00
RJ f637dd2bb7
Add: temporary workaround to add experiment metadata for task_view (#33052)
rigged a workaround to let products task report its experimental assignment
2022-05-18 15:24:48 +08:00
Moon d066266fbf
Merge pull request #33023 from woocommerce/update/33022-update-explat-with-examples
Update ExPlat with more examples
2022-05-17 16:20:09 -07:00
louwie17 e822a4a7f4
Merge pull request #32538 from woocommerce/feature/32158_complete_task_list_card_with_feedback
Feature/32158 complete task list card with feedback
2022-05-17 17:39:14 -03:00
Lourens Schep 3ba939a27a Add changelog for data package 2022-05-16 10:54:07 -03:00
Lourens Schep 137ec24174 Add changelogs for customer-effort-score package 2022-05-16 10:36:30 -03:00
Lourens Schep 2291de40c7 Make sure Modal emoji's match 2022-05-16 10:27:35 -03:00
Lourens Schep e820eb06db Update emoji's 2022-05-16 10:05:53 -03:00
Lourens Schep d1bf5c5719 Address the majority of the PR feedback 2022-05-16 10:03:46 -03:00
rodelgc 6cda659980
Publish API test reports to GitHub Pages
- Added workflow to publish API tests
2022-05-16 17:59:40 +08:00
moon 9faccc176f Remove unused LoadingExperience 2022-05-13 14:23:40 -07:00
Lourens Schep fe1e814a41 Fix customer effort types and add timeout to thank you message 2022-05-13 10:29:21 -03:00
Lourens Schep b441a84d9d Keep score displayed if user cancels out of CES Modal 2022-05-13 10:29:21 -03:00
Lourens Schep 45dfda2b65 Move CES show logic to the back end, so there is no loading delay 2022-05-13 10:29:21 -03:00
Lourens Schep 4b27f831f7 Add CES submission 2022-05-13 10:29:21 -03:00
Lourens Schep 7aa37d609f Added new completed header and customer feedback component 2022-05-13 10:29:20 -03:00
moon e40f73a555 Add changelog 2022-05-12 18:32:06 -07:00
moon aa7853edbd Update history package to the latest 5.3.0 version 2022-05-12 18:28:43 -07:00
RJChow f3cc00ff8b changelogs 2022-05-13 06:20:11 +08:00
RJChow 05cd1c30de Added tracks events to experimental products pages 2022-05-13 06:16:28 +08:00
moon f3035c65c7 Add changelog 2022-05-12 14:39:37 -07:00
moon e2ad299c13 Update ExPlat changelog 2022-05-12 14:37:18 -07:00
moon 4e0faa6ea1 Add useExperiment example 2022-05-12 14:30:17 -07:00
Ilyas Foo 713198f5ed Renames to increase clarity 2022-05-12 10:41:15 +08:00
Ilyas Foo f7263c60ff Changelogs 2022-05-12 10:41:15 +08:00
Ilyas Foo 37772a1349 Add use-product-layout-experiment hook and logic to onboarding package 2022-05-12 10:41:14 +08:00
Chi-Hsuan Huang a287963fa4
Merge pull request #32939 from woocommerce/update/client-api-error-types
Update `@woocomerce/data` client api error types
2022-05-12 09:00:57 +08:00
Moon 9720874f50
Merge pull request #32954 from woocommerce/update/32883-update-react-dates-dependency
Update react-dates to 21.8.0
2022-05-11 12:49:16 -07:00
Chi-Hsuan Huang 83f0ca7686 Add changelog 2022-05-11 14:50:59 +08:00
Chi-Hsuan Huang 5e0be91e9c Handle @woocommerce/data api error types properly 2022-05-11 14:50:56 +08:00
Chi-Hsuan Huang edbfd5bf93
Merge pull request #32937 from woocommerce/update/convert-woo-tracks-to-ts
Convert `@woocommerce/tracks` to TS
2022-05-11 09:57:27 +08:00
Chi-Hsuan Huang 79814ccccf
Merge pull request #32936 from woocommerce/update/memoize-one
Remove `memoize-one` from woo admin & update it to ^6.0.0 for woo components
2022-05-11 09:55:40 +08:00
moon 15ecfd9b16 Update react-dates to 21.8.0 2022-05-10 18:12:32 -07:00
Christopher Allford f41258a9f2 Added EOF Newlines
We put an extra newline at the end of all
files to detect those that have been
malformed or truncated.
2022-05-10 13:35:31 -07:00
Christopher Allford ec2e90540e Added Changelogs 2022-05-10 13:31:13 -07:00
Christopher Allford 37ad4c5a70 Converted Spaces To Tabs In JSON
Since we almost universally use tabs instead
of spaces, this commit replaces all of the spaces
with tabs in various JSON files across the monorepo.
2022-05-10 13:31:01 -07:00
Christopher Allford 871426decc Fixed `package.json` Data Type
The "private" key is supposed to be a
boolean.
2022-05-10 13:29:59 -07:00
Chi-Hsuan Huang e179f8d1fe Change woocommerce data async action error type to unknown 2022-05-10 16:53:51 +08:00
Chi-Hsuan Huang ef9af07bde Remove data prop from RestApiError type 2022-05-10 16:53:06 +08:00
Chi-Hsuan Huang cd3abebeb0 Add changelogs 2022-05-10 15:29:10 +08:00
Chi-Hsuan Huang 4c2fa2716b Convert @woocommerce/tracks to TS 2022-05-10 15:29:07 +08:00
Chi-Hsuan Huang 4f1e7af7c7 Add changelogs 2022-05-10 14:29:45 +08:00
Chi-Hsuan Huang 43af801d46 Remove memoize-one from wca & update it to ^6.0.0 for woo components 2022-05-10 14:17:03 +08:00
RJChow 67cf1e109b added task_view tracks prop for experimental_products 2022-05-10 12:52:00 +08:00
Alejandro López Ariza 2886fede2c
Removed Jetpack Changelogger from test js packages as they follow another approach for handling changelogs. (#32877)
* Removed Jetpack Changelogger from test js packages as they follow another approach for handling changelogs.

* Removed composer.json from api-core-tests, e2e-core-tests, e2e-environmnet and e2e-utils as they are no longer needed.

* Removed postinstall script from api-core-tests, e2e-core-tests, e2e-environment and e2e-utils packages, since they will no longer have a composer.json file.
2022-05-10 13:11:19 +12:00
Lourens Schep 65da6a8562 Add changelog 2022-05-09 11:31:03 -03:00
Lourens Schep fb62e3392a Fix duplicate task list shown 2022-05-09 11:17:37 -03:00
Paul Sealock 5537da6e9d
Packages: Add Changelogger scripts (#32813) 2022-05-05 15:26:36 +12:00
Paul Sealock 489ebf2cc6
Standardize linting: e2e js packages (#32794) 2022-05-05 15:02:50 +12:00
Jamel Noel Reid 4915c389ef
Merge pull request #32521 from woocommerce/nielslange-patch-1
Remove duplicate entry `verifyAndPublish` from docs
2022-05-04 09:21:47 -05:00
Chi-Hsuan Huang afe6e84ab0
Merge pull request #32855 from woocommerce/update/32716-explat-api-requests
Add safeguards to ensure ExPlat API requests are valid
2022-05-04 09:02:10 +08:00
Christopher Allford 790d085f12
Merge pull request #32657 from woocommerce/refactor/standardize-postinstall
Utilize `post install` Script for Composer
2022-05-03 10:21:33 -07:00
Chi-Hsuan Huang 2c97db867e Update woo.explat to check fetchExperimentAssignment params 2022-05-03 17:01:07 +08:00
Chi-Hsuan Huang 6c8ee08f19 Add a safeguard for ExPlat assignment requests to make sure a user either has an anon_id defined and not empty 2022-05-03 17:01:07 +08:00
roykho c4a1fff367
Add changelog 2022-05-02 15:56:38 -07:00
roykho d3423a5c8f
Remove gitignored file. 2022-05-02 15:46:46 -07:00
Christopher Allford 9a22c62505 Added Changelogs 2022-05-02 12:55:48 -07:00
Christopher Allford 7dc9c203f8 Added Missing `postinstall` Scripts 2022-05-02 12:55:48 -07:00
Christopher Allford 000f14be4a Fixed Tabs 2022-05-02 12:55:48 -07:00
Christopher Allford 377b643720 Removed `prepare` Scripts
Thanks to our build orchestration tooling, there is
no reason for us to build all of the packages on
`install`. In cases where `prepare` was used to
build before packaging, this changes it to
`prepack` so it will run only under the correct
circumstances.
2022-05-02 12:55:48 -07:00
Lourens Schep 96a8b5b226 Fix type definition in TaskItem prop 2022-04-29 11:26:57 -03:00
Ilyas Foo cb731d465a Merge remote-tracking branch 'origin/trunk' into add/wc-payment-gateways-banner 2022-04-29 10:15:21 +08:00
Ilyas Foo fc74c42fe0
Merge branch 'trunk' into add/wc-payment-gateways-banner 2022-04-29 09:11:20 +08:00
Ilyas Foo d94769982b Update e2e to use table instead 2022-04-29 09:09:06 +08:00
moon ef3f48bda6 Add is_visible 2022-04-28 11:22:54 -07:00
Roy Ho c8c2e4253f
Merge pull request #32793 from woocommerce/fix/standardize-lint-monorepo
Standardize linting: Admin JS packages
2022-04-28 06:14:36 -07:00
Chi-Hsuan Huang 8f06c5aa20 Reorder functions/imports/exports in @woocommerce/data 2022-04-28 19:18:56 +08:00
Chi-Hsuan Huang 0a986dd153 Update onboarding/selectors.ts 2022-04-28 19:18:56 +08:00
Chi-Hsuan Huang 0919e241ae Move types to ./types.ts 2022-04-28 19:18:55 +08:00
Chi-Hsuan Huang 843a59c0c4
Merge pull request #32735 from woocommerce/update/woo-data-types
Update `@woocommerce/data` & admin client type definitions
2022-04-28 18:03:14 +08:00
Adrian Duffell 8a3ae1399b Merge branch 'trunk' into add/wc-payment-gateways-banner 2022-04-28 14:29:17 +08:00
Jamel Noel Reid 7c0a1f129e
Merge pull request #31915 from woocommerce/fix/e2e-utils-shopper-searchForProduct
Fix link click for shopper.searchForProduct
2022-04-27 17:33:06 -05:00
Paul Sealock e82e3cc49e changelog 2022-04-28 10:00:29 +12:00
Paul Sealock 931845a53a reference local eslint plugin package 2022-04-28 10:00:29 +12:00
Paul Sealock 12fef88354 Add lint:fix to admin js packages 2022-04-28 10:00:29 +12:00
Jonathan Lane 31d4b8f7e7
Merge branch 'trunk' into fix/27902 2022-04-27 09:28:17 -07:00
Jonathan Lane 08513fbb0d
Merge branch 'trunk' into fix/e2e-utils-shopper-searchForProduct 2022-04-26 11:01:09 -07:00
Jonathan Lane 58203cf7bc
Merge pull request #32713 from woocommerce/fix/e2e-utils-eslint-config
Fix/e2e utils eslint config
2022-04-26 09:55:13 -07:00
Chi-Hsuan Huang d0e31f9949 Add is_visible to Extension type 2022-04-26 09:34:52 +08:00
Chi-Hsuan Huang 022d86c8a5 Reformat ./data/typings/index.d.ts 2022-04-26 09:32:52 +08:00
Chi-Hsuan Huang 0d5a0050d8 Add changelogs 2022-04-25 15:17:35 +08:00
Chi-Hsuan Huang 672ba17a80 Fix and export @woocommerce/data types for react admin ./client
Convert onboarding index.js to TS & add missing type fields
2022-04-25 14:17:13 +08:00
Chi-Hsuan Huang 5c8f76bbe7 Fix @woocommerce/data type errors after enabling wp data, compose types 2022-04-25 13:40:18 +08:00
Chi-Hsuan Huang 6836d90b72 Add wp data, compose types to @woocommerce/data
Update pnpm-lock.yaml
2022-04-25 13:32:26 +08:00
Fernando ee5d38d49c
Merge pull request #32704 from woocommerce/fix/task-list-style-conflict
Fix setup task list style conflict
2022-04-22 10:34:50 -03:00
Chi-Hsuan Huang 4ade171fd1
Merge pull request #32712 from woocommerce/fix/admin-remaining-task-types
Fix remaining typescript type errors in react admin
2022-04-22 15:31:06 +08:00
Chi-Hsuan Huang a6927c1621
Merge pull request #32698 from woocommerce/fix/admin-task-types
Fix typescript type errors in react admin `./client/tasks/task` & `./client/tasks/tests`
2022-04-22 14:48:51 +08:00
Joel Thiessen 6f4bb7050d
Merge pull request #32528 from woocommerce/update/32508_pnpx_deprecated
Updating all instances of now-deprecated `pnpx` to `pnpm dlx`
2022-04-21 10:16:31 -07:00
Alex López 4c243ddbc5 Updated e2e-utils changelog. 2022-04-21 12:26:37 +02:00
Alex López 0fffa6cba9 Disabled eslint task for staged files in e2e-utils until lint issues are addressed. 2022-04-21 09:49:07 +02:00
Alex López d94bc5e78a Fixed e2e-utils eslint config so that it depends on the package config file only. 2022-04-21 09:33:45 +02:00
RJChow 6151f4021c Revert "Changed e2e payment settings page detection"
This reverts commit 1a7c40316e.
2022-04-21 14:08:32 +08:00
Chi-Hsuan Huang 841692d14d Add changelogs 2022-04-21 13:16:54 +08:00
RJChow 1a7c40316e Changed e2e payment settings page detection 2022-04-21 13:14:28 +08:00
Chi-Hsuan Huang 7085ed7d96 Export InstallPluginsResponse data type from woo.data 2022-04-21 13:10:40 +08:00
Chi-Hsuan Huang fbc1cf0e61 Correct stepper component props types 2022-04-21 12:45:02 +08:00
Chi-Hsuan Huang 8a1c684f55 Update data onboarding selector types 2022-04-21 12:44:35 +08:00
RJChow bbb1af478b changelogs 2022-04-21 11:29:58 +08:00
RJChow 60885707f1 types and lint 2022-04-21 11:29:28 +08:00
Roy Ho ff2d7d704a
Merge pull request #32680 from woocommerce/fix/e2e-builds-private-package
e2e-builds: Private package for build logic of e2e
2022-04-20 18:33:41 -07:00
Chi-Hsuan Huang e3f7ab99e0 Add woo data changelog 2022-04-21 09:04:32 +08:00
Chi-Hsuan Huang 8ec07913ba Export woo data getTaskLists type 2022-04-21 09:04:32 +08:00
Paul Sealock 3ff4b2f309 whitespace 2022-04-21 12:56:11 +12:00
Fernando Marichal 43b120bce7 Add changelogs 2022-04-20 11:14:15 -03:00
Fernando Marichal 5dbc394784 Fix task list style conflict 2022-04-20 10:12:08 -03:00
Chi-Hsuan Huang de5bf080e1 Add changelogs 2022-04-20 16:12:15 +08:00
Chi-Hsuan Huang 031cc79ab3 Update task types 2022-04-20 16:12:12 +08:00
Chi-Hsuan Huang d6a8bbe2f2 Update onboaindg selector types 2022-04-20 12:48:24 +08:00
Chi-Hsuan Huang 5f1e177105 Convert woo data use-user-preferences.js to TS 2022-04-20 12:47:56 +08:00
Chi-Hsuan Huang 88fce4f5ab Add @types/wordpress__core-data to woo data devDependencies 2022-04-20 12:47:12 +08:00
Ilyas Foo 62de7bae9c
Merge pull request #32662 from woocommerce/update/refactor-and-improve-tests-payments-task
Refactor and improve tests payments task
2022-04-20 10:38:28 +08:00
Chi-Hsuan Huang 98e3dd2192 Add changelogs 2022-04-19 16:41:03 +08:00
Chi-Hsuan Huang a255013b61 Add @automattic/data-stores to @woommcerce/data dev deps 2022-04-19 16:30:48 +08:00
Chi-Hsuan Huang 345e4e1cf7 Update @woocommerce/data types 2022-04-19 16:30:02 +08:00
Chi-Hsuan Huang 95276dddfb Make Pill classname optional 2022-04-19 16:29:36 +08:00
Paul Sealock 87cc903b3a changelof 2022-04-19 15:30:35 +12:00
Paul Sealock 8be1d9f7be package boilerplate 2022-04-19 15:23:52 +12:00
Paul Sealock 1c838e5bb0 declare deps 2022-04-19 15:20:50 +12:00
Paul Sealock 4e700a35ca Create a private package to house e2e build logic 2022-04-19 14:59:46 +12:00
Ilyas Foo f9f85103c5 Attempt to reenable e2e 2022-04-18 09:06:03 +08:00
Chi-Hsuan Huang 01276d492e Add changelogs 2022-04-15 13:50:18 +08:00
Chi-Hsuan Huang 4cb893dda9 Update admin tsconfig to isolated from other projects 2022-04-15 13:50:18 +08:00
Chi-Hsuan Huang 6f5ada8748 Add Typescript type declarations for js packages 2022-04-15 13:50:17 +08:00
Ilyas Foo 5bd497b384
Merge pull request #32605 from woocommerce/update/32132-payment-logic-in-task-and-settings
Update payment gateway logic in payment task
2022-04-14 18:36:44 +08:00
Ilyas Foo 133e40bf57 Skip e2e tests to be addressed in follow-up 2022-04-14 18:02:03 +08:00
Chi-Hsuan Huang 863316ade7
Merge pull request #32518 from woocommerce/update/32516-woocommerce-admin-links
Update woocommerce-admin links to point to woocommerce repo
2022-04-14 13:40:25 +08:00
Ilyas Foo bc76636f3f Try fix e2e again 2022-04-14 11:42:32 +08:00
Ilyas Foo 942fa8d5de More e2e 2022-04-14 10:54:03 +08:00
Ilyas Foo 1a129a2354 Change recommended ribbon to Pill 2022-04-14 10:52:12 +08:00
Ilyas Foo 6f8cb2b536 Merge remote-tracking branch 'origin/trunk' into update/32132-payment-logic-in-task-and-settings 2022-04-14 09:48:39 +08:00
Ilyas Foo 0fb4b5d9f5 Update e2e 2022-04-14 09:33:26 +08:00
Ilyas Foo be1342420c Add more timeout threshold for e2e 2022-04-14 08:09:24 +08:00
Joel Thiessen 0a0c6b45cf
Merge branch 'trunk' into update/32508_pnpx_deprecated 2022-04-13 12:35:29 -07:00
Lourens Schep f15e38f55e Fix minor css issues with complete task list item 2022-04-13 16:01:31 -03:00
Fernando 16424423bd
Merge branch 'trunk' into add/32157_tests_to_disable_welcome_modals 2022-04-13 14:33:27 -03:00
Lourens Schep 0c91a56f1f Address minor PR feedback and UI issues 2022-04-13 11:20:26 -03:00
Lourens Schep 52922c9219 Add changelogs 2022-04-13 09:58:09 -03:00
Lourens Schep 68efbafcb5 Add sectioned task list component 2022-04-13 09:58:09 -03:00
Ilyas Foo 31bcf06ac8
Merge pull request #32467 from woocommerce/dev/32131-ui-changes-additional-payment-section
UI changes for set up payments task
2022-04-13 12:52:46 +08:00
Fernando 0a3359d1ac
Merge pull request #32527 from woocommerce/add/32141_pinterest_extension_to_obw
Add Pinterest extension to onboarding wizard and marketing task
2022-04-12 15:58:48 -03:00
Fernando Marichal 23b3250d10 Add package changelog 2022-04-12 10:38:50 -03:00
Fernando Marichal e219a19229 Renamed `testAdminHomescreenWelcomeModal` 2022-04-12 10:38:27 -03:00
Ilyas Foo 859ab8884b Fix e2e tests 2022-04-12 18:19:06 +08:00
Ilyas Foo 29e27fff35 Update e2e 2022-04-12 11:47:22 +08:00
Ilyas Foo 1fb2418e57 Add changelog for data package 2022-04-12 11:40:02 +08:00
Ilyas Foo b7e156cdfa Add changelog for data package 2022-04-12 11:19:09 +08:00
Chi-Hsuan Huang 0dcea11bf0
Merge pull request #32531 from Saggre/fix/table-card-docs
Fix TableCard component docs
2022-04-12 08:59:43 +08:00
Sakri Koskimies 52732f2bc1 Add changelog entry 2022-04-11 11:06:08 +03:00
Ilyas Foo 90c61e4bad Revert WCPay suggestion UI changes 2022-04-11 11:55:05 +08:00
Chi-Hsuan Huang c5cf0fbd79 Fix admin js-tests config path 2022-04-11 10:50:26 +08:00
Ilyas Foo 829b4c4480 Merge remote-tracking branch 'origin/trunk' into dev/32131-ui-changes-additional-payment-section 2022-04-11 09:42:23 +08:00
Fernando Marichal 35a2eb1f9f Move test to `complete-onboarding-wizard` 2022-04-08 16:10:43 -03:00
Fernando Marichal 956a0dffa7 Fix lint 2022-04-08 09:13:19 -03:00
Fernando Marichal bf12533f0f Clean test 2022-04-08 09:13:07 -03:00
Fernando Marichal 00578d472f Add welcome-modal e2e test 2022-04-08 09:12:59 -03:00
Fernando Marichal b6611fb7c1 Add e2e tests 2022-04-08 09:12:49 -03:00
Sakri Koskimies b6310900de Fix TableCard component docs 2022-04-08 11:21:53 +03:00
Chi-Hsuan Huang ba17630dca
Merge pull request #32515 from woocommerce/update/32296-wordpress-dependencies
Update @wordpress/* dependencies
2022-04-08 10:08:48 +08:00
Joel T 1c162a14d2 Updating all instances of pnpx to pnpm dlx/exec 2022-04-07 17:52:05 -07:00
Fernando Marichal 3159bde895 Add Pinterest to free extensions list 2022-04-07 18:07:00 -03:00
Niels Lange 5fbebe240c
Remove duplicate entry `verifyAndPublish` 2022-04-07 15:43:10 +02:00
Chi-Hsuan Huang 3fc88f0a71 Update links of woocommerce-admin to https://github.com/woocommerce/woocommerce 2022-04-07 17:02:43 +08:00
Chi-Hsuan Huang a1a63e9433 Update package changelogs 2022-04-07 14:34:42 +08:00
Chi-Hsuan Huang 3443387045 Update @wordpress/icons from ^6.3.0 to ^8.1.0 2022-04-07 14:24:19 +08:00
Chi-Hsuan Huang 317dd7c9e9 Update @wordpress/base-styles from ^3.6.0 to ^4.3.0 2022-04-07 14:21:33 +08:00
Chi-Hsuan Huang c60db1215e Update @wordpress/hooks from ^2.12.3 to ^3.5.0 2022-04-07 14:18:13 +08:00
Chi-Hsuan Huang 70359c8d11 Update @wordpress/a11y from ^2.15.3 to ^3.5.0 2022-04-07 14:16:46 +08:00
Ilyas Foo 4c4edc1c03 Fix css 2022-04-07 11:23:04 +08:00
Ilyas Foo f82b5d78f1 Fix css and test 2022-04-06 21:31:50 +08:00
Ilyas Foo f50379d8a2 Update all onboarding card images 2022-04-06 19:15:08 +08:00
Chi-Hsuan Huang 2b1f54b09d Set up lint-staged configuration for each package 2022-04-06 17:31:32 +08:00
Ilyas Foo 16c28e3599 Fix css 2022-04-06 16:41:27 +08:00
Ilyas Foo ffdf1e6c02 More adjustments 2022-04-06 16:25:33 +08:00
Ilyas Foo 3050cacc39 Minor adjustments 2022-04-06 16:25:33 +08:00
Ilyas Foo 1f8988675f Some adjustment to card footer 2022-04-06 16:25:32 +08:00
Ilyas Foo 1980fac6fd Revamp WCPay suggestion in payments task 2022-04-06 16:25:32 +08:00
Ilyas Foo fd4a4a5604 Add is_offline flag and split payment sections 2022-04-06 16:25:31 +08:00
Jamel Noel Reid 8812feedaa
Merge pull request #32419 from woocommerce/e2e/db-healthcheck
Only start PHP containers after a successful healthcheck against DB
2022-04-04 04:09:24 -05:00
Lucas Bustamante 3253b1222f Changelog 2022-04-01 17:00:18 +01:00
Lucas Bustamante 20be0bc3e6 Wait as part of the up process 2022-04-01 14:37:47 +01:00
Lucas Bustamante c4fede5c43 Wait as part of the up process 2022-04-01 14:32:50 +01:00
Lucas Bustamante 476f30b3e0 Initialize if WordPress is not installed or page ready does not exist 2022-04-01 14:28:19 +01:00
Lucas Bustamante 253eedc516 Remove wait for it on wp-cli entrypoint 2022-04-01 14:27:47 +01:00
Lucas Bustamante 9b7485a449 Revert "Remove wait-for-it"
This reverts commit aefca35ad7.
2022-04-01 13:12:02 +01:00
Lucas Bustamante aefca35ad7 Remove wait-for-it 2022-04-01 13:11:57 +01:00
Lucas Bustamante d6a37a490e Merge branch 'trunk' into e2e/db-healthcheck 2022-04-01 11:53:55 +01:00
Lucas Bustamante 4c6989122d Re-bump the compose spec version and remove restart policy again 2022-04-01 11:52:59 +01:00
RJChow 2c630ccd9e Manually change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA JS packages .md files 2022-04-01 11:41:32 +08:00
RJChow 12a818c04d Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in JS packages 2022-04-01 11:41:32 +08:00
rodelgc 989f50daa3
GH Action for generating reports in CI (#32375)
Added: CI job to upload API test reports on PR events.
2022-04-01 10:24:09 +08:00
Fernando 610a48185c
Merge pull request #32408 from woocommerce/fix/32407_move_admin_e2e_tests
Add missing Admin e2e tests
2022-03-31 14:37:23 -03:00
Lucas Bustamante 11f456f058 Lower the compose spec version again 2022-03-31 17:33:49 +01:00
Lucas Bustamante b26704791b Re-add restart policy 2022-03-31 17:12:54 +01:00
louwie17 30ea9baf62
Merge pull request #32418 from woocommerce/fix/daily_e2e_tests
Fix daily e2e tests for WooCommerce Shipping & Tax
2022-03-31 10:59:44 -03:00
jamelreid c14a2f53b0 Updated CHANGELOG.md 2022-03-31 08:38:35 -05:00
jamelreid 6e296cab6c Merge branch 'trunk' into e2e/db-healthcheck 2022-03-31 08:23:18 -05:00
Lourens Schep 2bdf24ab9c Revert deactivate plugin change 2022-03-30 12:38:49 -03:00
Lourens Schep c268e9c386 Add changelog 2022-03-30 12:38:48 -03:00
Lourens Schep 8dc7bfbb85 Use assets browser download url if it exists over archive tag name 2022-03-30 12:38:47 -03:00
Lourens Schep b52935229e Use POST request for deactivating to handle more plugin names 2022-03-30 12:38:47 -03:00
Lourens Schep 39254344f2 Fix reset with shipping & tax plugin 2022-03-30 12:38:46 -03:00
Lourens Schep 775e7117a1 Add build-watch to most js packages and remove packages watch from woocommerce-admin command 2022-03-30 11:46:12 -03:00
Lucas Bustamante 18751588c0 Increase allowed retries just in case 2022-03-30 15:09:46 +01:00
Lucas Bustamante c0fdf45c1c Only start PHP containers after a successful healthcheck against DB 2022-03-30 15:03:30 +01:00
rodelgc b30179f8d2
Added: Command to generate HTML report 2022-03-30 10:57:11 +08:00
Fernando Marichal 89f6032cba Add missing e2e tests
This commit adds the tests: `testDifferentStoreCurrenciesWCPay`, `testSubscriptionsInclusion` and `testBusinessDetailsForm`
2022-03-29 19:16:03 -03:00
Lucas Bustamante c22b56346b
Merge pull request #32004 from woocommerce/e2e/pkg-woocommerce-api-docs
Update docs of @woocommerce/api
2022-03-29 15:21:25 +01:00
Lucas Bustamante d45f7051a4
PR Review 2022-03-29 15:04:37 +01:00
Lucas Bustamante 3e9e76ef7a
Update packages/js/api/README.md
Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>
2022-03-29 15:02:42 +01:00
Lucas Bustamante 4cfb412a57
PR Review 2022-03-29 15:02:04 +01:00
Lucas Bustamante 1d036a79e7
Update packages/js/api/README.md
Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>
2022-03-29 15:00:08 +01:00
Lucas Bustamante 922a72ef7e
PR Review 2022-03-29 14:58:42 +01:00
Chi-Hsuan Huang 6f03e42dd1 Add @babel/runtime to dev dependencies of js packages 2022-03-29 16:46:06 +08:00
Chi-Hsuan Huang 5c705bc52b Update eslint-plugin recommended rules 2022-03-29 16:08:07 +08:00
Chi-Hsuan Huang 81a1f4244a Add .eslintrc config to each packages
Update packages .eslintrc.js

Update components & admin-e2e-tests lint command
2022-03-29 16:08:07 +08:00
Chi-Hsuan Huang df5b506b97 Add lint command to js packages
Update lint js commands

Update customer-effort-score/package.json
2022-03-29 16:08:06 +08:00
Chi-Hsuan Huang d023349168 Add .eslintrc.js for js packages 2022-03-29 16:07:09 +08:00
Chi-Hsuan Huang d45606293c Fix js package lint errors 2022-03-29 16:07:08 +08:00
louwie17 2215c9ab3e
Merge pull request #32347 from woocommerce/add-dev-scripts
Add build-watch command for woocommerce-admin
2022-03-28 08:55:57 -03:00
louwie17 7796d908b9
Merge pull request #32365 from woocommerce/fix/32364_smoke_tests
Skip deletion of PLUGIN_NAME when used by environment variables
2022-03-28 08:55:15 -03:00
Chi-Hsuan Huang 7c15f83a3f
Merge pull request #32359 from woocommerce/fix/32358-js-lint-errors
Fix js packages lint errors
2022-03-28 10:52:02 +08:00
Lourens Schep 1c26554abb Also skip PLUGIN_NAME when used by environment variables 2022-03-25 12:35:36 -03:00
Chi-Hsuan Huang d5a9b5789c
Merge pull request #32337 from woocommerce/fix/currency-docs
Define `NumberConfig` data type, export type declarations from `@woo…/currency`
2022-03-25 18:24:37 +08:00
Chi-Hsuan Huang 76cf618298
Merge pull request #32325 from woocommerce/add/number-docs
Update `@woo…/number` code docs, define & export type declarations.
2022-03-25 18:24:22 +08:00
Chi-Hsuan Huang ab18914ada Fix e2e-utils lint errors
Fix e2e-utils/src/components.js
2022-03-25 16:55:40 +08:00
Chi-Hsuan Huang 11e2df64ca Fix e2e-environment lint errors 2022-03-25 16:24:13 +08:00
Chi-Hsuan Huang 167ca8d4b4 Fix @woocommerce/api lint errors 2022-03-25 16:23:12 +08:00
louwie17 80ec23c425
Merge pull request #32298 from woocommerce/feature/32163_new_task_list_header
Add task list progress header
2022-03-24 16:32:46 -03:00
Lourens Schep a3e9a60577 Remove duplicate property type 2022-03-24 15:26:15 -03:00
Lourens Schep c281ddb820 Add progress header bar to task list experiment 2022-03-24 15:25:06 -03:00
Lourens Schep 9a6c077b69 Add build-watch command for woocommerce-admin 2022-03-24 15:09:15 -03:00
Lourens Schep 4a76505fdf Add comment for woocommerce-reset plugin addition 2022-03-24 14:11:18 -03:00
Lourens Schep d032c5d603 Skip deletion of the wp mail logging plugin as it is required for testing 2022-03-24 14:08:03 -03:00
Lourens Schep cb6e15523b Add prepare command to project.json 2022-03-24 14:08:03 -03:00
Lourens Schep 20c0c85f9c Fix admin-e2e-test dependency and add new purchase task E2E test, also added the WooCommerce reset plugin 2022-03-24 14:08:03 -03:00
rodelgc 15fbc0be9a
Removed faker dependency (#32069)
* Removed faker dependency
2022-03-24 15:30:40 +08:00
louwie17 eb081aa9fa
Merge pull request #32320 from woocommerce/add/32161_reminder_bar
Add reminder bar for task list experiment
2022-03-23 17:12:05 -03:00
Tomek Wytrębowicz f7580b98a4 Define CurrencyConfig type, export declarations
Redo afa01e3342
2022-03-23 15:50:14 +01:00
Tomek Wytrębowicz fcf529b87c Remove unrelated Google Search link form README
Redo 1c4c8b4c15
2022-03-23 15:42:22 +01:00
RJ fc163b6dc9
Merge pull request #32313 from woocommerce/dev/publish-wca-packages
Bump WCA JS packages version numbers in package.json and changelogs
2022-03-23 11:18:04 +08:00
Tomek Wytrębowicz b03b1184ac Fix returned type of `numberFormat`.
`locutus/php/strings/number_format` seems to always return a `String`.

Redo baa0c5d2b4.
2022-03-22 20:56:07 +01:00
Tomek Wytrębowicz 0b959cfc70 Update `formatValue` docs, explain "based on type",
Fix the returned value's type.

Redo 5d7d53f01a.
2022-03-22 20:55:03 +01:00
Tomek Wytrębowicz 6013099e7f Define NumberConfig data type, export type declarations.
Redo 8cdc828b37.
2022-03-22 20:52:30 +01:00
Lourens Schep 25d6b6d528 Add reminder bar for task list experiment 2022-03-22 12:28:58 -03:00
rjchow 43f81cbf69 Bumped WCA JS package version numbers 2022-03-22 16:08:24 +08:00
Chi-Hsuan Huang 0530ee122c Fix explat assignment-test.js for node >= 16 2022-03-22 11:24:59 +08:00
Chi-Hsuan Huang 24595bd2cb Fix jest config paths 2022-03-21 18:28:05 +08:00
Christopher Allford 3dd60322d5 Migrated WooCommerce Admin PHP Code
This commit moves all of the PHP code from `plugins/woocommerce-admin`
to its new home in `plugins/woocommerce`.

- `plugins/woocommerce-admin/src` -> `plugins/woocommerce/src/Admin`
- `plugins/woocommerce-admin/src-internal` -> `plugins/woocommerce/src/Internal`
- `plugins/woocommerce-admin/includes` -> `plugins/woocommerce/includes/react-admin`
2022-03-18 15:23:33 -07:00
Christopher Allford 93e44b3628 Updated React Admin Build Output
This changes the output of the React-based
admin client from WooCommerce Admin to
an appropriate location in the core plugin.
2022-03-18 14:53:25 -07:00
Christopher Allford d2d8d78be1 Moved WCA Packages
This commit moves all of the packages in
`plugins/woocommerce-admin/packages` to their
new home in `packages/js`.
2022-03-18 14:25:26 -07:00
Jorge A. Torres ca7bedd249
Merge pull request #31987 from woocommerce/fix/internal-links-in-readmes
Fix internal links in README files
2022-03-15 15:38:46 -05:00
Nestor Soriano 904ec4343c
Fix misc links in READMEs and GitHub templates. 2022-03-15 16:01:12 +01:00
Lucas Bustamante 97c4688230 Typo and rewording 2022-03-01 18:43:02 -03:00
Lucas Bustamante 7b30436e21 Italic asterisk 2022-03-01 18:42:11 -03:00
Lucas Bustamante e443e8c362 Literal asterisks and typo 2022-03-01 18:41:25 -03:00
Lucas Bustamante ca58e7873f Update docs, see commit description
Remove word "isometric", the correct word is "isomorphic", but I've went for  "works both on Browser and Node" instead.

Added asterisks on "TypeScript definitions and Repositories" feature list

Added a section outlining the differences between this package and @woocommerce/woocommerce-rest-api
2022-03-01 18:34:32 -03:00
Lucas Bustamante 31fae36caa Update XPath syntax 2022-02-28 17:41:00 -03:00
Lucas Bustamante c90e11ea3d Refactor merchant logout 2022-02-28 17:09:19 -03:00
Alejandro López Ariza 5af5be5100
Added new tests to wp-admin-order-edit.test.js for covering merchant management actions over downloadable products. (#31650)
* Added new tests to wp-admin-order-edit.test.js for covering merchant management actions over downloadable products.

* Updated changelogs from e2e-utils and e2e-core packages.

* - Fixed minor issue from wp-admin-order-edit.test.js when running tests in browser mode.
- Changed those tests so that products and orders are deleted individually after every test run.
- Added deleteOrder() and deleteProduct() functions to withRestApi.

Co-authored-by: rodelgc <rodel.calasagsag@automattic.com>
2022-02-28 15:24:33 +08:00
Tung Du 3b637f1e93
Fix: `shopper.emptyCart()` issue. (#31977)
* fix: shopper.emptyCart

* ensure emptyCart work with cart containing multiple products
2022-02-25 16:14:42 +08:00
Ron Rennick 8ef39e2269
Merge pull request #31909 from woocommerce/fix/31907
Exclude the project root when ran in GitHub CI
2022-02-23 11:34:29 -04:00
jamelreid 9837274a66 Updated CHANGELOG.md 2022-02-22 13:06:51 -05:00
jamelreid 256d766518 Updated logic to resolveSingleE2EPath
All tests are expected to be found in the tests/e2e directory, so in the event that tests/e2e is a part of the single test path, it is removed to ensure the file path is correct.
2022-02-18 13:02:59 -05:00
Ron Rennick 4fa9cf1051 missed package bumps from #31836 2022-02-18 13:14:06 -04:00
Ron Rennick 34b5cae86f exclude test results from package publish 2022-02-18 13:06:29 -04:00
jamelreid a756af894c Clean up 2022-02-18 09:22:56 -05:00
Tam Mullen 74c72274a7 Add docker:wait to e2e env for waiting without running tests 2022-02-17 22:31:26 +00:00
Alex Florisca 491a04b52d Fix link click for shopper.searchForProduct 2022-02-17 15:43:28 +00:00
jamelreid c73c2be097 Exclude the project root when ran in GitHub CI 2022-02-16 23:31:04 -05:00
Ron Rennick 5b78782a95
Merge pull request #31665 from woocommerce/packages/api/json-transform-tests
Partially fix the Order Model for JSON transforms in the @woocommerce/api package
2022-02-14 11:30:57 -04:00
Lucas Bustamante 3eeb1f239f
Merge pull request #31868 from woocommerce/add/api-t-documentation
Added documentation around certain conventions in API tests.
2022-02-09 19:35:20 -03:00
Lucas Bustamante 4ad028eab4
Merge pull request #31839 from woocommerce/fix/31748
update slack export to build version
2022-02-09 19:31:47 -03:00
Rodel cf90bda319 Added documentation 2022-02-09 15:14:55 +08:00
Lucas Bustamante 03614e54ae Tweak comment 2022-02-07 18:16:37 -03:00
Jon Lane ad99dda910 Added CHANGELOG entry 2022-02-07 13:14:10 -08:00
Lucas Bustamante 0cf1b69c7a Rename/move test to more appropriate location 2022-02-07 18:13:02 -03:00
Lucas Bustamante 0bc908f8d2 CR: Spacing 2022-02-07 18:10:31 -03:00
Lucas Bustamante cd2ed17200 CR: Simplify code 2022-02-07 18:10:02 -03:00
Lucas Bustamante 299b7c0bdd Remove display_key/display_value from coupon_line on Order test 2022-02-07 18:08:26 -03:00
Lucas Bustamante ae5d23ce9f Rename property, code style changes, add developer comment 2022-02-07 18:05:06 -03:00
Lucas Bustamante 8b859ffb25 Merge branch 'trunk' into packages/api/json-transform-tests 2022-02-07 17:53:55 -03:00
Jon Lane 00536e4442 Update instructions for external sites 2022-02-07 11:56:14 -08:00
Jamel Noel Reid 87b69a8f26
Merge pull request #31732 from woocommerce/e2e/add-force-to-test-scaffold
Add --force to test scaffold
2022-02-04 14:08:23 -05:00
Ron Rennick 3bb27bdc79 update slack export to build version 2022-02-04 14:48:56 -04:00
Jonathan Lane 5d2b764da1
Merge pull request #31835 from woocommerce/e2e/bump-default-wp
bump e2e-environment to WP 5.9.X default
2022-02-04 10:44:25 -08:00
Jonathan Lane d3183be8a5
Merge pull request #31838 from woocommerce/fix/31456
use OS path separator in installFiles
2022-02-04 10:38:50 -08:00
Ron Rennick 5c12aaa877 use OS path separator in installFiles 2022-02-04 14:17:54 -04:00
Ron Rennick da49a03b52 bump e2e-environment to WP 5.9.X default 2022-02-04 12:36:45 -04:00
Lucas Bustamante 6ec677643f CR: Spacing 2022-02-04 12:21:57 -03:00
Lucas Bustamante 4c8c792869 CR: Spacing 2022-02-04 12:20:59 -03:00
Lucas Bustamante 345faa6ea5 Skip confirmation for test files as well with --force 2022-02-03 20:47:14 -03:00
Lucas Bustamante f9c90b87ef Space for consistency 2022-02-03 20:36:18 -03:00
Lucas Bustamante d63a697d20 Merge branch 'trunk' into e2e/add-force-to-test-scaffold 2022-02-03 20:35:34 -03:00
Lucas Bustamante 1688d66484
Avoid calling substr method on undefined
Co-authored-by: Jamel Noel Reid <MrJnrman@users.noreply.github.com>
2022-02-03 20:35:03 -03:00
Ron Rennick eac5fb5c67 Merge branch 'trunk' into e2e/prepare-release 2022-02-03 15:30:07 -04:00
Lucas Bustamante c1cf58437f Remove tweak to work with both snake_case and camelCase 2022-02-03 11:26:49 -03:00
Lucas Bustamante 23b1c10518 Merge branch 'trunk' into packages/api/json-transform-tests 2022-02-02 18:14:31 -03:00
Ron Rennick 8508884c62 Merge branch 'trunk' into fix/31576 2022-02-02 15:12:55 -04:00
Ron Rennick c607bbfeb8 pre-release changelog fixes 2022-02-01 15:37:31 -04:00
jamelreid 7d42347537 Updated test not found output 2022-02-01 13:27:25 -05:00
jamelreid c9862f7a44 Merge branch 'trunk' into try/remove-some-test-label 2022-02-01 13:24:58 -05:00
Ron Rennick 57ad5e388a add puppeteer dependency 2022-01-28 13:15:45 -04:00
Ron Rennick 933de44557 remove pnpm rule, fix utils build 2022-01-28 12:34:49 -04:00
jamelreid 7d7b9996f5 Updated CHANGELOG.md 2022-01-27 13:29:32 -05:00
jamelreid cef0dd877b Updated CHANGELOG.md 2022-01-27 12:39:50 -05:00
jamelreid 19fa73acfd Updated top level menu css selectors
This is done to ensure that page load tests work regardless of the order of the top level menu list.
2022-01-27 12:38:20 -05:00
jamelreid 68af14a26b Updated to handle removing directories 2022-01-27 10:11:13 -05:00
Lucas Bustamante 1703aeddc4 Code style 2022-01-26 13:36:39 -03:00
Lucas Bustamante e1ca45e07d Keep original if statement order 2022-01-26 13:35:03 -03:00
Lucas Bustamante 15291424e2 Add --force argument to scaffold test setup files without confirmation 2022-01-26 13:27:25 -03:00
Lucas Bustamante cac95a3433 Scaffold --force wip 2022-01-26 13:13:18 -03:00
jamelreid bba4a3a1a4 Updated file path 2022-01-25 15:13:18 -05:00
jamelreid ac782638d3 Merge branch 'trunk' into try/remove-some-test-label 2022-01-25 15:12:25 -05:00
Jamel Noel Reid 27eba955dd
Merge pull request #31726 from woocommerce/update/31615
update test-result.json handling to copy the file to the local folder
2022-01-25 15:09:43 -05:00
Ron Rennick 6327596767 update testresult.json handling to copy the file to the local folder 2022-01-25 13:48:20 -04:00
Ron Rennick 6687e5847e fix environment dependencies 2022-01-25 13:04:17 -04:00
jamelreid 48bfc2c3b2 Made summary output more dynamic 2022-01-25 11:41:28 -05:00
Ron Rennick 75fec513e1 fix merge conflicts 2022-01-24 13:39:38 -04:00
jamelreid b46e681597 Updated path to test-results.json 2022-01-24 10:22:29 -05:00
jamelreid 9cd3c6976d Used resolveLocalE2ePath for path to test results 2022-01-21 17:51:46 -05:00
Jonathan Lane dc381f4305
Merge pull request #31625 from woocommerce/e2e/test-results-full-path
Show full path to test-result.json file
2022-01-19 14:26:32 -08:00
Lucas Bustamante baa2d15c2d ts-jest ^27 is incompatible with chalk <3.0.0
This breaks the build in the monorepo due to some package using chalk <3.0.0, reverting back to jest/ts-jest ^25 seems like the lesser evil
2022-01-19 13:47:29 -03:00
Lucas Bustamante 58e2c6ecaa Merge branch 'trunk' into packages/api/json-transform-tests 2022-01-19 13:28:32 -03:00
Lucas Bustamante 5deef1b4b2 Add tests and partial fix of coupon_lines and refunds 2022-01-19 13:28:16 -03:00
Lucas Bustamante 5ea6f671d3 Add tests and partial fix of tax_lines 2022-01-19 13:16:45 -03:00
Lucas Bustamante f23587cde6 Add tests and partially fix line_items, fee_lines, shipping_lines 2022-01-19 13:11:59 -03:00
jamelreid 7eef1abb02 Added a 45 second timeout to the beforeAll hook 2022-01-18 17:52:11 -05:00
Lucas Bustamante 6489025273 Hydrate from snake_case or camelCase, depending on applied transformers 2022-01-18 19:36:38 -03:00
Lucas Bustamante 2120c08eb0 Tests WIP 2022-01-18 19:36:18 -03:00
Lucas Bustamante 46af82a842 Make OrderLineItem hydratable 2022-01-18 19:36:06 -03:00
Lucas Bustamante 3c8c6e7718 Rename properties according to WooCommerce API 2022-01-18 19:35:56 -03:00
Lucas Bustamante 6a6ceaa3f4 Add more keys to be converted 2022-01-18 19:35:38 -03:00
Ron Rennick 7c04c5893c e2e package changelog cleanup 2022-01-18 05:04:32 -04:00
Lucas Bustamante b75f8adbb5 Test that a JSON payload is transformed as expected (WIP) 2022-01-17 16:25:49 -03:00
Lucas Bustamante 770bd181ce Split Shipping and Billing Addresses as they have different properties 2022-01-17 16:25:23 -03:00
Lucas Bustamante c6ac637fa6 Bump ts-jest to same version of jest ^27 2022-01-17 09:37:45 -03:00
Ron Rennick 1c1fceb304 e2e-core-test package cleanup 2022-01-14 15:44:08 -04:00
Greg 3457917a3a
Merge pull request #31629 from woocommerce/fix/remove-duplicate-path-from-actions
Remove the need for duplicate `plugins/woocommerce` in path when running a single E2E test
2022-01-13 15:05:31 -07:00
Greg c9953da73c Merge branch 'trunk' of https://github.com/woocommerce/woocommerce into add/apt-publish-config 2022-01-13 12:16:39 -07:00
jamelreid c1d0f510af Updated CHANGELOG.md 2022-01-13 10:52:55 -05:00
jamelreid b89b67658a Updated method import 2022-01-13 10:52:44 -05:00
jamelreid 564ea31c5d Changed method name to resolveSingleE2EPath 2022-01-13 10:52:15 -05:00
jamelreid e1f030f832 Updated comments 2022-01-12 18:37:05 -05:00
jamelreid f08da97fe6 Updated CHANGELOG.md 2022-01-12 18:27:43 -05:00
jamelreid 60630d19a2 Updated comments 2022-01-12 18:27:35 -05:00
jamelreid cb3dee07ee Updated removePathDuplicates for smoke tests 2022-01-12 18:04:36 -05:00
jamelreid d49a68079e Imported and used removePathDuplicates method 2022-01-12 15:44:41 -05:00
jamelreid 059346a725 Added removePathDuplicates method
This method ensures that we can execute tests using a relative path with or without `plugins/woocommerce` and/or `tests/e2e` prepended on the test file path.
2022-01-12 14:00:00 -05:00
Lucas Bustamante 926fed6828 Store test-results.json file in the project under test folder 2022-01-12 14:09:38 -03:00
Lucas Bustamante 1a6708b57c Keep the test-results.json file in the root dir of e2e-environment 2022-01-12 13:50:10 -03:00
Lucas Bustamante 037c6205d0 Remove extra space 2022-01-12 13:46:42 -03:00
Lucas Bustamante e124d4125a Add changelog 2022-01-12 13:44:32 -03:00
Lucas Bustamante 2cbedb1dc8 Show full path to test-result.json file 2022-01-12 13:39:38 -03:00
Ron Rennick e5084c1ae9
Merge pull request #31559 from woocommerce/fix/31469
Allow multiple screenshots per test fix
2022-01-10 13:40:50 -04:00
Jonathan Lane be9189cff9
Merge pull request #31495 from woocommerce/add/e2e-more-variation-tests
Add/e2e more variation tests
2022-01-10 09:05:36 -08:00
jonathansadowski dabd2c6bf2
Merge pull request #31581 from woocommerce/fix/circular-reference
change extension on scaffolding sample scripts
2022-01-07 14:26:47 -06:00
Jonathan Lane 54c3621cc8
Merge branch 'trunk' into fix/31469 2022-01-07 09:22:16 -08:00
Lucas Bustamante e5adc1c3e7
Merge pull request #31574 from woocommerce/try/e2e-build
fix jest-circus dependency, pnpm e2e-environment build
2022-01-07 12:04:01 -03:00
Rodel fba4ddd94e Merge branch 'trunk' into add/e2e-more-variation-tests 2022-01-07 15:04:57 +08:00
Lucas Bustamante 9d85ba8f00 Merge branch 'trunk' into e2e/add-build-to-e2e-core-tests 2022-01-06 12:14:25 -03:00
Ron Rennick a1784c5beb change extension on scaffolding sample scripts 2022-01-06 11:02:05 -04:00
Rodel 7924b79929 Merge branch 'trunk' into add/e2e-more-variation-tests 2022-01-06 18:27:51 +08:00
Ron Rennick 2071da88ef fix jest-circus dependency, pnpm e2e-environment build 2022-01-05 22:04:50 -04:00
jonathansadowski d71a9d9ba9
Revert "Add config default values" 2022-01-05 14:44:31 -06:00