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

Language food #347

Closed pl0ss closed 11 months ago

pl0ss commented 12 months ago

Language Food offers the option to choose a different language, which only affects the food menu.

πŸ€– Generated by Copilot at 53ded4c

Summary

πŸ”„πŸ½οΈπŸ“…

This pull request adds support for using the legacy API as an alternative or fallback option for various features of the app, such as the timetable, exams, grades, rooms, etc. It also adds a feature to select a language for the food names in the mensa plan. It introduces new files, such as anonymous-legacy-api.js, authenticated-legacy-api.js, and *-legacy-utils.js, to handle the legacy API requests and responses. It also modifies some existing files, such as thi-session-handler.js, calendar-utils.js, FoodCard.jsx, and FilterFoodModal.jsx, to add conditional logic and props to switch between the legacy and the new API or the language preference. It also adds a new dependency, postgres-array, to parse the postgres array syntax used by the legacy API.

To work with the old and the new We added some code to review _With LEGACY_MODE we can switch_ Between APIs without a glitch And display the data we need to

Walkthrough

alexhorn commented 12 months ago

Could you maybe rebase this on top of the current develop branch?

Robert27 commented 11 months ago

closed due to new pr on dev branch #347