Skip to content

[Bugfix:CourseMaterials] Fixed Course Materials Key#12214

Merged
bmcutler merged 13 commits intomainfrom
fix-course-materials-key-icons
Nov 25, 2025
Merged

[Bugfix:CourseMaterials] Fixed Course Materials Key#12214
bmcutler merged 13 commits intomainfrom
fix-course-materials-key-icons

Conversation

@Rkoester47
Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Currently, the Course Materials page uses styles from another PR that is causing a conflict and visual bug with the key icons.

(Firfox Dark Theme)
Broken

(Firefox Light Theme)
BeforeLight

What is the New Behavior?

(Firefox Dark Theme)
FixedDark

(Firefox Light Theme)
FixedLight

Now, the icons display properly on the Course Materials page key. The shape has been changed to squares instead of circles, since the colors are meant to represent highlighted rectangles in the file directory below. This is a more intuitive layout given that the colors in the key do not correspond to any circles on the page, such as a grading page might.

What steps should a reviewer take to reproduce or test the bug or new feature?

Navigate to the Course Materials page and observe that they key displays correctly.

Automated Testing & Documentation

Other information

This is not a breaking change.

@github-project-automation github-project-automation bot moved this to Seeking Reviewer in Submitty Development Nov 17, 2025
@Rkoester47 Rkoester47 changed the title [Bugfix: CourseMaterials] Fixed Course Materials Key Icons [Bugfix: CourseMaterials] Fixed Course Materials Key Nov 17, 2025
@Rkoester47 Rkoester47 changed the title [Bugfix: CourseMaterials] Fixed Course Materials Key [Bugfix:CourseMaterials] Fixed Course Materials Key Nov 17, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.71%. Comparing base (d7f9077) to head (217728d).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12214   +/-   ##
=========================================
  Coverage     21.71%   21.71%           
  Complexity     9612     9612           
=========================================
  Files           268      268           
  Lines         36070    36070           
  Branches        475      475           
=========================================
  Hits           7832     7832           
  Misses        27767    27767           
  Partials        471      471           
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.07% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.71% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

</li>
<li>
<i class="fas fa-circle grader-invalid"></i>
<i class="fas fa-square fa-lg course-materials-invalid"></i>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename these class names to be more semantic?
For example, something like "-never" instead of invalid?

@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Nov 18, 2025
Copy link
Copy Markdown
Contributor

@JManion32 JManion32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these CSS styles are local to Course Materials, we should put them in course-materials.css, which is only rendered when the Course Materials page is loaded, rather than server.css, which is rendered at all times.

Other than that and @skara9's comment, the Course Materials key looks much better, and I think the rectangles are a good choice here.

@automateprojectmangement automateprojectmangement bot moved this from Work in Progress to In Review in Submitty Development Nov 19, 2025
Copy link
Copy Markdown
Contributor

@JManion32 JManion32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By giving this key its own style classes, the issue of changes in other parts of the site affecting it is eliminated. The names of these classes are descriptive, and the classes themselves are in the proper file (course-materials.css). The UI has been restored to its orignal state, and has been further improved by using rectangles instead of circles. Great work!

@bmcutler bmcutler merged commit b14e9eb into main Nov 25, 2025
47 of 48 checks passed
@bmcutler bmcutler deleted the fix-course-materials-key-icons branch November 25, 2025 05:13
@github-project-automation github-project-automation bot moved this from In Review to Done in Submitty Development Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants