[Feature:RainbowGrades] Add show_notes control to Rainbow Grades#12757
Conversation
There was a problem hiding this comment.
I performed a simple functionality review of this PR. When I toggled "Show Category/Gradeable Configuration", the dropdown menus appeared on applicable gradables, as seen in the screenshot below:
Then, when I downloaded the GUI customization files, the selections appeared as I submitted for requested gradables:
I took at the code as well, and it looks good, with no obvious bugs as far as I can tell.
|
Just noticed that this solves the same issue as #12756. Only one should be merged. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12757 +/- ##
============================================
+ Coverage 21.66% 21.68% +0.01%
- Complexity 9754 9778 +24
============================================
Files 268 268
Lines 36457 36504 +47
Branches 487 487
============================================
+ Hits 7900 7915 +15
- Misses 28074 28106 +32
Partials 483 483
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Thank you @Eli-J-Schwartz! |
|
Thanks for the PR and including screenshots. I think the interface is overwhelming to show those options -- most instructors will not use this feature. Let's add an additional toggle next to "extra credit" and "remove lowest" that says "customize show notes" (or something similar, does anyone have a better description?). Anyway, let's only display those show notes drop down options if the user has enabled show gradeable configuration AND customize show notes. NOTE: I made the same comment on the other PR solving this issue. We can only merge one of these PRs, please work together to make the best software. Thanks. |
|
Thank you so much @bmcutler!
|
|
Hey @jndlansh can we add Cypress test that verifies the show notes dropdowns are hidden until both Show Category/Gradeable Configuration (or in accordance with the latest changes in your branch) and that a changed value persists after refresh and is reflected in the downloaded GUI customization JSON. |
|
@GarvitKhandelwal31 I have extended the
|
Screen.Recording.2026-04-09.145125.mp4New UI notes visibility check box state is not persisted. Controls always come back hidden after refresh even when custom values already exist. |
| // Refresh and verify selected value persists. | ||
| cy.reload(); | ||
| cy.get('#config-toggle').check({ force: true }).should('be.checked'); | ||
| cy.get('#customize_show_notes_checkbox').check({ force: true }).should('be.checked'); |
There was a problem hiding this comment.
After the persistence check done here, ensure we reset the course state that was changed in lines 171-185.
Recording.2026-04-10.013913.mp4Now |
|
@jndlansh There are some lint errors, please correct them. |
I have fixed the lint errors, thank you @bmcutler. Would love to work further together to improve the software. |







Why is this Change Important & Necessary?
Closes #12753
Rainbow Grades configuration now supports the
show_notesfield that was added to config.json, but it was not accessible via the Web UI. This PR exposes the field in the Rainbow Grades Configuration page, allowing instructors to configure notes visibility per gradeable without manually editing JSON.What is the New Behavior?
never(default),instructor_only,student_only,student_and_instructorgui_customization.jsonwith theshow_notesfield per gradeableWhat steps should a reviewer take to reproduce or test?
"show_notes"fields with selected valuesAutomated Testing & Documentation
Existing Rainbow Grades test suite covers page load and general functionality. New Cypress test case recommended to specifically assert
show_notesdropdown visibility and persistence (separate GitHub issue).Other information
"never"if not specified)