Claude opus authored everything to make the user and task work. First iteration

This commit is contained in:
2026-03-07 21:39:10 -05:00
parent 8ab1efcca7
commit 2bee7dce43
25 changed files with 2003 additions and 164 deletions

View File

@@ -114,19 +114,31 @@ g_Users[MAX_USERS=8] │ completed: bool │
```
Provider/main/
├── user.hpp # user_t struct, g_Users[], seed_users()
├── todo.hpp # task_t struct, g_Tasks[], seed_tasks()
├── user.hpp # user_t struct, g_Users[] (data only)
├── todo.hpp # task_t struct, g_Tasks[] (data only)
├── api/
│ ├── users/
│ │ ── manage.cpp # User CRUD handlers
│ │ ── store.hpp # Forward declarations for user operations
│ │ ├── store.cpp # find_user, add_user, remove_user, seed_users
│ │ ├── list.cpp # GET /api/users
│ │ ├── add.cpp # POST /api/users
│ │ ├── remove.cpp # DELETE /api/users
│ │ └── unity.cpp # Includes all users/*.cpp
│ ├── tasks/
│ │ ── manage.cpp # Task CRUD + upcoming handlers
│ │ ── store.hpp # Forward declarations for task operations
│ │ ├── store.cpp # find_task, add_task, remove_task, sort, seed_tasks
│ │ ├── list.cpp # GET /api/tasks?user_id=N
│ │ ├── upcoming.cpp # GET /api/tasks/upcoming
│ │ ├── add.cpp # POST /api/tasks
│ │ ├── update.cpp # POST /api/tasks/update
│ │ ├── remove.cpp # DELETE /api/tasks
│ │ └── unity.cpp # Includes all tasks/*.cpp
│ ├── system/
│ │ ├── info.cpp
│ │ └── reboot.cpp
│ └── ota/
│ └── ...
├── http_server.cpp # +includes, +handlers, +CORS update
├── http_server.cpp # includes tasks/unity.cpp + users/unity.cpp
└── main.cpp # Entry point (unchanged)
```