Build an gender-eligibility filter for recommendations #95

Open
opened 2026-09-18 06:02:46 +00:00 by emmawong · 0 comments
Member

Overall Objective

This work continues from PR #86.

Since pre-existing work is available on the branch feat/home-page-recommendations, please continue from that branch! In addition, please check the comments on PR #86

The current code treats gender housing as a one-point preference. This means an incompatible building can still appear in a student’s recommendations(mens only will show scobell, womens only can show co-ed).

This issue creates the eligibility filter only.

Suggested Approach

  1. Review the existing work in:
    apps/frontend/src/data/preferences.ts
    apps/frontend/src/data/scoring.ts
    apps/frontend/src/data/buildingTypes.ts

  2. Continue from feat/home-page-recommendations

  3. Create a filter function that should return only buildings the
    user is eligible for.

  4. By the end, this issue should meet the requirements that:
    No gender answer keeps every building.
    Incompatible gender-restricted buildings are removed.
    Building names + IDs cannot be hard-coded.

Help & Resources

### Overall Objective This work continues from [PR #86](https://git.cmu.dev/ScottyLabs/housing/pulls/86). Since pre-existing work is available on the branch feat/home-page-recommendations, please continue from that branch! In addition, please check the comments on PR #86 The current code treats gender housing as a one-point preference. This means an incompatible building can still appear in a student’s recommendations(mens only will show scobell, womens only can show co-ed). This issue creates the eligibility filter only. ### Suggested Approach 1. Review the existing work in: apps/frontend/src/data/preferences.ts apps/frontend/src/data/scoring.ts apps/frontend/src/data/buildingTypes.ts 2. Continue from feat/home-page-recommendations 3. Create a filter function that should return only buildings the user is eligible for. 4. By the end, this issue should meet the requirements that: No gender answer keeps every building. Incompatible gender-restricted buildings are removed. Building names + IDs cannot be hard-coded. ### Help & Resources - [Starter PR #86] (https://git.cmu.dev/ScottyLabs/housing/pulls/86) - [Original Issue #55] (https://git.cmu.dev/ScottyLabs/housing/issues/55) - [README](../../ScottyLabs/housing/src/branch/main/README.md) - [Contributing Guidelines](../../ScottyLabs/housing/src/branch/main/docs/CONTRIBUTING.md)
manrajs self-assigned this 2026-09-19 20:36:14 +00:00
Sign in to join this conversation.
No milestone
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#95
No description provided.