Fixed bugs and improved UI for room suggestions feature. Updated getSuggestions function and pages/rooms/suggestions.jsx file.
No more confusion in the gaps between lecturesgetSuggestions knows how to handle the roomsShow the user the right place and messageOr face the doom of the schedule's wrath
Walkthrough
Handle multiple or missing rooms in endLecture object by using the first room from the rooms array, the raum property, or undefined (link)
Add the room property to the suggestion object to store the selected room name (link)
Display a message when there are no suggestions available for the selected gap by calling getEmptySuggestions with showEmpty set to true (link)
Use the room property from the suggestion object to show the correct room name in the GapHeader and GapSubtitle components (link, link)
🤖 Generated by Copilot at 71c9c67
Summary
🐛🚀🎨
Fixed bugs and improved UI for room suggestions feature. Updated
getSuggestions
function andpages/rooms/suggestions.jsx
file.Walkthrough
endLecture
object by using the first room from therooms
array, theraum
property, orundefined
(link)room
property to the suggestion object to store the selected room name (link)getEmptySuggestions
withshowEmpty
set totrue
(link)room
property from the suggestion object to show the correct room name in theGapHeader
andGapSubtitle
components (link, link)