Commit Graph

130 Commits

Author SHA1 Message Date
Daniel Rey López 08417da553 Allow each page to specify their breadcrumbs without having to render the Header component (https://github.com/woocommerce/woocommerce-admin/pull/2491)
* Simplify Header rendering, remove the use of react-slot-fill

* Remove the useless "/analytics" route

* Move all the <Header> renders to the new, declarative way of specifying breadcrumbs

* Re-render the Layout when a report is added using the REPORTS_FILTER, since that affects the breadcrumbs output

* Fix the base breadcrumb link and breadcrumbs on embedded pages

* Expanded Layout.propTypes to specify the breadcrumbs' shape
2019-07-05 09:15:49 +01: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
Paul Sealock 3068013095 remove render404 2019-07-03 11:38:11 +12:00
Jeff Stieler bdfe3520c3 Send tracks event for snoozing store alerts. 2019-07-02 09:18:52 -06:00
Paul Sealock 4032c09e67 update id names 2019-07-01 12:33:52 +12:00
Justin Shreve aed4ea63b4 Server side route handling 2019-07-01 12:22:34 +12:00
Job b317e43869 Fixes issue with alerts on mobile (https://github.com/woocommerce/woocommerce-admin/pull/2537) 2019-06-28 10:46:17 -07:00
Daniel Rey López 95c074fbc6 Add a filter to allow other extensions to register new WC-Admin-powered pages (https://github.com/woocommerce/woocommerce-admin/pull/2492) 2019-06-27 00:00:23 +01:00
Daniel Rey López 2ce8c97c48 Remove the "wpClosedMenu" page setting (https://github.com/woocommerce/woocommerce-admin/pull/2441) 2019-06-24 08:43:19 +01:00
Jeff Stieler 5a49991cb1 Trigger a note action on button click. 2019-05-31 09:59:20 -06:00
Jeff Stieler 0756dd929b Merge pull request woocommerce/woocommerce-admin#2324 from woocommerce/add/admin-note-without-link
Allow note action URLs to be empty.
2019-05-30 10:42:02 -06:00
Joshua T Flowers 5e8509edd3 Onboarding: Add profiler body class on initial load + respect skipped/completed flags (https://github.com/woocommerce/woocommerce-admin/pull/2300) (https://github.com/woocommerce/woocommerce-admin/pull/2318)
* Add profiler body class on initial load, and respect skipped/complete status.

* Handle PR feedback: Remove unnecessary global, add some todos, added a filter around the next step slug, generalized the is-loading class a bit.
2019-05-28 06:38:01 -04:00
Jeff Stieler 0d9784700c Allow note action URLs to be empty. 2019-05-24 13:05:12 -04:00
Paul Sealock a0ad2f1fa7 Merge pull request woocommerce/woocommerce-admin#2225 from woocommerce/fix/persistedQuery-sidebar
Persisted Queries: Avoid adding to non time related screens
2019-05-24 08:47:06 +12:00
Paul Sealock f9bad3646d Persisted Queries: Avoid non-time related screens 2019-05-24 08:38:52 +12:00
Jeff Stieler f4d9818fc8 Remove unused layout component and export. 2019-05-23 10:38:45 -06:00
Jeff Stieler 9578280423 Move StoreAlerts below screen meta links on embed pages. 2019-05-22 14:59:18 -06:00
Jeff Stieler 225d75e73a Merge pull request woocommerce/woocommerce-admin#2269 from woocommerce/add/primary-notice-actions
Add support for “primary” admin notice actions.
2019-05-22 08:29:18 -06:00
Joshua T Flowers 633177bdea Update Card component to use Muriel design (https://github.com/woocommerce/woocommerce-admin/pull/2252)
* Use Muriel card styling and override card styles in reports

* Add card description prop

* Add isInactive prop and styling to card component
2019-05-22 16:38:25 +08:00
Jeff Stieler db5a1b7348 Add support for “primary” admin notice actions. 2019-05-21 13:22:48 -06:00
Ajay Ghaghretiya 38c40430ef Hide WordPress Upgrade Nag (https://github.com/woocommerce/woocommerce-admin/pull/2213) 2019-05-13 10:58:29 +08:00
Timmy Crawford d51845930a Dashboard: Rename class/feature to remove conflict with legacy dashboard widget (https://github.com/woocommerce/woocommerce-admin/pull/2138)
* Dashboard: Rename class/feature to remove conflict with legacy dashboard class

* Updates per feedback, and fixes.
2019-05-08 09:10:05 -07:00
Justin Shreve 7fc70157c9 WC_Admin_Loader/PHP Refactor + Method to publish core ready features (https://github.com/woocommerce/woocommerce-admin/pull/1863)
* Try: Setup plugin to publish core library on npm

* Documentation clean up.

* Handle PR Feedback: Fix notices from happening in WC Core from API usage, fix sidebar dashboard ordering in menu, remove preload function check since we are supporting WP 5+, add a filter for preloading data and move usage to respective feature code, move features to a specific folder for bundiling, fix script translations.

* Fix code comment on analytics preload

* Continue refactoring code, and make it possible to launch 'embedded' features via the process as well.

* Fix note hook

* Fix note load order

* Address PR feedback: Fix class name, load leaderboard endpoint

* Remove example code prior to merge
2019-04-11 14:31:31 -04:00
Albert Juhé Lluveras baf3bc3e28 Scroll to top only when URL changes (https://github.com/woocommerce/woocommerce-admin/pull/1989) 2019-04-08 19:53:28 +02:00
Albert Juhé Lluveras 7efd81815f Scroll to top when navigating pages (https://github.com/woocommerce/woocommerce-admin/pull/1958) 2019-04-01 19:02:39 +02:00
Jeff Stieler 6ab3f0b9f9 Style admin note action button and snooze dropdown. 2019-03-20 08:52:27 -06:00
Jeff Stieler 276a6e6744 Hook up “remind me later” button.
Update the admin note status and date_reminder fields.
2019-03-20 08:52:27 -06:00
Jeff Stieler 738ce59e4d Add “remind me later” dropdown button to snoozable admin notes. 2019-03-20 08:52:27 -06:00
Paul Sealock c8537970b7 Merge pull request woocommerce/woocommerce-admin#1793 from woocommerce/fix/store-alerts-css-lint
Fix CSS Lint issues in store-alerts CSS
2019-03-14 13:13:07 +13:00
Jeff Stieler bfe5a75e98 Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795)
* Translation call text domain change from “wc-admin” to “woocommerce-admin”.

* Fix .pot file generation.

* Fix errantly closed array item in /revenue/stats controller.

* Rename plugin zip, main file, and repo name to "woocommerce-admin".
2019-03-13 11:14:02 -06:00
Albert Juhé Lluveras 8dd179d551 Fix CSS Lint issues in store-alerts CSS 2019-03-13 11:36:03 +01:00
Justin Shreve 1348245406 Add store notice around processing historical data. (https://github.com/woocommerce/woocommerce-admin/pull/1763)
* Add store notice around processing historical data.

* Cleanup

* Handle PR feedback.

* Clean up `add` logic and add empty content_data. Also add logic to get_notes_count so that we can hide unactioned statuses.

* Add the ability to update a note, and to also mark a status when an alert is clicked.

* Remove mark_actioned call on sync

* add missing todo
2019-03-12 09:13:20 -04:00
Tiago Noronha 762b7d0b0c Revert "Stop API requests when we know no alerts exist"
This reverts commit 0cdaf1bee2.
2019-03-08 16:18:02 +00:00
Tiago Noronha c3ff6fca49 Simplify StoreAlerts component logic 2019-03-08 16:17:48 +00:00
Tiago Noronha 0cdaf1bee2 Stop API requests when we know no alerts exist 2019-03-06 23:04:13 +00:00
Tiago Noronha dd8d1fbb8b Display StoreAlertsPlaceholder while alerts are being loaded 2019-03-06 22:50:47 +00:00
Tiago Noronha 0af40e8214 Add default props and prop types to StoreAlertsPlaceholder component 2019-03-06 22:16:38 +00:00
Tiago Noronha 3493481f01 Add placeholder for StoreAlerts 2019-03-06 21:36:54 +00:00
Tiago Noronha f8e97b8152 Return immediately if no alerts found 2019-03-04 13:52:20 +00:00
Tiago Noronha 416d41279f Update CSS with new alert types 2019-03-01 17:37:51 +00:00
Tiago Noronha 7248d14595 Hook up StoreAlerts component to notes endpoint 2019-03-01 17:20:28 +00:00
Tiago Noronha c5a3a5dea8 Merge pull request woocommerce/woocommerce-admin#1627 from woocommerce/add/115-store-alerts
Adds StoreAlerts component
2019-02-26 23:18:00 +00:00
Tiago Noronha 6fe2b070bc Alert pagination label alignment 2019-02-26 23:10:00 +00:00
Tiago Noronha f1e6c2f3c8 Reduce alert margin on mobile 2019-02-21 23:39:30 +00:00
Tiago Noronha 952ad025a5 Change button from isPrimary to isDefault and adjust color 2019-02-21 23:34:43 +00:00
Tiago Noronha 1910d76425 Small screens styling tweaks 2019-02-21 23:24:01 +00:00
Tiago Noronha d54d9aa05e Fix store alters margin on mobile 2019-02-21 14:26:43 +00:00
Tiago Noronha f22770ce7e Use global Sass variables and add mixin for alert box-shadow 2019-02-21 01:13:54 +00:00
Tiago Noronha c304760629 Add `store-alerts` feature flag 2019-02-21 00:41:00 +00:00
Tiago Noronha 1d864c222c Fix line break 2019-02-20 19:03:08 +00:00