diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-26 06:42:52 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-26 06:42:52 -0500 |
| commit | 30f6e16fe4fd3c9cbfcb39cd8053504ddd11167b (patch) | |
| tree | aa10e6a8de57aaedda7d06d24fb9549bf381ba45 /Omni/Agent | |
| parent | 4602bc1b6617015189774cc5115bc8f4a7aa63ef (diff) | |
The implementation is complete. Summary of what was implemented
1. **POST /tasks/:id/status** endpoint accepting form data with
'status' field (line 35) 2. **Status parsing** from form via `FromForm
StatusForm` instance (lines 47-52) - handles Open, InProgress,
Review, Approved, Done 3. **Calls TaskCore.updateTaskStatus**
(line 337) 4. **Redirects** back to `/tasks/:id` with 303 status
using `PostRedirect` type (line 26, 335-338) 5. **Error handling**
for invalid status via `FromForm` returning `Left "Invalid status"`
(line 52) which Servant converts to a 400 error
Task-Id: t-1o2g8gugkr1.4
Diffstat (limited to 'Omni/Agent')
0 files changed, 0 insertions, 0 deletions
