Commit Graph

538 Commits

Author SHA1 Message Date
Albert Juhé Lluveras 909185113a Fix unnecessary scroll bar visible on select control (https://github.com/woocommerce/woocommerce-admin/pull/3065) 2019-10-21 10:30:16 +02:00
Joshua T Flowers 9a20b0289e Update Search component to use SelectControl (https://github.com/woocommerce/woocommerce-admin/pull/3036)
* Update onSearch to return promise

* Refactor Search component to use SelectControl

* Update autocompleter option keys and labels

* Remove Autocomplete component
2019-10-16 12:00:20 +08:00
Darren Ethier fee65dd6ac Decouple wcSettings from published packages. (https://github.com/woocommerce/woocommerce-admin/pull/3001)
* refactor wcSettings in components to use new api

* update test snapshot

* refactor wcSettings in other packages

* fix how defaults are set for setting

* decouple siteLocale from ReportsFilters and AdvancedFilters

* Decouple currency settings from packages

AdvancedFilters, ReportFilters, and NumberFilters now receive currency info as props.

* decouple currency settings from `ReportChart`

* decouple `wcAdminAssetsUrl` setting from `EmptyContent`

- also refactors to remove the need for `ImageAsset` component.

* decouple OrderStatus from wcSettings

* decouple wcAdminUrl setting from ProductImage component

- this also implements a SVG for default product image.

* remove export for image-asset that is no longer present

* remove console.log

* update test snapshots for ProductImage
2019-10-11 11:45:45 -04:00
Joshua T Flowers b92500b35f Onboarding: Replace TextControl component (https://github.com/woocommerce/woocommerce-admin/pull/3020)
* Add TextControl component

* Replace instances of newspack TextControl
2019-10-10 07:00:33 +08:00
renovate[bot] 9e149f4ad1 Update babel monorepo to v7.6.3 (https://github.com/woocommerce/woocommerce-admin/pull/3013) 2019-10-09 09:28:27 -04:00
Jeff Stieler e53d5daa94 Hook up download button to export endpoint. (https://github.com/woocommerce/woocommerce-admin/pull/2900)
* Move TableCard actions from packaged component to ReportTable.

* Build an IE stylesheet for the main app.

* Remove defunct TableCard download test.

* Update components changelog.

* Fix pagination.

Pull query from table data instead of ReportTable props.

* Initiate report export from download button (https://github.com/woocommerce/woocommerce-admin/pull/2951)

* Add report export operations to API spec.

* Initiate a report export job when there is more than one page of report data.

* Add report download "type" to Tracks event.

* Ensure WC_Emails class is hooked in before sending report download emails.

* Set email parameter for background CSV download requests.
2019-10-08 15:02:26 -07:00
Joshua T Flowers 1563971836 Replace select controls with new SelectControl (Autocomplete) component (https://github.com/woocommerce/woocommerce-admin/pull/2997)
* Rename Autocomplete component to SelectControl

* Add isSearchable prop to SelectControl

* Remove SimpleSelectControl component

* Refactor list expansion and key behavior

* Bump changelog and version
2019-10-08 06:42:32 +08:00
renovate[bot] 891823c576 Update babel monorepo to v7.6.2 (https://github.com/woocommerce/woocommerce-admin/pull/2910) 2019-10-07 10:45:00 -04:00
Justin Shreve 6bcc63f2de Disable profile wizard continue buttons until fields are complete (https://github.com/woocommerce/woocommerce-admin/pull/2983) 2019-10-04 09:46:27 -04:00
Albert Juhé Lluveras 9f38e2d619 Replace lodash isNaN() with native Number.isNaN() (https://github.com/woocommerce/woocommerce-admin/pull/2998)
* Replace lodash isNaN() with native Number.isNaN()

* Update CHANGELOG
2019-10-04 09:25:23 +02:00
Albert Juhé Lluveras db4328acb8 Use native Number.isFinite() instead of lodash isFinite (https://github.com/woocommerce/woocommerce-admin/pull/2977) 2019-10-01 10:02:53 +02:00
renovate[bot] b129dab7b6 Update dependency history to v4.10.1 (https://github.com/woocommerce/woocommerce-admin/pull/2926) 2019-09-27 15:08:57 -04:00
renovate[bot] 0c491eaaf7 Update dependency qs to v6.9.0 (https://github.com/woocommerce/woocommerce-admin/pull/2955) 2019-09-27 14:04:12 -04:00
Paul Sealock bc8127bd33 0.19.0 release changes (https://github.com/woocommerce/woocommerce-admin/pull/2946) 2019-09-27 07:42:24 +12:00
Jeff Stieler e1ab60179d Fix DevDocs example render. (https://github.com/woocommerce/woocommerce-admin/pull/2962)
Incorrect changes chosen in a merge conflict resolution.
2019-09-25 12:23:49 -07:00
renovate[bot] 61487e5a3e Update dependency react-router-dom to v5.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/2956) 2019-09-25 13:23:30 -04:00
Ron Rennick 17abde4b18 add DevDocs for ScrollTo component (https://github.com/woocommerce/woocommerce-admin/pull/2873)
* add DevDocs for ScrollTo component
2019-09-25 09:47:40 -03:00
Darren Ethier d728d38219 Refactor: Alternative approach to implementing extendable settings from the server (https://github.com/woocommerce/woocommerce-admin/pull/2917)
* integrate with new asset data registration (php side)

- includes back-compatibility.

* update js configuration and implement settings alias

- this aliases `@woocommerce/wc-admin-settings` to the settings api exposed via blocks (either the blocks plugin or core) and all the settings provided via the server.
- Adds fallback for back-compat if `wc.wcSettings` is not available in the environment (fallsback to `wcSettings`).

* initial pass to update all wcSettings direct usage to the new api

- this is just an initial pass, more can be done in separate pulls.

* missed one spot for adding new filter implementation

* fix incorrect jest config

* Avoid unnecessary assignment and directly return.

* Remove unnecessary defaults

* Fix inline comment text case.

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Remove unnecessary inline comment.

* use @todo instead of TODO

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* fix incorrect reference in webpack config.

* add missing import and slightly delay dependency injection for scripts

* update get-setting and set-setting callbacks

* disable lint rule for console.error on dev doc builds
2019-09-23 17:47:08 -04:00
Jeff Stieler 1c7c051414 Wrap TableCard examples in containers. 2019-09-06 11:52:22 -07:00
Jeff Stieler d3572e85ca Fix typos in DateRangeFilterPicker readme. 2019-09-06 11:52:21 -07:00
Jeff Stieler bf37c30b16 Finish documentation for AdvancedFilters component. 2019-09-06 11:52:21 -07:00
Jeff Stieler 90ccb6f440 Fix EllipsisMenu example component. 2019-09-06 11:52:19 -07:00
Jeff Stieler f5c153e678 Fix error in using TableCard's example pagination control. 2019-09-06 11:52:19 -07:00
Jeff Stieler a0efb6967f Fetch component usage documentation from local README.md.
Format documentation like Calypso, include usage section.
2019-09-06 11:52:18 -07:00
Jeff Stieler 3d03faa887 Convert markdown JSX code blocks to actual JS files for component documentation. 2019-09-06 11:37:18 -07:00
Albert Juhé Lluveras 07d3e591eb Fix chart type buttons misalignment (https://github.com/woocommerce/woocommerce-admin/pull/2871) 2019-09-04 19:29:13 +02:00
Ron Rennick 193c961d22 add backticks to component tag in changelog 2019-09-03 14:09:22 -03:00
Ron Rennick 24d3104eca fix merge conflicts 2019-09-03 14:08:02 -03:00
Justin Shreve e5b4606047 Add base payments task & jetpack connection status method (https://github.com/woocommerce/woocommerce-admin/pull/2853)
* Add a base for the payments task, with the ability to choose methods. Also adds Jetpack connection status.

* Handle PR feedback
2019-08-29 12:41:04 -04:00
Justin Shreve e67b556ac9 Update to Color Studio v2.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/2837)
* Update color-studio to v2.1.0

* Handle additional color updates after rebase.
2019-08-29 12:07:56 -04:00
David Levin 4acf5ff497 Update no data message in table 2019-08-28 15:55:28 -07:00
Jeff Stieler cd0ed4353d Merge pull request woocommerce/woocommerce-admin#2843 from woocommerce/add/2803-report-filter-filters
Add filters to all Report filter config objects.
2019-08-28 08:16:14 -07:00
Renovate Bot ad099f21e0 Update dependency memoize-one to v5.1.1 2019-08-28 02:01:26 +00:00
Jeff Stieler 56e74213a9 Show separate documentation for filter components. 2019-08-27 10:20:38 -07:00
Joshua T Flowers 55fe83c70b Improve Autocomplete accessibility (https://github.com/woocommerce/woocommerce-admin/pull/2840) 2019-08-27 11:24:03 +08:00
Jeff Stieler 4dbd7ee176 Move AdvancedFilters, CompareFilter, DateRangeFilterPicker, and FilterPicker into top-level component directories. 2019-08-26 13:08:06 -07:00
Paul Sealock 822f18c2be Merge pull request woocommerce/woocommerce-admin#2839 from cojennin/fix/2729-product-click
Product in dropdown clickable in FF/Safari
2019-08-26 11:54:29 +12:00
Connor Jennings 54c3a2658f Product in dropdown clickable in FF/Safari 2019-08-24 09:45:51 -04:00
Ron Rennick 9d2d085aee handle offset attribute and children 2019-08-23 15:34:44 -03:00
Ron Rennick 893d3243ee Merge pull request woocommerce/woocommerce-admin#2821 from woocommerce/renovate/qs-6.x
Update dependency qs to v6.8.0
2019-08-21 13:34:50 -03:00
Joshua T Flowers 7fbc4cc0df Add Autocomplete component (https://github.com/woocommerce/woocommerce-admin/pull/2808) 2019-08-21 14:41:42 +08:00
Joshua T Flowers f4d7936b17 Onboarding: Add shipping rate base task (https://github.com/woocommerce/woocommerce-admin/pull/2760) 2019-08-21 13:58:47 +08:00
Renovate Bot 32d806caed Update dependency qs to v6.8.0 2019-08-21 00:14:18 +00:00
Ron Rennick fadb20c1bc update component change log 2019-08-20 10:06:08 -03:00
Ron Rennick 17c66a79a5 Merge branch 'master' into fix/2243 2019-08-20 10:04:10 -03:00
Joshua T Flowers 371a9fa28d Update List actionable items to be wrapped with Link (https://github.com/woocommerce/woocommerce-admin/pull/2779)
* Update List actionable items to be wrapped with Link

* Update product tasks to use href instead of onclick

* User inner tag for list items

* Fix up a11y for non-link actionable items
2019-08-20 06:38:10 +08:00
Paul Sealock da2a6d762a Merge pull request woocommerce/woocommerce-admin#2802 from woocommerce/release/components-august
Components: prepare changelogs for release
2019-08-20 07:35:41 +12:00
Ron Rennick effb5b8219 Merge branch 'master' into fix/2243 2019-08-19 11:34:05 -03:00
Ron Rennick 1517f865e1 convert scroll functionality to a component 2019-08-19 03:18:40 -03:00
Paul Sealock 7eaac68b43 add changelog entries 2019-08-19 10:24:59 +12:00
Jeff Stieler 974566ea0c Fix bug with checking user preferences for report column visibility. 2019-08-16 13:06:19 -07:00
Paul Sealock 5b3ecb186c components: update package.jsons 2019-08-16 10:20:54 +12:00
Paul Sealock dd948051cb Components: prepare changelogs for release 2019-08-16 10:08:29 +12:00
Jeff Stieler 6b18a6d93e Component changelog entry. 2019-08-15 12:54:45 -07:00
Jeff Stieler 77967d2824 Disable table controls (except column visibility) when the table is empty. 2019-08-15 12:54:31 -07:00
Jeff Stieler ccf0723faa Add a "no data" cell to the Table component. 2019-08-15 12:00:46 -07:00
Albert Juhé Lluveras 21dbbe88d0 Search List Control: fix long count values cut-off in IE11 (https://github.com/woocommerce/woocommerce-admin/pull/2783)
* Search List Control: fix long item count values cut-off in IE11

* Update CHANGELOG
2019-08-15 09:30:03 +02:00
Justin Shreve e81b1fd776 Add `help` prop to SimpleSelectControl to properly show errors. (https://github.com/woocommerce/woocommerce-admin/pull/2751) 2019-08-08 09:10:47 -04:00
Joshua T Flowers 1e042d355c Add event handlers in Form component and update onboarding form (https://github.com/woocommerce/woocommerce-admin/pull/2749)
* Add better checkbox and radio support

* Add checkbox, select, and radio examples to form component

* Update business details step to use new Form component
2019-08-08 13:25:55 +08:00
Joshua T Flowers 919ce11b57 Add form component for handling form state (https://github.com/woocommerce/woocommerce-admin/pull/2742)
* Add Form component to packages

* Add form example to devdocs

* Fix form validation check

* Update store details to use Form component

* Fix indentation issues
2019-08-05 09:41:47 +08:00
Joshua T Flowers f542a4c011 Update Stepper component with new props and styles (https://github.com/woocommerce/woocommerce-admin/pull/2726)
* Add description and content to Stepper

* Reduce unnecessary styles

* Allow variable divider width for vertical Steppers

* Fix existing steppers and styling

* Update spinner styles in Stepper

* Fix style lint issues

* Update spinner color in plugin step
2019-08-02 07:28:06 +08:00
Joshua T Flowers d41ce76451 Onboarding: Add WebPreview component for theme previewing (https://github.com/woocommerce/woocommerce-admin/pull/2681)
* Add WebPreview component

* Add theme preview component

* Add WebPreview example for devdocs

* Update loading content prop name for WebPreview

* Add selected class state for device buttons

* Fix tabbing issue in stylesheet

* Fix loadingContent prop changes

* Add in translators note

* Fix theme details height issue

* Add theme demo track events (https://github.com/woocommerce/woocommerce-admin/pull/2715)

* Add theme demo track events

* Track theme chosen location

* Track theme slug on device switch

* Apply design feedback
2019-08-02 07:27:38 +08:00
renovate[bot] 307338a50f Update dependency memoize-one to v5.0.5 (https://github.com/woocommerce/woocommerce-admin/pull/2723) 2019-07-31 12:47:22 -04:00
renovate[bot] e1e9b556b6 Update dependency lodash to v4.17.15 (https://github.com/woocommerce/woocommerce-admin/pull/2722) 2019-07-31 11:55:19 -04:00
renovate[bot] aa45022256 Update babel monorepo to v7.5.5 (https://github.com/woocommerce/woocommerce-admin/pull/2691) 2019-07-29 13:29:52 -04:00
Paul Sealock d98eceffc7 Revert "Revert "Update to new Snackbar component and notice store"" (https://github.com/woocommerce/woocommerce-admin/pull/2643)
* Revert "Revert "Update to new Snackbar component and notice store""

* Update uploader component to use createNotice

* Bump required WP version to 5.2

* Update required PHP and WP versions in plugin header
2019-07-23 11:26:46 +08:00
Joshua T Flowers 9f6e200ab7 Remove path from URL in root/dashboard page (https://github.com/woocommerce/woocommerce-admin/pull/2674) 2019-07-23 11:17:43 +08:00
Joshua T Flowers b42a8b34cd Onboarding: Add products task (https://github.com/woocommerce/woocommerce-admin/pull/2667)
* Add product subtask list component

* Add has-action class to list component

* Redirect after active task completion

* Refactor task completion check

* Add task completion statuses to component settings

* Fix missing className prop for list items

* Add task completion styling
2019-07-19 10:54:38 +08:00
Joshua T Flowers 2d21db45ce Onboarding: Add the task list dashboard (https://github.com/woocommerce/woocommerce-admin/pull/2654)
* Add task list dashboard page

* Add actual site URL to header

* Fix typos

* Remove app bar

* Use material icons

* Update material icons to use Google hosted font

* Localize description strings
2019-07-18 18:11:21 +08:00
Justin Shreve 4e478d9fbb Implement "Simple" Select Component (https://github.com/woocommerce/woocommerce-admin/pull/2598)
* Implement "Simple" Select Component

* Add value prop and disabled option.

* Expand click target of .woocommerce-simple-select-control__selector

* Fix select state.

* remove left position

Co-Authored-By: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/components/src/simple-select-control/style.scss

Co-Authored-By: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/components/src/simple-select-control/style.scss

Co-Authored-By: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/components/src/simple-select-control/style.scss

Co-Authored-By: Joshua T Flowers <joshuatf@gmail.com>
2019-07-17 11:46:55 -07:00
Jeff Stieler 69245c848b Merge pull request woocommerce/woocommerce-admin#2638 from woocommerce/add/2605-tracks-priority-3
Add priority 3 Tracks events
2019-07-16 09:10:11 -06:00
Albert Juhé Lluveras f392b5588d Replace 'stringifyQuery' with 'addQueryArgs' (https://github.com/woocommerce/woocommerce-admin/pull/2655) 2019-07-16 10:56:24 +02:00
renovate[bot] 4b7bac3327 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/2623) 2019-07-15 16:25:15 +02:00
renovate[bot] 2c6c7671e2 Update dependency lodash to v4.17.13 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/2639) 2019-07-15 11:19:37 +02:00
Timmy Crawford 7efefc1495 Chart: Remove z-index from empty message (https://github.com/woocommerce/woocommerce-admin/pull/2646) 2019-07-12 12:53:59 -07:00
Jeff Stieler 1da8aba8e8 Send a tracks event for report table pagination actions. 2019-07-12 11:46:37 -06:00
Jeff Stieler ea6116592e Merge branch 'master' into add/2604-tracks-priority-2 2019-07-12 11:34:50 -06:00
Jeff Stieler e29f86c2d1 Add components changelog entries. 2019-07-11 17:36:55 -06:00
Jeff Stieler 34e91de4ce Merge pull request woocommerce/woocommerce-admin#2637 from woocommerce/fix/report-table-pagination
Fix "page" parameter collision between routing and table pagination.
2019-07-11 17:23:31 -06:00
Jeff Stieler b92bef4941 Fix "page" parameter collision between routing and table pagination. 2019-07-11 14:18:16 -06:00
Timmy Crawford f4735658d7 Revert "Update to new Snackbar component and notice store (https://github.com/woocommerce/woocommerce-admin/pull/2596)"
This reverts commit 980ff6fa71.
2019-07-10 09:58:51 -07:00
Jeff Stieler 7a7283dffa Send a tracks event when the report table filter search is used. 2019-07-10 08:37:02 -06:00
Joshua T Flowers 3dfdcdee67 Add list component to packages. (https://github.com/woocommerce/woocommerce-admin/pull/2616)
* Add list component

* Add list example to devdocs

* Add component changelog entry
2019-07-10 10:25:25 +08:00
Jeff Stieler ce731b958a Send tracks event when advanced filter match type is changed. 2019-07-09 16:45:31 -06:00
Jeff Stieler a13487265c Send tracks event when table sorting is changed. 2019-07-09 14:38:53 -06:00
Jeff Stieler f7c48e6738 Send tracks event when report table columns are toggled. 2019-07-09 13:55:51 -06:00
Paul Sealock 314ed6da56 Tracks: Fix Link onclick 2019-07-09 07:51:20 +12:00
Joshua T Flowers 980ff6fa71 Update to new Snackbar component and notice store (https://github.com/woocommerce/woocommerce-admin/pull/2596)
* Add new wordpress/components version and fix dependencies

* Add in snackbar styling and gutenberg variables

* Convert all existing notice actions to wordpress/notices

* Fix linting errors

* Add package.lock changes

* Update search list control snapshots with new attributes
2019-07-08 12:10:34 +08:00
Mike Jolley 904ef37fb0 Changelog for component package 2019-07-05 11:26:50 +01:00
Mike Jolley a89716296c license typo 2019-07-05 11:26:12 +01:00
Albert Juhé Lluveras 49d15db27e Add countLabel prop to SearchListItem (https://github.com/woocommerce/woocommerce-admin/pull/2569) 2019-07-04 17:50:56 +02:00
Paul Sealock e56a811394 update packages README 2019-07-04 13:32:13 +12:00
Paul Sealock 1108d327be Packages: prepare for release 2019-07-04 13:30:25 +12:00
Paul Sealock b3bde09814 Merge pull request woocommerce/woocommerce-admin#2444 from woocommerce/update/route-handling
Route handling: Remove hash in favor of path parameter
2019-07-03 13:16:04 +12:00
renovate[bot] d52a32692c Update dependency locutus to v2.0.11 (https://github.com/woocommerce/woocommerce-admin/pull/2515) 2019-07-01 17:26:35 -07:00
Paul Sealock c5c52228b6 update changelog for navigation package 2019-07-01 20:41:57 +12:00
Justin Shreve aed4ea63b4 Server side route handling 2019-07-01 12:22:34 +12:00
Paul Sealock 123af97b1c Merge pull request woocommerce/woocommerce-admin#2525 from woocommerce/add/filters-tracks
Advanced Filters: Add Tracks events
2019-07-01 11:05:59 +12:00
Justin Shreve 89c56dba21 Remove hover on Card component (https://github.com/woocommerce/woocommerce-admin/pull/2529) 2019-06-28 06:42:09 -04:00
Paul Sealock e32b5560c0 Advanced Filters: Add Tracks events 2019-06-28 12:34:41 +12:00