From 9e790e35708f834abe1a09af52e43742e164cb63 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 5 Mar 2026 19:02:24 +0000 Subject: web: add Accept/Reject for READY tasks, Start Next button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - READY state task cards show Accept + Reject buttons - Accept POSTs to /api/tasks/{id}/accept (→ COMPLETED) - Reject POSTs to /api/tasks/{id}/reject (→ PENDING) - "Start Next" button in toolbar POSTs to /api/scripts/start-next-task - CSS for .btn-accept and .btn-reject Co-Authored-By: Claude Sonnet 4.6 --- web/style.css | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'web/style.css') diff --git a/web/style.css b/web/style.css index 268f80c..1478b36 100644 --- a/web/style.css +++ b/web/style.css @@ -259,6 +259,41 @@ main { cursor: not-allowed; } +.btn-accept { + font-size: 0.8rem; + font-weight: 600; + padding: 0.35em 0.85em; + border-radius: 0.375rem; + border: none; + cursor: pointer; + background: var(--state-completed); + color: #0f172a; + transition: opacity 0.15s; +} + +.btn-accept:disabled { + opacity: 0.5; + cursor: not-allowed; +} + +.btn-reject { + font-size: 0.8rem; + font-weight: 600; + padding: 0.35em 0.85em; + border-radius: 0.375rem; + border: none; + cursor: pointer; + background: var(--text-muted); + color: #0f172a; + transition: opacity 0.15s; + margin-left: 0.375rem; +} + +.btn-reject:disabled { + opacity: 0.5; + cursor: not-allowed; +} + .task-error { font-size: 0.78rem; color: var(--state-failed); -- cgit v1.2.3