It would be nice if MartPlug ships with some default Dashboard reports, I went ahead and did a last sales block based on this Commerce issue.

Attached is a view export containing this report, it could be used as starting point for discussing which reports should we include and how to place them by default on the Dashboard (as far as I know, Features don't export Dashboard configurations).

Bests!
Javier

CommentFileSizeAuthor
#1 report_sales.view_.txt13.4 KBjavi-er

Comments

javi-er’s picture

StatusFileSize
new13.4 KB

edit: here is the file

javi-er’s picture

Issue summary: View changes

changed text

recidive’s picture

Status: Active » Needs review

@javier_ nice, thanks! I'll review your view code and add to the dashboard feature.

There's already a dashboard context we can use to make the view block visible on the dashboard.

recidive’s picture

Status: Needs review » Needs work

Hello Javier, I've imported the view and it's working great, though there are a few things that needs to be changed.

If you read the first comment on that commerce issue you'll see Ryan saying:

The title is "Orders" but the content is a View of products in the store. If that is indeed the most recent orders, perhaps make it a View with columns showing the Order ID, Customer (first / last name), Total (dollar amount), and Operations (view / edit).

For MartPLug, I think it should be only Order ID, Customer and Total. Order ID linking to view the order, Customer linking to customer profile.

Also, it would be better being a table rather than a list. What do you think? For the view name, let's call it latest_sales.

If you want to go ahead and add this to the dashboard context and feature, and make a patch, I'll review it ASAP.

Thanks!

recidive’s picture

Issue tags: +beta blocker

Tagging.

recidive’s picture

Issue summary: View changes

added link to text