Skip to content

[Feature:InstructorUI] Adjust Archived Courses Home Page View#12154

Merged
bmcutler merged 4 commits intomainfrom
course-list-view-archived
Nov 14, 2025
Merged

[Feature:InstructorUI] Adjust Archived Courses Home Page View#12154
bmcutler merged 4 commits intomainfrom
course-list-view-archived

Conversation

@RyanStyron
Copy link
Contributor

@RyanStyron RyanStyron commented Oct 24, 2025

Why is this Change Important & Necessary?

Closes #12015.
As the linked issue describes, it is possible that an instructor has been in several now-archived courses and wishes to collapse the view of those courses on the homepage to reduce clutter. This pull request adds the ability to toggle the visibility of archived courses, and also spaces the archived courses out visually on the homepage in accordance to the semester for which that course corresponds.

What is the New Behavior?

View of homepage as user instructor prior to change:
image

View of homepage as user instructor after change (visible then hidden):
image
image

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

Create new terms and courses as described in this documentation. Set those courses to be archived (also as described in this documentation). Log in as instructor (which is the user that should have been assigned as the instructor for each of the new archived courses); view the homepage. Checkout changes on both main and course-list-view-archived to view the differences.

Automated Testing & Documentation

Other information

@github-project-automation github-project-automation bot moved this to Seeking Reviewer in Submitty Development Oct 24, 2025
@automateprojectmangement automateprojectmangement bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Oct 24, 2025
@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.71%. Comparing base (a7a9028) to head (922de20).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12154   +/-   ##
=========================================
  Coverage     21.71%   21.71%           
  Complexity     9601     9601           
=========================================
  Files           268      268           
  Lines         36038    36038           
  Branches        475      475           
=========================================
  Hits           7827     7827           
  Misses        27740    27740           
  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.

@RyanStyron RyanStyron marked this pull request as ready for review October 24, 2025 19:18
@automateprojectmangement automateprojectmangement bot moved this from Work in Progress to Seeking Reviewer in Submitty Development Oct 24, 2025
Copy link
Contributor

@Rkoester47 Rkoester47 left a comment

Choose a reason for hiding this comment

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

I was able to successfully hide and un-hide the list of archived courses using the feature introduced by this PR. The changes seem to be working as intended. The button looks good in both light and dark themes. I can easily see how this would help reduce clutter when the archived courses pile up.

@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Oct 24, 2025
@RyanStyron RyanStyron changed the title [Feature:System] Adjust Archived Courses Home Page View [Feature:InstructorUI] Adjust Archived Courses Home Page View Oct 24, 2025
@RyanStyron RyanStyron requested a review from JManion32 October 28, 2025 21:50
@automateprojectmangement automateprojectmangement bot moved this from Awaiting Maintainer Review to In Review in Submitty Development Oct 28, 2025
Copy link
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.

Overall, the functionality looks good. I just left some small comments regarding best practices.

@github-project-automation github-project-automation bot moved this from In Review to Work in Progress in Submitty Development Oct 29, 2025
@RyanStyron RyanStyron requested a review from JManion32 October 29, 2025 06:21
@automateprojectmangement automateprojectmangement bot moved this from Work in Progress to In Review in Submitty Development Oct 29, 2025
Copy link
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.

Code looks good and feature enhances the quality of life for users with many archived courses. Looks like you just need to resolve that 1 failing Cypress test and this is all set for merge.

@github-project-automation github-project-automation bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Oct 31, 2025
@RyanStyron RyanStyron moved this from Awaiting Maintainer Review to Ready to Merge in Submitty Development Nov 11, 2025
@bmcutler bmcutler merged commit b5f3934 into main Nov 14, 2025
24 of 25 checks passed
@bmcutler bmcutler deleted the course-list-view-archived branch November 14, 2025 00:30
bmcutler pushed a commit that referenced this pull request Nov 19, 2025
### Why is this Change Important & Necessary?
CI is failing due to `registration.spec.js`. This was caused in #12154
from nesting a `<button>` inside of an `<h1>` element, so when Cypress
went to assert that the header said "My Courses", it returned "My
Courses &nbsp;" instead, causing the test to fail.

### What is the New Behavior?
Take the `<button>` out of the `<h1>`, and adjust the CSS to remain the
same.

---------

Co-authored-by: Justin Manion <jmanion32@gmail.com>
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.

formatting of archived courses on 'my courses' page

4 participants