gocast icon indicating copy to clipboard operation
gocast copied to clipboard

allow deselecting lecture halls in calendar

Open joschahenningsen opened this issue 2 years ago • 4 comments

Motivation and Context

To have a quick glance about the events that are in a certain lecture hall it would be helpful if we were able to filter the events in the calendar. fixes #732

Description

This PR adds a checkbox for each lecture hall below the calendar. If a checkbox is checked we pass the id to the api which then includes that lecture hall in the result. The changes (logic wise) are done in SQL.

Steps for Testing

Prerequisites:

  • Lecturers
  • An admin
  1. generate events for different courses in different lecture halls.
  2. view the schedule as lectuer and verify that 2.1 filtering by lecture hall works. 2.2 The lecturer only sees their events.
  3. test that filtering also works for admins.

joschahenningsen avatar Oct 20 '22 12:10 joschahenningsen

I pushed a few tiny fixes, this is what it looks like on my end now:

https://user-images.githubusercontent.com/44805696/197293618-63b5ddf1-c97f-495c-8634-7036d2e81fbf.mp4

I couldn't find out why your url didn't change, can you verify the latest commit?

joschahenningsen avatar Oct 21 '22 21:10 joschahenningsen

I noticed small very short flickering

I think the fullCalendar needs some time to render the events unfortunately :/

joschahenningsen avatar Oct 21 '22 21:10 joschahenningsen

I think the fullCalendar needs some time to render the events unfortunately :/

Hm, not really a problem, but might be worth to look whether there is an issue for this for fullCalendar.

I pushed a few tiny fixes, this is what it looks like on my end now:

Looks the same for me, looks good now!

I couldn't find out why your url didn't change, can you verify the latest commit?

I mean the URL did change after editing, but the request is sent twice. I recorded another gif to make sure we mean the same thing. Do you also have this?

Peek 2022-10-22 00-00

alexanderstephan avatar Oct 21 '22 22:10 alexanderstephan

@alexanderstephan nice catch! Apparently AddEventSource already triggers RefetchEventSources internally so the call was redundant.

joschahenningsen avatar Oct 22 '22 08:10 joschahenningsen

Fixed that as well, thanks :) @alexanderstephan

joschahenningsen avatar Oct 23 '22 09:10 joschahenningsen

A de-select all feature would be usefull

AndreasPaul avatar Oct 24 '22 10:10 AndreasPaul