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

Search is broken after adding basements #356

Closed Robert27 closed 11 months ago

Robert27 commented 11 months ago

The picker no longer works as expected. The -2 was added so that the default level is no longer the basement of the I building. But as soon as you filter the rooms, the index is wrong and the overlay is no longer displayed by default.

A function must be written so that the first floor is selected by default, taking into account any available basements and the search results.

https://github.com/neuland-ingolstadt/neuland.app/blob/e052d731f81a3763e5d36357894205b5465bee72/rogue-thi-app/components/RoomMap.jsx#L338

Alternately we could just remove the basement of building I