Files
automaton/tasks/complete/dashboard-task-review/IMPLEMENTATION.md
T
Lap Tran 4a2301b077
CI / build (push) Has been cancelled
Archive completed tasks, add cleanup commands, self-documenting dashboard UI
- Archive 79 completed framework-dev tasks from tasks/ -> tasks/complete/
- status.py: add --cleanup-done and --install-cleanup-schedule commands
- Add scripts/automaton-cleanup.sh for periodic task archiving
- Dashboard: rename 'Background' tab -> 'Agent', 'Cleanup' agent -> 'Completed Task Archiver', remove redundant group headers and pill badges, dim inactive agent placeholders
- .rules.md: add Self-Documenting UI Names rule
- New tests: test_cleanup_done.py, expanded test_app.py and test_task.py
2026-06-24 22:43:33 -04:00

1.8 KiB

Implementation: Dashboard Task Review and Approval

Summary

Added a complete review/approval workflow to the dashboard. Tasks can be reviewed, approved, or flagged for changes directly from the UI.

Changes Made

Backend (app.py)

  • _get_review_status() — reads REVIEW.md from task folder, parses status/timestamp/comment
  • _write_review() — writes REVIEW.md with approval status and optional comment
  • _handle_review() — POST endpoint for review submission
  • _serve_review_summary() — aggregate review metrics across all tasks
  • Integrated review data into task API responses
  • Added unquote() for URL-encoded task names

Frontend (dashboard.js)

  • Review status badge on each task card (🟡 pending, ✅ approved, ❌ changes requested)
  • Review section in detail panel: status display, comment textarea, Approve/Request Changes buttons
  • submitReview() — posts review to API, closes modal on success
  • Review filter dropdown — filter board by review status
  • Pending review count in header stats
  • getTaskDisplayGroup() — approved planning tasks move to Design column, rejected to Blocked

Styles (styles.css)

  • .review-badge — status indicator styling (approved/requested/pending colors)
  • .review-textarea — comment input styling
  • .review-actions — button layout
  • .review-comment — previous comment display
  • .review-btn — approve/changes button styles

HTML (index.html)

  • Review filter dropdown in filter bar
  • Pending review count display in header

Files Modified

  • automaton/dashboard/ui/app.py — review API endpoints
  • automaton/dashboard/html/dashboard.js — review UI, display grouping
  • automaton/dashboard/html/styles.css — review component styles
  • automaton/dashboard/html/index.html — review filter and stats