Add address to search placeholder and add "at or above" to category copy for low income (#1665)

* Add address to search placeholder text

* Adds "at or above" to category copy

* Updates map search placeholder text

- Update es and en.json files
- adds mobile search placeholder text
- udpates desktop search placeholder text

* Update logic to determine mobile for search text

* Update search error message

- update to Spanish text as well

* Adjust spacing between search and territory btns

* Modify mobile detection logic

- remove cypress tests for faster deploys

* Add placeholder text to state variable

- wrap state variable in useEffect()
This commit is contained in:
Vim 2022-06-03 12:35:28 -04:00 committed by GitHub
commit 9f0ca1c17d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 69 additions and 40 deletions

View file

@ -343,12 +343,16 @@
"defaultMessage": "Communities identified as disadvantaged by the map are those that are marginalized, underserved, and overburdened by pollution. These communities are at or above the thresholds in one or more of eight categories of criteria.",
"description": "On the explore the map page, the description of the legend"
},
"explore.map.page.map.search.placeholder.mobile.text": {
"defaultMessage": "Search locations",
"description": "On the explore the map page, on the map, the placeholder text for search"
},
"explore.map.page.map.search.placeholder.text": {
"defaultMessage": "Enter a city, state or ZIP",
"defaultMessage": "Search for an address, city, state or ZIP",
"description": "On the explore the map page, on the map, the placeholder text for search"
},
"explore.map.page.map.search.results.empty.text": {
"defaultMessage": "No location found. Please try again.",
"defaultMessage": "Location not found or unknown. Please try a different search.",
"description": "On the explore the map page, on the map, the text displaying message for no search results found"
},
"explore.map.page.map.territoryFocus.alaska.long": {
@ -920,7 +924,7 @@
"description": "Navigate to the methodology page. Navigate to the category section. This is the portion of the formula dealing with higher ed enrollment and high school degree rate"
},
"methodology.page.category.and.clause.low.inc.hs.ed": {
"defaultMessage": "<boldtag>AND</boldtag> is above the 65th percentile for <link1>low income</link1> AND 80% or more of individuals 15 or older are not enrolled in <link2>higher education</link2>",
"defaultMessage": "<boldtag>AND</boldtag> is at or above the 65th percentile for <link1>low income</link1> AND 80% or more of individuals 15 or older are not enrolled in <link2>higher education</link2>",
"description": "Navigate to the methodology page. Navigate to the category section. This is category portion of the formula dealing with lower income and high school degree rate"
},
"methodology.page.category.asthma.description.text": {

View file

@ -87,8 +87,9 @@
"explore.map.page.heading.text": "Explore la herramienta",
"explore.map.page.label.text": "Comunidad desfavorecida",
"explore.map.page.legend.description.text": "Las comunidades que la herramienta identifica como desfavorecidas son las que se encuentran marginadas, desatendidas y abrumadas por la contaminación. Esas comunidades alcanzan los umbrales de una o más de ocho categorías de criterios, o los superan.",
"explore.map.page.map.search.placeholder.text": "Introduzca una ciudad, estado o código postal",
"explore.map.page.map.search.results.empty.text": "No se encontró el lugar. Vuelva a intentarlo.",
"explore.map.page.map.search.placeholder.mobile.text": "Buscar ubicaciones",
"explore.map.page.map.search.placeholder.text": "Busque una dirección, ciudad, estado o código postal",
"explore.map.page.map.search.results.empty.text": "Ubicación no encontrada o desconocida. Intente una búsqueda diferente.",
"explore.map.page.map.territoryFocus.alaska.long": "Alaska",
"explore.map.page.map.territoryFocus.alaska.short": "AK",
"explore.map.page.map.territoryFocus.american.samoa.long": "Samoa estadounidense",
@ -232,7 +233,7 @@
"map.territoryFocus.focusOn": "Enfoque en {territory}",
"methodology.page.categories.title": "Las comunidades están identificadas como desfavorecidas por la versión actual de la herramienta para los fines de la Iniciativa Justice40 si se encuentran en grupos de bloques del censo que estén en el umbral o por encima del umbral de una o más de las ocho categorías de criterios a continuación.",
"methodology.page.category.and.clause.hs.ed.higher.ed": "<boldtag>Y</boldtag> 10% o más de los adultos con 25 años cumplidos no han obtenido <link1>un grado de escuela preparatoria o secundaria</link1> Y 80% o más de las personas con 15 años cumplidos no están inscritas en un programa de <link2>educación superior</link2>",
"methodology.page.category.and.clause.low.inc.hs.ed": "<boldtag>Y</boldtag> está por encima del percentil de 65 para <link1>bajos ingresos</link1> Y 80% o más de las personas con 15 años cumplidos no están inscritas en un programa de <link2>educación superior</link2>",
"methodology.page.category.and.clause.low.inc.hs.ed": "<boldtag>Y</boldtag> está en o por encima del percentil de 65 para <link1>bajos ingresos</link1> Y 80% o más de las personas con 15 años cumplidos no están inscritas en un programa de <link2>educación superior</link2>",
"methodology.page.category.asthma.description.text": "Porcentaje ponderado de personas que respondan “sí” a ambas de las siguientes preguntas: “¿Alguna vez le dijo un médico, enfermero u otro profesional sanitario que tiene asma?” y “¿Aún tiene asma?\"",
"methodology.page.category.card.title": "Comunidades que están <boldtag>identificadas como desfavorecidas</boldtag>",
"methodology.page.category.diabetes.description.text": "Porcentaje ponderado de personas de 18 años cumplidos que informan que un médico, enfermero u otro profesional sanitario les dijo que tienen diabetes y no es diabetes gestacional.",