-
Notifications
You must be signed in to change notification settings - Fork 0
Notes
Bas Oppenheim edited this page Jan 30, 2015
·
1 revision
- table view-based 'log'-tab now works
- 'log'-tab variable selection sends variable to the detail page
- InAppVar class for individual variables
Reserved for finishing a paper in a different course
- code refactoring
- individual Happiness scores are saved to a Property List
- graph for Happiness variable in VariableViewController (previously VarViewController), showing all input data
- VariableViewController is theoretically independent of variable
- Steps (Health Kit) added to the Log list
- LogViewController dynamically shows variables with data
- Experiments with a timer for timing Pomodoro's
- code refactoring
- DailyScores.plist: second property list to record one score per variable per day
- may either be an average (e.g. for Happiness) or a total (e.g. for Steps)
- HappinessScores.plist will be used to import all in-app input data
- Steps (Health Kit) removed from the Log list
- new Import ViewController to import Health Kit data:
- display average Sleep (Health Kit) start time for the past week
- HappinessScores.plist is now InputScores.plist
- PListFunctions: separate class for all functions that read/write to either .plist
- resulting in heavy code refactoring
- saving and reading code is now extremely easy. May be possible to work with data that's directly iOS8-shared from other apps
- standard configuration of property lists are now:
- xxx.plist
- variable1 (e.g. @"Happiness")
- saveKey1 (number of saveKey e.g. @"00000012" for InputScores, or date of day for DailyScores e.g. @"20150122")
- @"value"
- NSNumber containing the input-value
- @"time"
- NSDate with date&time of the input
- @"value"
- saveKey1 (number of saveKey e.g. @"00000012" for InputScores, or date of day for DailyScores e.g. @"20150122")
- variable1 (e.g. @"Happiness")
- xxx.plist
- DebugViewController: ViewController to quickly fill a .plist with made-up scores
- button to add values for yesterday and the day before yesterday to DailyScores' Happiness-dict
- VariableViewController always shows the latest data
- LogViewController:
- always shows the latest number of available variables
- is now sectioned for in-app data vs other apps' data
- WaterViewController: ViewController to input how much water/fluid you drank (works in Log)
- import Steps in ImportViewController (works in Log but 2014-12-29 to -31 are not saved right)
- Rethought PListFunctions class. Based on this:
- Each .plist file (InputScores & DailyScores) are now handled by separate classes, which are practically full rewrites of the original PListFunctions, and contain basic similarities to each other:
- InputScores-class and DailyScore-class each contain (inter alia):
- one write-function
- several read-functions
- a syncInputDict function to be used in all willViewAppear functions, to ensure the latest Dict is in use
- InputScores-class and DailyScore-class each contain (inter alia):
- rethinking and refactoring of code where PListFunctions was in use
- New Statistics class. Contains (for now) a working method to calculate Pearson's correlation
- Considered colors for Log table
- CorrelationsViewController: a practically ready-to-ship Analysis view
- Updated WaterViewController UI to level of beautiful
- Same for PomodoroViewController
- 'Happiness' is now 'Mood' everywhere
- Finally fixed the saveKey date bug where for the last days of the year it got the year wrong
- simplified CorrelationsViewController even more: more rigorous checking if variable would do better in the notEnoughData section, and variable couples may also enter this section
- Added an option in DebugViewController to add water- & pomodoros input
- First steps towards having the pomodoro-tracker quasi-'continue in background'
- Actually got the pomodoro-tracker backgrounding to work, lots of conceptualization.
- With this came a lot of refactoring
- Separated the timer from the PomodoroViewController, now its own class: PomodoroBrain
- VariableViewController graph:
- option to choose the time period you want to view (auto-saved and applied to other variables)
- labels on the Y, Bezier-curves instead of raw-data lines
- animation only when opening the page, sped-up
- Separated the water intake progress bars into their own class, WaterProgress
- MoodViewController:
- Visual update: how-do-you-feel buttons can now be displayed as emoticons, numbers or labels, using a new setting (auto-saved)
- Separated the mood buttons into their own class, MoodScoreButton, containing properties for associated values and titles for different modes
- Separated the label showing the time of button-press into its own class, MoodTimeLabel
- Lots of refactoring