djaodjin / djaodjin-saas

Django application for software-as-service and subscription businesses
Other
564 stars 124 forks source link

Move revenue / financials view backwards and forwards in time #29

Closed rene-armida closed 9 years ago

rene-armida commented 9 years ago

Allow the user viewing the financial revenue graph in the provider admin the ability to move that view forward or back in time. Because the number of months determines the width of the page, it may be best to only allow them to slide the start and end dates, together, forward by N months, instead of allowing them to choose an arbitrary start and end date (and thus, require more horizontal space on the page).

smirolo commented 9 years ago

Perfect. a fixed 12-month trailing view from a sliding date makes the most sense. It should be possible to go forward in the future though (for predictive cash flow analysis).

rene-armida commented 9 years ago

Some more investigation / discussion:

  1. the current page can change its date range simply by adding the ends_at query parameter in the format YYYY-MM-DD HH:MM:SS (urlencoded), e.g. /provider/metrics/?ends_at=2015-01-01+10%3A10%3A10.
  2. we don't want to refresh the entire page, however
  3. move the data from inline markup generated by Django to an API endpoint
  4. change D3 to pull from a JS array instead
  5. build the array via Angular after making API calls
rene-armida commented 9 years ago

Ignoring the desire to expand this feature to the "Plans" page, is there anything left to do on this issue? I think we're ready to close this, yeah, @smirolo ?

smirolo commented 9 years ago

agreed. closed. Thank you!