This pull request adds a feature to recenter the map based on the user's faculty in the RoomMap component, and updates the course short names data for the neuland.app website. It also enhances the useUserKind hook to return the user's faculty when they are a student, and adapts the existing components that use the hook to destructure the new object. Additionally, it fixes a typo in the date-utils module.
Sing, O Muse, of the skillful developers who wroughtMany changes to the code of the neuland app, and broughtNew features and fixes to the users, who soughtTo navigate the campus and the courses they were taught.
Walkthrough
Modify useUserKind hook to return userKind and userFaculty properties and fetch faculty from backend ()
Destructure userKind and userFaculty from useUserKind hook in various components and pages (link, link, link, link, link, link, link, link, link)
Use userFaculty to recenter the map in RoomMap component using useMap hook and Recenter component (link, link, link, link, link, link, link)
Fix typo in comment of getMonday function in date-utils.jsx (link)
π€ Generated by Copilot at 9ee2dc2
Summary
πΊοΈππ
This pull request adds a feature to recenter the map based on the user's faculty in the
RoomMap
component, and updates the course short names data for the neuland.app website. It also enhances theuseUserKind
hook to return the user's faculty when they are a student, and adapts the existing components that use the hook to destructure the new object. Additionally, it fixes a typo in thedate-utils
module.Walkthrough
useUserKind
hook to returnuserKind
anduserFaculty
properties and fetch faculty from backend ()userKind
anduserFaculty
fromuseUserKind
hook in various components and pages (link, link, link, link, link, link, link, link, link)userFaculty
to recenter the map inRoomMap
component usinguseMap
hook andRecenter
component (link, link, link, link, link, link, link)getMonday
function indate-utils.jsx
(link)