Closed MrTomek closed 1 year ago
Example view:
In my opinion, it would be better to replace the original lesson with a substitute lesson plus an exclamation mark (something like school e-journals do), rather than just placing a mark on the original lesson that wouldn't provide direct information about the substitute.
https://elektronik.rzeszow.pl/api/replacements.json (ready scraper PDF used for TV in the lobby)
We already use it for the substitutions table 😉
I think we can also add a tooltip while hovering on an exclamation mark with some info about original lesson
Hello I was doing something similar to that thing you have planned but there's one problem. It's my second time working with a react application so the code looks bad.
@felpcereti That way of implementing this is what I actually was thinking of!
I consulted the "exclamation mark" way with other contributors and it would be too clunky and require additional clicks to display the replacement data.
So, we prefer it your way, as we were planning to.
However, I tried launching your fork and it gets me this error: with the following env variables:
NEXT_PUBLIC_TIMETABLE_BASE_URL=https://zse.rzeszow.pl/plan-lekcji
NEXT_PUBLIC_REPLACEMENTS_API_URL=https://www.elektronik.rzeszow.pl/api/replacements.json
Please fix the code so that it can be used with ZSE Rzeszów's official data sources first. Then try making a pull request
I'm using the same env variables. I changed following lines of code https://github.com/felpcereti/elektronik-timetable/commit/56daa8de8215279c2b2ada6adbd91b4d97ac9f2b#diff-e253519adf5ed18c5b9535b50c8f3553796ba50482c17df141c00ac7d3935074L103
day.length -
1 -
day
.slice()
.reverse()
.findIndex((dayHour) => dayHour.length > 0)
to
day.findLastIndex((dayHour) => dayHour.length > 0)
It's a newer method which was added in node version 18.
If that's a problem I can just revert the change.
Also I wonder if you have any other means of communication like discord, telegram or session.
@felpcereti My discord: rico_et22#5855
Oh, I was still using Node 16, upgraded to 18 and the error is gone.
I think you can make a pull request (prepare for a code review), but before, there are two urgent things to fix:
2.Increase spacing between groups (both table and list)
Done. PR #24 and #25 . @felpcereti thanks!
In my opinion, you still need to add this on the teacher's timetable /teacher
.
@MrTomek
In my opinion, you still need to add this on the teacher's timetable
/teacher
.
Teacher pages fixed in #27
Please add an alert or an exclamation mark icon next to a lesson on the timetables of classes, teachers and classrooms.
Data loaded from:
https://elektronik.rzeszow.pl/uploads/zastepstwa/InformacjeOZastepstwach.pdf
or
https://elektronik.rzeszow.pl/api/replacements.json (ready scraper PDF used for TV in the lobby)