jshirley / tdp

TDP API & Public Issue Tracker
2 stars 0 forks source link

Refactor Email Templates and Views #1

Open jshirley opened 11 years ago

jshirley commented 11 years ago

Emails should present the same information as the dashboard displays, and even more.

This is going to require a bit of a refactor to the email templating system, as I want to have the following support:

  1. If a user only has a single goal, show a detailed breakdown of that goal.
  2. If a user is inconsistent, do not show a goal table, instead show the activity on those goals
  3. If a user is consistent, show the full table, as it is presented in the embed view (with notes potentially)
  4. If a user is at risk of losing the emails (7 days of inactivity), notify them of that and ask them if they either want help or to contact me for help.

This is a larger effort than just fixing the streaks and background tinting, but I'll be happier with that.

jshirley commented 11 years ago

The full goal table is now refactored, I had to do a lot of yak shaving to improve the email handling code but we're getting closer!

Will incrementally release after a bit more testing.