about summary refs log tree commit diff
path: root/scratch/habit-screens/client/src/State.elm
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-10-11T13·58+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-10-11T13·58+0100
commit1c8a8f5d2c2b9a20f679fa3bead491948571d5f2 (patch)
tree3410237af2642e1a0a29ad761fef682dcb9e829a /scratch/habit-screens/client/src/State.elm
parentea0cd01e186a0bdd9008b02e6945cefb32b6f415 (diff)
Expand Habit type
Include:

- habitType: Daily, Weekly, Yearly... what's the trigger?
- minutesDuration: Estimation of how long it'll take to complete
Diffstat (limited to 'scratch/habit-screens/client/src/State.elm')
-rw-r--r--scratch/habit-screens/client/src/State.elm14
1 files changed, 10 insertions, 4 deletions
diff --git a/scratch/habit-screens/client/src/State.elm b/scratch/habit-screens/client/src/State.elm
index 3369d843ffbe..c5cdadf3afa0 100644
--- a/scratch/habit-screens/client/src/State.elm
+++ b/scratch/habit-screens/client/src/State.elm
@@ -22,13 +22,19 @@ type View
 
 
 type HabitType
-    = Daily
-    | Weekly
-    | Yearly
+    = Morning
+    | Evening
+    | DayOfWeek
+    | Payday
+    | FirstOfTheMonth
+    | FirstOfTheYear
 
 
 type alias Habit =
-    String
+    { label : String
+    , habitType : HabitType
+    , minutesDuration : Int
+    }
 
 
 type alias Model =