PinewoodPip / Giickos

0 stars 0 forks source link

Statistics functionality #16

Open PinewoodPip opened 1 year ago

PinewoodPip commented 1 year ago

Statistics UI is complete, but needs functionality. By coincidence, the 6 stats shown in the mockup are divided into 2 stats for each major feature. Maybe we could split up the work on them, so the person most familiar with each system is in charge of implementing each. image

For implementing this, perhaps we could have a StatisticsManager that delegates gathering the statistics to the other modules via an interface method that returns a list of Statistics, passing the date range as a parameter. This way each module (tasks, bamboo garden, timer) would be responsible for providing its stats, by implementing the interface and registering itself as a stats provider to the StatisticsManager.