@@ -88,34 +88,61 @@ manner:
90 |= [=mark =vase]
90 |= [=mark =vase]
91− |^ ^- (quip card _this)
91+ ^- (quip card _this)
93+ ?> =(src.bowl our.bowl)
92 ?+ mark (on-poke:def mark vase)
94 ?+ mark (on-poke:def mark vase)
93− %noun
95+ %todo-action
94 =^ cards state
96 =^ cards state
95 (handle-poke !<(action:todo vase))
97 (handle-poke !<(action:todo vase))
96 [cards this]
98 [cards this]
97 ++ handle-poke
101 ++ handle-poke
98 |= =action:todo
102 |= =action:todo
99 ^- (quip card _state)
103 ^- (quip card _state)
100 ?- -.action
104 ?- -.action
102 :_ state(tasks (~(put by tasks) now.bowl [name.action %.n]))
106 :_ state(tasks (~(put by tasks) now.bowl [name.action %.n]))
107+ :~ :* %give %fact ~[/updates] %todo-update
103− :~ [%give %fact ~[/updates] %noun !>(`update:todo`[%add now.bowl name.action])]
108+ !>(`update:todo`[%add now.bowl name.action])
107 :_ state(tasks (~(del by tasks) id.action))
113 :_ state(tasks (~(del by tasks) id.action))
114+ :~ :* %give %fact ~[/updates] %todo-update
108− :~ [%give %fact ~[/updates] %noun !>(`update:todo`action)]
115+ !>(`update:todo`action)
121+ tasks %+ ~(jab by tasks)
112− :_ state(tasks (~(jab by tasks) id.action |=(=task task(done !done.task))))
123+ |=(=task:todo task(done !done.task))
125+ :~ :* %give %fact ~[/updates] %todo-update
113− :~ [%give %fact ~[/updates] %noun !>(`update:todo`action)]
126+ !>(`update:todo`action)
132+ tasks %+ ~(jab by tasks)
117− :_ state(tasks (~(jab by tasks) id.action |=(=task task(name name.action))))
134+ |=(=task:todo task(name name.action))
136+ :~ :* %give %fact ~[/updates] %todo-update
118− :~ [%give %fact ~[/updates] %noun !>(`update:todo`action)]
137+ !>(`update:todo`action)
141+ `state(friends (~(put in friends) who.action))
144+ :_ state(friends (~(del in friends) who.action))
145+ :~ [%give %kick ~[/updates] `who.action]