-
Notifications
You must be signed in to change notification settings - Fork 1
Insights Page
The Insights page is a special page of the app. Unlike features like adding Notes or Subtasks are normal stuff that wasn't really complicated to implement. But this Insights stuff was a little hard to get working and required hours of work.
The backend of this feature has been coded to work with Python date objects that will precisely check for what day it is and manage differences between days. Every Monday the user can visit this page so see information about how many tasks they created and completed the previous week. If the user is a new user, then the app takes 7 days to analyze that person. After 7 days the user will be presented with their data. But here a problem rose, if the user opened their account on a Monday then the next Monday they will get their Insights about what they did over the previous week. But if they created their account on some other day, then exactly after 7 days the system will run the backend as a special case. Meaning that the backend will run even if after 7 days the day is not a Monday.
- Every user, regardless of if they have created any tasks this week or not, will be provided with a basic insight that is that they will be able to see how many tasks they have created and completed since the day they joined the app
- Secondly, if the person was productive and created and completed many tasks since the last Monday, then they will also see how many tasks they have created and how many they have actually completed among those.
- Also, if some of the tasks that you created this week had any due dates, and you completed those tasks within the due date (congrats btw) then you will also see how many tasks you have completed this week ON TIME!
- Lastly, the user will also see if they have completed tasks the previous week that they created long ago, that is, before the previous week.
In the future, I might use Matplotlib to plot a pie chart (or any other graph) to represent the user's data.