fix: add missing apartment and studio room type rendering in building comparison #109

Open
kluoxx wants to merge 1 commit from fix/comparison-apartment-room-types into main
Member

The building comparison component (BuildingColumn.tsx) only rendered 6 of the 9 RoomType enum values — it was missing SemiSuiteQuad, ApartmentTriple, StudioApartmentSingle, and StudioApartmentDouble. As a result, buildings whose room types are exclusively drawn from these missing values (e.g. Residence on Fifth, which only has ApartmentTriple and StudioApartmentDouble) showed a completely empty "Room Types" section.

This likely happened because this component wasn't updated when those room types were added to the enum, even though the equivalent section in BuildingDetails.tsx already handles all 9 correctly.

Fix: added the 4 missing conditional render blocks, matching the existing pattern and reusing icons/labels consistent with BuildingDetails.tsx.

Fixes #85.

The building comparison component (BuildingColumn.tsx) only rendered 6 of the 9 RoomType enum values — it was missing SemiSuiteQuad, ApartmentTriple, StudioApartmentSingle, and StudioApartmentDouble. As a result, buildings whose room types are exclusively drawn from these missing values (e.g. Residence on Fifth, which only has ApartmentTriple and StudioApartmentDouble) showed a completely empty "Room Types" section. This likely happened because this component wasn't updated when those room types were added to the enum, even though the equivalent section in BuildingDetails.tsx already handles all 9 correctly. Fix: added the 4 missing conditional render blocks, matching the existing pattern and reusing icons/labels consistent with BuildingDetails.tsx. Fixes #85.
fix: add missing apartment and studio room type rendering in building comparison
Some checks failed
kennel/build build failed
CI / check-openapi (pull_request) Successful in 8m54s
CI / check-1 (pull_request) Failing after 7m57s
CI / build (pull_request) Failing after 12m35s
CI / check (pull_request) Failing after 0s
PR size / size (pull_request) Successful in 4s
PR title / lint (pull_request) Successful in 0s
89b021cde5
Some checks failed
kennel/build build failed
CI / check-openapi (pull_request) Successful in 8m54s
CI / check-1 (pull_request) Failing after 7m57s
CI / build (pull_request) Failing after 12m35s
CI / check (pull_request) Failing after 0s
PR size / size (pull_request) Successful in 4s
PR title / lint (pull_request) Successful in 0s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/comparison-apartment-room-types:fix/comparison-apartment-room-types
git switch fix/comparison-apartment-room-types
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ScottyLabs/housing!109
No description provided.