Skip to content

[Feature:Notifications] Use Course Title on Home Page#12288

Merged
bmcutler merged 4 commits intomainfrom
name-over-title
Jan 22, 2026
Merged

[Feature:Notifications] Use Course Title on Home Page#12288
bmcutler merged 4 commits intomainfrom
name-over-title

Conversation

@JManion32
Copy link
Contributor

@JManion32 JManion32 commented Dec 30, 2025

Why is this Change Important & Necessary?

Currently, the notifications on the home page use the course code (example: CSCI1200), instead of the course title (example: Data Structures). Courses are more identifiable by their titles, rather than their codes.

What is the New Behavior?

Course titles are now displayed by default, and course codes are only displayed if the title has not been set.

In this image, notifications use a course's title, and code, based on whether it is defined or not.
image

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

Verify that clicking on course title/code is still clickable and takes you to the course's notification page. Set course titles (via course settings) and ensure they update on the home page. Verify that the course notifications page is unchanged.

Automated Testing & Documentation

N / A

Other information

This is not a breaking change. I plan to create a followup to this PR with course color-coded notifications.

@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

❌ Patch coverage is 14.28571% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.69%. Comparing base (443d6a3) to head (ea66a13).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12288      +/-   ##
============================================
- Coverage     21.69%   21.69%   -0.01%     
- Complexity     9617     9618       +1     
============================================
  Files           268      268              
  Lines         36115    36120       +5     
  Branches        478      478              
============================================
+ Hits           7836     7837       +1     
- Misses        27805    27809       +4     
  Partials        474      474              
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.07% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.69% <14.28%> (-0.01%) ⬇️
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.

Copy link
Member

@williamjallen williamjallen left a comment

Choose a reason for hiding this comment

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

This seems like something you could add Cypress tests for easily. Adding a test would significantly improve our confidence that this front-page feature will continue to work in the future.

Fixed issues with merge conflict and used a ternary expression to reduce code duplication
@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Jan 20, 2026
@JManion32
Copy link
Contributor Author

@williamjallen Thank you for the approval. I agree with your Cypress suggestion and will add it to a comprehensive PR that addresses #11908.

@bmcutler bmcutler merged commit fd932f4 into main Jan 22, 2026
49 of 50 checks passed
@bmcutler bmcutler deleted the name-over-title branch January 22, 2026 06:27
@github-project-automation github-project-automation bot moved this from Awaiting Maintainer Review to Done in Submitty Development Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants