Special topics rows on the Courses page have misaligned columns
Maintainers usually reply within 7 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Open app/templates/snips/courseElements/adminCourseTable.html and compare the regular course row's Course Materials <td> near line 142 with the special topics rows around lines 304-312, which jump from faculty_credit straight to LAST EDITED BY. Add the missing Resources cell there, mirroring the regular row's fallback text when nothing is set, and check the header cell order matches. Then run CAS locally, go to Courses -> Spring 2022 -> African and African American Studies, and confirm a not-yet-approved special topics row lines up with the header.
Written by the indexing model from the issue text.
Description
Problem
On the Courses page (/courses/<term>/<program>), special topics rows have their columns shifted one to the left starting at the Resources column. Regular course rows look fine.
For example, on Spring 2022 / AFR, the row for "AFR 286 African Presence in Latin America" (status: Submitted) shows:
steeles(the last editor) under Resources instead of Last Edited- the edit/delete icons under Last Edited instead of the last column
This only happens for special topics that are not approved yet (e.g. Submitted). Approved special topics display correctly, because once approved they're stored in the Course table and use the regular row template (see the comment in app/controllers/main_routes/course.py: "We exclude the approved courses, because they'll be stored in the 'Course' table already"). So the bug is only in the special topics row template.
Cause
In app/templates/snips/courseElements/adminCourseTable.html, regular course rows have a Course Materials <td> between Faculty Load and Last Edited (around line 142), but the special topics rows skip it and go straight from faculty_credit to LAST EDITED BY (around lines 304-312). So each special topics row has one fewer cell than the header.
Possible fix
Add a Resources <td> to the special topics rows between Faculty Load and Last Edited. If special topics don't have course materials stored, it could just show "Unspecified" like the regular rows do when nothing is set.
To reproduce
- Run CAS locally (dev container)
- Go to Courses -> Spring 2022 -> African and African American Studies
- Scroll to a special topics row that is not Approved yet (e.g. one with a "Submitted" badge) and compare its columns to the header
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 3
- Avg merge
- 8d 5h
- Merged PRs (30d)
- 6
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BCStudentSoftwareDevTeam/cas
-
Courses sidebar jumps up when opening the Programs dropdownPossibly taken @Ayeyomeday claimed this 11 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BCStudentSoftwareDevTeam/cas#473 · 1 comment · 1 assignee ·
Maintainers usually reply within 7 days
-
Adding a cross-listing through Edit Course creates a duplicate course rowPossibly taken @mathew2005 claimed this 11 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
BCStudentSoftwareDevTeam/cas#471 ·
Maintainers usually reply within 7 days
-
Footer displays on the right side of the page instead of at the bottomPossibly taken @bakobagassas claimed this 15 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BCStudentSoftwareDevTeam/cas#452 · 3 comments · 1 assignee ·
Maintainers usually reply within 7 days
-
Improve menu selectionPossibly taken @bakobagassas claimed this 26 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
BCStudentSoftwareDevTeam/cas#448 · 1 assignee ·
Maintainers usually reply within 7 days
-
Update ReadMePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BCStudentSoftwareDevTeam/cas#444 · 2 comments ·
Maintainers usually reply within 7 days
All issues in BCStudentSoftwareDevTeam/cas
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
data good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 92/100
pacocartones/free-llm-api-hub#747 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
beginner-friendly category:fixtures community enhancement first-timers-only good first issue help wanted low hanging fruit micro-contribution type: task up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Berserk-hub150/skillhawk#282 · 1 comment ·