Skip to content

Commit bff83ab

Browse files
mattgodboltclaude
andcommitted
Phase 3: Improve review input format from comma-separated to line-separated
Change strengths, weaknesses, and suggestions input from comma-separated format to more natural line-separated format. Updates both frontend labels/placeholders and backend processing logic to split on newlines instead of commas. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5ee9b89 commit bff83ab

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

prompt_testing/templates/review.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,21 +306,21 @@ <h4>✏️ Your Review</h4>
306306
</div>
307307

308308
<div class="form-group">
309-
<label>Strengths (comma-separated):</label>
309+
<label>Strengths (one per line):</label>
310310
<textarea name="strengths" data-case="{{ result.case_id }}"
311-
placeholder="What does this response do well?"></textarea>
311+
placeholder="Clear technical explanations&#10;Good use of examples&#10;Appropriate for audience level"></textarea>
312312
</div>
313313

314314
<div class="form-group">
315-
<label>Weaknesses (comma-separated):</label>
315+
<label>Weaknesses (one per line):</label>
316316
<textarea name="weaknesses" data-case="{{ result.case_id }}"
317-
placeholder="What could be improved?"></textarea>
317+
placeholder="Missing key insights&#10;Too verbose for the audience&#10;Unclear instruction explanations"></textarea>
318318
</div>
319319

320320
<div class="form-group">
321-
<label>Suggestions (comma-separated):</label>
321+
<label>Suggestions (one per line):</label>
322322
<textarea name="suggestions" data-case="{{ result.case_id }}"
323-
placeholder="Specific suggestions for improvement"></textarea>
323+
placeholder="Add more WHY explanations&#10;Include performance implications&#10;Simplify technical terms"></textarea>
324324
</div>
325325

326326
<div class="form-group">

prompt_testing/web_review.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ def save_review():
205205
conciseness=int(review_data["conciseness"]),
206206
insight=int(review_data["insight"]),
207207
appropriateness=int(review_data["appropriateness"]),
208-
strengths=[s.strip() for s in review_data.get("strengths", "").split(",") if s.strip()],
209-
weaknesses=[w.strip() for w in review_data.get("weaknesses", "").split(",") if w.strip()],
210-
suggestions=[s.strip() for s in review_data.get("suggestions", "").split(",") if s.strip()],
208+
strengths=[s.strip() for s in review_data.get("strengths", "").split("\n") if s.strip()],
209+
weaknesses=[w.strip() for w in review_data.get("weaknesses", "").split("\n") if w.strip()],
210+
suggestions=[s.strip() for s in review_data.get("suggestions", "").split("\n") if s.strip()],
211211
overall_comments=review_data.get("overall_comments", ""),
212212
compared_to=review_data.get("compared_to"),
213213
preference=review_data.get("preference"),

0 commit comments

Comments
 (0)