niblyx-malnus / goals

social task manager for urbit
16 stars 0 forks source link

time tracking #18

Open niblyx-malnus opened 1 year ago

niblyx-malnus commented 1 year ago

some pseudo-Hoon:

in /sur/goal/hoon

track=[active=? default=? =act-log]
:: auto -> was this directly initiated by the user or by 
::         an implicit change in bounds or preceding incomplete goals?
:: blocked -> are there preceding incomplete goals?
::
+$  moment  (unit @da)
+$  act-state
  [=time to=? auto=? blocked=? left-bound=moment ryte-bound=moment]
+$  act-log  (list act-state)

in /lib/gol-cli/inflater/hoon

^-  act-state
?:  &((incomplete id) (all-complete-left id) (is-in now.bowl [left-bound ryte-bound]))
  [now.bowl default & (all-complete-left id) left-bound ryte-bound]
[now.bowl | & (all-complete-left-id) left-bound ryte-bound]
niblyx-malnus commented 1 year ago

also going to require behn timers for when deadlines happen...