Replace the Todo tab with a Project dashboard of tasks and TODO items
This commit is contained in:
@@ -253,6 +253,10 @@ ALTER TABLE tasks ADD COLUMN merging_by TEXT NOT NULL DEFAULT '';
|
||||
`}, {"flag-handoff-prompts", `
|
||||
UPDATE events SET payload = json_set(payload, '$.handoff', json('true'))
|
||||
WHERE kind = 'user.message' AND actor = 'byre' AND json_extract(payload, '$.text') LIKE 'Write a handoff for a fresh %';
|
||||
`}, {"rename-todo-tab-to-project", `
|
||||
UPDATE users SET focus = json_set(focus,
|
||||
'$.tab', CASE json_extract(focus, '$.tab') WHEN 'todo' THEN 'project' ELSE json_extract(focus, '$.tab') END,
|
||||
'$.tabs', json((SELECT json_group_array(CASE value WHEN 'todo' THEN 'project' ELSE value END) FROM json_each(users.focus, '$.tabs'))));
|
||||
`}}
|
||||
|
||||
type Store struct {
|
||||
|
||||
Reference in New Issue
Block a user