Commit Graph

7290 Commits

Author SHA1 Message Date
Mike Jolley 3a31bd10fd Edit text nodes 2018-06-07 12:55:40 +01:00
Peter Fabian cc2368a763 Code review updates. 2018-06-07 13:12:53 +02:00
Mike Jolley 96e612ebdd Update readme file 2018-06-07 12:11:40 +01:00
Boro Sitnikovski e7ae24135e Merge pull request woocommerce/woocommerce-beta-tester#36 from woocommerce/tweak/pre-release-information
Initial implementation for including additional pre-release information
2018-06-07 12:10:24 +02:00
Boro Sitnikovski 8e8f2389aa Wrap notes in autop and make_clickable 2018-06-07 12:10:11 +02:00
Boro Sitnikovski 0862d365e7 Use hour in seconds 2018-06-07 11:24:38 +02:00
Boro Sitnikovski b27c5022ab Don't invoke singleton on the very same class 2018-06-07 11:17:45 +02:00
Boro Sitnikovski b9f15ac1f6 Still include new tab in case description is not set 2018-06-07 10:55:37 +02:00
Boro Sitnikovski 8447cdbf3d Initial implementation for including additional pre-release information 2018-06-07 10:52:33 +02:00
Peter Fabian e01792d90a Fixed a mistake in merge. 2018-06-06 23:21:58 +02:00
Peter Fabian 80b19f5a47 Switched from raw wp options to settings from beta tester class. 2018-06-06 23:20:40 +02:00
Peter Fabian 3e75307f33 Merge branch 'master' into add/version-picking 2018-06-06 23:19:25 +02:00
Peter Fabian 68d1f3898f Fixed formatting error introduced by editing on GitHub. 2018-06-06 18:32:19 +02:00
Peter Fabian 06e92b78e9 Merge branch 'master' into add/version-picking 2018-06-06 18:30:41 +02:00
Peter Fabian 45a7658c1f Added Backbone modal to switching versions. 2018-06-06 18:26:48 +02:00
Mike Jolley ac0b56e6cc auto_update_plugin filter 2018-06-06 16:18:34 +01:00
Mike Jolley 04946ed0a4 Add settings 2018-06-06 16:14:32 +01:00
Claudio Sanches 7a17bc4a01 Merge pull request woocommerce/woocommerce-beta-tester#33 from woocommerce/update/channel-settings-radio
Use radio inputs for settings
2018-06-06 11:27:31 -03:00
Mike Jolley 814b587ad7 Use radio inputs 2018-06-06 15:14:27 +01:00
Peter Fabian ee0b9a6db1 Merge branch 'master' into add/version-picking 2018-06-06 15:52:26 +02:00
Boro Sitnikovski 42033eefd7 Merge pull request woocommerce/woocommerce-beta-tester#32 from woocommerce/tweak/version-switch-modal
Initial implementation for version switch modal
2018-06-06 15:35:23 +02:00
Boro Sitnikovski feda5ad5d2 Get WC version programmatically by using the constant 2018-06-06 15:35:00 +02:00
Mike Jolley 1fd5e7aa7f Merge pull request woocommerce/woocommerce-beta-tester#30 from woocommerce/feature/18
Display notices to install and enable WooCommerce
2018-06-06 14:34:01 +01:00
Mike Jolley 8e028c3b6c Update translation string 2018-06-06 14:33:41 +01:00
Boro Sitnikovski 3040c55667 Correct docblock 2018-06-06 14:32:49 +02:00
Peter Fabian a5775ba5e8 PHPCS updates and wording update. 2018-06-06 14:30:25 +02:00
Boro Sitnikovski 384f1cfc98 Merge branch 'tweak/version-switch-modal' of github.com:woocommerce/woocommerce-beta-tester into tweak/version-switch-modal 2018-06-06 14:28:42 +02:00
Boro Sitnikovski 56a5827451 Address PR comments 2018-06-06 14:28:24 +02:00
Peter Fabian 8614a8d33e Added link to version pick from admin toolbar. 2018-06-06 14:10:50 +02:00
Boro Sitnikovski b31d24aadf Merge branch 'master' into tweak/version-switch-modal 2018-06-06 13:29:52 +02:00
Peter Fabian 264055dfe2 Merge branch 'master' into add/version-picking 2018-06-06 13:02:22 +02:00
Peter Fabian 199d34a32a Moved version picker to its own class, added to Tools menu. 2018-06-06 12:58:57 +02:00
Peter Fabian fe3f84b313 Merge pull request woocommerce/woocommerce-beta-tester#19 from woocommerce/tweak/use-wporg-for-download
Use WordPress.org for downloading WooCommerce
2018-06-06 12:53:55 +02:00
Boro Sitnikovski d5c4f794c6 Fix another TODO to include admin styles for the modal 2018-06-06 10:25:27 +02:00
Boro Sitnikovski 35ad51456c Fix TODO for minification 2018-06-06 10:21:10 +02:00
Boro Sitnikovski 2f59a976d5 Move JS file 2018-06-06 10:16:28 +02:00
Boro Sitnikovski d5814c118d Fix code styles 2018-06-06 10:07:45 +02:00
Boro Sitnikovski a8f7279dfd Initial implementation for version switch modal 2018-06-06 10:02:45 +02:00
Peter Fabian b2e7016735 Initial code to create a list of versions based on wp.org API. 2018-06-06 00:46:22 +02:00
Boro Sitnikovski 845279a1d3 Remove unnecessary ob_start call 2018-06-05 23:52:31 +02:00
Boro Sitnikovski b750c96c2a Don't check against versions higher than latest version 2018-06-05 23:46:34 +02:00
Boro Sitnikovski b0bae55ce1 Don't break as we need to return the latest beta/rc candidate (assume the versions array is ordered) 2018-06-05 23:22:45 +02:00
Boro Sitnikovski c1c73611fd Get latest pre-release by comparing against (beta/rc) versions higher than latest release 2018-06-05 23:18:07 +02:00
Claudio Sanches 832ee72eaf Display notices to install and enable WooCommerce 2018-06-05 16:45:06 -03:00
Claudio Sanches add146aee1 Typo 2018-06-05 16:04:11 -03:00
Claudio Sanches 9f55a1d8b2 Merge branch 'master' into improve/github-ticket-content 2018-06-05 16:02:47 -03:00
Claudio Sanches 2a8e7eda19 Fixed wrong variable 2018-06-05 15:22:51 -03:00
Claudio Sanches ab186e05f2 Improve how environment data is generated 2018-06-05 15:15:16 -03:00
Claudio Sanches 2da5e342e0 Fixed coding standards 2018-06-05 14:36:09 -03:00
Claudio Sanches 2f4c497913 Check if WC_Admin_Status exists before load admin bar 2018-06-05 14:21:23 -03:00
Claudio Sanches 6f95040c5e Removed GitHub URL 2018-06-05 14:08:06 -03:00
Claudio Sanches 1a74266309 Fixed coding standards 2018-06-05 14:06:21 -03:00
Claudio Sanches b1fccabe36 Merge branch 'master' into tweak/use-wporg-for-download 2018-06-05 14:04:53 -03:00
Boro Sitnikovski 10a3a8877d Use correct download URL 2018-06-05 15:31:53 +02:00
Boro Sitnikovski 29b0c483b8 Use WPorg API to get data instead of GitHub 2018-06-05 15:26:59 +02:00
Gerhard Potgieter 1a3799a4e6 Merge pull request woocommerce/woocommerce-beta-tester#20 from woocommerce/tweak/feedback-bar
Feedback bar implementation
2018-06-05 14:19:16 +02:00
Gerhard Potgieter 4a8140e5f9 Merge pull request woocommerce/woocommerce-beta-tester#25 from woocommerce/tweak/submit-gh-ticket
Initial implementation for submitting ticket to GH
2018-06-05 14:17:34 +02:00
Boro Sitnikovski ddd764f2a5 Use esc_js on the javascript part 2018-06-05 14:14:01 +02:00
Gerhard Potgieter 3f702999c2 Lookup version when adding to GH ticket 2018-06-05 14:10:55 +02:00
Gerhard Potgieter bcac545022 Stable, not RC by default 2018-06-05 13:46:34 +02:00
Gerhard Potgieter 5fbefe30c3 Fetch current_channel programatically 2018-06-05 13:45:09 +02:00
Boro Sitnikovski d40391237f Use correct Settings URL 2018-06-05 13:16:58 +02:00
Gerhard Potgieter 9c2346e68b Settings 2018-06-05 13:11:39 +02:00
Boro Sitnikovski cadd814916 Initial implementation for submitting ticket to GH 2018-06-05 12:46:55 +02:00
Gerhard Potgieter 2514f9dd0a Merge pull request woocommerce/woocommerce-beta-tester#17 from woocommerce/add/dev-tools
Dev tools
2018-06-05 11:20:46 +02:00
Boro Sitnikovski ab3c1b1ec3 Update correct text domain and add another todo 2018-06-05 10:49:28 +02:00
Boro Sitnikovski a9b5c8917d Initial commit for feedback bar 2018-06-05 10:37:08 +02:00
Boro Sitnikovski 387b3cf3ea Use WordPress.org for downloading WooCommerce 2018-06-05 10:01:38 +02:00
Paul Sealock b25fdc3f31 DatePicker: Add url support and container 2018-06-05 10:20:25 +12:00
Claudio Sanches 4ea4c0298b Tidy readme.txt 2018-06-04 16:24:37 -03:00
Claudio Sanches 7f681244b6 Clean up code and fixed PHPCS violations 2018-06-04 16:21:02 -03:00
Claudio Sanches d32db88b45 Composer dependencies 2018-06-04 16:06:43 -03:00
Claudio Sanches 333fac5e56 Introduced .editorconfig 2018-06-04 16:06:33 -03:00
Justin Shreve 59cb071aa2 Expand WP notices with header toggle (https://github.com/woocommerce/woocommerce-admin/pull/101)
* Display WP notices behind a button

* Expand WP notices inline when the WP toggle is clicked

* Update setState calls

* Fix string display when only 1 notice is present

* Remove display:none that snuck in during rebase
2018-06-04 10:25:41 -04:00
Robert Elliott a932758fc7 Merge pull request woocommerce/woocommerce-admin#73 from woocommerce/add/d3-base-component
D3: adding base component
2018-06-03 02:15:30 +02:00
Kelly Dwan e0d05ecfa0 Add a label to Count to add context for screen reader users (https://github.com/woocommerce/woocommerce-admin/pull/102)
* Add a label “Total” to the count balloon

* Update README

* Switch to an aria-label, so that we can set a fully translatable string

* Update README to make label default clear
2018-06-01 10:39:48 -04:00
Robert Elliott 8216841490 adding README from Calypso 2018-06-01 16:35:51 +02:00
Kelly Dwan b0bcce86d8 Add CSS naming conventions following Gutenberg’s standards (https://github.com/woocommerce/woocommerce-admin/pull/99)
* Add CSS naming conventions following Gutenberg’s standards

* Update `woo-dashboard` to `woocommerce-layout`

* Update admin notice container to new classname standard
2018-06-01 10:35:18 -04:00
Kelly Dwan a01861d886 Add README for `useFilters`, clean up example filter (https://github.com/woocommerce/woocommerce-admin/pull/100)
* Add README for useFilters

* Remove unused filter example
2018-06-01 10:34:54 -04:00
Kelly Dwan 4191d7adab Add ActivityCard component (https://github.com/woocommerce/woocommerce-admin/pull/86)
* Add an ActivityCard component

* Add font-size mixin, hover-state mixin, and a fake base padding

* Style the ActivityCard

* Style the card image

* Add README

* Address PR feedback

- Add className prop
- children propType is required
- Link to a real image
2018-05-25 15:34:35 -04:00
Justin Shreve e110283997 Set document title (https://github.com/woocommerce/woocommerce-admin/pull/79)
* Set the document title based on header sections

* Set dashboard default title via PHP to avoid a title switch
2018-05-24 12:03:03 -04:00
Justin Shreve 893298aa5d Update Agenda widget to use Count component (https://github.com/woocommerce/woocommerce-admin/pull/81)
* Update Agenda widget to use Count component

* Move font-weight rule to count component
2018-05-24 11:45:32 -04:00
Paul Sealock ee5e314668 Merge pull request woocommerce/woocommerce-admin#63 from woocommerce/add/segmented-selection
Component: add segmented selection
2018-05-24 11:19:21 +12:00
Paul Sealock 631ce420a4 Component: add segmented selection 2018-05-24 11:14:19 +12:00
Kelly Dwan a56437c9c8 Fix React warnings for nested components/className (https://github.com/woocommerce/woocommerce-admin/pull/83)
* Fix class/className warning

* Fix nested `a` warning

* Add note about SCRIPT_DEBUG
2018-05-23 14:01:41 -04:00
Justin Shreve ab4b0b16ed Fix notifications JS error & masterbar menu CSS (https://github.com/woocommerce/woocommerce-admin/pull/74) 2018-05-23 12:40:10 -04:00
Paul Sealock 558d163f35 Sidebar: Add Tabs 2018-05-23 12:42:26 +12:00
Justin Shreve d47454300a Add timeline separator/heading to the sidebar (https://github.com/woocommerce/woocommerce-admin/pull/71)
* Add a timeline separator to the sidebar.

* Rename Timeline/Separator to SidebarHeader
2018-05-22 16:15:00 -04:00
Justin Shreve 7b0d0b1fed Update wp-admin navigation structure (https://github.com/woocommerce/woocommerce-admin/pull/70)
* Updates wp-admin navigation structure: Dashboard is now under WooCommerce, and Analytics is moved visually under WooCommerce

* Fix focus padding issue and make sure arrow displays for the current submenu
2018-05-22 15:59:32 -04:00
Justin Shreve d4ade607d8 Add agenda widget base and related components (https://github.com/woocommerce/woocommerce-admin/pull/57)
* Add agenda widget with accordion

* Add AgendaItem, README, and do some cleanup

* Handle PR Feedback: Rename AgendaAccordion to AgendaGroup, accept an href prop for a non-accordion state. Accept onClick or href for AgendaItem, a11y fixes, fix some typos, update examples & README.

* Address PR Feedback: Rename AgendaGroup to AgenaHeader, use a direct link for href mode, use IconButton instead of Button & Dashicon, pull out link rendering to its own method. Use <Link /> for app links.

* Combine box-shadow focus/hover rule and add transparent background

* Make `count` optional
2018-05-22 11:19:56 -04:00
Robert Elliott 7050868638 d3 base component 2018-05-22 15:00:06 +02:00
Kelly Dwan a8682ccc70 Pin Gutenberg version to 2.9.0 for tests (https://github.com/woocommerce/woocommerce-admin/pull/66)
* Pin Gutenberg to V2.9.0

* Update webpack & Jest config for Gutenberg 2.9.0
2018-05-21 11:26:04 -04:00
Kelly Dwan 8f23630269 Layout: Add structure components & CSS (https://github.com/woocommerce/woocommerce-admin/pull/45)
* Refactor dashboard layout into new Layout components

* Style the new layout

* Use Slot/Fill for the Header component

* Center cards, fixed size for sidebar

* Only set the box-sizing on things within our app

* Make app the full height of the wp-admin frame

* Add styles to show/hide sidebar

* Toggle the sidebar

* Wrap router around entire Layout, use page setting to show/hide sidebar on page

* Fix the styles on show/hide buttons, add title & close button to the sidebar

* Use a min-height on visible sidebars

* Add/update READMEs

* Update space between main content & sidebar
2018-05-18 13:31:08 -04:00
Kelly Dwan 3554c4ef7d Tests: Add Jest with Gutenberg as a npm dependency (https://github.com/woocommerce/woocommerce-admin/pull/43)
* Add Jest testing with Gutenberg as a dependency

* Add test using Enzyme

* Update for “element” moving

Something also must have moved api-request, so we mock that import now
2018-05-16 10:59:03 -04:00
Justin Shreve f8f0464eba Fix CSS reset duplication (https://github.com/woocommerce/woocommerce-admin/pull/56) 2018-05-16 10:42:39 -04:00
Justin Shreve 881598fa30 Fix mobile menu and header padding (https://github.com/woocommerce/woocommerce-admin/pull/52)
* Fixes mobile menu and padding for dash pages

* Handle PR feedback
2018-05-15 15:26:07 -04:00
Justin Shreve e5bb7e556b Add routing capabilities with basic analytics page (https://github.com/woocommerce/woocommerce-admin/pull/44)
* Add routing capabilities with basic analytics page

* Pass query string to child component
2018-05-15 11:06:15 -04:00
Timmy Crawford f37da9deb9 Add languages directory and README. 2018-05-14 14:45:11 -07:00
Kelly Dwan 146547cb1d Components: Add EllipsisMenu component (https://github.com/woocommerce/woocommerce-admin/pull/40)
* Add EllipsisMenu & MenuItem

* Add styles for menu items

* Don’t disable all keyboard interactions

Was breaking tab

* Move EllipsisMenu to client folder

* Clean up unused props & focus state

* Add an unfocusable MenuTitle component

* Update EllipsisMenu exports so that all menu-related components can be pulled from EllipsisMenu

* Make strings translatable

Even demo content should use translation functions :)

* Add README

* Fix arrow position

* Add box-sizing back to global reset
2018-05-14 11:47:42 -04:00
Justin Shreve d7df8ed76e Adds SCSS color variables and breakpoints (https://github.com/woocommerce/woocommerce-admin/pull/39)
* Adds SCSS color variables and breakpoint mixins

* Use webpack to pull in shared CSS

* Move notices reset rule to wpadmin-reset

* Prefix breakpoints, colors, and wpadmin reset
2018-05-14 09:41:30 -04:00
Justin Shreve 1dbf44ef55 Hide notices on woo-dash pages (https://github.com/woocommerce/woocommerce-admin/pull/36) 2018-05-11 13:07:53 -04:00
Justin Shreve d380fd7569 Rename js/src to client (https://github.com/woocommerce/woocommerce-admin/pull/38)
* Rename js/src to client/

* Update the prettier format to only look in client/
2018-05-11 12:13:57 -04:00
Kelly Dwan a629041508 Components: Add a "Card" component (https://github.com/woocommerce/woocommerce-admin/pull/31)
* Add a Card component

* Add basic styling

* Update example card

* `instanceOf` doesn’t work like expected, but we can require a specific component by looking at shape + object.type

* Use module-relative paths for components
2018-05-10 15:23:41 -04:00
Kelly Dwan 73f7284d77 Build Tools: Add precommit/prepush scripts, install if outdated (https://github.com/woocommerce/woocommerce-admin/pull/34)
* Add helper scripts from calypso

* Add the pre-push hook to protect master

* Add required packages

* Update README

* Remove unused package
2018-05-10 15:17:28 -04:00
Justin Shreve 41d9f7c524 Implement header component (https://github.com/woocommerce/woocommerce-admin/pull/26)
* Implements a header component with breadcrumbs

* Handle PR Feedback. Also moves admin URL to an object, and adds a README

* README: Card --> Header typo
2018-05-10 14:35:55 -04:00
Kelly Dwan 9d4bd0961d Add jsx-a11y eslint rules (https://github.com/woocommerce/woocommerce-admin/pull/33) 2018-05-10 14:20:20 -04:00
Kelly Dwan 35d863bfe4 Move use-filters into `higher-order` folder 2018-05-10 12:41:01 -04:00
Kelly Dwan 03aca9f716 Update webpack config so we can use src-relative paths 2018-05-10 12:35:46 -04:00
Kelly Dwan 9a45e480c7 Fix woocommerce/woocommerce-admin#22 – remove foxhound globals from eslintrc 2018-05-09 12:55:09 -04:00
Kelly Dwan 19733a3049 Fix dependencies of scripts & styles 2018-05-08 10:40:39 -04:00
Kelly Dwan db74d56587 Update packages 2018-05-07 11:19:43 -04:00
Kelly Dwan ea2d3e8d5c Update build destinations for JS and CSS, including global library namespace 2018-05-07 11:10:42 -04:00
Kelly Dwan 612925adc7 Merge pull request woocommerce/woocommerce-admin#12 from woocommerce/update/dashboard-layout-cleanup
Housekeeping: Clean up files, update webpack config
2018-05-07 10:59:13 -04:00
Kelly Dwan 68f6816c01 Merge pull request woocommerce/woocommerce-admin#5 from woocommerce/add/requirements-checking
Check for Gutenberg & WooCommerce before loading the plugin files
2018-05-07 10:56:13 -04:00
Justin Shreve 17f9db1a96 Add optional file parameter to woo_dash_dir_path (https://github.com/woocommerce/woocommerce-admin/pull/11) 2018-05-07 09:38:13 -04:00
Kelly Dwan 658281ea81 Update webpack for more possible future entry points 2018-05-04 15:54:44 -04:00
Kelly Dwan 810711993f Add example “activity” chart to the sidebar 2018-05-04 15:08:03 -04:00
Kelly Dwan 959d47fa49 Update layout to have a sidebar 2018-05-04 15:08:03 -04:00
Kelly Dwan 9dbcf8570c Remove filters from base dashboard component 2018-05-04 15:08:03 -04:00
Kelly Dwan 7b06b4abca Simplify filter example 2018-05-04 15:08:03 -04:00
Kelly Dwan 03e53e1a1e Move “numbers” widget to a new file 2018-05-04 15:08:03 -04:00
Kelly Dwan ed053190b9 Fix Gutenberg detection condition 2018-05-04 14:54:50 -04:00
Kelly Dwan 5e37d798af Add check for `GUTENBERG_DEVELOPMENT_MODE` 2018-05-04 10:46:16 -04:00
Kelly Dwan 4cc9ed1961 Check for Gutenberg & WooCommerce before loading the plugin files 2018-05-03 13:55:53 -04:00
Kelly Dwan e8f9a5faed PHPUnit: Ensure Gutenberg is loaded
Also adds the config from WC’s phpunit file
2018-05-03 13:36:36 -04:00
Justin Shreve 5ab120c910 Add the ability to use withAPIData (https://github.com/woocommerce/woocommerce-admin/pull/2) 2018-05-03 10:15:36 -04:00
Justin Shreve 4718475e8a Add Gutenberg & WooCommerce prereq to the README (https://github.com/woocommerce/woocommerce-admin/pull/1)
* Add Gutenberg prereq to the README

I installed `woo-dash` without Gutenberg installed and ended up getting a fatal error. We should probably fix that as well/handle that better, but if we are going to rely on Gutenberg for the feature plugin we should mention it in the README.

* Add mention of WooCommerce as a prereq
2018-05-02 14:28:59 -04:00
Kelly Dwan 05dacbe212 Add an admin page, build a simple component + filters 2018-04-19 16:40:32 -04:00
Kelly Dwan dbe06969fe Add build process 2018-04-17 19:50:28 -04:00
Kelly Dwan 555da60b01 Initial commit of plugin scaffold 2018-04-17 17:04:17 -04:00
Mike Jolley cb3dcf5eae Fix URls and folder naming
Closes woocommerce/woocommerce-beta-tester#6
Closes woocommerce/woocommerce-beta-tester#7
2017-06-19 15:28:17 +01:00
Mike Jolley 9e81908d52 Updated API URL. 2017-03-17 14:52:43 +00:00
Mike Jolley 0eff9df60f Get latest prerelease 2016-01-06 11:32:10 +00:00
Mike Jolley f4bb640d0a 4.4 is fine 2015-11-26 15:44:00 +00:00
Caleb Burks 69bdf85d2f Contributors update 2015-08-27 06:38:06 -05:00
Allen Snook 773425e7bc Test for woocommerce installation before attempting anything 2015-07-22 15:34:43 -07:00
Claudio Sanches c75307a785 Updated the readme.txt 2015-07-15 16:53:30 -03:00
Mike Jolley 3915c1e29f And its alive! Working with new tag names. 2015-07-15 13:31:06 +01:00
Mike Jolley ad1e91545b More work - does not work yet due to version names 2015-07-14 19:31:22 +01:00
Mike Jolley fbb3c906c2 WooCommerce Beta Tester first bunch of code (untested) 2015-07-14 18:35:57 +01:00