Edit individual review criteria scores in project submission and fix message display in cadmin#135
Conversation
- Make total_score automatically calculated from individual scores - Add JavaScript to auto-calculate total when editing scores - Add Django messages display to all cadmin templates - Add comprehensive tests for submission editing and message display Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
|
@copilot project score is based on individual scores, and then the total score is added to the submission. I want to edit the individual scores for each criteria, and I also want to see these criteria (along with the levels) and see how much they got for this criteria - editable. |
…cores - Display review criteria with their options/levels - Allow editing individual criteria scores instead of aggregate project_score - Auto-calculate project_score from sum of criteria scores - Update tests to reflect new criteria-based scoring approach Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
Updated the implementation to use individual review criteria scores. Now the edit page:
Commit: 1a1e9e2 |
- Add better validation for criteria scores with descriptive error messages - Fix grammar: 'criteria' -> 'criterion' (singular) - Use consistent querySelectorAll for all score field selections in JavaScript - Add 'peer-review-score' class to peer review score fields Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
|
@copilot there's a lot of repetitions for messages. can we create one base template for cadmin, put the messages there and then extend it for all the other templates? |
- Create cadmin/base.html that extends base.html and includes messages block - Update all cadmin templates to extend cadmin/base.html instead of base.html - Remove duplicate message blocks from all templates - Templates now use cadmin_content block instead of content block Co-authored-by: alexeygrigorev <875246+alexeygrigorev@users.noreply.github.com>
Created cadmin/base.html that extends base.html and includes the messages block. All cadmin templates now extend this base template instead of repeating the message code. This removes ~75 lines of duplicate code across 5 templates. Commit: f7752e0 |
Project Submission Editing and Message Display Fixes
Checklist:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.