Show the median time of learned cards
Save the median time inside the task and session documents and display those stats in the user history and bonus info. The entry inside the bonus dropdown requires some special highlighting.
task:
- Total time spent in task / number of learned cards
New fields | type |
---|---|
timelineStats.median | Number |
timelineStats.mean | Number |
timelineStats.deviation | Number |
Session:
- Total time spent in tasks / number of tasks
New fields | type |
---|---|
leitner.timelineStats.median | Number |
leitner.timelineStats.mean | Number |
leitner.timelineStats.deviation | Number |
Cardset:
- Total time spent in tasks / number of tasks
New fields | type |
---|---|
leitner.timelineStats.median.normal | Number |
leitner.timelineStats.median.bonus | Number |
leitner.timelineStats.mean.normal | Number |
leitner.timelineStats.mean.bonus | Number |
leitner.timelineStats.deviation.normal | Number |
leitner.timelineStats.deviation.bonus | Number |
Steps:
-
Migrate old data -
Display the new stats inside the user history and bonus info -
Link the median to a modal which displays each individual card time -
Add a sort icon for the bonus user, history and task modal -
Add sort functions for bonus users -
Add sort functions for user history -
Add sort functions for task history
-
-
Update the stats on user submission -
Display median, arithmetic mean and standard deviation in the stats window (With symbols) -
Use the arithmetic mean calculation for the list -
Bump .cards version
Todo:
-
Some LeitnerHistory results of setCardTimeMedian are undefined -
Fix wrong median time calculation -
SonarQube check -
Debug with linux.cards test data