Repository navigation
Conversation
Add a Score counter to task overview
|
I have some comments about the code, but i'm wondering if this is the UI we want in the first place... I saw some browser extension that showed the task scores on the sidebar next to the task links, maybe that would be better. Does anyone else have any thoughts? |
I don't see any issues if both of these ways where implemented, but if it was in the task overview it would be better in case of onsite competitions and you don't want others to look into your score :) |
Added an option to toggle this in AWS (: |
|
Should be fixed! (According to my testing) |
|
Sorry, I just looked at the rest of cws_style.css, and now I think your original approach was the best... I thought the places you changed were the only places that defined these colors, but looks like there are quite a few other places that use slightly different colors, so explicitly defining that these colors are in the task overview table and in the submission list table is fine. After reverting that it should be good to merge. |
Looks cursed having it not in order
Avoid a duplicate DB query by reusing a participation object that ContestHandler may have preloaded for sidebar scores; only call _load_participation_for_scores when necessary. Compute task scores conditionally as before. UI fixes: display "N/A" for undefined task scores in the contest sidebar, add CSS for the undefined badge state, and ensure task submission badges remove the undefined class and are shown after updating the score.
Add an option to display task scores in the contest sidebar and for both the overview and the sidebard task scores, when a tokened score is availble it will use that score, if not it will use the public score, if there is no public score it will show 0/0 (considering to change to N/A)
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (1)
cms/server/admin/templates/contest.html:113
- The new “Show task scores in sidebar” row appears to break the table structure: after closing the checkbox , the Timezone label starts without opening a new /, and there is an extra closing . This will likely render the form misaligned and may make the timezone field uneditable. Please close the sidebar row properly and restore the Timezone row as its own with two cells (label + input).
</td>
<span class="info" title="Timezone of the server, used to display start, end times and the current server time to contestants.
Example: 'Europe/Rome', 'America/New_York', ..."></span>
Timezone
</td>
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Optimizations : - Lazy loading - Optimize query efficiency - Eliminate redundant render_params
- Batch-load official submissions (tokens, results) to avoid N+1 queries - Respect disabled tokens; isolate per-task score failures - Show pending spinner in sidebar and overview; add overview total score - Replace node JS test with Python tests



Add a Score counter to task overview
