Replace prompt() with inline textarea in review section, close modal on submit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# Review
|
||||
- **Status**: approved
|
||||
- **Timestamp**: 2026-06-13T18:00:41.433151
|
||||
@@ -0,0 +1,3 @@
|
||||
# Review
|
||||
- **Status**: approved
|
||||
- **Timestamp**: 2026-06-13T18:00:48.191824
|
||||
@@ -0,0 +1,3 @@
|
||||
# Review
|
||||
- **Status**: approved
|
||||
- **Timestamp**: 2026-06-13T18:00:58.458316
|
||||
@@ -0,0 +1,3 @@
|
||||
# Review
|
||||
- **Status**: approved
|
||||
- **Timestamp**: 2026-06-13T18:01:27.011077
|
||||
@@ -0,0 +1,28 @@
|
||||
# SPEC: Replace Prompt Dialog with Inline Comment Textarea
|
||||
|
||||
## Overview
|
||||
|
||||
The review approval flow uses `prompt()` for comments, which is a jarring browser popup. Replace it with a textarea in the detail modal. After submission, close the modal and return to the board.
|
||||
|
||||
## Changes
|
||||
|
||||
### dashboard.js
|
||||
- Add comment `<textarea>` in the detail panel review section
|
||||
- `submitReview()` reads from textarea instead of `prompt()`
|
||||
- On success, close the modal (`closeDetail()`) instead of re-rendering it
|
||||
|
||||
### index.html
|
||||
- No structural changes needed (textarea is rendered by JS in the detail panel)
|
||||
|
||||
### styles.css
|
||||
- Add styles for the comment textarea
|
||||
|
||||
## Acceptance Criteria
|
||||
- [ ] Review section shows a textarea for optional comment
|
||||
- [ ] Clicking Approve/Request Changes submits with textarea content
|
||||
- [ ] Modal closes after successful submission
|
||||
- [ ] No browser `prompt()` popup
|
||||
|
||||
## Notes
|
||||
- Textarea is always visible in the review section
|
||||
- Comment is optional (can be empty)
|
||||
Reference in New Issue
Block a user