cms icon indicating copy to clipboard operation
cms copied to clipboard

Add a Score counter to task overview

Open pxsit opened this issue 5 months ago • 7 comments

Add a Score counter to task overview image

pxsit avatar Jul 23 '25 13:07 pxsit

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?

prandla avatar Jul 23 '25 14:07 prandla

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 :)

Muaath5 avatar Jul 28 '25 07:07 Muaath5

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 (:

pxsit avatar Aug 01 '25 10:08 pxsit

image Im still getting this bug, let me try fix it

pxsit avatar Aug 04 '25 15:08 pxsit

Should be fixed! (According to my testing)

pxsit avatar Aug 04 '25 15:08 pxsit

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.

prandla avatar Aug 04 '25 19:08 prandla

Codecov Report

:x: Patch coverage is 23.80952% with 16 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 54.63%. Comparing base (7e94024) to head (1134711). :white_check_mark: All tests successful. No failed tests found.

Files with missing lines Patch % Lines
cms/server/contest/handlers/main.py 21.05% 15 Missing :warning:
cms/server/admin/handlers/contest.py 0.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1476      +/-   ##
==========================================
- Coverage   54.66%   54.63%   -0.04%     
==========================================
  Files         335      335              
  Lines       27358    27378      +20     
==========================================
+ Hits        14956    14957       +1     
- Misses      12402    12421      +19     
Flag Coverage Δ
functionaltests 0.00% <0.00%> (ø)
unittests 54.63% <23.80%> (-0.04%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Nov 17 '25 12:11 codecov[bot]