This PR closes out our database functionality, by creating History records whenever an Activity is open for 5 seconds or more. The user can then rate them using the slider, and the time is displayed in seconds, minutes, or even hours (probably won't come to that but it's a safeguard).
Thoroughly test this out by adding records from each activity of varying lengths, rating your satisfaction, check that data persists, and even delete records.
Everything appears to work: the history records time spent on activities used for more than 5 seconds, records can be deleted, and they persist if the app is closed and reopened.
This PR closes out our database functionality, by creating History records whenever an Activity is open for 5 seconds or more. The user can then rate them using the slider, and the time is displayed in seconds, minutes, or even hours (probably won't come to that but it's a safeguard).
Thoroughly test this out by adding records from each activity of varying lengths, rating your satisfaction, check that data persists, and even delete records.