nusmodifications / nusmods

🏫 Official course planning platform for National University of Singapore.
https://nusmods.com
MIT License
588 stars 319 forks source link

Make report course error button more prominent coursereg / course update periods #3784

Open kokrui opened 2 months ago

kokrui commented 2 months ago

On each course detail page, below the "Add to Semester X", there is a "Report Errors" button which directs users to the correct faculty / department email to contact.

image

I'm not sure if many people notice / use this button right now, but I think it's helpful as another prompt to inform NUSMods users that they should be going to their faculties / departments instead of contacting the maintainers for issues related to course data.

To that end, we could upgrade the visibility of the button either when CourseReg is active (maybe +- a week), and/or when course information is newly-updated.

One can detect the former using the dates from https://github.com/nusmodifications/nusmods/blob/master/website/src/data/modreg-schedule.json,

and the latter by seeing if the relevant announcement is enabled (https://github.com/nusmodifications/nusmods/blob/59b78cc98376ed4ce3d3e20086614b9e92a46ad2/website/src/views/components/notfications/Announcements.tsx#L13-L34)

Perhaps we can improve the visibility of the button during those periods by giving it a border, letting it span across the course description, or anything else you think of.

KieronOei commented 2 months ago

I'd like to work on this