Commit Graph

5659 Commits

Author SHA1 Message Date
Jacob Sewell 2b1dd08040 Fix/7174 dismiss button alignment (https://github.com/woocommerce/woocommerce-admin/pull/8168)
* Combine all the .woocommerce-task-dashboard__container .woocommerce-task-card rules in one block.

* Move the .woocommerce-task-card__section-controls text-align center rule up in specificity so it overrides the rule in experimental-list.
Do we need the experimental-list package still?

* Changelog for 7174/8168.

* Expand button to container width and center text rather than centering the entire button in the ellipsis menu.

* Move ellipsis menu button style to _global so it applies, um, globally.

* Update changelog description for 7174/8186.

* Move ellipsis-menu popover button style to package from _global.

* Add components package changelog for Dismiss button in Unreleased section.
2022-01-22 11:48:01 -06:00
Jacob Sewell 1e8cdb3543 Reduce padding around plugin list titles for marketing tools page. (https://github.com/woocommerce/woocommerce-admin/pull/8171)
* Reduce padding around plugin list titles for marketing tools page.

* Changelog for 8164/8171.

* Update plugin list title padding

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

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-01-20 20:50:21 -06:00
dependabot[bot] f217131dd0 Bump trim-off-newlines from 1.0.1 to 1.0.3 (https://github.com/woocommerce/woocommerce-admin/pull/8195)
Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/stevemao/trim-off-newlines/releases)
- [Commits](https://github.com/stevemao/trim-off-newlines/compare/v1.0.1...v1.0.3)

---
updated-dependencies:
- dependency-name: trim-off-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-20 16:41:17 +08:00
RJ 49bf6a5c81 Updated frontend email validation to use @wordpress/url (https://github.com/woocommerce/woocommerce-admin/pull/8197)
* Updated frontend email validation to use @wordpress/url

- added testing for StoreDetails
- changed basic email validation to use @wordpress/url isEmail
2022-01-20 16:40:20 +08:00
renovate[bot] 8af4fe6311 Update dependency follow-redirects to 1.14.7 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8194)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 16:33:34 +08:00
Chi-Hsuan Huang ff1e31cfd4 Enhance report chart i18n support (https://github.com/woocommerce/woocommerce-admin/pull/8129)
* Support i18n texts for report chart

* Add changelogs

* Add d3-time-format to date pkg devDependencies

* Fix date php format and add tests

* Add date changelog

* Fix date test

* Escape week of string for php formatter
2022-01-20 08:20:18 +08:00
Chi-Hsuan Huang 19e7345f01 Fix undefined derived_currency value for the track 'wcadmin_storeprofiler_store_details_continue' (https://github.com/woocommerce/woocommerce-admin/pull/8193)
* Fix undefined store_country value for the track wcadmin_storeprofiler_store_details_continue

* Add changelog
2022-01-20 08:19:20 +08:00
Fernando b74600593e Change the reviews empty state panels logic (https://github.com/woocommerce/woocommerce-admin/pull/8147)
* Add unapproved reviews check

* Add tests

* Add changelog

* Create a review e2e test

* Fix lint

* Rename some constants (https://github.com/woocommerce/woocommerce-admin/pull/8178)

* Renamed `countUnapprovedReviews`

* Renamed `lowStockProductsCount`

* Renamed `unreadOrdersCount`

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-01-19 13:45:17 -03:00
Joshua T Flowers ecd8c34c42 Hide store address fields in regions that specify hidden (https://github.com/woocommerce/woocommerce-admin/pull/8172)
* Hide store address fields in regions that specify hidden

* Add changelog entry
2022-01-19 09:07:43 -05:00
Chi-Hsuan Huang 9cfd69d778 Fix incorrect date options when the "Default Date Range" is set from Analytics settings (https://github.com/woocommerce/woocommerce-admin/pull/8189)
* Add defaultDateRange argument to getAllowedIntervalsForQuery function for default period value

* Fix incorrect date options when the "Default Date Range" is set

* Add changelog
2022-01-19 10:15:33 +08:00
Joshua T Flowers 067c9f763e Fix task ID class check and add tests around tracking (https://github.com/woocommerce/woocommerce-admin/pull/8185)
* Fix task ID class check and add tests around tracking

* Add changelog entry

* Add doc comment for return value of recorded tracks event
2022-01-18 15:29:14 -05:00
Joel Thiessen 96c7eb4e26 Adding tooltip to describe the lack of refund deductions from revenue summaries (https://github.com/woocommerce/woocommerce-admin/pull/8187) 2022-01-18 12:07:32 -08:00
Fernando 3c424992a4 Refactor selling options - OBW - Business Details (https://github.com/woocommerce/woocommerce-admin/pull/8081)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-01-18 10:46:10 -03:00
Chi-Hsuan Huang 2ce17ed7c0 Fix incorrect total count of downloads on the analytics download report (https://github.com/woocommerce/woocommerce-admin/pull/8182)
* Fix incorrect total count of downloads on download analytics report

* Add changelog
2022-01-18 19:04:20 +08:00
Chi-Hsuan Huang 18a4a467f8 Fix get_automated_tax_supported_countries doesn't include UK (https://github.com/woocommerce/woocommerce-admin/pull/8180)
* Add GB to automated tax supported countries list

* Add changelog
2022-01-18 18:31:46 +08:00
Chi-Hsuan Huang 3b8c6662e8 Fix incorrectly displayed note created date (https://github.com/woocommerce/woocommerce-admin/pull/8179)
* Fix incorrectly displayed note created date

* Add changelog

* Add package changelog
2022-01-18 18:24:15 +08:00
Chi-Hsuan Huang 08acc3e2f7 Fix incorrect reader text generated for data points on charts table (https://github.com/woocommerce/woocommerce-admin/pull/8181)
* Fix incorrect screen reader text generated for data points on charts table

* Add changelog
2022-01-18 18:10:23 +08:00
Chi-Hsuan Huang ae0ea6df2c Fix php unit test "test_deleted_coupons" for wc >= 6.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/8162)
* Fix bin/install-wp-tests.sh for wc >= 6.0.0

* Fix php unit test "test_deleted_coupons" for wc >= 6.1.0

* Update WC_Tests_Reports_Coupons test_populate_and_query test

Fix test
2022-01-18 13:31:21 +08:00
Chi-Hsuan Huang 161a9d6feb Fix shipping rate error message overlaps with the 'Proceed' button (https://github.com/woocommerce/woocommerce-admin/pull/8165)
* Fix shipping rate error message overlaps with the 'Proceed' button

* Add changelog
2022-01-17 14:39:02 +08:00
Chi-Hsuan Huang 409f077a83 Fix setup wizard free features checkbox re-check itself (https://github.com/woocommerce/woocommerce-admin/pull/8169)
* Fix setup wizard free features checkbox re-check itself

* Add changelog
2022-01-17 10:03:32 +08:00
Joshua T Flowers 666f740659 Add localized validation to store address (https://github.com/woocommerce/woocommerce-admin/pull/8123)
* Use locale labels for store info

* Get address validation errors based on locale

* Fix validation rules based on locale

* Fix up store address in location task step

* Add changelog entry
2022-01-14 08:39:25 -05:00
Ilyas Foo 352c533ed8 Update changelog and testing instructions with 3.1.0-rc.1 release (https://github.com/woocommerce/woocommerce-admin/pull/8166)
* Update changelogs

* Update testing instructions

* Fix testing instructions

* Fix instructions
2022-01-14 09:53:21 +08:00
Joshua T Flowers 3c20d0f007 Add countries data store (https://github.com/woocommerce/woocommerce-admin/pull/8119)
* Add countries data store

* Add countries state type to reducer

* Add changelog entry
2022-01-13 14:43:56 -05:00
Chi-Hsuan Huang f00e904d13 Fix category report query returns invalid net sales (https://github.com/woocommerce/woocommerce-admin/pull/8153)
* Fix category report query returns invalid net sales

fixes woocommerce/woocommerce-admin#7710
2022-01-13 11:12:16 +08:00
Chi-Hsuan Huang cedb47d2b0 Make activity panel badges margin consistent (https://github.com/woocommerce/woocommerce-admin/pull/8152)
* Make activity panel badges margin consistent

* Add changelog
2022-01-13 09:50:59 +08:00
Joel Thiessen 512a4fac7a Fix marketing task not displaying on Atomic sites. (https://github.com/woocommerce/woocommerce-admin/pull/8150)
* Should accept a boolean value for is_visible property with an extension, and only evaluate a set of rules

* Adding changelog

* Moving fix to RuleEvaluator so it applies to other rulesets
2022-01-13 09:39:22 +08:00
Moon fec3ab8c5e Fix incorrectly selected column type in two-cols experiment (https://github.com/woocommerce/woocommerce-admin/pull/8137)
* Remove updating to two_cols

* Put woocommerce_task_list_prompt_shown update logic back
2022-01-13 09:38:38 +08:00
Jacob Sewell bba520b886 OBW: Move newsletter signup checkbox inside the same Card as the rest of the Store Details form inputs. (https://github.com/woocommerce/woocommerce-admin/pull/8148)
* OBW: Move newsletter signup checkbox inside the same Card as the rest of the Store Details form inputs.

* Add changelog entry for 8033/8148.

* Fix changelog format for 8033/8148.
2022-01-12 16:56:19 -06:00
Joshua T Flowers 583590ecf9 Add Magento migration note (https://github.com/woocommerce/woocommerce-admin/pull/8145)
* Add Magento migration note

* Add changelog entry
2022-01-12 15:41:12 -05:00
Joshua T Flowers 287b00d11b Add REST endpoint to retrieve address locales (https://github.com/woocommerce/woocommerce-admin/pull/8116)
* Add REST endpoint to retrieve address locales

* Add changelog entry
2022-01-12 15:40:52 -05:00
Moon 29d4e96114 Make sure WP_ENVIRONMENT_TYPE is defined before checking the value (https://github.com/woocommerce/woocommerce-admin/pull/8133) 2022-01-12 14:48:20 +08:00
Ilyas Foo a0ffceec06 Move WC Pay welcome page from wc-calypso-bridge (https://github.com/woocommerce/woocommerce-admin/pull/8151)
* Move WC Pay welcome page from wc-calypso-bridge (https://github.com/woocommerce/woocommerce-admin/pull/8083)

* Add wc-pay-welcome-screen flags

* Add wc pay welcome page from wc calpyso bridge

* Add changelog

* Rename var to pageViewTimestamp to prevent confusion

* Remove unused code

* Make sure hasViewedWelcomePage is a boolean value

* Simplify storeViewWelcome

* Add payments remind me later note (https://github.com/woocommerce/woocommerce-admin/pull/8085)

* Add payments remind me later note

Fix wcpay path

* Add changelogs

* Update src/Notes/PaymentsRemindMeLater.php

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

* Fix possibly_add_note syntax error

Update Events.php

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

* Replace flag icon with component and svg background to png (https://github.com/woocommerce/woocommerce-admin/pull/8101)

* Activate promo note after WC Pay is activated (https://github.com/woocommerce/woocommerce-admin/pull/8104)

* Activate promo after wcpay is a\ctivated

* Add changelogs

* Add experimental to promo API path and limit the promo names

* Use ExPlat to render the WC Pay menu conditionally (https://github.com/woocommerce/woocommerce-admin/pull/8115)

* Check ExPlat to render the menu conditionally

* Update the experiment name

* Fix letter case to follow feature class naming convention

* Enable wc-pay-welcome-page feature in core config (https://github.com/woocommerce/woocommerce-admin/pull/8124)

* Use wc_calypso_bridge_payments_dismissed option name to respect the previously saved setting from wp.com

* Missed wc_calypso_bridge_payments_dismissed rename

* Use the existing code to prevent duplication

* Fix warning (https://github.com/woocommerce/woocommerce-admin/pull/8141)

* Change experiment to come after checks (https://github.com/woocommerce/woocommerce-admin/pull/8142)

* Change track path to (https://github.com/woocommerce/woocommerce-admin/pull/8143)

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Replace deprecated wc-admin-settings package

Co-authored-by: Moon <moon.kyong@automattic.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-01-12 14:46:33 +08:00
Joel Thiessen 8ab602de9d Adding allowed plugins to composer configuration (https://github.com/woocommerce/woocommerce-admin/pull/8139) 2022-01-11 12:14:28 -08:00
Moon 7348c302ec Fix duplicated back button with two-cols experiment (https://github.com/woocommerce/woocommerce-admin/pull/8138)
* Do not render individual task in the extended component when it is rendered with two column task component
* Change var name to shouldRenderTask
2022-01-11 08:21:50 -08:00
Jeff Stieler 030cea98c8 Improve Customers Sync Performance (https://github.com/woocommerce/woocommerce-admin/pull/8021)
* Avoid unnecessary customer ID retrieval.

* Ignore order count when validating customers.

WC_Customer::get_order_count causes a full table scan without cache.

* Don't get customer names from their last order.

WC_Customer::get_last_order has to scan all _customer_user meta rows.

* Add changelog entry.

* Fix changelog.

* Cache customer ID in Order override classes.

* Check all user roles.
2022-01-10 19:22:09 -05:00
Joshua T Flowers 2dde3f5fa4 Add custom error for store details email and allow continue (https://github.com/woocommerce/woocommerce-admin/pull/8110)
* Add custom error for store details email and allow continue

* Add changelog entry
2022-01-10 14:18:19 -05:00
louwie17 48c2742099 Update changelog with 3.0.3 changes (https://github.com/woocommerce/woocommerce-admin/pull/8130) 2022-01-10 08:22:19 -04:00
Chi-Hsuan Huang 016c8887c9 Fix storybook cannot resolve @woocommerce/settings error (https://github.com/woocommerce/woocommerce-admin/pull/8128) 2022-01-07 13:05:22 +08:00
Chi-Hsuan Huang b9d788c457 Fix variations table product filter (https://github.com/woocommerce/woocommerce-admin/pull/8120)
* Fix variations table product filter query

* Add changelogs
2022-01-07 12:25:44 +08:00
Chi-Hsuan Huang f47a5c7898 Fix misaligned status column on orders report (https://github.com/woocommerce/woocommerce-admin/pull/8121)
* Fix misaligned status column on order report

Add labelPositionToLeft prop to order-status component

Set labelPositionToLeft=true for <OrderStatus> on orders report table

Remove style import

* Add changelogs

Add changelogs
2022-01-07 11:37:47 +08:00
louwie17 0e3286772e Check if WC Pay is supported before adding gateway (https://github.com/woocommerce/woocommerce-admin/pull/8122)
* Check if WC Pay is supported before adding gateway

* Add changelog
2022-01-06 18:15:08 -04:00
Joel Thiessen 9f107352ad Adding changelogs from 3.0.2 release (https://github.com/woocommerce/woocommerce-admin/pull/8118) 2022-01-06 09:34:11 -08:00
louwie17 26a9089f58 Make use of the woocommerce_allow_marketplace_suggestions filter (https://github.com/woocommerce/woocommerce-admin/pull/8117)
* Make use of the woocommerce_allow_marketplace_suggestions filter in WooCommerce Payment promotion

* Add changelog
2022-01-06 09:00:38 -04:00
louwie17 3998f88597 Remove unpublished wc-admin-settings package and update getSetting usage (https://github.com/woocommerce/woocommerce-admin/pull/8057)
* Remove use of wc-admin-settings from packages

* Move getSetting to getAdminSetting and remove wc-admin-settings package

* Add changelog

* Update package.json and remove last use of wc-admin-settings
2022-01-06 08:53:30 -04:00
Chi-Hsuan Huang 0c028b4a87 Add resolution check to ensure setup-wizard redirection on homescreen is stable (https://github.com/woocommerce/woocommerce-admin/pull/8114)
* Add resolution check to ensure setup-wizard redirection is stable

* Add changelogs
2022-01-06 09:47:09 +08:00
Chi-Hsuan Huang 91fc05dcfe Fix misaligned rows per page dropdown (https://github.com/woocommerce/woocommerce-admin/pull/8113)
* Fix misaligned rows per page dropdown

* Add changelogs

Add changelogs
2022-01-05 18:01:42 +08:00
Chi-Hsuan Huang af99137dff Truncate the site title with an ellipses on the second line (https://github.com/woocommerce/woocommerce-admin/pull/8112)
* Truncate the site title with ellipses on the second line

Fix style

* Add changelogs

* Add title property to nav site title

Update
2022-01-05 13:39:33 +08:00
renovate[bot] 1f0385561a Update dependency nth-check to 2.0.1 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8050)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 11:02:20 +08:00
renovate[bot] 84ae45c2ef Update dependency json-schema to 0.4.0 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/8049)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 11:00:30 +08:00
Moon 8983852686 Render the activity panel when the tasklist is hidden (https://github.com/woocommerce/woocommerce-admin/pull/8111) 2022-01-04 18:23:34 -08:00