neuland-ingolstadt / neuland.app

A free & open source, web-based replacement for the official app of the Technische Hochschule Ingolstadt built with React and Next.js.
https://neuland.app
GNU Affero General Public License v3.0
36 stars 33 forks source link

Room availability #354

Closed pl0ss closed 11 months ago

pl0ss commented 11 months ago

https://github.com/neuland-ingolstadt/neuland.app/issues/142

🤖 Generated by Copilot at d13f16a

Summary

🐛🌐🌍

This pull request adds a feature to show the availability information of rooms on the map view of the Rogue THI app. It implements a new function getRoomAvailability to query the backend API for the occupancy status of rooms. It updates the RoomMap.jsx component to fetch and display the availability data on the room popups. It also adds a new localization key rooms.map.roomAvailabilityUnknown for both German and English languages. It removes some unnecessary console log statements and adds some commented-out code for debugging purposes.

To show rooms on the map with ease We added getRoomAvailability But we left some debug code That should not be in prod mode So please remove the console logs, pretty please

Walkthrough

pl0ss commented 11 months ago
Bildschirmfoto 2023-10-30 um 20 38 18

This is how it would look on October 30th at 12 o'clock

Bildschirmfoto 2023-10-30 um 20 44 43

and at 20 o'clock

Bildschirmfoto 2023-10-30 um 21 15 33