Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expand listing filters #4628

Merged
merged 14 commits into from
Feb 17, 2025
Prev Previous commit
Next Next commit
Merge branch 'main' into 4542/expand-listing-filters
  • Loading branch information
mcgarrye authored Feb 12, 2025
commit a0ca5dfa632f289dd8bd494ed7a68faadb61ddcc
59 changes: 31 additions & 28 deletions api/prisma/seed-helpers/listing-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import { randomName } from './word-generator';
import { addressFactory } from './address-factory';
import { reservedCommunityTypesFindOrCreate } from './reserved-community-type-factory';
import { unitFactoryMany } from './unit-factory';
import { reservedCommunityTypeFactoryGet } from './reserved-community-type-factory';
import { randomBoolean } from './boolean-generator';


const cloudinaryIds = [
'dev/blake-wheeler-zBHU08hdzhY-unsplash_swqash',
Expand Down Expand Up @@ -274,39 +277,39 @@ export const featuresAndUtilites = (
} => ({
listingFeatures: {
create: {
elevator: true,
wheelchairRamp: true,
serviceAnimalsAllowed: true,
accessibleParking: true,
parkingOnSite: true,
inUnitWasherDryer: true,
laundryInBuilding: true,
barrierFreeEntrance: false,
rollInShower: true,
grabBars: true,
heatingInUnit: true,
acInUnit: false,
hearing: true,
visual: true,
mobility: true,
barrierFreeUnitEntrance: true,
loweredLightSwitch: true,
barrierFreeBathroom: true,
wideDoorways: true,
loweredCabinets: true,
elevator: randomBoolean(),
wheelchairRamp: randomBoolean(),
serviceAnimalsAllowed: randomBoolean(),
accessibleParking: randomBoolean(),
parkingOnSite: randomBoolean(),
inUnitWasherDryer: randomBoolean(),
laundryInBuilding: randomBoolean(),
barrierFreeEntrance: randomBoolean(),
rollInShower: randomBoolean(),
grabBars: randomBoolean(),
heatingInUnit: randomBoolean(),
acInUnit: randomBoolean(),
hearing: randomBoolean(),
visual: randomBoolean(),
mobility: randomBoolean(),
barrierFreeUnitEntrance: randomBoolean(),
loweredLightSwitch: randomBoolean(),
barrierFreeBathroom: randomBoolean(),
wideDoorways: randomBoolean(),
loweredCabinets: randomBoolean(),
...optionalFeatures,
},
},
listingUtilities: {
create: {
water: true,
gas: true,
trash: false,
sewer: true,
electricity: true,
cable: false,
phone: true,
internet: true,
water: randomBoolean(),
gas: randomBoolean(),
trash: randomBoolean(),
sewer: randomBoolean(),
electricity: randomBoolean(),
cable: randomBoolean(),
phone: randomBoolean(),
internet: randomBoolean(),
...optionalUtilities,
},
},
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.