Updated the task view and backend to handle more like a routine

This commit is contained in:
2026-03-08 22:10:46 -04:00
parent 4161ff9513
commit 9d3a277f45
14 changed files with 405 additions and 147 deletions

View File

@@ -5,7 +5,8 @@
// Data store operations for tasks
task_t *find_task(uint16 id);
task_t *add_task(uint8 user_id, const char *title, int64 due_date);
task_t *add_task(uint8 user_id, const char *title, int64 due_date,
uint8 period = PERIOD_MORNING, uint8 recurrence = 0);
bool remove_task(uint16 id);
void remove_tasks_for_user(uint8 user_id);
void sort_tasks_by_due_date(task_t **arr, int count);