Commit Graph

528 Commits

Author SHA1 Message Date
Jonathan Belcher 9d337ce8e0 Add all instances of menu to toggle current state. 2018-10-10 12:06:32 -04:00
Jonathan Belcher 1ef9d132dd Update PR template to be a little simpler 2018-10-10 11:57:44 -04:00
Kelly Dwan dc5967197d Add a default value to `labels` (https://github.com/woocommerce/woocommerce-admin/pull/500)
Fixes an error where labels is undefined if nothing is passed through
2018-10-10 10:59:22 -04:00
Jonathan Belcher baead063c6 Fixes focus state on DatePicker to match Gutenberg 2018-10-10 10:48:37 -04:00
Jonathan Belcher 136a53dd0f Remove link to P2 2018-10-10 10:45:31 -04:00
Jonathan Belcher 98a3d68820 Adds GitHub templates to ensure good issue and PR descriptions 2018-10-10 10:33:38 -04:00
Jonathan Belcher a947d304dc Reafctors code to vanila js and removes jQuery 2018-10-10 10:24:57 -04:00
Kelly Dwan 1351997eef TableCard: Add search to table header (https://github.com/woocommerce/woocommerce-admin/pull/495)
* Add label override options to TableCard

* Add search input to the tableHeader

* Style search in table header
2018-10-10 10:12:00 -04:00
Justin Shreve 5a6749b15c Make tabular data independent of chart interval (https://github.com/woocommerce/woocommerce-admin/pull/483)
* Make Tabular data independent of Chart Interval

* Make table and summary numbers placeholders independent of chart
2018-10-10 09:57:16 -04:00
Claudio Sanches 9dbc59d095 Merge pull request woocommerce/woocommerce-admin#464 from woocommerce/add-notice-tables
Admin Notes: Add CRUD and Data Stores
2018-09-28 12:38:26 -03:00
David Levin 814e378025 Merge pull request woocommerce/woocommerce-admin#490 from woocommerce/update/empty-content
Update Empty Content SVG
2018-09-27 18:39:54 -07:00
David Levin 1178802ca0 Clean up SVG code 2018-09-27 15:41:12 -07:00
David Levin b29dbdb073 Update empty content SVG 2018-09-27 15:33:31 -07:00
Allen Snook e5e175cfab Fix static visibility, textdomain and use of JSON_FORCE_OBJECT 2018-09-27 10:48:25 -07:00
Allen Snook db7456ae55 Add comments for the types and statuses 2018-09-27 09:28:15 -07:00
Allen Snook cb7a5b3607 PHPCS all the things 2018-09-27 09:28:15 -07:00
Allen Snook 677c205ad2 Remove interface for this PR (actions will be hooked up later);
persist actions given during creation through to the db
2018-09-27 09:28:15 -07:00
Allen Snook 9f7ffa08a9 Make types and statuses easier for plugins to access 2018-09-27 09:28:15 -07:00
Allen Snook a930293c43 Improve prop validation, especially date handling 2018-09-27 09:28:15 -07:00
Allen Snook 10c01a6165 Change data store slug to singular to match the rest of WC;
change dismissible note to update type;
remove unwanted version phpdoc
2018-09-27 09:28:15 -07:00
Allen Snook 4cca18bd30 Remove REST file from this commit (it will go in a separate PR) 2018-09-27 09:28:15 -07:00
Allen Snook 4d8dfea84c Break out separate note and notes classes for clarity 2018-09-27 09:28:14 -07:00
Allen Snook 45eeb57b62 Add CRUD and Data Stores for Admin Notes 2018-09-27 09:28:14 -07:00
David Levin 83d871cf6f Merge pull request woocommerce/woocommerce-admin#487 from woocommerce/update/chart-inerval-select-alignment
Update chart interval select alignment
2018-09-27 09:07:49 -07:00
Claudio Sanches d8503ef720 Merge pull request woocommerce/woocommerce-admin#462 from woocommerce/fix/440
Added PHP tests
2018-09-27 12:31:36 -03:00
Claudio Sanches d672a65e1f Merge pull request woocommerce/woocommerce-admin#461 from woocommerce/fix/453
Casted numeric values to floats before performing arithmetic operations.
2018-09-27 12:29:29 -03:00
David Levin aeac3a2e30 Update chart interval select alignment 2018-09-26 15:15:16 -07:00
Kelly Dwan 468bde5147 Components – Search: Pass through aria label props (https://github.com/woocommerce/woocommerce-admin/pull/484)
* Pass aria label props through to search input

* Update the search example in devdocs
2018-09-26 13:13:28 -04:00
Kelly Dwan 5dc1addbf8 Build: Update i18n generation to combine JS + PHP translations (https://github.com/woocommerce/woocommerce-admin/pull/481)
* Generate the PHP translations file from the POT file after building the project

* Remove unused tasks

* Update i18n task to generate JS pot file, then convert that to PHP, then run grunt php pot generation

* Update docs

* Pipe babel file output to null, not entire output of command

Helps with debugging the babel command itself
2018-09-26 10:23:55 -04:00
Albert Juhé Lluveras 3e3dbad408 Update chart header layout according to design (https://github.com/woocommerce/woocommerce-admin/pull/476)
* Update chart header layout according to design

* Add RTL support
2018-09-26 14:17:45 +02:00
Albert Juhé Lluveras 80449c6c57 Make tooltip position be relative to the hovered elements instead of the mouse (https://github.com/woocommerce/woocommerce-admin/pull/471)
* Make tooltip position be relative to the hovered elements instead of the mouse

* Set tooltip margin to 24px to match CSS 'gap-large'

* When focusing a bar with value 0, set the target node to its parent so the tooltip is displayed next to it

* Make sure 'mouseout' event is not triggered when hover the tooltip box

* Make sure the tooltip is never rendered too much to the left/top of the chart

* Get the size of the tooltip box from the DOM when it's available

* Minor fixes
2018-09-26 14:17:29 +02:00
Albert Juhé Lluveras 5649b6b1e2 Use 'H' component for chart header (https://github.com/woocommerce/woocommerce-admin/pull/480)
* Use 'H' component for chart header

* Set 'Section' component below the 'H'
2018-09-26 09:20:29 +02:00
Kelly Dwan e2aa414f4f Add `cross-env` to allow building on Windows (https://github.com/woocommerce/woocommerce-admin/pull/473) 2018-09-25 16:50:51 -04:00
Albert Juhé Lluveras 29cfde2ddd Fix activity panel tabs misaligned in Chrome and Safari (https://github.com/woocommerce/woocommerce-admin/pull/478) 2018-09-25 22:34:30 +02:00
Albert Juhé Lluveras 0088581fcb Fix: chart legend was not visible at 1340px width (https://github.com/woocommerce/woocommerce-admin/pull/472) 2018-09-25 20:19:32 +02:00
Albert Juhé Lluveras 1900bb0917 Improve charts accessibility (https://github.com/woocommerce/woocommerce-admin/pull/421)
* Add aria roles to chart elements

* Make individual points (in line charts) and individual bar (in bar charts) focusable

* Remove methods which are never used

* Reduce the number of parameters required by functions that display/hide the tooltip

* Use tooltipFormat for accessibility dates

* Rename 'formatVoiceDate' function to 'getTooltipDate'

* Use string literals for aria-label

* Remove table role which was no longer needed

* Add aria-hidden to X-axis in charts

* Remove 'key' from points/bar aria-label in charts

* Set different ARIA properties depending on chart mode (time or item comparison)

* Label should default to an empty string instead of a 0

* Use date format from params instead of hardcoded
2018-09-25 11:42:08 +02:00
Paul Sealock d9e47518f9 Merge pull request woocommerce/woocommerce-admin#454 from woocommerce/add/statuses-api-request
AdvancedFilters: Add request for orders statuses
2018-09-25 11:43:34 +12:00
Paul Sealock 58195911a7 AdvancedFilters: Add request for orders statuses 2018-09-25 11:39:47 +12:00
Peter Fabian 28c09248df Added remaining test files. 2018-09-24 19:46:37 +02:00
Peter Fabian d997e280b2 Added missing data update triggers. 2018-09-24 19:16:10 +02:00
Peter Fabian e318463dd5 Updated the before_script instructions to correctly install node and print out version. 2018-09-24 18:50:00 +02:00
Peter Fabian ef72b7af2c Use node version 8. 2018-09-24 18:25:06 +02:00
Peter Fabian c368e44ff3 Updated language domain. 2018-09-24 17:56:43 +02:00
Peter Fabian cb50f79131 Plugin installation should not be needed in bootstrap, as it happens in the installation script. 2018-09-24 17:49:21 +02:00
Peter Fabian eed4b424e6 Updated language domain. 2018-09-24 17:46:41 +02:00
Kelly Dwan 62276fb361 Add visual component docs from markdown examples (https://github.com/woocommerce/woocommerce-admin/pull/470)
* Remove content from README, leaving only the example

* Rename edited READMEs

* Add a devdocs page rendering from markdown example files

* Add more components to devdocs

* Add the rest of the component examples

* Add navigation to single components, show generated readme on single component view

* Style devdocs like calypso

* Split devdocs into two columns at “desktop” sizes

* Update segmented selection example

* Update link

* Add header to avoid notices error
2018-09-24 11:36:35 -04:00
Peter Fabian 670436ac13 PHPCS fixes. 2018-09-24 17:24:08 +02:00
Kelly Dwan f5dd2559db Documentation: Move topic READMEs into docs for discoverability (https://github.com/woocommerce/woocommerce-admin/pull/469)
* Move header/row documentation into the component, so it can be rendered in the external docs

* Move project READMEs into docs folder for exposure in docs site

* Regenerate docs, generate component folder sidebar with component list

* Update format of CSS docs
2018-09-24 11:22:14 -04:00
Peter Fabian dc858b522a Update dependencies installation for testing, corrected db prefix. 2018-09-24 16:26:04 +02:00
Albert Juhé Lluveras 31289e8c82 Transpose and update format of chart tooltip dates (https://github.com/woocommerce/woocommerce-admin/pull/467)
* Fix dates transposed in revenue chart

* Update date format in revenue chart tooltip labels

* Load point label date formats from lib/date

* Pass point label format as a prop to the chart component
2018-09-24 13:11:18 +02:00