nusmodifications / nusmods

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

Hide certain lecture slot for some modules #740

Open XiaohanCui opened 6 years ago

XiaohanCui commented 6 years ago

Do you want to request a feature or report a bug?

feature

What is the current behavior?

Able to hide certain module entirely, but can't only hide a lecture/lab/tutorial of that module:

screen shot 2018-01-16 at 10 47 12 am

What is the expected behavior?

Can hide a lecture/lab/tutorial slot of a module without hiding other parts of it. For example in the above demonstration image, can hide the GEQ1000 dummy lecture slot on Saturday morning (but keep its tutorial).

Beside GEQ1000 dummy lecture slot, this feature will also help user to hide lecture time but keep tutorial slot which he/she is tutoring, or hide lecture he/she waived, or hide lecture he/she plan to only watch web cast, etc.

Further information

mhq199657 commented 6 years ago

In v2, this can be done by editing the JSON string in the URL, but it cannot be achieved in v3. I would also like this feature to be added in later some time.

XiaohanCui commented 6 years ago

inspired by @mhq199657 , on the user side for now, this feature can be done by clicking the 'share/sync' button, copy the short URL and reopen it in a new tab. The URL will become a long one which looks like v2, thus become editable. After editing it, reload the page and corresponding slots can be hidden.

ZhangYiJiang commented 6 years ago

I'm not sure that would work. We added data integrity checking, because before the semester starts some modules may change their timetables, so if you refresh the page the deleted lessons will be added back in automatically 😅

XiaohanCui commented 6 years ago

Umm true, but it works for the first time user load the page, and user can export the timetable at this time. So will be better to add a feature for this in future.🤔