Skip to content

Commit

Permalink
refactor: public footer seeds (bloom-housing#4434) (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyjablonski authored Feb 25, 2025
1 parent b8b1a4b commit 9efe75a
Show file tree
Hide file tree
Showing 34 changed files with 491 additions and 130 deletions.
4 changes: 2 additions & 2 deletions shared-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"prettier": "prettier --write \"**/*.ts\""
},
"dependencies": {
"@bloom-housing/ui-components": "12.1.0",
"@bloom-housing/ui-seeds": "1.17.0",
"@bloom-housing/ui-components": "12.4.0",
"@bloom-housing/ui-seeds": "1.18.1",
"@heroicons/react": "^2.1.1",
"axios-cookiejar-support": "4.0.6",
"tough-cookie": "4.1.3"
Expand Down
6 changes: 5 additions & 1 deletion shared-helpers/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,11 @@
"errors.timeError": "Por favor, ingrese una hora válida",
"errors.zipCodeError": "Por favor ingrese un código postal",
"footer.contact": "Contacto",
"footer.copyright": "Demonstration Jurisdiction © 2021 • Todos los derechos reservados.",
"footer.content.applicationQuestions": "Si tiene preguntas sobre el listado y la solicitud, comuníquese con el agente de arrendamiento que aparece en el listado.",
"footer.content.partnership": "en asociación con",
"footer.content.programQuestions": "Para consultas generales sobre el programa, puede llamar al MOHD al 123-456-7890.",
"footer.content.projectOf": "Bloomington Housing Portal es un proyecto de la",
"footer.copyright": "© Ciudad y condado de Bloomington",
"footer.disclaimer": "Exención de responsabilidades",
"footer.forGeneralQuestions": "Si requiere información general sobre el programa, nos puede llamar al 000-000-0000.",
"footer.giveFeedback": "Proporcione sus comentarios",
Expand Down
11 changes: 7 additions & 4 deletions shared-helpers/src/locales/general.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,11 @@
"errors.timeError": "Please enter a valid time",
"errors.zipCodeError": "Please enter a zip code",
"footer.contact": "Contact",
"footer.copyright": "Demonstration Jurisdiction © 2021 • All Rights Reserved",
"footer.content.applicationQuestions": "For listing and application questions, please contact the Leasing Agent displayed on the listing.",
"footer.content.partnership": "in partnership with",
"footer.content.programQuestions": "For general program inquiries, you may call MOHD at 123-456-7890.",
"footer.content.projectOf": "Bloomington Housing Portal is a project of the",
"footer.copyright": "© City & County of Bloomington",
"footer.disclaimer": "Disclaimer",
"footer.forGeneralQuestions": "For general program inquiries, you may call us at 000-000-0000.",
"footer.giveFeedback": "Give Feedback",
Expand Down Expand Up @@ -783,7 +787,7 @@
"pageDescription.listing": "Apply for affordable housing at %{listingName} in %{regionName}, built in partnership with Exygy.",
"pageDescription.welcome": "Search and apply for affordable housing on %{regionName}'s Housing Portal",
"pageTitle.additionalResources": "More Housing Opportunities",
"pageTitle.disclaimer": "Endorsement Disclaimers",
"pageTitle.disclaimer": "Disclaimer",
"pageTitle.getAssistance": "Get Assistance",
"pageTitle.housingCounselors": "Housing Counselors",
"pageTitle.privacy": "Privacy Policy",
Expand All @@ -794,8 +798,7 @@
"progressNav.completed": "completed",
"progressNav.notCompleted": "not completed",
"progressNav.srHeading": "Progress",
"region.name": "Local Region",
"states.AK": "Alaska",
"region.name": "Bloomington",
"states.AL": "Alabama",
"states.AK": "Alaska",
"states.AR": "Arkansas",
Expand Down
6 changes: 5 additions & 1 deletion shared-helpers/src/locales/tl.json
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,11 @@
"errors.timeError": "Pakilagay ang tamang oras",
"errors.zipCodeError": "Pakilagay ang zipcode",
"footer.contact": "Thông tin liên hệ",
"footer.copyright": "Demonstration Jurisdiction © 2021 • Ang Lahat ng Karapatan ay Nakalaan",
"footer.content.applicationQuestions": "Para sa listahan at mga tanong sa aplikasyon, mangyaring makipag-ugnayan sa Leasing Agent na ipinapakita sa listahan.",
"footer.content.partnership": "sa pakikipagtulungan sa",
"footer.content.programQuestions": "Para sa mga pangkalahatang katanungan sa programa, maaari kang tumawag sa MOHD sa 123-456-7890.",
"footer.content.projectOf": "Ang Bloomington Housing Portal ay isang proyekto ng",
"footer.copyright": "© Lungsod at County ng Bloomington",
"footer.disclaimer": "Pagtatatuwa",
"footer.forGeneralQuestions": "Para sa pangkalahatang katanungan ukol sa programa, maaari mo kaming tawagan sa 000-000-0000.",
"footer.giveFeedback": "Magbigay ng Feedback",
Expand Down
6 changes: 5 additions & 1 deletion shared-helpers/src/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,11 @@
"errors.timeError": "Vui lòng nhập thời gian hợp lệ",
"errors.zipCodeError": "Vui lòng nhập số zipcode",
"footer.contact": "Liên hệ",
"footer.copyright": "Quyền tài phán biểu tình © 2021 • Bảo lưu mọi quyền",
"footer.content.applicationQuestions": "Đối với các câu hỏi về danh sách và đơn đăng ký, vui lòng liên hệ với Đại lý cho thuê được hiển thị trên danh sách.",
"footer.content.partnership": "hợp tác với",
"footer.content.programQuestions": "FNếu có thắc mắc chung về chương trình, bạn có thể gọi MOHD theo số 123-456-7890.",
"footer.content.projectOf": "Cổng thông tin nhà ở Bloomington là một dự án của",
"footer.copyright": "© Thành phố & Quận Bloomington",
"footer.disclaimer": "Tuyên bố miễn trừ trách nhiệm",
"footer.forGeneralQuestions": "Đối với các yêu cầu chung về chương trình, bạn có thể gọi cho chúng tôi theo số 000-000-0000.",
"footer.giveFeedback": "Đưa ra Phản hồi",
Expand Down
6 changes: 5 additions & 1 deletion shared-helpers/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,11 @@
"errors.timeError": "請輸入有效的時間",
"errors.zipCodeError": "請輸入郵遞區號",
"footer.contact": "聯絡方式",
"footer.copyright": "Demonstration Jurisdiction © 2021 • 版權所有",
"footer.content.applicationQuestions": "對於清單和申請問題,請聯絡清單中顯示的租賃代理。",
"footer.content.partnership": "與 合作",
"footer.content.programQuestions": "對於一般計劃查詢,您可以致電 MOHD:123-456-7890。",
"footer.content.projectOf": "布魯明頓住房門戶網站是",
"footer.copyright": "© 布魯明頓市和縣",
"footer.disclaimer": "免責聲明",
"footer.forGeneralQuestions": "若為一般計劃查詢,可以致電 000-000-0000 聯絡我們。",
"footer.giveFeedback": "提供回饋意見",
Expand Down
4 changes: 2 additions & 2 deletions sites/partners/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
},
"dependencies": {
"@bloom-housing/shared-helpers": "^7.7.1",
"@bloom-housing/ui-components": "12.1.0",
"@bloom-housing/ui-seeds": "1.17.0",
"@bloom-housing/ui-components": "12.4.0",
"@bloom-housing/ui-seeds": "1.18.1",
"@heroicons/react": "^2.1.1",
"@mapbox/mapbox-sdk": "^0.13.0",
"ag-grid-community": "^26.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sites/partners/src/components/listings/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getListingStatusTag = (listingStatus: ListingsStatusEnum) => {
return (
<Tag
className="tag-uppercase"
variant={"in-process"}
variant={"warn"}
size={"lg"}
id={"listing-status-pending-review"}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,25 @@ describe("applications pages", () => {
})

it("should show other text fields when other options are checked", async () => {
const { getByText, queryByTitle, findByTitle } = render(<ApplicationDemographics />)
const { getByText, queryByTestId, findAllByTestId } = render(<ApplicationDemographics />)

expect(queryByTitle("asian-otherAsian")).not.toBeInTheDocument()
expect(queryByTestId("asian-otherAsian")).not.toBeInTheDocument()
fireEvent.click(getByText("Asian"))
fireEvent.click(getByText("Other Asian"))
expect(await findByTitle("asian-otherAsian")).toBeInTheDocument()
expect(await findAllByTestId("asian-otherAsian")).toHaveLength(2)

expect(
queryByTitle("nativeHawaiianOtherPacificIslander-otherPacificIslander")
queryByTestId("nativeHawaiianOtherPacificIslander-otherPacificIslander")
).not.toBeInTheDocument()
fireEvent.click(getByText("Native Hawaiian / Other Pacific Islander"))
fireEvent.click(getByText("Other Pacific Islander"))
expect(
await findByTitle("nativeHawaiianOtherPacificIslander-otherPacificIslander")
).toBeInTheDocument()
await findAllByTestId("nativeHawaiianOtherPacificIslander-otherPacificIslander")
).toHaveLength(2)

expect(queryByTitle("otherMultiracial")).not.toBeInTheDocument()
expect(await findAllByTestId("otherMultiracial")).toHaveLength(1)
fireEvent.click(getByText("Other / Multiracial"))
expect(await findByTitle("otherMultiracial")).toBeInTheDocument()
expect(await findAllByTestId("otherMultiracial")).toHaveLength(2)
})
})
})
4 changes: 2 additions & 2 deletions sites/public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
},
"dependencies": {
"@bloom-housing/shared-helpers": "^7.7.1",
"@bloom-housing/ui-components": "12.1.0",
"@bloom-housing/ui-seeds": "1.17.0",
"@bloom-housing/ui-components": "12.4.0",
"@bloom-housing/ui-seeds": "1.18.1",
"@heroicons/react": "^2.1.1",
"@mapbox/mapbox-sdk": "^0.13.0",
"@sentry/nextjs": "^7.61.0",
Expand Down
94 changes: 94 additions & 0 deletions sites/public/public/images/default-housing-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9efe75a

Please sign in to comment.