Course colors, Course/meeting editing, and more timezone bugs!!
Wow! A devlog of reasonable length! Surely that means it will be shorter right?
Kinda, I added a lot of things but it was pretty easy!
Calendar colors 🎨
This one was really easy to implement, as the calendar component allows you to specify a border/background color. All I needed to do was add it to the creation modal and boom! I stole the color picker from Filatrack as it’s a good component and I don’t see a reason to make a new one
Unfortunately, these colors will not show up in the iCal subscription as iCal doesn’t support colors.
Course card view modes
The “Today” card at the top can now show you tomorrow and all courses! Once again, super easy to implement, literally just another state and changing what courses are grabbed based on that state.
I also fixed a glaring bug where you’d see courses from every term. I’m not sure how I didn’t consider this, but now you’ll only see courses for the current term!
Editing courses/meetings
This one got a little tricky. The modal is already designed to be used for creation and editing, I just had to implement the latter.
Editing courses is no big deal, however; it just changes what function it uses. Its editing meetings that’s a little tricky. You have to make a separate request to edit the meetings that are in the db, create ones that you’ve added, and delete ones you’ve removed. It ended up being relatively simple, but there’s a couple edge cases that could snag ya.
Timezone bugs
I don’t even know how this one happened. I looked at the calendar when I was working on other things and suddenly realized all my courses were 6 hours ahead of where they should be. iCal events worked fine. I didn’t even change anything in this area so I just subtracted the timezone offset when getting the events for the calendar and called it a day.
What’s Next?
I totally lied last time, so this time I’ll be honest: whatever I feel like doing. See ya next time!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.