Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

#151980458 Actionable Analytics #15

Merged
merged 1 commit into from
Nov 8, 2017

Conversation

oahray
Copy link
Contributor

@oahray oahray commented Nov 3, 2017

What does this PR do?

Add an analytics page containing marketplace data and accessible only to admin.

Description of Task to be completed?

  • Create a new plugin acccessible from the admin dashboard that routes to an analytics page
  • Add meteor packages Highcharts, mrt:moment and Pikaday
  • Add data visualization via charts
  • Analytics page should contain the following:
    • A tabulated summary of Total Sales, Orders (total made, and total cancelled)
    • Charts showing Sales and Orders dynamics
    • Most profitable products (based on turnover)
    • Most popular products (based on quantity sold)
    • Product Comparison

How should this be manually tested?

Log in as Admin and navigate to the statistics page from the admin dashboard. You should see tabular and graphical statistics of sales, orders, and products.

Any background context you want to provide?

A more visual format for data allows the admin to have a more quick and detailed guide to analytics regarding the shop and products. This method of data presentation will add more value by driving decisions made by the admin on future business related decisions.

What are the relevant pivotal tracker stories?

https://www.pivotaltracker.com/story/show/151980458

Screenshots (if appropriate)

screen shot 2017-11-07 at 11 01 57 am

screen shot 2017-11-07 at 11 02 20 am

@oahray oahray force-pushed the feature/151980458/actionable-analysis branch 2 times, most recently from 0922023 to ae62b67 Compare November 5, 2017 19:18
@oahray oahray changed the title Feature(Analytics): Actionable Analytics #151980458 Actionable Analytics Nov 5, 2017
@oahray oahray force-pushed the feature/151980458/actionable-analysis branch from ae62b67 to f7ecdaf Compare November 7, 2017 10:06
Copy link
Collaborator

@femisenjobi femisenjobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I think we can use a better design where the date filter is not orphaned on the page. DM'ed you some ideas
  • Thanks for putting the table in a container. It's good to make use of some whitespace in your design.
  • getAnalytics seemed too bulky for a single function
  • added a comment for the redundant calculation, just put the final answer

*/
function daysDifference(date1, date2) {
// a Day represented in milliseconds
const oneDay = 1000 * 60 * 60 * 24;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to do this calculation here, especially since you already commented. Just put the final value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Fixed.

- Create a new plugin acccessible from the admin dashboard that routes to an analytics page
- Add meteor packages Highcharts, mrt:moment and Pikaday
- Add data visualization via charts
[Finishes #151980458]
@oahray oahray force-pushed the feature/151980458/actionable-analysis branch from f7ecdaf to ba1b879 Compare November 7, 2017 13:22
@femisenjobi femisenjobi merged commit 6cca629 into development Nov 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants