Gan Eng Chin
c17f336acc
Code refactor for Campaigns card.
2023-02-02 17:47:42 +08:00
Gan Eng Chin
0abe368962
Display error state in Campaigns card.
2023-02-02 17:17:29 +08:00
Gan Eng Chin
743c0e5085
Set per_page to 100 for getCampaigns.
...
100 is the maximum limit allowed by the API.
We do this because the API does not return total number of rows, so we use 100 to get "all" rows, to support pagination in the UI.
2023-02-02 01:03:15 +08:00
Gan Eng Chin
183fc48132
Show CardFooter and Pagination only when it is needed.
...
This means when total is more than perPage.
2023-02-01 20:29:32 +08:00
Gan Eng Chin
eda6f194b9
Use perPage constant instead of literal 5.
2023-02-01 20:27:07 +08:00
Gan Eng Chin
274ea3dd60
Use Link component in Campaigns.
...
This allows fast client-side navigation.
2023-02-01 20:23:14 +08:00
Gan Eng Chin
29154425cb
Check description before rendering FlexItem.
...
This is to eliminate the unneeded flex gap when there is no description.
2023-02-01 20:17:53 +08:00
Gan Eng Chin
c342cbb98d
Change to color variable in Campaigns CSS.
2023-02-01 20:09:17 +08:00
Gan Eng Chin
cd7b5f2c96
Fetch and display campaigns with wp.data.
2023-02-01 19:02:03 +08:00
Gan Eng Chin
46adb0dc25
Rename Channels to RegisteredChannels.
2023-02-01 02:58:49 +08:00
Gan Eng Chin
630bd0ab17
Merge branch 'feature/34906-marketing-channels-card' into feature/34905-marketing-campaigns-card
2023-02-01 00:52:48 +08:00
Gan Eng Chin
f050bb79b5
Rename Channel to RegisteredChannel.
...
This is for better clarity and consistency.
2023-02-01 00:52:35 +08:00
Gan Eng Chin
177fc59dea
Simplify rendering code in MarketingOverviewMultichannel.
2023-02-01 00:29:38 +08:00
Gan Eng Chin
3384ad576d
Remove unused import.
2023-02-01 00:20:04 +08:00
Gan Eng Chin
d69f7f00b7
Fix ids typescript error in Campaigns.
2023-02-01 00:18:53 +08:00
Gan Eng Chin
76102143ff
Merge branch 'feature/34906-marketing-channels-card' into feature/34905-marketing-campaigns-card
...
Conflicts:
plugins/woocommerce-admin/client/marketing/overview-multichannel/MarketingOverviewMultichannel.tsx
2023-01-31 23:50:03 +08:00
Gan Eng Chin
d59e7e5721
Edit and arrange imports in MarketingOverviewMultichannel.
2023-01-31 23:39:02 +08:00
louwie17
5f0572664f
Add new `@woocommerce/product-editor` JS package ( #36600 )
...
* Bootstrap product-editor package
* Move product section components over to product editor package
* Add changelogs
* Remove unused import leftover from rebase
2023-01-31 09:38:28 -04:00
Joel Thiessen
c080886262
Implementation of separate variant slots via refactored components ( #36646 )
...
* Adding contants, renaming files, wiring up shipping section with discrete slots for variants and non-variants
* Refactoring pricing section to give discrete slots for variant and non-variant forms
* Refactoring inventory fills to give discrete slots for variant and non-variant products
* Adding additional slot to pricing -> taxes -> advanced
* Renaming api fields component file
* Refactoring images, details and attributes to match others
* Ensure variant field IDs are distinct, organize all product field fill IDs
* Adding changelog
* Simplifying IDs used for slots
* Minor refactor of pricing taxes class field
* Give api fill exports their own registerPlugin scope
* Refactoring WooProductFieldItem to generate unique IDs
* Adding components changelog
2023-01-31 07:19:21 -04:00
Gan Eng Chin
449da4e91c
Merge branch 'trunk' into feature/34906-marketing-channels-card
2023-01-29 01:29:31 +08:00
Gan Eng Chin
e700232415
Simplify Channels component.
2023-01-29 01:28:14 +08:00
Joel Thiessen
9be843422d
Fixing issue preventing import productes CES exit page from firing ( #36656 )
2023-01-27 12:14:59 -08:00
Joshua T Flowers
c12ae8033d
Tweak product link description and display ( #36591 )
...
* Tweak product link description and display
* Add changelog entry
* Fix up edit product link modal tests
* Update changelog entry
2023-01-27 10:59:39 -08:00
Gan Eng Chin
15200103cc
Simplify Channels CSS.
2023-01-28 01:16:31 +08:00
Gan Eng Chin
0eb318c1f5
Simplify and remove RecommendedChannels and RecommendedChannelsList components.
2023-01-28 01:12:36 +08:00
Joel Thiessen
79c596cbd0
Updating section and field product fills to support multiple slots ( #36592 )
2023-01-27 08:42:51 -08:00
Gan Eng Chin
14511ae4d6
Code refactor with SyncStatus and IssueStatus components.
2023-01-28 00:14:50 +08:00
Nathan Silveira
d5e2ae0474
Move clearQueue call to inside an useEffect ( #36626 )
...
* Move clearQueue call to inside an useEffect
That call was causing a React error (Cannot update a component while rendering a different component)
* Move queueForPage declaration to before it's use
2023-01-27 12:33:48 -03:00
Gan Eng Chin
49032b98db
Make data undefined on first load in useRecommendedChannels.
2023-01-27 21:38:38 +08:00
Gan Eng Chin
316aad8b2e
Simplify RegisteredChannelCardBody CSS.
2023-01-27 21:15:40 +08:00
Gan Eng Chin
0061e34a00
Code refactor on marketing components ( #36540 )
2023-01-27 16:00:35 +08:00
Gan Eng Chin
c2aad26473
Simplify CardHeaderTitle CSS.
...
- Use `@include font-size ( 20 )` to generate relative size in rem.
- Use unitless number value for line-height; this is the preferred way according to MDN.
- `font-weight` and `letter-spacing` are not needed.
The UI looks the same before and after this change.
2023-01-27 01:26:37 +08:00
Joshua T Flowers
dfe2780e6a
Add default value for backorders ( #36607 )
...
* Add default value for backorders
* Add changelog entry
2023-01-26 09:20:10 -08:00
louwie17
bcdf2518e6
Refactor product tabs and add product tab slot fills ( #36551 )
2023-01-24 15:37:21 -08:00
Joel Thiessen
4341a53144
Migrating pricing section in product editor to slot fills ( #36500 )
...
* Adding changelogs
* Migrating pricing section in product editor to slot fills
* Adding slot and plugarea to variation form
* Removing obsolete pricing section files
2023-01-24 04:24:45 -04:00
Fernando Marichal
c030b7dcd5
Add survey when disabling new experience ( #36544 )
...
* Add customer-score-tracks data
* Add callback after disabling new exp
* Add TransientNotice after filling out the survey
# Conflicts:
# plugins/woocommerce/src/Admin/Features/NewProductManagementExperience.php
* Remove comments
* Remove NEW_PRODUCT_MANAGEMENT_FEEDBACK
* Add changelog
* Rename const
* Remove queryParam after showing notice
* Fix lint
* Fix lint 2.0
* Remove empty line
* Refactor `maybe_show_disabled_notice`
* Fix lint 3.0
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-01-23 22:43:17 -03:00
Joshua T Flowers
372208be41
Always show comments for product feedback form ( #36484 )
...
* Always show comments for product feedback form
* Add changelog entry
* Add CES changelog entry
* Fix up lint errors
* Add default for shouldShowComments in CustomerFeedbackModal
2023-01-23 17:36:48 -08:00
Fernando Marichal
db2343cfed
Enable new experience when new user selects "Physical product" ( #36406 )
...
* Enable new experience for simple products
* Add changelog
* Fix `updateOptions`
* Fix redirect when new-exp is enabled
* Redirect when new-exp is enabled
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-01-23 20:18:43 -03:00
Joshua T Flowers
4a2180f442
Show product CES footer on product tour close ( #36516 )
...
* Show product CES footer on product tour close
* Add changelog entry
* Remove unused code
2023-01-23 11:55:35 -08:00
Nathan Silveira
732fd7dba7
Fix typo in product tour in new product management experience ( #36561 )
2023-01-23 16:23:03 -03:00
Joshua T Flowers
7e27cffdb3
Fix overlapping header elements on product page ( #36495 )
...
* Place product tabs beneath header elements
* Observe header height changes and adjust tabs position
* Move header height into reusable hook
* Add changelog entry
2023-01-23 10:14:58 -08:00
Joel Thiessen
447379a424
Migrating product editor inventory section to use slot fills ( #36509 )
...
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2023-01-23 08:11:41 -08:00
Joel Thiessen
cb0105efd9
Migrate shipping shipping in product editor to slot fill ( #36534 )
...
* Migrate shipping shipping in product editor to slot fill
* Adding changelog
* Removing obsolete shipping section files, adding support to variations form
2023-01-23 10:44:29 -04:00
Adrian Duffell
b87df2fd4a
Add SlotFill for Task List Footer ( #36527 )
...
* Add footer slot
* Add ExperimentalWooTaskListFooter slot to task list
* Update inline documentation
* Add changelog
2023-01-23 13:48:42 +08:00
Gan Eng Chin
d70fb07f31
Modify PluginCardBody to accept className, and change description type.
2023-01-21 23:13:13 +08:00
Gan Eng Chin
6baa403071
Move and rename type Plugin to RecommendedPlugin.
2023-01-21 23:12:04 +08:00
Gan Eng Chin
d252922110
Rename file Plugin to InstalledPlugin.
...
(cherry picked from commit 0229354da0
)
2023-01-21 23:11:47 +08:00
Gan Eng Chin
8873252c45
Rename type Plugin to InstalledPlugin.
...
(cherry picked from commit 56dbf53a35
)
2023-01-21 23:11:36 +08:00
Gan Eng Chin
0fe028d8c2
Code refactor with CardHeaderTitle component.
...
This component will be used in other components later.
(cherry picked from commit 995fb7e02d
)
2023-01-21 23:10:31 +08:00
Gan Eng Chin
3f56382cf1
Code refactor with CenteredSpinner.
...
(cherry picked from commit 5216643465
)
2023-01-21 23:09:06 +08:00
Ilyas Foo
30a4bdefd8
Add Tasklist extensibility and WooOnboardingTaskListHeader SlotFill ( #36519 )
...
* Add experimental onboarding_tasklist PHP filter
* Add WooOnboardingTaskListHeader and woocommerce_onboarding_task_list_header Slot to task list
* Changelog
* Fix header task logic
* Remove React FC types
* Update changelog
* Fix comment
2023-01-21 15:19:20 +08:00
RJ
39cd780e18
add: slot for tasklist completion component slotfill ( #36487 )
...
* add: slot for tasklist completion component slotfill
* added fillprops and changed to experimental slotfill name
2023-01-21 11:05:45 +08:00
Gan Eng Chin
1af1524b83
Rename CSS installed-channel to registered-channel.
2023-01-21 02:38:00 +08:00
Gan Eng Chin
ef669d8ca2
Rename InstalledChannel to RegisteredChannel.
2023-01-21 02:36:39 +08:00
Gan Eng Chin
8754003fb0
Add mapping for sync-failed product listings status.
2023-01-21 02:26:19 +08:00
Gan Eng Chin
2a15f09514
Remove TODO comments.
2023-01-21 02:22:30 +08:00
Gan Eng Chin
3cc568b4ed
Remove duplicated RecommendedChannel type.
2023-01-21 02:20:06 +08:00
Gan Eng Chin
0b1ab21836
Rename types.
2023-01-21 02:14:36 +08:00
Joel Thiessen
67d811a67d
Migrating attributes section in product editor to slot fills ( #36483 )
2023-01-20 08:56:56 -08:00
Gan Eng Chin
a511054a3e
Merge branch 'feature/34903-multichannel-marketing-frontend/main' into feature/34903-multichannel-marketing-frontend/34906-channels-card
2023-01-21 00:10:00 +08:00
RJ
7d8f7ad57c
add: slot for header banner slotfill ( #36467 )
2023-01-20 22:01:20 +08:00
Nathan Silveira
1123f9991f
Scroll newly added attribute into view ( #36447 )
...
* Scroll newly added attribute into view
* Increment changelog
* Add smooth scrolling when adding new attributes
2023-01-19 19:43:36 -03:00
Moon
395f3b3eb5
Add slot for ProgressHeader and ProgressTitle ( #36482 )
...
* Add slot for ProgressTitle
* Add slot for ProgressHeader
* Add changelog
* Add experimental prefix
2023-01-19 13:21:54 -08:00
Joel Thiessen
687dd6fdfe
Migrating product editor images section to slot-fill ( #36461 )
2023-01-19 09:45:30 -08:00
Gan Eng Chin
d69f078fd5
Replace useIsPluginInstalled with useIsPluginInstalledNotActivated.
2023-01-20 01:36:39 +08:00
Gan Eng Chin
cd0402a10c
Refetch registered channels after install and activate recommended channels.
2023-01-20 01:02:41 +08:00
Gan Eng Chin
9fa6ea4a25
Display activate button for channels that are not yet activated.
2023-01-20 00:36:34 +08:00
Gan Eng Chin
223ea4d712
Filter recommended channels to get "not installed" or "not activated" channels.
2023-01-19 22:23:00 +08:00
Gan Eng Chin
cf4c62e707
Fix loading bug in useRecommendedChannels.
2023-01-19 19:50:56 +08:00
Gan Eng Chin
b708cc18ff
Get recommended channels from API.
2023-01-19 19:33:51 +08:00
Joel Thiessen
2fae3537a7
Experimental SlotContext for managing slot fill interactions ( #36333 )
...
* Adding Slotcontext component and adding support to product slot fill components
* Passing inject props correctly to non-function components.
2023-01-19 05:52:45 -04:00
louwie17
fc1745b03b
Add/36075 render fields sections from php config ( #36414 )
...
* Add initial component to auto load fills from API config
* Add changelog
* Update logic to make use of new store and re-usable components
* Add changelog
* Add loading state for product form data to add/edit product pages
2023-01-19 04:52:02 -04:00
Chi-Hsuan Huang
025c6aab17
Fix tax task showing as not completed after setting up tax ( #36468 )
...
* Wait for requests to finish before redirecting
* Add changelog
2023-01-19 13:01:31 +08:00
Joshua T Flowers
1337a6d36e
Add product tour to new product management experience ( #36428 )
...
* Add product tour container and modal
* Fix modal open class name
* Add product tour
* Add changelog entry
* Move product tour state logic into hook
* Fix tour selectors for pricing and actions
* Add tests around product tour container
* Add tests around useProductTour hook
* Make tour responsive
* Use tabs instead of spaces
* Fix more scss lint errors
* Remove extra whitespace
2023-01-18 11:11:02 -08:00
Gan Eng Chin
2d7c8db2e5
Map product_listings_status to syncStatus.
2023-01-19 01:32:38 +08:00
Gan Eng Chin
0a36d7a4fe
Map errors_count to issueType and issueText.
2023-01-19 01:12:50 +08:00
Gan Eng Chin
07b8b98702
Merge branch 'feature/34903-multichannel-marketing-frontend/main' into feature/34903-multichannel-marketing-frontend/34906-channels-card
2023-01-18 17:35:50 +08:00
Gan Eng Chin
f616d688d8
Call marketing channels API with wp.data.
2023-01-18 02:04:42 +08:00
Joel Thiessen
d9daad3e9c
Converting product details section to utilize slot fills ( #36368 )
...
* Working prototype of product details via slotfill
* Raising default order for product slot-fills
* Move logic to details field name component
* Adding order prop to all fills.
* Adding components changelog
* Adding changelog
* Deleting obsolete product details section files
* Reducing spacing between slot filled fields
2023-01-17 05:04:58 -04:00
Joshua T Flowers
ea64a98f54
Extract attribute filtering and fetching logic out of attribute components ( #36354 )
...
* Move attribution fetching to separate hook
* Add changelog entry
* Set all attributes on update of subset of attributes
* Move filtering logic to hook
* Remove tests that filter attribute by type inside the component
* Rename AttributeField to AttributeControl and props from attributes to value
2023-01-17 04:34:08 -04:00
Matt Sherman
69e7fd1b42
Analytics: Decode HTML entities in CategoryBreadcrumbs ( #36321 )
...
* Decode HTML entities in CategoryBreadcrumbs
* Changelog
2023-01-13 11:14:40 -05:00
Fernando Marichal
78002eac9c
Hide `Variations` section when it is empty ( #36202 )
...
* Add changelog
* Hide Variations section when it is empty
* Fix hiding variations
* Remove `totalCount const
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-01-12 16:32:40 -03:00
Joshua T Flowers
891ecb7efb
Redirect to new product experience when in experiment group ( #36381 )
...
* Redirect to new product experience when in experiment group
* Add changelog entry
2023-01-12 16:02:40 -03:00
Joshua T Flowers
ad59769f25
Remove persisted query on return to parent product from variation ( #36365 )
...
* Remove persisted query on return to parent product from variation
* Add changelog entry
2023-01-12 09:20:46 -08:00
Matt Sherman
54c0acf8cd
Decode HTML entities in CategoryFieldItem ( #36367 )
...
* Decode HTML entities in CategoryFieldItem.
* Changelog
2023-01-12 10:21:43 -05: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
Joel Thiessen
f429b9444c
Adding WooProductFieldItem slotfill ( #36315 )
2023-01-10 10:13:02 -08:00
Gan Eng Chin
b326ba1204
Merge branch 'feature/34903-multichannel-marketing-frontend/main' into feature/34903-multichannel-marketing-frontend/34906-channels-card
2023-01-09 23:38:03 +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
230e79fbdf
Fix reordering items logic in attributes/options lists ( #36296 )
...
* Fix reordering list items bug
* Add tests
* Remove orphan comment
* Add changelog
* Rename const
* Update plugins/woocommerce-admin/client/products/fields/attribute-field/utils.ts
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
* Rename `objectKey` to `attributeKey`
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2023-01-06 08:53:03 -03: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
Joshua T Flowers
04089f37e6
Add product variation flag to hide WIP ( #36311 )
...
* Add product variations feature flag
* Add changelog entry
2023-01-05 18:30:23 -08:00
Joshua T Flowers
e73fb9f23f
Derive product type from product attributes ( #36243 )
...
* Derive product type from product attributes
* Add tests around derive product type
* Add changelog entry
2023-01-03 16:25:21 -08:00
Joshua T Flowers
421fc3e30b
Convert HTML to blocks in product variation description ( #36241 )
...
* Convert HTML to blocks in product variation description
* Add changelog entry
2023-01-03 16:25:12 -08:00
Joshua T Flowers
df0ddb2dff
Fix navigation between variations and tab selection ( #36239 )
...
* Fix navigation between variations and tab selection
* Add changelog entry
2023-01-03 08:59:49 -08:00
Fernando Marichal
af9f493c43
Fix attributes/options lists corrupt render ( #36236 )
...
* Fix attributes/options lists reordering
* Add changelog
* Fix element key
* Remove comment
* Add tests
* Fix changelog
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-01-03 10:33:29 -03:00
Joshua T Flowers
3fe3710c51
Automatically generate product variations on option changes ( #36188 )
...
* Auto generate variations on option changes
* Add changelog entry
* Move product variation generation to hook
* Create product auto draft if not yet created
* Allow auto-draft and trash statuses for products
* Update form context with product ID to allow fetching variations
* Fix product ID usage in variations
* Reset form after initial product creation
* Use form value name for display instead of persisted name for auto drafts
* Add additional test around auto draft title
2022-12-30 13:12:09 -08:00
Chi-Hsuan Huang
8c3f06c452
Fix "Save changes?" modal saves the options after selecting the 'Discard' option ( #36160 )
...
* Tweak save change modal padding
* Fix obw save change and add e2e tests
* Add changelog
* Fix product_types step
2022-12-28 16:23:16 +08: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