Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions shared-helpers/__tests__/occupancyFormatting.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ describe("occupancy formatting helper", () => {
expect(occupancyTable(testListing)).toStrictEqual([
{
occupancy: { content: "2-6 people" },
unitType: { content: <strong>3 BR</strong> },
unitType: { content: <strong>3 Bedrooms</strong> },
},
{
occupancy: { content: "at least 1 person" },
unitType: { content: <strong>2 BR</strong> },
unitType: { content: <strong>2 Bedrooms</strong> },
},
{
occupancy: { content: "1 person" },
unitType: { content: <strong>SRO</strong> },
unitType: { content: <strong>Single Room Occupancy</strong> },
},
])
})
Expand All @@ -137,15 +137,15 @@ describe("occupancy formatting helper stacked table", () => {
expect(stackedOccupancyTable(testListing)).toStrictEqual([
{
occupancy: { cellText: "2-6 people" },
unitType: { cellText: "3 BR" },
unitType: { cellText: "3 Bedrooms" },
},
{
occupancy: { cellText: "at least 1 person" },
unitType: { cellText: "2 BR" },
unitType: { cellText: "2 Bedrooms" },
},
{
occupancy: { cellText: "1 person" },
unitType: { cellText: "SRO" },
unitType: { cellText: "Single Room Occupancy" },
},
])
})
Expand Down Expand Up @@ -208,11 +208,11 @@ describe("occupancy formatting helper stacked table", () => {
occupancy: { cellText: "1-2 people" },
},
{
unitType: { cellText: "1 BR" },
unitType: { cellText: "1 Bedroom" },
occupancy: { cellText: "1-2 people" },
},
{
unitType: { cellText: "2 BR, 3 BR" },
unitType: { cellText: "2 Bedrooms, 3 Bedrooms" },
occupancy: { cellText: "2-4 people" },
},
])
Expand Down Expand Up @@ -336,19 +336,19 @@ describe("occupancy formatting helper stacked table", () => {

expect(stackedUnitGroupsOccupancyTable(testListing)).toStrictEqual([
{
unitType: { cellText: "Studio, 1 BR" },
unitType: { cellText: "Studio, 1 Bedroom" },
occupancy: { cellText: "1-4 people" },
},
{
unitType: { cellText: "2 BR" },
unitType: { cellText: "2 Bedrooms" },
occupancy: { cellText: "at least 2 people" },
},
{
unitType: { cellText: "3 BR" },
unitType: { cellText: "3 Bedrooms" },
occupancy: { cellText: "no more than 6 people" },
},
{
unitType: { cellText: "4 BR" },
unitType: { cellText: "4 Bedrooms" },
occupancy: { cellText: "3-6 people" },
},
])
Expand Down
34 changes: 17 additions & 17 deletions shared-helpers/__tests__/views/summaryTables.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ describe("stackedUnitSummariesTable", () => {
{
minimumIncome: { cellSubText: "per month", cellText: "$150" },
rent: { cellSubText: "per month", cellText: "$1,200" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
},
])
})
Expand All @@ -498,7 +498,7 @@ describe("stackedUnitSummariesTable", () => {
{
minimumIncome: { cellSubText: "per month", cellText: "$120 to $150" },
rent: { cellSubText: "per month", cellText: "$1,200 to $1,500" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
},
])
})
Expand All @@ -507,7 +507,7 @@ describe("stackedUnitSummariesTable", () => {
{
minimumIncome: { cellSubText: "per month", cellText: "$0" },
rent: { cellSubText: "per month", cellText: "30% of income" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
},
])
})
Expand All @@ -516,7 +516,7 @@ describe("stackedUnitSummariesTable", () => {
{
minimumIncome: { cellSubText: "per month", cellText: "$0" },
rent: { cellSubText: "per month", cellText: "5% to 20% of income" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
},
])
})
Expand All @@ -525,7 +525,7 @@ describe("stackedUnitSummariesTable", () => {
{
minimumIncome: { cellSubText: "per month", cellText: "$0 to $60" },
rent: { cellSubText: "per month", cellText: "% of income, or up to $750" },
unitType: { cellSubText: "", cellText: "1 BR - 3 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom - 3 Bedrooms" },
},
])
})
Expand All @@ -534,7 +534,7 @@ describe("stackedUnitSummariesTable", () => {
{
minimumIncome: { cellSubText: "", cellText: "n/a" },
rent: { cellSubText: "", cellText: "n/a" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
},
])
})
Expand Down Expand Up @@ -632,7 +632,7 @@ describe("stackedUnitGroupsSummariesTable", () => {
expect(stackedUnitGroupsSummariesTable(groupRentNoRanges)).toEqual([
{
rent: { cellSubText: "per month", cellText: "$1,200" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
availability: { cellText: "Closed waitlist" },
},
])
Expand All @@ -641,7 +641,7 @@ describe("stackedUnitGroupsSummariesTable", () => {
expect(stackedUnitGroupsSummariesTable(groupRentRanges)).toEqual([
{
rent: { cellSubText: "per month", cellText: "$1,200 to $1,500" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
availability: { cellText: "Closed waitlist" },
},
])
Expand All @@ -650,7 +650,7 @@ describe("stackedUnitGroupsSummariesTable", () => {
expect(stackedUnitGroupsSummariesTable(groupPercentageRentNoRanges)).toEqual([
{
rent: { cellSubText: "per month", cellText: "30% of income" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
availability: { cellText: "Closed waitlist" },
},
])
Expand All @@ -659,7 +659,7 @@ describe("stackedUnitGroupsSummariesTable", () => {
expect(stackedUnitGroupsSummariesTable(groupPercentageRent)).toEqual([
{
rent: { cellSubText: "per month", cellText: "5% to 20% of income" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
availability: { cellText: "Closed waitlist" },
},
])
Expand All @@ -668,7 +668,7 @@ describe("stackedUnitGroupsSummariesTable", () => {
expect(stackedUnitGroupsSummariesTable(groupMixedRentUnits)).toEqual([
{
rent: { cellSubText: "per month", cellText: "% of income, or up to $750" },
unitType: { cellSubText: "", cellText: "1 BR - 3 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom - 3 Bedrooms" },
availability: { cellText: "Closed waitlist" },
},
])
Expand All @@ -677,7 +677,7 @@ describe("stackedUnitGroupsSummariesTable", () => {
expect(stackedUnitGroupsSummariesTable(groupNoRentData)).toEqual([
{
rent: { cellSubText: "", cellText: "n/a" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
availability: { cellText: "Closed waitlist" },
},
])
Expand All @@ -686,7 +686,7 @@ describe("stackedUnitGroupsSummariesTable", () => {
expect(stackedUnitGroupsSummariesTable(groupMultipleUnitTypes)).toEqual([
{
rent: { cellSubText: "per month", cellText: "$1,200 to $1,500" },
unitType: { cellSubText: "", cellText: "1 BR - 2 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom - 2 Bedrooms" },
availability: { cellText: "Closed waitlist" },
},
])
Expand All @@ -708,7 +708,7 @@ describe("stackedUnitGroupsSummariesTable", () => {
expect(stackedUnitGroupsSummariesTable(openWaitlistGroup)).toEqual([
{
rent: { cellSubText: "", cellText: "n/a" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
availability: { cellText: "Open waitlist" },
},
])
Expand All @@ -730,7 +730,7 @@ describe("stackedUnitGroupsSummariesTable", () => {
expect(stackedUnitGroupsSummariesTable(vacantUnitsGroup)).toEqual([
{
rent: { cellSubText: "", cellText: "n/a" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
availability: {
cellText: "3 Vacant units & Closed waitlist",
},
Expand All @@ -753,7 +753,7 @@ describe("stackedUnitGroupsSummariesTable", () => {
expect(stackedUnitGroupsSummariesTable(comingSoonGroup, true)).toEqual([
{
rent: { cellSubText: "", cellText: "n/a" },
unitType: { cellSubText: "", cellText: "1 BR" },
unitType: { cellSubText: "", cellText: "1 Bedroom" },
availability: { cellText: "Under construction" },
},
])
Expand Down Expand Up @@ -835,7 +835,7 @@ describe("getAvailabilityText", () => {
},
})
)
expect(renderToString(result.barContent)).toContain("1 BR")
expect(renderToString(result.barContent)).toContain("1 Bedroom")
expect(renderToString(result.barContent)).toContain("1 unit")
})
it("hide headers if no data", () => {
Expand Down
8 changes: 4 additions & 4 deletions shared-helpers/src/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@
"listings.showAll": "عرض جميع القوائم",
"listings.showClosedListings": "إظهار القوائم المغلقة",
"listings.showMatchingListings": "إظهار القوائم المطابقة",
"listings.singleRoomOccupancy": "منظمة SRO",
"listings.singleRoomOccupancy": "إشغال الغرفة الفردية",
"listings.singleRoomOccupancyDescription": "يوفر هذا العقار غرفًا فردية لشخص واحد فقط. يُسمح للمستأجرين بمشاركة الحمامات، وأحيانًا استخدام مرافق المطبخ.",
"listings.specialNotes": "ملاحظات خاصة",
"listings.underConstruction": "تحت الإنشاء",
Expand All @@ -1093,11 +1093,11 @@
"listings.unitTypes.expanded.twoBdrm": "غرفتي نوم",
"listings.unitTypes.fiveBdrm": "5 غرف نوم",
"listings.unitTypes.fourBdrm": "4 غرف نوم",
"listings.unitTypes.oneBdrm": "1 غرف نوم",
"listings.unitTypes.SRO": "منظمة SRO",
"listings.unitTypes.oneBdrm": "غرفة نوم واحدة",
"listings.unitTypes.SRO": "إشغال الغرفة الفردية",
"listings.unitTypes.studio": "ستوديو",
"listings.unitTypes.threeBdrm": "3 غرف نوم",
"listings.unitTypes.twoBdrm": "2 غرف نوم",
"listings.unitTypes.twoBdrm": "غرفتا نوم",
"listings.upcomingLotteries.noResults": "لا توجد قوائم مغلقة مع اليانصيب القادمة في هذا الوقت.",
"listings.utilities.cable": "اشتراك التلفاز",
"listings.utilities.electricity": "الكهرباء",
Expand Down
12 changes: 6 additions & 6 deletions shared-helpers/src/locales/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@
"listings.showAll": "সমস্ত তালিকা দেখান",
"listings.showClosedListings": "বন্ধ তালিকা দেখান",
"listings.showMatchingListings": "মিলে যাওয়া তালিকা দেখান",
"listings.singleRoomOccupancy": "এসআরও",
"listings.singleRoomOccupancy": "একক কক্ষের আবাসন",
"listings.singleRoomOccupancyDescription": "এই সম্পত্তিতে শুধুমাত্র একজনের জন্য একক কক্ষ রয়েছে। ভাড়াটেরা বাথরুম এবং কখনও কখনও রান্নাঘরের সুবিধা ভাগ করে নিতে পারে।",
"listings.specialNotes": "বিশেষ নোট",
"listings.underConstruction": "নির্মাণাধীন",
Expand All @@ -1091,13 +1091,13 @@
"listings.unitTypes.expanded.oneBdrm": "১টি শোবার ঘর",
"listings.unitTypes.expanded.threeBdrm": "৩টি শোবার ঘর",
"listings.unitTypes.expanded.twoBdrm": "২টি শোবার ঘর",
"listings.unitTypes.fiveBdrm": "5 বিআর",
"listings.unitTypes.fourBdrm": "4 বিআর",
"listings.unitTypes.fiveBdrm": "৫টি বেডরুম",
"listings.unitTypes.fourBdrm": "৪টি বেডরুম",
"listings.unitTypes.oneBdrm": "১ বেডরুম",
"listings.unitTypes.SRO": "এসআরও",
"listings.unitTypes.SRO": "একক কক্ষের আবাসন",
"listings.unitTypes.studio": "স্টুডিও",
"listings.unitTypes.threeBdrm": "3 বিআর",
"listings.unitTypes.twoBdrm": "2 বিআর",
"listings.unitTypes.threeBdrm": "৩টি বেডরুম",
"listings.unitTypes.twoBdrm": "২টি বেডরুম",
"listings.upcomingLotteries.noResults": "এই সময়ে আসন্ন লটারির সাথে কোন বন্ধ তালিকা নেই।",
"listings.utilities.cable": "কেবল টিভি",
"listings.utilities.electricity": "বিদ্যুৎ",
Expand Down
12 changes: 6 additions & 6 deletions shared-helpers/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@
"listings.showAll": "Mostrar todos los listados",
"listings.showClosedListings": "Mostrar los Listados cerrados",
"listings.showMatchingListings": "Mostrar listados coincidentes",
"listings.singleRoomOccupancy": "Ocupación de habitación individual",
"listings.singleRoomOccupancy": "Habitación individual",
"listings.singleRoomOccupancyDescription": "Esta propiedad ofrece habitaciones individuales para una persona solamente. Los inquilinos pueden compartir baños y, en ocasiones, cocinas.",
"listings.specialNotes": "Observaciones especiales",
"listings.underConstruction": "Bajo construcción",
Expand All @@ -1091,13 +1091,13 @@
"listings.unitTypes.expanded.oneBdrm": "1 dormitorio",
"listings.unitTypes.expanded.threeBdrm": "3 dormitorios",
"listings.unitTypes.expanded.twoBdrm": "2 dormitorios",
"listings.unitTypes.fiveBdrm": "5 dormitorios",
"listings.unitTypes.fourBdrm": "4 dormitorios",
"listings.unitTypes.fiveBdrm": "5 habitaciones",
"listings.unitTypes.fourBdrm": "4 habitaciones",
"listings.unitTypes.oneBdrm": "1 dormitorio",
"listings.unitTypes.SRO": "Ocupación de habitación individual",
"listings.unitTypes.SRO": "Habitación individual",
"listings.unitTypes.studio": "Estudio",
"listings.unitTypes.threeBdrm": "3 dormitorios",
"listings.unitTypes.twoBdrm": "2 dormitorios",
"listings.unitTypes.threeBdrm": "3 habitaciones",
"listings.unitTypes.twoBdrm": "2 habitaciones",
"listings.upcomingLotteries.noResults": "No hay listados cerrados ni loterías próximas en este momento.",
"listings.utilities.cable": "Cable",
"listings.utilities.electricity": "Electricidad",
Expand Down
14 changes: 7 additions & 7 deletions shared-helpers/src/locales/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@
"listings.showAll": "نمایش همه آگهی‌ها",
"listings.showClosedListings": "نمایش آگهی‌های بسته‌شده",
"listings.showMatchingListings": "نمایش فهرست‌های منطبق",
"listings.singleRoomOccupancy": "اس‌آر‌او",
"listings.singleRoomOccupancy": "ظرفیت اتاق یک تخته",
"listings.singleRoomOccupancyDescription": "این ملک اتاق‌های تک نفره فقط برای یک نفر ارائه می‌دهد. مستاجران ممکن است حمام و گاهی اوقات آشپزخانه را به اشتراک بگذارند.",
"listings.specialNotes": "یادداشت‌های ویژه",
"listings.underConstruction": "در دست ساخت",
Expand Down Expand Up @@ -1095,13 +1095,13 @@
"listings.unitTypes.expanded.oneBdrm": "۱ اتاق خواب",
"listings.unitTypes.expanded.threeBdrm": "۳ خوابه",
"listings.unitTypes.expanded.twoBdrm": "۲ خوابه",
"listings.unitTypes.fiveBdrm": "۵ خوابه",
"listings.unitTypes.fourBdrm": "۴ خوابه",
"listings.unitTypes.oneBdrm": "۱ خوابه",
"listings.unitTypes.SRO": "اس‌آر‌او",
"listings.unitTypes.fiveBdrm": "۵ اتاق خواب",
"listings.unitTypes.fourBdrm": "۴ اتاق خواب",
"listings.unitTypes.oneBdrm": "۱ اتاق خواب",
"listings.unitTypes.SRO": "ظرفیت اتاق یک تخته",
"listings.unitTypes.studio": "استودیو",
"listings.unitTypes.threeBdrm": "۳ خوابه",
"listings.unitTypes.twoBdrm": "۲ خوابه",
"listings.unitTypes.threeBdrm": "۳ اتاق خواب",
"listings.unitTypes.twoBdrm": "۲ اتاق خواب",
"listings.upcomingLotteries.noResults": "در حال حاضر هیچ لیست بسته شده‌ای با قرعه‌کشی‌های آینده وجود ندارد.",
"listings.utilities.cable": "کابل",
"listings.utilities.electricity": "برق",
Expand Down
14 changes: 7 additions & 7 deletions shared-helpers/src/locales/general.json
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@
"listings.showAll": "Show all listings",
"listings.showClosedListings": "Show closed listings",
"listings.showMatchingListings": "Show matching listings",
"listings.singleRoomOccupancy": "SRO",
"listings.singleRoomOccupancy": "Single Room Occupancy",
"listings.singleRoomOccupancyDescription": "This property offers single rooms for one person only. Tenants may share bathrooms, and sometimes kitchen facilities.",
"listings.specialNotes": "Special notes",
"listings.underConstruction": "Under construction",
Expand All @@ -1087,13 +1087,13 @@
"listings.unitTypes.expanded.oneBdrm": "1 bedroom",
"listings.unitTypes.expanded.threeBdrm": "3 bedroom",
"listings.unitTypes.expanded.twoBdrm": "2 bedroom",
"listings.unitTypes.fiveBdrm": "5 BR",
"listings.unitTypes.fourBdrm": "4 BR",
"listings.unitTypes.oneBdrm": "1 BR",
"listings.unitTypes.SRO": "SRO",
"listings.unitTypes.fiveBdrm": "5 Bedrooms",
"listings.unitTypes.fourBdrm": "4 Bedrooms",
"listings.unitTypes.oneBdrm": "1 Bedroom",
"listings.unitTypes.SRO": "Single Room Occupancy",
"listings.unitTypes.studio": "Studio",
"listings.unitTypes.threeBdrm": "3 BR",
"listings.unitTypes.twoBdrm": "2 BR",
"listings.unitTypes.threeBdrm": "3 Bedrooms",
"listings.unitTypes.twoBdrm": "2 Bedrooms",
"listings.upcomingLotteries.noResults": "There are no closed listings with upcoming lotteries at this time.",
"listings.utilities.cable": "Cable",
"listings.utilities.electricity": "Electricity",
Expand Down
4 changes: 2 additions & 2 deletions shared-helpers/src/locales/hy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@
"listings.showAll": "Ցուցադրել բոլոր ցուցակները",
"listings.showClosedListings": "Ցուցադրել փակված ցուցակները",
"listings.showMatchingListings": "Ցուցադրել համապատասխան ցուցակները",
"listings.singleRoomOccupancy": "ՍՊՕ",
"listings.singleRoomOccupancy": "Մեկտեղանոց սենյակի զբաղվածություն",
"listings.singleRoomOccupancyDescription": "Այս անշարժ գույքն առաջարկում է մեկ անձի համար նախատեսված մեկտեղանոց սենյակներ։ Վարձակալները կարող են համատեղ օգտագործել լոգարանները, իսկ երբեմն՝ խոհանոցային հարմարությունները։",
"listings.specialNotes": "Հատուկ նշումներ",
"listings.underConstruction": "Կառուցման փուլում է",
Expand Down Expand Up @@ -1098,7 +1098,7 @@
"listings.unitTypes.fiveBdrm": "5 ննջասենյակ",
"listings.unitTypes.fourBdrm": "4 ննջասենյակ",
"listings.unitTypes.oneBdrm": "1 ննջասենյակ",
"listings.unitTypes.SRO": "ՍՊՕ",
"listings.unitTypes.SRO": "Մեկտեղանոց սենյակի զբաղվածություն",
"listings.unitTypes.studio": "Ստուդիա",
"listings.unitTypes.threeBdrm": "3 ննջասենյակ",
"listings.unitTypes.twoBdrm": "2 ննջասենյակ",
Expand Down
Loading
Loading