41 lines
1.8 KiB
Markdown
41 lines
1.8 KiB
Markdown
# 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
|