Commit Graph

5246 Commits

Author SHA1 Message Date
louwie17 b4cb82b9cb Update changelog and increase version for components, data, and experimental packages (https://github.com/woocommerce/woocommerce-admin/pull/7311) 2021-07-08 13:30:11 -03:00
louwie17 4cdca48c6e Fix transient overlapping adjacent content (https://github.com/woocommerce/woocommerce-admin/pull/7302)
* Overwrite width to auto given transients are displayed fixed

* Add changelog
2021-07-08 12:21:56 -03:00
Hsing-yu Flowers e753e51f51 Add padding on table header button (https://github.com/woocommerce/woocommerce-admin/pull/7213)
* Add padding on table header button

* Add changelog and testing instructions

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-08 11:03:55 -04:00
Mik 5893ddceb7 Change event name to reflect plugin name (https://github.com/woocommerce/woocommerce-admin/pull/7276)
* Change event name to reflect plugin name

* Update changelog
2021-07-08 15:56:49 +01:00
Hsing-yu Flowers 8fe842f5a4 Add height auto on autocomplete popover button (https://github.com/woocommerce/woocommerce-admin/pull/7225)
* Add height auto on autocomplete popover button

* Add changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-08 10:47:46 -04:00
Hsing-yu Flowers bcf063a997 Make WooCommerce-admin full-screen minimum height 100vh important (https://github.com/woocommerce/woocommerce-admin/pull/7230)
* Add 100vh important on full screen

* Add changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-08 10:33:15 -04:00
louwie17 6a391c58d8 Make task item action button optional (https://github.com/woocommerce/woocommerce-admin/pull/7263)
* Make action button optional, and disable VerticalCSSTransition when expandable is false

* Update collapsible list to support nested element transitions

* Add changelog

* Address some small PR feedback, and fix tests

* Add expanded class, and remove cursor when expanded

* Make sure margin is added to container height

* Update broken tests

* Add radix to parseInt method
2021-07-08 09:19:35 -03:00
Joshua T Flowers 335cfe6554 Use payment gateway suggestion title instead of local plugin names (https://github.com/woocommerce/woocommerce-admin/pull/7266)
* Use payment gateway suggestion title instead of local plugin names

* Update Stripe gateway title
2021-07-07 17:41:50 -04:00
Paul Sealock d5f16fd0dc Filters: On update respect all other queries, not just persistedQueries (https://github.com/woocommerce/woocommerce-admin/pull/7155)
* on Filter update, keep all queries

* changelog

* package changelog

* instead of keeping everything else, remove advancedFilters when main filter is set to 'all'

* remove all queries associated with filter in question

* dedupe params

* add tests
2021-07-08 09:36:34 +12:00
Renovate Bot 50b4fe4963 Update dependency @types/cookie to v0.4.1 2021-07-07 01:35:09 +00:00
Moon 276b3cf693 Fix inbox note dismiss dropdown not closing on Safari (https://github.com/woocommerce/woocommerce-admin/pull/7278)
* Set position for the dropdown

* Manually focus the button onClick -- Safari does not focus on a button on click
2021-07-06 15:05:15 -07:00
Moon c632013700 Add missing translation strings in the business features section (https://github.com/woocommerce/woocommerce-admin/pull/7268)
* Add missing translations
2021-07-06 12:46:48 -07:00
Moon cb31c3a468 Add CES to translated scripts list (https://github.com/woocommerce/woocommerce-admin/pull/7270)
* Add CES to translated scripts list
2021-07-06 12:30:39 -07:00
Fernando 089c5b5905 Add a delete option to completed tasks (https://github.com/woocommerce/woocommerce-admin/pull/7300)
* Added onDelete prop to `task-item`.

* Added `onDelete` and `Remid me later` options to task example in docs.

* Added changelog

* Fixed lint error

* Fixed another lint error

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2021-07-06 15:35:40 -03:00
Joshua T Flowers c1978af7f7 Add Klarna Payments to default payment gateway suggestions (https://github.com/woocommerce/woocommerce-admin/pull/7267) 2021-07-06 11:13:05 -04:00
Tomek Wytrębowicz e48fabe964 Update issue templates (https://github.com/woocommerce/woocommerce-admin/pull/7088)
- Use headings in issues templates,
	instead of bold paragraphs.
	To match with PR template, to improve readability and accessibility.
- Add the "Actual behavior" section.
	The reviewer, would not have to get that from the description or test locally.
- Reorder sections,
	Screenshots (and actual behavior) describes what you have immediately after you perform "steps to reproduce", so therefore could be stated there. It's hard to make a screenshot of the "expected behavior", which is not happening.
- Move section descriptions to comments.
	This way the issuer could still keep them in place while filling the sections, answering those requests.
- Use ellipsis character instead of three dots.
	To make it more readable, by fully sighted and visually impaired readers https://tosbourn.com/the-importance-of-using-the-ellipsis-character not to read it as "dot dot dot"
2021-07-06 11:46:33 +02:00
Joel Thiessen af97dd68b5 Fixing logic around recommended gateways in payment suggestions feature (https://github.com/woocommerce/woocommerce-admin/pull/7231) 2021-07-05 16:33:03 -07:00
Paul Sealock d7bf615301 Remove unused WC Pay feature flags (https://github.com/woocommerce/woocommerce-admin/pull/7273)
* remove WC Pay feature flags

* remove WC Pay wcpay/support-international-countries flag

* wcpay countries PHP

* changelog
2021-07-06 10:15:18 +12:00
Joshua T Flowers d8d14fb9ca Localize payment gateway suggestions on wccom (https://github.com/woocommerce/woocommerce-admin/pull/7217)
* Localize payment gateway suggestions on wccom

* Add user locale as param to source URL

* Fix mock http request params
2021-07-05 17:50:26 -04:00
Joshua T Flowers 98d8040a06 Add ability to override payment gateway settings URL (https://github.com/woocommerce/woocommerce-admin/pull/7281) 2021-07-05 17:43:11 -04:00
Joshua T Flowers 4a3e4ff7ef Add PayU to default payment gateway suggestions (https://github.com/woocommerce/woocommerce-admin/pull/7279)
* Add PayU to default payment gateway suggestions

* Add testing instructions
2021-07-05 17:40:48 -04:00
Manos Psychogyiopoulos 2bda6e2e26 Use transients to cache products/variations stats results (https://github.com/woocommerce/woocommerce-admin/pull/7067)
* Use transients to cache products/variations stats results

* Add readme entry

* Fix readme

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-07-02 17:38:35 +08:00
Paul Sealock 88934afef4 Disabling wc-admin: Repurpose filter to remove optional features (https://github.com/woocommerce/woocommerce-admin/pull/7232)
* Repurpose disable filter to remove optional features

* changelog

* disable feature toggles on wc-admin disabled

* dedupe changelog

* hide save button using
2021-07-02 07:00:27 +12:00
Ilyas Foo e7b70ddca5 Fix and refactor explat polling to use setTimeout (https://github.com/woocommerce/woocommerce-admin/pull/7274)
* Refactor to use setTimeout

* Update changelog
2021-07-01 10:27:50 +08:00
Paul Sealock 1701b6ce15 Analytics Flag: Remove performance indicators when disabled (https://github.com/woocommerce/woocommerce-admin/pull/7234)
* remove performance indicators if analytics off

* changelog

* Hide the display option if there is only content for a single column
2021-07-01 11:16:11 +12:00
Paul Sealock 8c1db8a2cf Feature Flags: Removed unused flags (https://github.com/woocommerce/woocommerce-admin/pull/7233)
* remove analytics-dashboard/customizable

* remove analytics-dashboard

* changelog
2021-06-30 11:47:38 +12:00
louwie17 ee791957ce Make use of memoization to prevent DynamicForm re-initialization (https://github.com/woocommerce/woocommerce-admin/pull/7256)
* Make use of memoization to prevent DynamicForm re-initialization

* Use rendered element for defaultForm to keep component reference

* Fix formatting
2021-06-29 17:06:31 -03:00
Joshua T Flowers 7e20ebf866 Fix successful gateway configuration message (https://github.com/woocommerce/woocommerce-admin/pull/7251)
* Fix successful gateway configuration message

* Update language from connect to configure

* Fix connect component tests
2021-06-29 12:02:21 -04:00
Joshua T Flowers 6213611463 Fix payment gateway zip folder names (https://github.com/woocommerce/woocommerce-admin/pull/7257) 2021-06-29 11:46:04 -04:00
Ilyas Foo 6486d5d4c1 Fix CurrencyFactory constructor to use proper function (https://github.com/woocommerce/woocommerce-admin/pull/7261)
* Change arrow function to proper function

* Changelog
2021-06-29 12:33:10 +08:00
Joel Thiessen b176eeca04 Adding tests for Payment Gateway List component (https://github.com/woocommerce/woocommerce-admin/pull/7201) 2021-06-28 13:57:25 -07:00
Joshua T Flowers 41f3d8e99a Remove old payment gateway task components (https://github.com/woocommerce/woocommerce-admin/pull/7224)
* Remove old payment gateway task components

* Move PaymentGatewaySuggestions up one directory

* Add feature check to tasks array

* Turn on payment gateway suggestions in all environments

* Handle PR feedback

* Use gateway suggestions from REST API in help panel

* Fix component path

* Remove BACS test due to SlotFill testing bug

* Await button selector

* Handle PR feedback round 2
2021-06-28 14:18:42 -04:00
Tomek Wytrębowicz 5918c8ff1e Make `getIdsFromQuery` consider `0` as a valid id. (https://github.com/woocommerce/woocommerce-admin/pull/7028)
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

- Make `getIdsFromQuery` consider `0` as a valid id.
	Previously `Boolean` filter was removing it from the list.
	Fixes https://github.com/woocommerce/woocommerce-admin/issues/6980
- Add a basic set of tests for `getIdsFromQuery`, as they were none.
- Replace `lodash.uniq` with ES6 equivalent.
- Update JSDoc for `getIdsFromQuery`, to specify default value, returned type and description.
2021-06-28 13:34:29 +02:00
Ilyas Foo 3b7c05a845 WordPress 5.8 compatibility UI fixes (https://github.com/woocommerce/woocommerce-admin/pull/7255)
* Add appropriate text props to supplement variant revamp

* Add font styles to navigation title since its removed in wp.components

* Add more missing styles

* Accidental change

* Add changelog

* Fix lint

* Update jest snapshots
2021-06-28 09:14:59 +08:00
renovate[bot] f33463daad Update dependency locutus to v2.0.15 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/7162)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-28 10:34:10 +12:00
Joel Thiessen 947cd1fcd1 Fixing invalid key props, changing to id (https://github.com/woocommerce/woocommerce-admin/pull/7229)
* Fixing invalid key props, changing to id

* Adding changelog

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-06-25 18:58:55 -04:00
louwie17 8b7b8b2011 Add E2E tests for analytics overview screen section removal (https://github.com/woocommerce/woocommerce-admin/pull/7238)
* Add E2E tests for analytics overview screen section removal

* Fix build errors

* Add tests for moving sections up and down
2021-06-24 17:08:16 -03:00
Joshua T Flowers 32f3663cce Fix eway payment gateway key (https://github.com/woocommerce/woocommerce-admin/pull/7228) 2021-06-24 15:17:54 -04:00
Hsing-yu Flowers 6db7dba1e4 Localize string for description (https://github.com/woocommerce/woocommerce-admin/pull/7219)
* Localize string for description

* Add changelog and testing instructions

* Remove testing instruction

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-06-24 14:05:30 -04:00
Joshua T Flowers 53f26be786 Add testing instructions for payment gateway suggestions (https://github.com/woocommerce/woocommerce-admin/pull/7205)
* Add testing instructions for payment gateway suggestions

* Handle PR feedback

* Add plugin links for testing
2021-06-24 10:59:31 -04:00
louwie17 c5657002d2 Add date range support to remaining notes (https://github.com/woocommerce/woocommerce-admin/pull/7222)
* Allow custom date range start for date range

* Make use of the date_range logic for any notes using active_for

* Add changelog

* Add a couple extra tests for date range
2021-06-24 11:32:02 -03:00
Fernando 8397c3deb9 Fixed testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7210)
* Fixed testing instructions

* Update TESTING-INSTRUCTIONS.md

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

* Update TESTING-INSTRUCTIONS.md

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

* Update TESTING-INSTRUCTIONS.md

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

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-06-24 11:21:15 -03:00
louwie17 3d71cc8171 Vertical CSS transition component helper (https://github.com/woocommerce/woocommerce-admin/pull/7203)
* Add new VerticalCSSTransition component for vertical transitions

* Made use of VerticalCSSTransition in taskItem

* Updated vertical css transition to add support for appear

* Add changelog

* Fix task list tests

* Fix test lint error

* Use delete key instead of setting it to undefined
2021-06-24 11:18:59 -03:00
louwie17 06f99af525 Use gridicons as ReactElement versus SVG to fix blank screen (https://github.com/woocommerce/woocommerce-admin/pull/7237)
* Use gridicons as ReactElement versus SVG

* Add changelog
2021-06-24 11:18:29 -03:00
Cem Ünalan 01bd0027c1 Add filter to change the emailed report filename (https://github.com/woocommerce/woocommerce-admin/pull/7178)
* Reports: allow changing the export id

"woocommerce_admin_export_id" can be used to change
the filename when downloading an emailed report export.

* Add testing instructions and changelog

* Reports: Sanitize the file name for the report export
2021-06-24 16:59:23 +08:00
Moon 8afd2eae10 Use saved form values when switching tabs (https://github.com/woocommerce/woocommerce-admin/pull/7226)
* Use saved values if available when switching tabs

* Add changelog
2021-06-23 22:04:23 -07:00
Paul Sealock d6f59cce62 Load Analytics API behind feature check (https://github.com/woocommerce/woocommerce-admin/pull/7193)
* add toggle and check before registering routes

* move taxes out from analytics check

* fix merge error

* ensure features are loaded before calling Feature methods

* remove unused use
2021-06-24 09:02:05 +12:00
Paul Sealock 011b098645 Analytics: Add toggle to disable UI features (https://github.com/woocommerce/woocommerce-admin/pull/7168)
* add toggle and check before registering routes

* remove preloaded option

* early return

* changelog

* page refresh on option change

* pass value to client

* use Features::is_enabled

* handle option default

* go back to using feature flags on client

* remove unused use

* hide customers behind analytics flag for now

* remove unneeded class check
2021-06-23 13:50:15 +12:00
Joshua T Flowers c683376761 Skip schedule customer data deletion on site deletion (https://github.com/woocommerce/woocommerce-admin/pull/7214)
* Skip schedule customer data deletion on site deletion

* Add changelog entry
2021-06-22 20:07:18 -04:00
Joshua T Flowers 86ee870873 Add text for manage button when no help text exists (https://github.com/woocommerce/woocommerce-admin/pull/7191)
* Add text for manage button when no help text exists

* Update manage button text to set up

* Handle PR feedback
2021-06-22 20:07:03 -04:00