Skip to content

v2.2.0 — Mensa/café hours split, K/C room-tint fixes, seat-info toggle, copy shop - #13

Merged
arudaev merged 5 commits into
mainfrom
feat/cafeteria-hours-and-seat-filter
Jul 8, 2026
Merged

v2.2.0 — Mensa/café hours split, K/C room-tint fixes, seat-info toggle, copy shop#13
arudaev merged 5 commits into
mainfrom
feat/cafeteria-hours-and-seat-filter

Conversation

@arudaev

@arudaev arudaev commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Building F now shows the ground-floor café hours (07:30–17:00) and the 1st-floor Mensa lunch service (11:00–14:15) as two separate, correctly-sourced lines, instead of conflating them under one schedule.
  • Building K's map tint and free-room count no longer get overridden by its café's open/closed state — K hosts real classrooms, so it now tints by actual room availability like other teaching buildings. F and GH (pure amenity, no teaching rooms) keep their hours-based tint.
  • Cafeteria/Mensa cards show the full opening window ("Open · 07:30–17:00") instead of just the closing time, and the panel layout now reads note → amenities → hours → menu link.
  • Removed the STWNO menu link from GH and K (only the Mensa publishes an actual daily Speiseplan).
  • "Only rooms with seat info" is now an on/off segmented toggle (matching the Map Amenities control), moved between Room Type and Building in the filter popover.
  • Building C's copy shop (room C 012, Mon–Thu 09:00–14:00) now shows up in the side panel, with a new printer map glyph alongside the existing coffee cup and open book. Like K, building C is mixed-use — its map tint/room count still track real classroom availability.
  • Fixed Veilchengasse 2's two rooms ("Smart Lab", "Vorlesungssaal Veilchengasse 2") never appearing under the V2 campus footprint — they're named descriptively instead of the usual <Letter><Number> - name convention, so the building parser resolved them to bogus codes and they silently fell off the map.
  • Bumped package.json/package-lock.json to 2.2.0.

Test plan

  • npm run typecheck
  • npm test (80 tests passing, incl. new getMensaCanteenHours / getCopyShopHours / Veilchengasse mapper coverage)
  • npm run build
  • Manually verified in preview: building K selection shows real free-room count + teal tint; building F shows separate café/Mensa hours lines; seat-info toggle changes the free-room count live; building C shows the printer glyph and copy shop card; V2 now lists both Veilchengasse rooms as free

arudaev added 5 commits July 8, 2026 16:04
STWNO publishes the ground-floor café and the 1st-floor Mensa lunch
service on separate pages with different hours (07:30-17:00 vs.
11:00-14:15); building F now shows both instead of conflating them.

Building K also hosts real classrooms alongside its ground-floor café,
so its map tint and free-room count no longer get clobbered by the
café's open/closed state — only F and GH (pure amenity, no teaching
rooms) still tint by hours. K's card also drops its STWNO link, since
only the Mensa publishes an actual daily menu.
Matches the segmented-pill style already used for map amenities, and
moves it between Room Type and Building so the filter panel reads as
one consistent list instead of a lone checkbox at the bottom.
Room C 012 hosts a walk-in copy/print/binding service (Mon-Thu
09:00-14:00, closed Fri/weekends; THD's page gives no break-time hours,
so the break is modeled as closed rather than guessed). Building C is
mixed-use like K, so its map tint and free-room count keep tracking
real classroom availability -- only its side-panel card reflects the
copy shop's hours.

Adds a third map glyph (printer) alongside the existing coffee cup and
open book, drawn in the same halo-badge style.
THabella names these rooms descriptively ("Smart Lab (Veilchengasse)",
"Vorlesungssaal Veilchengasse 2") instead of the usual
"<Letter><Number> - name" convention, so parseBuilding's generic
leading-letters parse resolved them to "Smart"/"Vorlesungssaal" --
neither of which matched the V2 map key, leaving the footprint always
empty even though both rooms are live and teaching-eligible.
@vercel

vercel Bot commented Jul 8, 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 8, 2026 3:55pm

@arudaev arudaev self-assigned this Jul 8, 2026
@arudaev
arudaev merged commit e6bdf83 into main Jul 8, 2026
4 checks passed
@arudaev
arudaev deleted the feat/cafeteria-hours-and-seat-filter branch July 8, 2026 16:09
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