Kelly Dwan
f1f1a324a0
Add a specific class wrapper to the SVG
2018-12-03 11:25:32 -05:00
Kelly Dwan
94db1a65cf
Update snapshots with added icons
2018-12-03 11:10:24 -05:00
Kelly Dwan
c4ca6b484d
Add icon to product category list
2018-12-03 11:10:23 -05:00
Kelly Dwan
5b9e615d45
Add checked/unchecked icons next to each menu item
2018-12-03 11:10:23 -05:00
Kelly Dwan
3d5571093a
Don’t hide selected elements, instead add selection toggle
2018-12-03 11:10:22 -05:00
Kelly Dwan
b8bdc2bf27
Category Selection: Add hierarchy support for nested categories ( https://github.com/woocommerce/woocommerce-blocks/pull/179 )
...
* Add buildTermsTree to handle hierarchical list input
* Append items if their parent is not in the given list
* Add `breadcrumbs` property to hierarchical list
* Display the “breadcrumbs” parent categories when searching
* Use display properties
we’re providing alternative text for screen reader users, so we can just toggle display values for the prefix
* Add all parent categories to name provided for screen readers
* Display parent category when parent is a currently selected item
* Add the depth class to items in defaultRenderItem
* Add a test for a hierarchical item list
* Clean up hierarchy docblock & commented-out code
* Update proptype
* Update depth CSS so we still indent very nested categories
2018-11-30 16:37:58 -05:00
Kelly Dwan
dc1c1f7370
Add tests for SearchListControl ( https://github.com/woocommerce/woocommerce-blocks/pull/174 )
2018-11-30 15:39:16 -05:00
Claudio Sanches
81605bae30
New custom endpoints ( https://github.com/woocommerce/woocommerce-blocks/pull/162 )
...
* Included PHPCS and git hooks
* Fixed coding standards
* New Products endpoint
* Fixed product controller schema
* Improved products controller schema and response
* New product categories controller
* Updated REST API base to match WooCommerce authentication
* Fixed products/categories endpoint
* Better docblock
* Product attributes controller
* Product attribute terms controller
* Update REST API urls
* Reverted PHPCS changes
* Check permission only once while fetching posts
* Included raw price
* Included sku to products endpoint response
* Fixed endpoints in unit test
* Fixed routes in unit tests
* Check and use subscriber, contributor and author rules in unit tests
2018-11-30 14:12:56 -05:00
James Koster
e9b3b341e5
Adjust category list max-height ( https://github.com/woocommerce/woocommerce-blocks/pull/177 )
2018-11-30 10:50:23 -05:00
Kelly Dwan
649f79903c
Show the Layout settings as open by default ( https://github.com/woocommerce/woocommerce-blocks/pull/175 )
2018-11-29 21:00:46 -05:00
Kelly Dwan
6873f803d6
Fix React warning for array items needed unique key props ( https://github.com/woocommerce/woocommerce-blocks/pull/173 )
2018-11-29 20:57:15 -05:00
Kelly Dwan
4ac52b3cf3
Create a reusable search + list control for category selection ( https://github.com/woocommerce/woocommerce-blocks/pull/166 )
...
* Add new components for ProductCategoryControl, using a reusable SearchListControl
* Add sass variables from wc-admin
* Finish styling
* Save selected categories as selected for the block
* Style sidebar version of control
* Filter the categories list, highlight search term in result
* Filter out selected items in the filter list function
* Add spacing in the placeholder, remove unnecessary stylesheet
* Add a more descriptive label for screen readers
* Remove category references from list item options
* Switch to a configurable object of messages, so SearchListControl can be more customizable
* Add screen-reader message for toggling “done” and moving into preview
* Remove call to getProductCategoryControl
The component is simple enough to just drop in now :)
* Add documentation for all props
* Add padding to placeholder
* Rename fallbackrenderItem to defaultRenderItem
* Add a variable to save the selected count
* Add `isDestructive` to make link red
* Update item style
* Add a hover/focus background color
2018-11-29 13:10:08 -05:00
Kelly Dwan
a4fb42fe3d
Load only published products in the preview ( https://github.com/woocommerce/woocommerce-blocks/pull/146 )
...
* Load only published products in the preview
* Fix post status in legacy block too
* Filter searching for individual products to only search published products
* Update query tests with change
2018-11-26 11:03:26 -05:00
Kelly Dwan
c98e607a6f
Add the "edit mode" toggle to the product category block ( https://github.com/woocommerce/woocommerce-blocks/pull/144 )
...
* Add sass mixins and variables
* Add an edit mode toggle, with the ability to choose categories
* Only add align classes when align is defined
2018-11-21 11:33:21 -05:00
Kelly Dwan
2231c829d1
Add a basic product category block ( https://github.com/woocommerce/woocommerce-blocks/pull/136 )
...
* Add a second block, for “products by category”
* Fetch products in the given category, when attributes change
* Display the resulting products
* Style the product preview
* Create utils folder, move shared attributes
* Move getQuery to shared utils folder
* Create a helper function to get the shortcode string
* Support the menu_order setting
* Support center/wide/full alignment
* Update PropTypes
* Add tests
* Add text domain to translation functions
2018-11-19 11:33:17 -05:00
Kelly Dwan
b52bb64d88
Move legacy block to “legacy” folder ( https://github.com/woocommerce/woocommerce-blocks/pull/135 )
2018-11-19 11:31:43 -05:00
Kelly Dwan
882cd4c7bb
Set up Jest for JS testing ( https://github.com/woocommerce/woocommerce-blocks/pull/130 )
...
* Set up Jest testing
* Add a snapshot test for the product preview component
2018-11-16 10:43:51 -05:00
Kelly Dwan
45f519590e
Add eslint to find and fix code style issues ( https://github.com/woocommerce/woocommerce-blocks/pull/123 )
...
* Add eslint configuration
* Run eslint auto-fixer to cover fixable issues
* Use wp.element’s component to prevent undefined React error
* Add products data global to eslint config
* Fix remaining eslint errors by hand
* Fix eslint errors in webpack
* Remove duplicate rule
2018-11-13 14:21:04 -05:00
Kelly Dwan
140f4e5ed6
Update build process ( https://github.com/woocommerce/woocommerce-blocks/pull/122 )
...
* Add api-fetch dependency
* Remove compiled files from the repo
* Update build process, remove grunt
* Import CSS into block, as we now extract CSS via webpack to build
* Update enqueue scripts to reflect new build locations
* Detect if build files don’t exist, and instruct users to build project
* Update readme with build instructions
* Clarify where to run npm commands in info notice
* Only enqueue our JS files if we know they exist
* Clarify version compatibility between WC and WP 5.0
2018-11-13 14:12:32 -05:00
claudiulodro
30aa4814e6
Fix no products found bug in product search
2018-09-06 11:47:51 -07:00
claudiulodro
78d21584fa
Fix bugs in specific select
2018-09-06 09:58:55 -07:00
claudiulodro
dd0b7284e4
Fix bugs with sidebar info
2018-09-06 09:44:30 -07:00
claudiulodro
6d0167b356
Refactor single select
2018-09-06 09:31:05 -07:00
claudiulodro
5bebb96cfa
Refactor specific select screen
2018-09-06 09:29:17 -07:00
Tiago Noronha
451a4722f5
Refactor category select
2018-09-06 17:03:36 +01:00
Tiago Noronha
cc05f947cd
Merge pull request woocommerce/woocommerce-blocks#109 from woocommerce/fix/106-attribute-select
...
Refactor attribute select
2018-09-06 16:42:23 +01:00
Tiago Noronha
7cca16abdd
Refactor attribute select
2018-09-06 16:40:50 +01:00
claudiulodro
914fa794af
Fix method name mismatch
2018-09-06 08:37:54 -07:00
claudiulodro
6d4c811949
Refactor sidebar info class
2018-09-06 08:21:56 -07:00
claudiulodro
61d7a229ad
Refactor product preview api usage
2018-09-05 13:20:09 -07:00
claudiulodro
6cde5409a1
Begin migration off withapidata
2018-09-05 11:30:46 -07:00
Tiago Noronha
f6a992a17c
Add order DESC attribute when ordering by newest first
2018-08-22 15:05:34 +01:00
claudiulodro
9a8236ce68
Make attribute select scalable
2018-06-05 10:06:39 -07:00
claudiulodro
07e249faae
Add some keys to elements
2018-06-04 10:48:48 -07:00
claudiulodro
59cba2a952
Include custom API endpoint for required orderby features
2018-06-01 10:22:58 -07:00
claudiulodro
f2ee9915f9
Fix things that broke in latest gberg version
2018-06-01 09:19:25 -07:00
claudiulodro
34f6d14bb1
Add best seller and top rated scopes
2018-04-25 12:03:08 -07:00
claudiulodro
3b55ae7c66
Bring up-to-date with master
2018-04-11 08:44:56 -07:00
Tiago Noronha
23b4d10036
Track if the results dropdown is visible or not
2018-04-10 16:34:53 +01:00
Tiago Noronha
d424d9f678
Set number of per page items to the number of individual products set
2018-04-10 15:14:39 +01:00
James Koster
e4bbd11cbc
Don't show "selected products" label when no products are selected
...
The instructions in the search input are adequate
2018-04-09 14:46:42 +01:00
James Koster
d1566fb0d2
Update block scope details design
2018-04-09 13:53:38 +01:00
Tiago Noronha
f83c958eec
Remove button tag around selected product checkmark
2018-04-07 00:34:47 +01:00
Tiago Noronha
f4bfda9832
Updated individual products design
2018-04-06 23:57:20 +01:00
claudiulodro
6cb26a20c8
Style and fix bug
2018-04-06 14:03:06 -07:00
claudiulodro
bb576d2a9c
Attribute sidebar description
2018-04-06 13:12:26 -07:00
claudiulodro
9efc26a3b3
Sidebar info working great except for attributes
2018-04-05 12:25:59 -07:00
Tiago Noronha
5d42920036
Closes woocommerce/woocommerce-blocks#84 : Adds order setting to individual product scope
2018-04-05 18:22:44 +01:00
Tiago Noronha
08ec9fa803
Closes woocommerce/woocommerce-blocks#59 : Individual products - remove rows slider
2018-04-05 17:19:36 +01:00
Tiago Noronha
710e8d03eb
Closes woocommerce/woocommerce-blocks#73 : Search result row should be clickable
2018-04-05 16:55:36 +01:00
claudiulodro
24898d007d
Refactor main products block for better maintainability
2018-04-04 12:26:23 -07:00
claudiulodro
c8dfecdf9a
Wording update for All scope woocommerce/woocommerce-blocks#72
2018-04-03 10:33:20 -07:00
claudiulodro
d5dbda0d9f
Use theme default number of rows
2018-04-03 10:26:56 -07:00
claudiulodro
55054fcd02
Jump direct to preview if no further settings are required woocommerce/woocommerce-blocks#68
2018-04-03 09:56:00 -07:00
claudiulodro
06e76d402a
Change block icon woocommerce/woocommerce-blocks#85
2018-04-03 09:22:01 -07:00
claudiulodro
bc8e85006c
Remove list view woocommerce/woocommerce-blocks#70
2018-04-02 11:46:57 -07:00
James Koster
1393ab769a
Update order option labels
...
Also arranges the options alphabetically
2018-03-19 10:09:23 +00:00
claudiulodro
c3354c6363
Price orderby shortcode functionality
2018-03-16 09:43:25 -07:00
claudiulodro
6eba00b97a
Remove rand and add price ordering
2018-03-16 09:26:42 -07:00
claudiulodro
24059f109d
Orderby selector
2018-03-15 10:20:43 -07:00
Tiago Noronha
f238cbbca0
Change cursor for current display and prevent option from being selected
2018-03-15 15:07:09 +00:00
Tiago Noronha
c5424350ab
Fix inline if statement
2018-03-14 15:15:34 +00:00
Tiago Noronha
a92bc86761
Add active state to scope switcher
2018-03-14 15:11:36 +00:00
Claudiu Lodromanean
cdf1c7ec6e
Merge pull request woocommerce/woocommerce-blocks#65 from woocommerce/fix/bugs
...
Fix product preview bugs
2018-03-12 10:21:43 -07:00
claudiulodro
25e6666145
Hide grid/list toggle in edit mode and better edit button disabling
2018-03-12 10:20:00 -07:00
Claudiu Lodromanean
4c3470ce18
Merge pull request woocommerce/woocommerce-blocks#57 from woocommerce/improve/specific
...
Specific Select improvements
2018-03-12 10:04:44 -07:00
claudiulodro
8a7b00b7cc
Update tooltip wording
2018-03-12 10:03:51 -07:00
claudiulodro
52c6b37abf
Format prices in preview
2018-03-09 11:45:53 -08:00
claudiulodro
397937edd0
Use theme column settings and dont enable top edit buttons if no display selected
2018-03-09 11:04:01 -08:00
claudiulodro
faa3309a8e
Disable Done button if no display selected
2018-03-09 09:57:08 -08:00
claudiulodro
4c10e3312c
Caching for specific select
2018-03-02 11:18:42 -08:00
claudiulodro
72eedda5df
Prevent Done button when no selection
2018-03-02 10:05:13 -08:00
claudiulodro
866a634e9d
Reset display setting when display changes to prevent e.g. product ids in the category select
2018-03-02 09:39:12 -08:00
claudiulodro
21b0f59efc
Each attribute doesnt need a loading indicator
2018-03-02 09:16:28 -08:00
Claudiu Lodromanean
1d041a1c2b
Merge pull request woocommerce/woocommerce-blocks#44 from woocommerce/specific-products-styling
...
Specific products styling
2018-02-27 07:19:39 -08:00
Tiago Noronha
05acb959a9
Restore fade out transition when adding an item from search
2018-02-27 14:08:32 +00:00
Tiago Noronha
c0a25d5e78
Styling fixes
2018-02-27 11:56:18 +00:00
Tiago Noronha
c486bd4208
Specific products styling
2018-02-26 22:52:12 +00:00
claudiulodro
cb5d2be41e
Only show column controls when not list layout
2018-02-26 12:21:47 -08:00
claudiulodro
add00960dc
Fix deprecation notices caused by new gutenberg version
2018-02-26 12:13:08 -08:00
claudiulodro
2d6701b107
Hook settings up to API preview and fix rangecontrol warning
2018-02-26 11:58:19 -08:00
claudiulodro
2d2702e035
Generate shortcodes for all settings
2018-02-26 11:12:21 -08:00
Claudiu Lodromanean
4c8eb59b9a
Merge pull request woocommerce/woocommerce-blocks#40 from woocommerce/fix/previewapi
...
"Fix" preview API call
2018-02-26 10:37:58 -08:00
claudiulodro
6a8c7e02f9
Resolve merge conflicts
2018-02-26 10:26:08 -08:00
Claudiu Lodromanean
3c06393135
Merge pull request woocommerce/woocommerce-blocks#41 from woocommerce/beautify
...
Updated styling for Categories and Attributes
2018-02-26 09:53:47 -08:00
Tiago Noronha
a5c9ba5cad
Categories, attributes and general styling
2018-02-26 17:10:45 +00:00
claudiulodro
271276e27b
"Fix" preview API call
2018-02-23 12:05:44 -08:00
claudiulodro
6f6246c779
Copy products into new array when updating display setting
2018-02-23 11:38:59 -08:00
claudiulodro
fdadfa5753
Resolve merge conflicts
2018-02-23 10:46:25 -08:00
claudiulodro
86419ad130
Close display setting menu when clicked off
2018-02-23 10:22:05 -08:00
Tiago Noronha
ba040ffe5e
General and menu styling
2018-02-23 14:57:27 +00:00
claudiulodro
23c6acaba2
Remove toggles and order setting
2018-02-22 12:11:53 -08:00
claudiulodro
6f28b2e0b5
Close product search results when clicked off
2018-02-22 11:06:13 -08:00
claudiulodro
caf0a09a79
Fade out products when selected
2018-02-22 10:48:34 -08:00
claudiulodro
01f8dd6915
Fix default layout after gberg update
2018-02-22 07:33:18 -08:00
claudiulodro
a0f1a63504
Clean up
2018-02-21 11:59:40 -08:00
claudiulodro
8fa05f6dab
Previews for attribute selections
2018-02-21 11:53:36 -08:00
claudiulodro
9f03594ae0
Basic attribute filtering
2018-02-21 11:30:47 -08:00
claudiulodro
a879ddc36a
Attributes data is moving around correctly now
2018-02-21 10:43:21 -08:00
claudiulodro
3dde60703b
Bring up to date with master
2018-02-21 10:08:34 -08:00
Tiago Noronha
a6b5d546f4
Checkbox indeterminate state and reveal accordions on first laod
2018-02-21 13:58:20 +00:00
claudiulodro
9148e9801b
Working attributes select UI
2018-02-20 11:47:50 -08:00
Tiago Noronha
4ca9df7a79
Toggle children when toggling a parent category
2018-02-20 17:00:43 +00:00
claudiulodro
d5b02e2996
Resolve merge conflicts
2018-02-19 12:58:13 -08:00
Tiago Noronha
8645fe83fc
Add method docblock
2018-02-19 20:07:32 +00:00
Tiago Noronha
e60c2d2970
Remove redundant parameter
2018-02-19 20:05:59 +00:00
Tiago Noronha
99f3de3098
New design
2018-02-19 19:57:37 +00:00
claudiulodro
9949564a42
Products search and select
2018-02-16 11:40:19 -08:00
claudiulodro
f8f01a8e8f
Toggle open/close when clicking on settings groups
2018-02-15 11:54:03 -08:00
claudiulodro
d94773bd6f
Modularize the settings screens
2018-02-15 10:16:14 -08:00
claudiulodro
149a546290
Update menu functionality to match latest designs
2018-02-15 09:42:24 -08:00
claudiulodro
6533d2f166
Set up and move things over for a feature plugin
2018-02-13 11:03:53 -08:00