In their Week in Review page, a user can see items they have worked on since their last update
Closed this issue · 1 comments
hpjaj commented
Background
When a user visits their WIR page, if the WIR is already built, it returns it, and all of its already associated stats. If the WIR is not yet built, it builds it based of all that stats that are currently in our db (for the week in question).
In the former case, where the WIR already exists, we need a way for a user to see any new stats that have popped up, since their last visit. Here is an example:
- The user logs into their WIR page for the first time this week, on Wednesday
- Since this is their first time visiting the page this week, they do not yet have a WIR
- So we create one for them, with all of their activity from Monday - Wednesday
- Then they do more work during the week
- Then they visit their WIR page again on Friday
- Since they already have a WIR for this week, we return that; however, they have new work since Wednesday
- We want to show them a diff of their new statistics that are:
- not in their current WIR already
- have occurred since Wednesday
In a follow up story, we will give the user the ability to select one/many of these "new" stats, and add them to their WIR.
In another follow up story we could also create a "Rebuild your WIR" type button that deletes their current WIR, and rebuilds it based on the current datetime.
Definition of Done
- In the Week in Review page, the right hand column should contain a list of available stats that:
- are not currently in the selected week's WIR
- and have occurred since the most recent stat's
source_udpated_at
timestamp - occurred before the end date of the current selected week
hpjaj commented
Decided not to go this direction