Skip to content

v2.1.0 — correct hours, room search, closed-campus planning, campus dining - #9

Merged
arudaev merged 5 commits into
mainfrom
feat/v2.1.0-hours-search-library
Jul 6, 2026
Merged

v2.1.0 — correct hours, room search, closed-campus planning, campus dining#9
arudaev merged 5 commits into
mainfrom
feat/v2.1.0-hours-search-library

Conversation

@arudaev

@arudaev arudaev commented Jul 6, 2026

Copy link
Copy Markdown
Owner

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.ts split into two schedules sharing one resolver:

  • General classroom buildings — Mon–Fri 07:00–20:00 (weekends closed). Previously the app used the Library's 08:30–20:00 / Fri 18:00, hiding 07:00–08:30 availability.
  • Library — new 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

RoomDataContext now derives planningTime + 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 additive glyphs prop on CampusMap:

  • Coffee glyphs on F / GH / K, a book glyph on the Library (G).
  • Tapping a building shows a panel: café (ground floor) / canteen (1st floor, Mensa) with STWNO menu links; the Library shows a live open/closed line.

Verification

  • npm run typecheck clean · 59/59 tests pass · npm run build succeeds.
  • All four features confirmed in the live dev app (search "projector" → 68 hits; 06:00 preview → 121 rooms; Mensa/Library panels render; map glyphs present).

To confirm before release

  • General exam/break hours are a best-effort default — verify against THD's published schedule.
  • Building K's menu link uses the STWNO Deggendorf overview (no exact K café link was provided).
  • Android versionCode/versionName not bumped (confirm before a release build).

…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.
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
thd-room-finder Ready Ready Preview, Comment Jul 6, 2026 2:47pm

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.
@arudaev arudaev self-assigned this Jul 6, 2026
@arudaev
arudaev merged commit 782e704 into main Jul 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant