indico icon indicating copy to clipboard operation
indico copied to clipboard

Improve Booking Linking

Open moliholy opened this issue 7 months ago • 6 comments

Closes #6811 Closes #6568

Description

This PR:

  • [x] Shows bookings to link with, starting from the event's date instead of the current date.
  • [x] Allows the user to link with any existing booking. Currently only those that overlap were shown.
  • [x] Adds a filter to display bookings that do not overlap with the event's dates.

Screenshots

Screenshot 2025-04-13 at 20 12 19

photo_2025-04-13_20-12-01

moliholy avatar Apr 13 '25 17:04 moliholy

@ThiefMaster ready for review!

moliholy avatar Apr 14 '25 22:04 moliholy

Works much better now, thanks! What do you think about somehow (red? some icon?) highlighting the "Booked for ..." if the booking cannot be linked because it's for someone else.

ThiefMaster avatar Apr 15 '25 20:04 ThiefMaster

What do you think about somehow (red? some icon?) highlighting the "Booked for ..." if the booking cannot be linked because it's for someone else.

If I'd have to say one thing I'm not good at, it'd be UI. A red-ish color is fine for me, but simply because it does the job and it's the easiest to implement. But here's your call, I'd say.

moliholy avatar Apr 15 '25 22:04 moliholy

image

Something that we missed on the original PR: it might be nice to have the event name that you are linking to, in the confirmation prompt (e.g. "Are you sure you want to link this event (<event_name>) to this booking?").

GovernmentPlates avatar Apr 16 '25 08:04 GovernmentPlates

Hrm, not sure. You get to linking mode from your event's management area, so it should be very clear what you're linking. It's also shown in the linking mode bar.

The prompt is mainly so you don't accidentally click thinking there's another dialog or whatever before the link is actually created.

(in any case it'd probably trivial to do since the information is in the state)

ThiefMaster avatar Apr 16 '25 08:04 ThiefMaster

Works much better now, thanks! What do you think about somehow (red? some icon?) highlighting the "Booked for ..." if the booking cannot be linked because it's for someone else.

How about using stripped diagonal lines as background (like in the screenshot below) for those cases? Red seems too aggressive for something that is not an error or anything of the sort.

image

OmeGak avatar Apr 16 '25 09:04 OmeGak