v2.1.0 — correct hours, room search, closed-campus planning, campus dining - #9
Merged
Merged
Conversation
…g, campus dining Split opening hours into general classroom buildings (Mon–Fri 07:00–20:00) and a separate Library schedule via getLibraryHours; the old 08:30/Fri-18:00 values were Library-specific. During exams only the Library stays open late and on weekends. Plan ahead when closed: RoomDataContext now derives planningTime + preview so the Rooms and Campus tabs list what will be free once the campus opens instead of showing only a "closed" banner. Fully-closed days offer a jump to next open. Add flexible room search across all teaching rooms (occupied included) with live status, matching code/name/building and equipment, with an EN↔DE synonym dictionary so "projector" finds rooms tagged "Beamer". Surface the Library and dining on the campus map: coffee glyphs on F/GH/K and a book glyph on the Library, via an additive `glyphs` prop on CampusMap. The building side panel shows a study-space note with live Library hours, and the café/canteen floors with STWNO menu links. Bump version to 2.1.0.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The inline coffee/book strokes sat too close to the building letter and the coffee mark read as a power plug. Redraw each as a halo-filled disc (legible on any roof tint) with a filled cup / open-book icon, lifted clear of the label.
Draw building labels/badges in a final overlay pass so a taller neighbour can no longer hide them — the GH café cup was being painted under the ITC² building. Nudge GH's label clear of ITC²'s courtyard. Relabel the central-lecture-hall footprint as building P (its actual name) and surface it as a study spot: a book glyph, a side-panel note about its shop and meeting place, and a live open/closed line on the general 07:00–20:00 hours. Generalise PlaceCard to render hours for any place (Library keeps its own schedule; study spaces use the campus hours).
Correct building P to the Pavillon (Begegnungsstätte & Campus-Store) — it is not the central lecture halls. Add ITC² as a study space (ITC²-Bibliothek / Lernräume) with a book glyph and open/closed on general hours. Refine GH to "Mensa Glashaus" with its 1st-floor conference room. Enrich building side-panel names/faculties from the legend (A, E, G, H, I, J, K, L), and fix the "Günther Karl Forum" spelling.
Let students hide the café/study glyphs on the campus map. A persisted MapPrefsProvider drives an On/Off control placed alongside Theme and Language in the settings menu; CampusScreen passes the glyphs only when enabled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v2.1.0
Improves how students find a study room and get around a campus they know.
1. Correct opening hours
src/domain/openingHours.tssplit into two schedules sharing one resolver:08:30–20:00 / Fri 18:00, hiding 07:00–08:30 availability.getLibraryHours()keeps the Bibliothek's own hours; during exams only the Library stays open late (23:45) and on weekends.2. Plan ahead when the campus is closed
RoomDataContextnow derivesplanningTime+preview. Before opening (e.g. 06:00) the Rooms/Campus tabs show "Campus opens at 07:00 — planning ahead" and list what will be free — including rooms free all day — instead of a dead-end banner. Fully-closed days offer a jump to the next opening.3. Flexible room search
New
src/domain/roomSearch.ts+ a Search control beside Filters. Spans all teaching rooms (occupied included) with live status, matching code/name/building and equipment, with an EN↔DE synonym dictionary — e.g. "projector" finds rooms tagged "Beamer".4. Library & dining on the campus map
New
placeMeta.ts/PlaceCard.tsx, plus an additiveglyphsprop onCampusMap:Verification
npm run typecheckclean · 59/59 tests pass ·npm run buildsucceeds.To confirm before release
versionCode/versionNamenot bumped (confirm before a release build).