Skip to content
Bas Oppenheim edited this page Jan 30, 2015 · 1 revision

Week 2

Monday 12th

  • table view-based 'log'-tab now works
  • 'log'-tab variable selection sends variable to the detail page
  • InAppVar class for individual variables

Tuesday 13th

Reserved for finishing a paper in a different course

Wednesday 14th

  • code refactoring

Thursday 15th

  • individual Happiness scores are saved to a Property List
  • graph for Happiness variable in VariableViewController (previously VarViewController), showing all input data

Friday 16th

  • 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

Saturday 17th

  • code refactoring

Week 3

Monday 19th

  • 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

Tuesday 20th

  • 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
  • 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)

Wednesday 21st

  • 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
  • rethinking and refactoring of code where PListFunctions was in use

Thursday 22nd

  • New Statistics class. Contains (for now) a working method to calculate Pearson's correlation
  • Considered colors for Log table

Friday 23th

  • CorrelationsViewController: a practically ready-to-ship Analysis view

Week 4

Monday 26th

  • Updated WaterViewController UI to level of beautiful
  • Same for PomodoroViewController
  • 'Happiness' is now 'Mood' everywhere

Tuesday 27th

  • 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'

Wednesday 28th

  • Actually got the pomodoro-tracker backgrounding to work, lots of conceptualization.
  • With this came a lot of refactoring

Thursday 29th

  • 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

Friday 30th

  • 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