Add close/done button to task detail web page

t-638·WorkTask·
·
·
Parent:t-642·Created11 hours ago·Updated10 hours ago

Description

Edit

There is no way to close/complete a task from the web UI task detail page. The status dropdown already lists all statuses including Done, but a prominent "Close" or "Mark Done" button would be more discoverable.

Add a "Close Task" button to the task detail page that sets status to Done.

Implementation:

  • In Omni/Task/Web/Pages.hs, in the task detail page (TaskDetailPage instance), add a button near the status badge or in the actions area
  • The button should POST to the existing status update endpoint with status=Done
  • Use HTMX: hx-post="/tasks/{id}/status" hx-vals='{"status":"Done"}' (or whatever the existing status change endpoint is)
  • Style it as a subtle button (not too prominent) since it's a destructive action
  • Only show it when status is NOT already Done

Key files: Omni/Task/Web/Pages.hs (TaskDetailPage), Omni/Task/Web/Components.hs (if adding a shared component) Namespace: Omni/Task.hs

Timeline (9)

🔄[system]Open → InProgress10 hours ago
💬[system]10 hours ago

Pipeline: dev completed (run=dev-t-638-1771441034, cost=0.0c)

🔄[system]InProgress → Verified10 hours ago
💬[system]10 hours ago

Pipeline: verification skipped (No namespace set, skipping build verification), promoting

🔄[system]Verified → Done10 hours ago
💬[system]10 hours ago

Pipeline: integrated into live at 4c99fed85e1241f022499cb17f68f132ef35a8a2