diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c7b23bb0..b4ace2f3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1 @@ * @esfoobar-usds @vim-usds @emma-nechamkin @mattbowen-usds - diff --git a/.github/ISSUE_TEMPLATE/dataset_request.yaml b/.github/ISSUE_TEMPLATE/dataset_request.yaml index 68941d3a..95e4236b 100644 --- a/.github/ISSUE_TEMPLATE/dataset_request.yaml +++ b/.github/ISSUE_TEMPLATE/dataset_request.yaml @@ -56,7 +56,7 @@ body: id: other-datasource-type attributes: label: If "other" above, please specify - description: If you have selected "other" above, please give as much detail as you can as to where this data can live + description: If you have selected "other" above, please give as much detail as you can as to where this data can live placeholder: www.example.com and www.example2.com validations: required: false @@ -110,14 +110,14 @@ body: attributes: label: Known data quality issues description: Please describe any data quality issues you know about with this dataset. - placeholder: Limited accuracy in rural areas, etc. + placeholder: Limited accuracy in rural areas, etc. validations: - required: false + required: false - type: input id: geographic-coverage attributes: label: What is the geographic coverage (in percent) of this dataset - description: If known, provide an estimate of the coverage of this dataset vis-a-vis the full United States + description: If known, provide an estimate of the coverage of this dataset vis-a-vis the full United States placeholder: 90% validations: required: false @@ -126,9 +126,9 @@ body: attributes: label: Description of geographic coverage estimate description: (If relevant) Please explain your reasoning behind the above estimate of geographic coverage - placeholder: e.g. Missing information for Puerto Rico, etc. + placeholder: e.g. Missing information for Puerto Rico, etc. validations: - required: false + required: false - type: input id: last-updated-date attributes: @@ -151,10 +151,10 @@ body: id: link-to-documentation attributes: label: Link to more documentation - description: Please provide a link where one can find additional information + description: Please provide a link where one can find additional information placeholder: www.example.com validations: - required: true + required: true - type: dropdown id: can-go-in-cloud attributes: @@ -167,8 +167,8 @@ body: - type: textarea id: additional-information attributes: - label: Additional Information + label: Additional Information description: Please provide any additional information you have about this dataset - placeholder: e.g. Missing information for Puerto Rico, etc. + placeholder: e.g. Missing information for Puerto Rico, etc. validations: required: false diff --git a/.github/ISSUE_TEMPLATE/pull_request_template.md b/.github/ISSUE_TEMPLATE/pull_request_template.md index 55e0e4c5..2b1251c9 100644 --- a/.github/ISSUE_TEMPLATE/pull_request_template.md +++ b/.github/ISSUE_TEMPLATE/pull_request_template.md @@ -19,4 +19,4 @@ Fixes # (issue number) - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes -- [ ] Any dependent changes have been merged and published in downstream modules \ No newline at end of file +- [ ] Any dependent changes have been merged and published in downstream modules diff --git a/.github/workflows/deploy_be_staging.yml b/.github/workflows/deploy_be_staging.yml index d33fe9e3..a79df8e4 100644 --- a/.github/workflows/deploy_be_staging.yml +++ b/.github/workflows/deploy_be_staging.yml @@ -79,8 +79,8 @@ jobs: with: # Deploy to S3 for the Staging URL message: | - ** Score Deployed! ** - Find it here: + ** Score Deployed! ** + Find it here: - Score Full usa.csv: https://justice40-data.s3.amazonaws.com/data-pipeline-staging/${{env.PR_NUMBER}}/${{env.SHA_NUMBER}}/data/score/csv/full/usa.csv - Download Zip Packet: https://justice40-data.s3.amazonaws.com/data-pipeline-staging/${{env.PR_NUMBER}}/${{env.SHA_NUMBER}}/data/score/downloadable/Screening_Tool_Data.zip repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -116,7 +116,7 @@ jobs: with: # Deploy to S3 for the staging URL message: | - ** Map Deployed! ** + ** Map Deployed! ** Map with Staging Backend: https://screeningtool.geoplatform.gov/en?flags=stage_hash=${{env.PR_NUMBER}}/${{env.SHA_NUMBER}} Find tiles here: https://justice40-data.s3.amazonaws.com/data-pipeline-staging/${{env.PR_NUMBER}}/${{env.SHA_NUMBER}}/data/score/tiles repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deploy_fe_staging.yml b/.github/workflows/deploy_fe_staging.yml index 0ddc1f86..9976e528 100644 --- a/.github/workflows/deploy_fe_staging.yml +++ b/.github/workflows/deploy_fe_staging.yml @@ -93,7 +93,7 @@ jobs: with: # Deploy to S3 for the staging URL message: | - **🚢 Here is the frontend staging link: 🚢** + **🚢 Here is the frontend staging link: 🚢** Find it here: http://usds-geoplatform-justice40-website.s3-website-us-east-1.amazonaws.com/justice40-tool/${{env.DESTINATION_FOLDER}}/en/ ! repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token-user-login: "github-actions[bot]" # The user.login for temporary GitHub tokens @@ -108,9 +108,9 @@ jobs: uses: mshick/add-pr-comment@v1 with: message: | - ** 👋 Attention translators!! 👋 ** + ** 👋 Attention translators!! 👋 ** Copy changes have resulted in a new en.json file. Please download en.json file and send to translators: https://github.com/usds/justice40-tool/blob/${{env.COMMIT_HASH}}/client/src/intl/en.json repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token-user-login: "github-actions[bot]" # The user.login for temporary GitHub tokens allow-repeats: true - if: contains(steps.changed-files.outputs.modified_files, 'client/src/intl/en.json') \ No newline at end of file + if: contains(steps.changed-files.outputs.modified_files, 'client/src/intl/en.json') diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index cd5aafea..cceff8ee 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -10,7 +10,7 @@ on: schedule: # runs tests every day at 12am ET (4am UTC): - cron: '0 4 * * *' -jobs: +jobs: nightly: runs-on: ubuntu-20.04 env: @@ -25,4 +25,4 @@ jobs: start: npm start wait-on: 'http://localhost:8000' # To run only specific spec/tests: - # spec: cypress/e2e/downloadPacket.spec.js \ No newline at end of file + # spec: cypress/e2e/downloadPacket.spec.js diff --git a/.github/workflows/generate-census.yml b/.github/workflows/generate-census.yml index 4820c3e7..a15240be 100644 --- a/.github/workflows/generate-census.yml +++ b/.github/workflows/generate-census.yml @@ -1,5 +1,5 @@ name: Generate Census -on: +on: workflow_dispatch: inputs: confirm-action: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c07be441..05a3146e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,11 +9,11 @@ on: workflow_dispatch: inputs: logLevel: - description: 'Log level' + description: 'Log level' required: true default: 'warning' tags: - description: 'Ping test' + description: 'Ping test' jobs: sitePingCheck: name: Slack Notification diff --git a/CODE_OF_CONDUCT-es.md b/CODE_OF_CONDUCT-es.md index e2f8da54..a1585082 100644 --- a/CODE_OF_CONDUCT-es.md +++ b/CODE_OF_CONDUCT-es.md @@ -13,4 +13,3 @@ Los mantenedores del proyecto tienen el derecho y la obligación de eliminar, ed Los casos de abuso, acoso o de otro comportamiento inaceptable se pueden denunciar abriendo un problema o contactando con uno o más de los mantenedores del proyecto en justice40open@usds.gov. Este Código de conducta es una adaptación de la versión 1.0.0 del Convenio del colaborador ([Contributor Covenant](http://contributor-covenant.org), *en inglés*) disponible en el sitio http://contributor-covenant.org/version/1/0/0/ *(en inglés)*. - diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index aeb28c98..31e75075 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -12,4 +12,4 @@ Project maintainers have the right and responsibility to remove, edit, or reject Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers at justice40open@usds.gov. -This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/) \ No newline at end of file +This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/) diff --git a/COMMUNITY_GUIDELINES.md b/COMMUNITY_GUIDELINES.md index 4b398c81..a4b3cfc5 100644 --- a/COMMUNITY_GUIDELINES.md +++ b/COMMUNITY_GUIDELINES.md @@ -32,4 +32,4 @@ When participating in Justice40 open source community conversations and spaces, - Take space and give space. We strive to create an equitable environment in which all are welcome and able to participate. We hope individuals feel comfortable voicing their opinions and providing contributions and will do our best to recognize and make space for individuals who may be struggling to find space here. Likewise, we expect individuals to recognize when they are taking up significant space and take a step back to allow room for others. - Be present when joining synchronous conversations such as our community chat. Why be here if you're not going to _be here_? - Be respectful. -- Default to positive. Assume others' contributions are legitimate and valuable and that they are made with good intention. \ No newline at end of file +- Default to positive. Assume others' contributions are legitimate and valuable and that they are made with good intention. diff --git a/CONTRIBUTING-es.md b/CONTRIBUTING-es.md index 989fa384..f7a4ec59 100644 --- a/CONTRIBUTING-es.md +++ b/CONTRIBUTING-es.md @@ -43,4 +43,3 @@ Si desea colaborar con alguna parte del código base, bifurque el repositorio si * Al menos un revisor autorizado debe aprobar la confirmación (en [CODEOWNERS](https://github.com/usds/justice40-tool/tree/main/.github/CODEOWNERS), en inglés, consulte la lista más reciente de estos revisores). * Todas las verificaciones de estado obligatorias deben ser aprobadas. Si hay un desacuerdo importante entre los integrantes del equipo, se organizará una reunión con el fin de determinar el plan de acción para la solicitud de incorporación de cambios. - diff --git a/INSTALLATION.md b/INSTALLATION.md index b20101f7..b8a57fbf 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -36,7 +36,7 @@ Homebrew is an easy way to manage software downloads on MacOS. You don't _have_ You should regularly run `brew update` and `brew doctor` to make sure your packages are up to date and in good condition. -### Install Node using NVM +### Install Node using NVM This will work for both MacOS and Win10. Follow instructions on this [link](https://medium.com/@nodesource/installing-node-js-tutorial-using-nvm-5c6ff5925dd8). Be sure to read through the whole doc to find the sections within each step relevant to you (e.g. if you're using Homebrew, when you get to Step 2 look for the section, "Install NVM with Homebrew"). @@ -54,7 +54,7 @@ You should then be able to switch to that version of node by: To validate you are using node 14, type: -`node -v` +`node -v` This should return *Now using node 14.x.x (npm v6.x.x)* diff --git a/LICENSE-es.md b/LICENSE-es.md index 64a26f3f..413b3d74 100644 --- a/LICENSE-es.md +++ b/LICENSE-es.md @@ -28,4 +28,3 @@ Por estos u otros propósitos y motivos, y sin ninguna expectativa de otra consi c. El Afirmante excluye la responsabilidad de los derechos de compensación de otras personas que se puedan aplicar a la Obra o a cualquier uso de esta, incluidos, entre otros, los Derechos de Autor y Derechos Conexos de cualquier persona sobre la Obra. Además, el Afirmante excluye la responsabilidad de obtener los consentimientos o permisos u otros derechos necesarios que se exijan para cualquier uso de la Obra. d. El Afirmante entiende y reconoce que Creative Commons no es una parte en este documento y que no tiene ningún derecho u obligación con respecto a esta CC0 o al uso de la Obra. - diff --git a/README-es.md b/README-es.md index b35f25ff..0e845b4a 100644 --- a/README-es.md +++ b/README-es.md @@ -2,7 +2,7 @@ [![CC0 License](https://img.shields.io/badge/license-CCO--1.0-brightgreen)](https://github.com/usds/justice40-tool/blob/main/LICENSE.md) *[Read this in English!](README.md)* - + Le damos la bienvenida a la comunidad de código abierto de Justice40. Este repositorio contiene el código, los procesos y la documentación que activa los datos y la tecnología de la Herramienta Justice40 para la Vigilancia del Clima y la Justicia Económica (CEJST, por sus siglas en inglés). ## Antecedentes @@ -36,7 +36,7 @@ El equipo central usa el grupo para publicar la información más reciente sobre Las colaboraciones son siempre bien recibidas. Nos agradan las aportaciones en forma de conversación sobre los temas de este repositorio y las solicitudes para incorporación de cambios en la documentación y el código. En [CONTRIBUTING-es.md](CONTRIBUTING-es.md), consulte la manera de empezar a participar. -## Instalación +## Instalación La instalación es una instalación típica de gatsby y los detalles se pueden encontrar en [INSTALLATION-es.md](INSTALLATION-es.md) diff --git a/README.md b/README.md index bd62dc27..ff62780a 100644 --- a/README.md +++ b/README.md @@ -11,19 +11,19 @@ The Justice40 initiative and screening tool were announced in an [Executive Orde Please see our [Open Source Community Orientation](docs/Justice40_Open_Source_Community_Orientation.pptx) deck for more information on the Justice40 initiative, our team, this project, and ways to participate. ## Core team -The core Justice40 team building this tool is a small group of designers, developers, and product managers from the US Digital Service in partnership with the Council on Environmental Quality (CEQ). +The core Justice40 team building this tool is a small group of designers, developers, and product managers from the US Digital Service in partnership with the Council on Environmental Quality (CEQ). An up-to-date list of core team members can be found in [MAINTAINERS.md](MAINTAINERS.md). The engineering members of the core team who maintain the code in this repo are listed in [.github/CODEOWNERS](.github/CODEOWNERS). ## Community -The Justice40 team is taking a community-first and open source approach to the product development of this tool. We believe government software should be made in the open and be built and licensed such that anyone can take the code, run it themselves without paying money to third parties or using proprietary software, and use it as they will. +The Justice40 team is taking a community-first and open source approach to the product development of this tool. We believe government software should be made in the open and be built and licensed such that anyone can take the code, run it themselves without paying money to third parties or using proprietary software, and use it as they will. -We know that we can learn from a wide variety of communities, including those who will use or will be impacted by the tool, who are experts in data science or technology, or who have experience in climate, economic,or environmental justice work. We are dedicated to creating forums for continuous conversation and feedback to help shape the design and development of the tool. +We know that we can learn from a wide variety of communities, including those who will use or will be impacted by the tool, who are experts in data science or technology, or who have experience in climate, economic,or environmental justice work. We are dedicated to creating forums for continuous conversation and feedback to help shape the design and development of the tool. We also recognize capacity building as a key part of involving a diverse open source community. We are doing our best to use accessible language, provide technical and process documents in multiple languages, and offer support to our community members of a wide variety of backgrounds and skillsets, directly or in the form of group chats and training. If you have ideas for how we can improve or add to our capacity building efforts and methods for welcoming folks into our community, please let us know in the [Google Group](https://groups.google.com/u/4/g/justice40-open-source) or email us at justice40open@usds.gov. ### Community Guidelines -Principles and guidelines for participating in our open source community are available [here](COMMUNITY_GUIDELINES.md). Please read them before joining or starting a conversation in this repo or one of the channels listed below. +Principles and guidelines for participating in our open source community are available [here](COMMUNITY_GUIDELINES.md). Please read them before joining or starting a conversation in this repo or one of the channels listed below. ### Community Chats We host open source community chats every third Monday of the month at 5-6pm ET. You can find information about the agenda and how to participate in our [Google Group](https://groups.google.com/u/4/g/justice40-open-source). @@ -31,15 +31,15 @@ We host open source community chats every third Monday of the month at 5-6pm ET. Community members are welcome to share updates or propose topics for discussion in community chats. Please do so in the Google Group. ### Google Group -Our [Google Group](https://groups.google.com/u/4/g/justice40-open-source) is open to anyone to join and share their knowledge or experiences, as well as to ask questions of the core Justice40 team or the wider community. +Our [Google Group](https://groups.google.com/u/4/g/justice40-open-source) is open to anyone to join and share their knowledge or experiences, as well as to ask questions of the core Justice40 team or the wider community. The core team uses the group to post updates on the program and tech/data issues, and to share the agenda and call for community participation in the community chat. -Curious about whether to ask a question here as a Github issue or in the Google Group? The general rule of thumb is that issues are for actionable topics related to the tool or data itself (e.g. questions about a specific data set in use, or suggestion for a new tool feature), and the Google Group is for more general topics or questions. If you can't decide, use the google group and we'll discuss it there before moving to Github if appropriate! +Curious about whether to ask a question here as a Github issue or in the Google Group? The general rule of thumb is that issues are for actionable topics related to the tool or data itself (e.g. questions about a specific data set in use, or suggestion for a new tool feature), and the Google Group is for more general topics or questions. If you can't decide, use the google group and we'll discuss it there before moving to Github if appropriate! ## Contributing -Contributions are always welcome! We encourage contributions in the form of discussion on issues in this repo and pull requests of documentation and code. +Contributions are always welcome! We encourage contributions in the form of discussion on issues in this repo and pull requests of documentation and code. See [CONTRIBUTING.md](CONTRIBUTING.md) for ways to get started. diff --git a/client/.dockerignore b/client/.dockerignore index b512c09d..3c3629e6 100644 --- a/client/.dockerignore +++ b/client/.dockerignore @@ -1 +1 @@ -node_modules \ No newline at end of file +node_modules diff --git a/client/.generate_component/README.md b/client/.generate_component/README.md index 132e0643..27b259ef 100644 --- a/client/.generate_component/README.md +++ b/client/.generate_component/README.md @@ -2,12 +2,12 @@ Creating all the various parts of a React component each time a new component is needed is cumbersome and error-prone. -This folder follows this [link](https://levelup.gitconnected.com/how-to-generate-react-components-from-your-terminal-a27741a5b862) to allow the developer to create a new React component (along with sass, tests and barrell) with a single command. The command is +This folder follows this [link](https://levelup.gitconnected.com/how-to-generate-react-components-from-your-terminal-a27741a5b862) to allow the developer to create a new React component (along with sass, tests and barrell) with a single command. The command is -`npm run gc ` +`npm run gc ` For example: to create a new React component called MapGeolocate: `npm run gc MapGeolocate` -Note: gc stands for generate component \ No newline at end of file +Note: gc stands for generate component diff --git a/client/.generate_component/component_templates.js b/client/.generate_component/component_templates.js index ec28110d..1081d6c4 100644 --- a/client/.generate_component/component_templates.js +++ b/client/.generate_component/component_templates.js @@ -61,4 +61,4 @@ describe('rendering of ${name} Component', () => { // index.ts exports.barrel = name => `import ${name} from './${name}'; export default ${name}; -`; \ No newline at end of file +`; diff --git a/client/.generate_component/index.js b/client/.generate_component/index.js index 61fb065d..3dc33594 100644 --- a/client/.generate_component/index.js +++ b/client/.generate_component/index.js @@ -8,7 +8,7 @@ if (!name) throw new Error('You must include a component name.'); const dir = `./src/components/${name}/`; // throw an error if the file already exists -if (fs.existsSync(dir)) throw new Error('A component with that name already exists.'); +if (fs.existsSync(dir)) throw new Error('A component with that name already exists.'); // create the folder fs.mkdirSync(dir); @@ -52,4 +52,4 @@ fs.writeFile(`${dir}/index.ts`, barrel(name), writeFileErrorHandler); const fileContent = `${importStatements}\n${exportStatements}`; fs.writeFile(`./src/components/index.ts`, fileContent, writeFileErrorHandler); -}); */ \ No newline at end of file +}); */ diff --git a/client/.gitignore b/client/.gitignore index faf790bb..0b91b6d1 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -5,4 +5,4 @@ public cypress/screenshots/ cypress/videos/ .DS_Store -coverage \ No newline at end of file +coverage diff --git a/client/.husky/pre-commit b/client/.husky/pre-commit index 615d60f7..ac05011a 100755 --- a/client/.husky/pre-commit +++ b/client/.husky/pre-commit @@ -7,7 +7,7 @@ echo "[pre-commit hook msg]: running pre-commit hook ..." # https://typicode.github.io/husky/#/?id=custom-directory cd client -# This file will automatically run intl:extract and compile on every commit +# This file will automatically run intl:extract and compile on every commit # write the extracted errors into a file npm run intl:extract 2> extract-err.txt @@ -38,4 +38,4 @@ else git add src/intl/en.json echo '[pre-commit hook msg]: pre-commit hook complete.' echo -fi \ No newline at end of file +fi diff --git a/client/DESIGN2DEV.md b/client/DESIGN2DEV.md index d08f601a..80173570 100644 --- a/client/DESIGN2DEV.md +++ b/client/DESIGN2DEV.md @@ -4,26 +4,26 @@ This document tries to capture the process for designers and developers - Developer process ## Designer process -- Designers are using a Sketch library from USWDS to ensure elements brought into the design are using USWDS +- Designers are using a Sketch library from USWDS to ensure elements brought into the design are using USWDS components and tokens. -- and

tags were defined using USWDS spacing, color, and typography tokens. -- Designs show and

tags in context using realistic content (though content is subject to change). +- and

tags were defined using USWDS spacing, color, and typography tokens. +- Designs show and

tags in context using realistic content (though content is subject to change). - Designs also show additional spacing tokens used for containers. -- Designs show the various breakpoints (using USWDS tokens as guidance) to indicate how elements shift between +- Designs show the various breakpoints (using USWDS tokens as guidance) to indicate how elements shift between narrow and wide screen widths. -- If there is not a USWDS component available to fulfill an interaction need, a custom design is created, +- If there is not a USWDS component available to fulfill an interaction need, a custom design is created, keeping in mind scalability, the larger design system, and responsiveness. ## Developer process -There are a number of ways that the app is styled. +There are a number of ways that the app is styled. - global.scss - trusswork styling - sass modules (component level) - map styling ### global.scss -This file is meant to be central location to capture all global styles that appear on all pages for reusables HTML -elements. This global sass file is in the styles folder. The theme folder in the styles folder houses all the styles +This file is meant to be central location to capture all global styles that appear on all pages for reusables HTML +elements. This global sass file is in the styles folder. The theme folder in the styles folder houses all the styles from USWDS. The structure of the global.scss file is in accordance to the fundamental usage of USWDS: @@ -53,7 +53,7 @@ $theme-namespace: ( ); ``` -With these available to the global.scss file, developers can implement designs that refer to tokens identified in the +With these available to the global.scss file, developers can implement designs that refer to tokens identified in the designs. ### Trusswork styling @@ -65,4 +65,4 @@ Each component has its own styling. This offers a way to keep the global.scss mi still TBD on how to get the USWDS styles to apply directly to components. ### Map styling -The map's styling is largely outside of SASS. It controlled via data/mapStyle.tsx \ No newline at end of file +The map's styling is largely outside of SASS. It controlled via data/mapStyle.tsx diff --git a/client/Dockerfile b/client/Dockerfile index 71c6024e..4e0b3919 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -1,6 +1,6 @@ FROM node:14 -# Set working directory like 'cd' command, any subsequent instructions in this docker file, will start from +# Set working directory like 'cd' command, any subsequent instructions in this docker file, will start from # this working directory WORKDIR /client @@ -10,7 +10,7 @@ COPY package*.json ./ # install all packages as a layer in the docker image / container RUN npm install -# copy all local files from the working directory to the docker image/container however we must use +# copy all local files from the working directory to the docker image/container however we must use # dockerignore to ignore node_modules so that the image can use what what was just installed from the above # step. COPY . . diff --git a/client/README.md b/client/README.md index 42b468cd..716e87c3 100644 --- a/client/README.md +++ b/client/README.md @@ -19,7 +19,7 @@ This README contains the following content: ### Via npm -#### Install Node using NVM +#### Install Node using NVM This will work for both MacOS and Win10. Follow instructions on this [link](https://medium.com/@nodesource/installing-node-js-tutorial-using-nvm-5c6ff5925dd8). Be sure to read through the whole doc to find the sections within each step relevant to you (e.g. if you're using Homebrew, when you get to Step 2 look for the section, "Install NVM with Homebrew"). @@ -38,7 +38,7 @@ You should then be able to switch to that version of node by: To validate you are using node 14, type: -`node -v` +`node -v` This should return *Now using node 14.x.x (npm v6.x.x)* #### Install Yarn @@ -69,7 +69,7 @@ If you've made changes to the docker-compose file and want to re-build the j40_w `docker-compose build --no-cache j40_website` -This will not use the cache and re-build the image. Then do +This will not use the cache and re-build the image. Then do `docker-compoe up` @@ -78,10 +78,10 @@ This will not use the cache and re-build the image. Then do `docker image system` -This should reduce the total used space. +This should reduce the total used space. #### Changing the source of tile / map layer -If you don't want to use the local data-pipeline location for getting the tile / map layers, you can change the +If you don't want to use the local data-pipeline location for getting the tile / map layers, you can change the DATA_SOURCE env variable in the docker-compose.yml. See [environment variables](#environment-variables) for more info. #### Troubleshooting docker @@ -174,7 +174,7 @@ There are 3 environment variables that can be set: 2. SITE_URL = set this to change the base URL for the website's public html folder. If none is provided, then localhost:8000 is used. This is used for the site_map.xml file and robots.txt file. This is only used during production build aka `npm build`. 3. PATH_PREFIX = set this to add an additional path(s) to SITE_URL. If none is provided then no additional paths are added to the SITE_URL. This is only used during production build aka `npm build`. -Note when setting environment variables in docker-compose, DATA_SOURCE is the only one that is applicable. +Note when setting environment variables in docker-compose, DATA_SOURCE is the only one that is applicable. ## Feature Toggling @@ -217,10 +217,10 @@ When developing, to use a flag: The following attemps to explain why certain packages versions have been chosen and what their current limitations are -| package | current version | latest version | using latest? | how does it break? | +| package | current version | latest version | using latest? | how does it break? | |------------|-----------------|----------------|---------------|--------------------| -| gatsby | 3.14.6 | 4.14.2 | No | when attempting to update - breaks all unit tests. Compatibility warning come up with all plugins but this doesn't seems to effect functionality. This is the latest version we can release without investigating unit tests. | -| gatsby-cli | 3.14.2 | 4.15.2 | No | when attempting to update - breaks all unit tests. Compatibility warning come up with all plugins but this doesn't seems to effect functionality. This is the latest version we can release without investigating unit tests.| +| gatsby | 3.14.6 | 4.14.2 | No | when attempting to update - breaks all unit tests. Compatibility warning come up with all plugins but this doesn't seems to effect functionality. This is the latest version we can release without investigating unit tests. | +| gatsby-cli | 3.14.2 | 4.15.2 | No | when attempting to update - breaks all unit tests. Compatibility warning come up with all plugins but this doesn't seems to effect functionality. This is the latest version we can release without investigating unit tests.| | sass | 1.32.12 | 1.52.3 | No | This version is needed to surpress the dart warnings on / as division for each component. See [here](https://github.com/twbs/bootstrap/issues/34051#issuecomment-845884423) for more information | -| uswds | 2.11.2 | 3.0.2 | No | Needs to stay at 2.11 for peer dependency on trussworks| -| trussworks | 2.9.0 | 3.0.2 | No | Needs to stay at 2.9 as 3.0 is breaking change | \ No newline at end of file +| uswds | 2.11.2 | 3.0.2 | No | Needs to stay at 2.11 for peer dependency on trussworks| +| trussworks | 2.9.0 | 3.0.2 | No | Needs to stay at 2.9 as 3.0 is breaking change | diff --git a/client/VIEW_MAP_DATA.md b/client/VIEW_MAP_DATA.md index 616c7fe8..466988ed 100644 --- a/client/VIEW_MAP_DATA.md +++ b/client/VIEW_MAP_DATA.md @@ -45,7 +45,7 @@ In our specific case: - `tippecanoe-decode d3_313.pbf 3 1 3` -If the file is super big we can just look at the head of the file: +If the file is super big we can just look at the head of the file: - `tippecanoe-decode d3_313.pbf 3 1 3 | head -40` @@ -179,7 +179,7 @@ When zooming in (the zoom number will increase), thus aka 'high' zoom levels, th "GEOID10":"020160001001", "State Name":"Alaska", "County Name":"Aleutians West Census Area", - + // TOTAL_POPULATION "Total population":975, "Score E (percentile)":0.49, @@ -192,14 +192,14 @@ When zooming in (the zoom number will increase), thus aka 'high' zoom levels, th "Percentage of individuals age 25 or over with less than high school degree (percentile)":0.08, // LINGUISTIC_ISOLATION_PROPERTY_PERCENTILE - "Linguistic isolation (percent) (percentile)":0.05, - + "Linguistic isolation (percent) (percentile)":0.05, + // UNEMPLOYMENT_PROPERTY_PERCENTILE - "Unemployed civilians (percent) (percentile)":0.03, - + "Unemployed civilians (percent) (percentile)":0.03, + // HOUSING_BURDEN_PROPERTY_PERCENTILE - "Housing burden (percent) (percentile)":0.18 - + "Housing burden (percent) (percentile)":0.18 + }, "geometry":{ "type":"Polygon", diff --git a/client/compiled-lang/en.json b/client/compiled-lang/en.json index 08560330..225c715d 100644 --- a/client/compiled-lang/en.json +++ b/client/compiled-lang/en.json @@ -3523,4 +3523,4 @@ "value": "Technical Support Document" } ] -} \ No newline at end of file +} diff --git a/client/cypress/integration/About.feature b/client/cypress/integration/About.feature index 2b828bc6..e25e2e42 100644 --- a/client/cypress/integration/About.feature +++ b/client/cypress/integration/About.feature @@ -1,17 +1,17 @@ Feature: The About page will open from all other pages - + Scenario: About page open when navigating from Methodology page Given I am on the "Methodology" page # When I click on the "About" dropdown in the navigation When I click on the "About" page in the navigation Then I see "About" in the title - + Scenario: About page open when navigating from Explore the map page Given I am on the "Explore" page # When I click on the "About" dropdown in the navigation When I click on the "About" page in the navigation Then I see "About" in the title - + Scenario: About page open when navigating from Contact page Given I am on the "Contact" page # When I click on the "About" dropdown in the navigation diff --git a/client/cypress/integration/Contact.feature b/client/cypress/integration/Contact.feature index dd2795b1..1d55d7a4 100644 --- a/client/cypress/integration/Contact.feature +++ b/client/cypress/integration/Contact.feature @@ -1,5 +1,5 @@ Feature: The Contact page will open from all other pages - + Scenario: Contact page open when navigating from About page Given I am on the "About" page When I click on the "Contact" page in the navigation @@ -9,8 +9,8 @@ Feature: The Contact page will open from all other pages Given I am on the "Explore" page When I click on the "Contact" page in the navigation Then I see "Contact" in the title - + Scenario: Contact page open when navigating from Methodology page Given I am on the "Methodology" page When I click on the "Contact" page in the navigation - Then I see "Contact" in the title \ No newline at end of file + Then I see "Contact" in the title diff --git a/client/cypress/integration/Explore.feature b/client/cypress/integration/Explore.feature index a8635537..68afb6fb 100644 --- a/client/cypress/integration/Explore.feature +++ b/client/cypress/integration/Explore.feature @@ -1,5 +1,5 @@ Feature: The Explore the map page will open from all other pages - + Scenario: Explore the map page open when navigating from About page Given I am on the "About" page When I click on the "Explore the map" page in the navigation @@ -9,8 +9,8 @@ Feature: The Explore the map page will open from all other pages Given I am on the "Methodology" page When I click on the "Explore the map" page in the navigation Then I see "Explore the map" in the title - + Scenario: Explore the map page open when navigating from Contact page Given I am on the "Contact" page When I click on the "Explore the map" page in the navigation - Then I see "Explore the map" in the title \ No newline at end of file + Then I see "Explore the map" in the title diff --git a/client/cypress/integration/FooterLinks.feature b/client/cypress/integration/FooterLinks.feature index 08d9699b..5e000143 100644 --- a/client/cypress/integration/FooterLinks.feature +++ b/client/cypress/integration/FooterLinks.feature @@ -22,4 +22,4 @@ Feature: All links in the Footer are functional Given I am on the "About" page When I look for the "footer" And I click on the "Find a contact at USA.gov" footer link - Then the link should respond successfully \ No newline at end of file + Then the link should respond successfully diff --git a/client/cypress/integration/LegacyTests/mapZoomLatLong.spec.js b/client/cypress/integration/LegacyTests/mapZoomLatLong.spec.js index 19743444..bf521fca 100644 --- a/client/cypress/integration/LegacyTests/mapZoomLatLong.spec.js +++ b/client/cypress/integration/LegacyTests/mapZoomLatLong.spec.js @@ -62,4 +62,3 @@ describe('Does the map zoom and adjust to lat/long correctly?', () => { // }); // }); }); - diff --git a/client/cypress/integration/Methodology.feature b/client/cypress/integration/Methodology.feature index 9d8d0dcb..fd2de2a0 100644 --- a/client/cypress/integration/Methodology.feature +++ b/client/cypress/integration/Methodology.feature @@ -1,5 +1,5 @@ Feature: The Methodology page will open from all other pages - + Scenario: Methodology page open when navigating from About page Given I am on the "About" page # When I click on the "Methodology" dropdown in the navigation @@ -11,9 +11,9 @@ Feature: The Methodology page will open from all other pages # When I click on the "Methodology" dropdown in the navigation When I click on the "Methodology" page in the navigation Then I see "Methodology" in the title - + Scenario: Methodology page open when navigating from Contact page Given I am on the "Contact" page # When I click on the "Methodology" dropdown in the navigation When I click on the "Methodology" page in the navigation - Then I see "Methodology" in the title \ No newline at end of file + Then I see "Methodology" in the title diff --git a/client/cypress/integration/PublicEngLinks.feature b/client/cypress/integration/PublicEngLinks.feature index bd4517b7..630e77cf 100644 --- a/client/cypress/integration/PublicEngLinks.feature +++ b/client/cypress/integration/PublicEngLinks.feature @@ -11,4 +11,3 @@ Feature: All links on Public Eng page are functional # When I look for the "Apr 15 Reg Link" CTA # And I click on the "Apr 15 Reg Link" event # Then the link should respond successfully - diff --git a/client/cypress/integration/common/helpers.js b/client/cypress/integration/common/helpers.js index 574b7d21..161de55f 100644 --- a/client/cypress/integration/common/helpers.js +++ b/client/cypress/integration/common/helpers.js @@ -13,4 +13,3 @@ export const hyphenizeString = (string) => { return string.split(/\.| /).join('-').toLowerCase(); }; - diff --git a/client/src/components/AboutCard/__snapshots__/AboutCard.test.tsx.snap b/client/src/components/AboutCard/__snapshots__/AboutCard.test.tsx.snap index 27af5591..c68b01d8 100644 --- a/client/src/components/AboutCard/__snapshots__/AboutCard.test.tsx.snap +++ b/client/src/components/AboutCard/__snapshots__/AboutCard.test.tsx.snap @@ -90,7 +90,7 @@ exports[`rendering of the AboutCard checks if small cards component renders 1`] class="grid-col-1" data-testid="grid" > - + diff --git a/client/src/components/AreaDetail/areaDetail.module.scss b/client/src/components/AreaDetail/areaDetail.module.scss index ec54a155..6299178c 100644 --- a/client/src/components/AreaDetail/areaDetail.module.scss +++ b/client/src/components/AreaDetail/areaDetail.module.scss @@ -12,7 +12,7 @@ $sidePanelLabelFontColor: #171716; .versionInfo { padding: .5rem 1rem .5rem 1.2rem; font-size: medium; - border-bottom: 1px solid $sidePanelBorderColor; + border-bottom: 1px solid $sidePanelBorderColor; } .areaDetailContainer { @@ -58,8 +58,8 @@ $sidePanelLabelFontColor: #171716; .sendFeedbackBtn{ @include u-text("blue-70v"); @include u-bg("yellow-20v"); - height: 40px; - + height: 40px; + &:hover { @include u-bg("yellow-20"); @include u-text("gray-90"); @@ -98,7 +98,7 @@ $sidePanelLabelFontColor: #171716; .censusText { font-size: medium; - } + } } .categoryHeader { @@ -115,11 +115,11 @@ $sidePanelLabelFontColor: #171716; @include u-bg('gray-cool-3'); @include typeset('sans', '2xs', 2); - @include u-text('bold'); + @include u-text('bold'); margin: 0 -20px 1rem -20px; @include u-padding-top(2); @include u-padding-bottom(2); @include u-padding-left(2.5); - + } diff --git a/client/src/components/AreaDetail/index.tsx b/client/src/components/AreaDetail/index.tsx index 0c4554ae..6e264b24 100644 --- a/client/src/components/AreaDetail/index.tsx +++ b/client/src/components/AreaDetail/index.tsx @@ -1,4 +1,3 @@ import AreaDetail from './AreaDetail'; export default AreaDetail; - diff --git a/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap b/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap index b74f18d1..ae4cb21f 100644 --- a/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap +++ b/client/src/components/AreaDetail/tests/__snapshots__/areaDetail.test.tsx.snap @@ -27,7 +27,7 @@ exports[`rendering of the AreaDetail checks if indicators for ISLAND AREAS are p

  • - Territory: + Territory: New York @@ -60,7 +60,7 @@ exports[`rendering of the AreaDetail checks if indicators for ISLAND AREAS are p mailto:Screeningtool-Support@omb.eop.gov?subject= Census tract ID 98729374234, Brooklyn, New York, ( z/lat/lon: #11.54/36.0762/-84.4494 ) &body=Please provide feedback about this census tract, including about the datasets, the data categories provided for this census tract, the communities who live in this census tract, and anything else relevant that CEQ should know about this census tract. - + " rel="noreferrer" target="_blank" @@ -213,10 +213,10 @@ exports[`rendering of the AreaDetail checks if indicators for ISLAND AREAS are p
    Poverty
    - - Percent of a census tract's population in households where the household income is at or below 100% - of the Federal poverty level - + + Percent of a census tract's population in households where the household income is at or below 100% + of the Federal poverty level +
    @@ -258,9 +258,9 @@ exports[`rendering of the AreaDetail checks if indicators for ISLAND AREAS are p
    High school degree non-attainment
    - - Percent of people ages 25 years or older whose education level is less than a high school diploma - + + Percent of people ages 25 years or older whose education level is less than a high school diploma +
    @@ -300,9 +300,9 @@ exports[`rendering of the AreaDetail checks if indicators for ISLAND AREAS are p
    High school degree non-attainment
    - - Percent of people ages 25 years or older whose education level is less than a high school diploma - + + Percent of people ages 25 years or older whose education level is less than a high school diploma +
    @@ -331,10 +331,10 @@ exports[`rendering of the AreaDetail checks if indicators for ISLAND AREAS are p
    Higher education non-enrollment
    - - Percent of the census tract's population 15 or older not enrolled in college, university, or - graduate school - + + Percent of the census tract's population 15 or older not enrolled in college, university, or + graduate school +
    @@ -388,7 +388,7 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
  • - State: + State: New York @@ -421,7 +421,7 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present mailto:Screeningtool-Support@omb.eop.gov?subject= Census tract ID 98729374234, Brooklyn, New York, ( z/lat/lon: #11.54/36.0762/-84.4494 ) &body=Please provide feedback about this census tract, including about the datasets, the data categories provided for this census tract, the communities who live in this census tract, and anything else relevant that CEQ should know about this census tract. - + " rel="noreferrer" target="_blank" @@ -548,9 +548,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Expected population loss rate
    - + Rate of fatalities and injuries resulting from natural hazards each year - +
    @@ -590,9 +590,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Low income
    - - Household income is less than or equal to twice the federal poverty level - + + Household income is less than or equal to twice the federal poverty level +
    @@ -634,10 +634,10 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Higher education non-enrollment
    - - Percent of the census tract's population 15 or older not enrolled in college, university, or - graduate school - + + Percent of the census tract's population 15 or older not enrolled in college, university, or + graduate school +
    @@ -770,9 +770,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Low income
    - - Household income is less than or equal to twice the federal poverty level - + + Household income is less than or equal to twice the federal poverty level +
    @@ -814,10 +814,10 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Higher education non-enrollment
    - - Percent of the census tract's population 15 or older not enrolled in college, university, or - graduate school - + + Percent of the census tract's population 15 or older not enrolled in college, university, or + graduate school +
    @@ -950,9 +950,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Low income
    - - Household income is less than or equal to twice the federal poverty level - + + Household income is less than or equal to twice the federal poverty level +
    @@ -994,10 +994,10 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Higher education non-enrollment
    - - Percent of the census tract's population 15 or older not enrolled in college, university, or - graduate school - + + Percent of the census tract's population 15 or older not enrolled in college, university, or + graduate school +
    @@ -1103,9 +1103,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Lead paint
    - + Percentile of number of homes built before 1960 that are not among the most expensive - +
    @@ -1145,9 +1145,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Low income
    - - Household income is less than or equal to twice the federal poverty level - + + Household income is less than or equal to twice the federal poverty level +
    @@ -1189,10 +1189,10 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Higher education non-enrollment
    - - Percent of the census tract's population 15 or older not enrolled in college, university, or - graduate school - + + Percent of the census tract's population 15 or older not enrolled in college, university, or + graduate school +
    @@ -1354,9 +1354,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Low income
    - - Household income is less than or equal to twice the federal poverty level - + + Household income is less than or equal to twice the federal poverty level +
    @@ -1398,10 +1398,10 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Higher education non-enrollment
    - - Percent of the census tract's population 15 or older not enrolled in college, university, or - graduate school - + + Percent of the census tract's population 15 or older not enrolled in college, university, or + graduate school +
    @@ -1505,9 +1505,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Low income
    - - Household income is less than or equal to twice the federal poverty level - + + Household income is less than or equal to twice the federal poverty level +
    @@ -1549,10 +1549,10 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Higher education non-enrollment
    - - Percent of the census tract's population 15 or older not enrolled in college, university, or - graduate school - + + Percent of the census tract's population 15 or older not enrolled in college, university, or + graduate school +
    @@ -1645,10 +1645,10 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Diabetes
    - - Weighted percent of people ages 18 years and older who have diabetes other than + + Weighted percent of people ages 18 years and older who have diabetes other than diabetes during pregnancy - +
    @@ -1746,9 +1746,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Low income
    - - Household income is less than or equal to twice the federal poverty level - + + Household income is less than or equal to twice the federal poverty level +
    @@ -1790,10 +1790,10 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Higher education non-enrollment
    - - Percent of the census tract's population 15 or older not enrolled in college, university, or - graduate school - + + Percent of the census tract's population 15 or older not enrolled in college, university, or + graduate school +
    @@ -1857,9 +1857,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Linguistic isolation
    - + Percent of households where no one over the age 14 speaks English well - +
    @@ -1972,10 +1972,10 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Poverty
    - - Percent of a census tract's population in households where the household income is at or below 100% - of the Federal poverty level - + + Percent of a census tract's population in households where the household income is at or below 100% + of the Federal poverty level +
    @@ -2028,9 +2028,9 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    High school degree non-attainment
    - - Percent of people ages 25 years or older whose education level is less than a high school diploma - + + Percent of people ages 25 years or older whose education level is less than a high school diploma +
    @@ -2049,7 +2049,7 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    - above + above 10% @@ -2067,10 +2067,10 @@ exports[`rendering of the AreaDetail checks if indicators for NATION is present
    Higher education non-enrollment
    - - Percent of the census tract's population 15 or older not enrolled in college, university, or - graduate school - + + Percent of the census tract's population 15 or older not enrolled in college, university, or + graduate school +
    @@ -2124,7 +2124,7 @@ exports[`rendering of the AreaDetail checks if indicators for PUERTO RICO are pr
  • - Territory: + Territory: New York @@ -2157,7 +2157,7 @@ exports[`rendering of the AreaDetail checks if indicators for PUERTO RICO are pr mailto:Screeningtool-Support@omb.eop.gov?subject= Census tract ID 98729374234, Brooklyn, New York, ( z/lat/lon: #11.54/36.0762/-84.4494 ) &body=Please provide feedback about this census tract, including about the datasets, the data categories provided for this census tract, the communities who live in this census tract, and anything else relevant that CEQ should know about this census tract. - + " rel="noreferrer" target="_blank" @@ -2226,9 +2226,9 @@ exports[`rendering of the AreaDetail checks if indicators for PUERTO RICO are pr
    Linguistic isolation
    - + Percent of households where no one over the age 14 speaks English well - +
    @@ -2341,10 +2341,10 @@ exports[`rendering of the AreaDetail checks if indicators for PUERTO RICO are pr
    Poverty
    - - Percent of a census tract's population in households where the household income is at or below 100% - of the Federal poverty level - + + Percent of a census tract's population in households where the household income is at or below 100% + of the Federal poverty level +
    @@ -2397,9 +2397,9 @@ exports[`rendering of the AreaDetail checks if indicators for PUERTO RICO are pr
    High school degree non-attainment
    - - Percent of people ages 25 years or older whose education level is less than a high school diploma - + + Percent of people ages 25 years or older whose education level is less than a high school diploma +
    @@ -2418,7 +2418,7 @@ exports[`rendering of the AreaDetail checks if indicators for PUERTO RICO are pr
    - above + above 10% @@ -2436,10 +2436,10 @@ exports[`rendering of the AreaDetail checks if indicators for PUERTO RICO are pr
    Higher education non-enrollment
    - - Percent of the census tract's population 15 or older not enrolled in college, university, or - graduate school - + + Percent of the census tract's population 15 or older not enrolled in college, university, or + graduate school +
    diff --git a/client/src/components/AreaDetail/tests/areaDetail.test.tsx b/client/src/components/AreaDetail/tests/areaDetail.test.tsx index 1ffff386..9ece23b3 100644 --- a/client/src/components/AreaDetail/tests/areaDetail.test.tsx +++ b/client/src/components/AreaDetail/tests/areaDetail.test.tsx @@ -65,4 +65,3 @@ describe('rendering of the AreaDetail', () => { expect(asFragment()).toMatchSnapshot(); }); }); - diff --git a/client/src/components/BetaBanner/__snapshots__/BetaBanner.test.tsx.snap b/client/src/components/BetaBanner/__snapshots__/BetaBanner.test.tsx.snap index cbc3f79f..dee2dd11 100644 --- a/client/src/components/BetaBanner/__snapshots__/BetaBanner.test.tsx.snap +++ b/client/src/components/BetaBanner/__snapshots__/BetaBanner.test.tsx.snap @@ -7,10 +7,10 @@ exports[`rendering of the BetaBanner checks if component renders 1`] = `
    - This is a beta site. + This is a beta site. - It is an early, in-progress version of the tool with limited datasets that will + It is an early, in-progress version of the tool with limited datasets that will be regularly updated.
    diff --git a/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap b/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap index d414c3da..254558cf 100644 --- a/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap +++ b/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap @@ -29,31 +29,31 @@ exports[`rendering of the Categories checks if component renders 1`] = ` Climate change

    - - Communities are + + Communities are identified as disadvantaged - - + +

    IF - at or above the 90th percentile for + at or above the 90th percentile for expected agriculture loss rate - OR + OR expected building loss rate - OR + OR @@ -61,25 +61,25 @@ exports[`rendering of the Categories checks if component renders 1`] = `

    - - + + AND - is at or above the 65th percentile for + is at or above the 65th percentile for low income - AND 80% or more of individuals 15 or older are not enrolled in + AND 80% or more of individuals 15 or older are not enrolled in higher education - - + +

    @@ -88,25 +88,25 @@ exports[`rendering of the Categories checks if component renders 1`] = ` Clean energy and energy efficiency

    - - Communities are + + Communities are identified as disadvantaged - - + +

    IF - at or above the 90th percentile for + at or above the 90th percentile for energy burden - OR + OR @@ -114,25 +114,25 @@ exports[`rendering of the Categories checks if component renders 1`] = `

    - - + + AND - is at or above the 65th percentile for + is at or above the 65th percentile for low income - AND 80% or more of individuals 15 or older are not enrolled in + AND 80% or more of individuals 15 or older are not enrolled in higher education - - + +

    @@ -141,55 +141,55 @@ exports[`rendering of the Categories checks if component renders 1`] = ` Clean transit

    - - Communities are + + Communities are identified as disadvantaged - - + +

    - - + + IF - at or above the 90th percentile for + at or above the 90th percentile for diesel particulate matter exposure - or + or traffic proximity and volume - - + +

    - - + + AND - is at or above the 65th percentile for + is at or above the 65th percentile for low income - AND 80% or more of individuals 15 or older are not enrolled in + AND 80% or more of individuals 15 or older are not enrolled in higher education - - + +

    @@ -198,31 +198,31 @@ exports[`rendering of the Categories checks if component renders 1`] = ` Affordable and sustainable housing

    - - Communities are + + Communities are identified as disadvantaged - - + +

    IF - at or above the 90th percentile for + at or above the 90th percentile for lead paint - AND + AND median home value - is at or less than the 90th percentile OR at or above the 90th percentile for the + is at or less than the 90th percentile OR at or above the 90th percentile for the @@ -230,25 +230,25 @@ exports[`rendering of the Categories checks if component renders 1`] = `

    - - + + AND - is at or above the 65th percentile for + is at or above the 65th percentile for low income - AND 80% or more of individuals 15 or older are not enrolled in + AND 80% or more of individuals 15 or older are not enrolled in higher education - - + +

    @@ -257,31 +257,31 @@ exports[`rendering of the Categories checks if component renders 1`] = ` Reduction and remediation of legacy pollution

    - - Communities are + + Communities are identified as disadvantaged - - + +

    IF - at or above the 90th percentile for + at or above the 90th percentile for proximity to hazardous waste facilities - OR + OR proximity to National Priorities List (NPL) sites - OR + OR @@ -289,25 +289,25 @@ exports[`rendering of the Categories checks if component renders 1`] = `

    - - + + AND - is at or above the 65th percentile for + is at or above the 65th percentile for low income - AND 80% or more of individuals 15 or older are not enrolled in + AND 80% or more of individuals 15 or older are not enrolled in higher education - - + +

    @@ -316,19 +316,19 @@ exports[`rendering of the Categories checks if component renders 1`] = ` Critical clean water and wastewater infrastructure

    - - Communities are + + Communities are identified as disadvantaged - - + +

    IF - at or above the 90th percentile for + at or above the 90th percentile for @@ -336,25 +336,25 @@ exports[`rendering of the Categories checks if component renders 1`] = `

    - - + + AND - is at or above the 65th percentile for + is at or above the 65th percentile for low income - AND 80% or more of individuals 15 or older are not enrolled in + AND 80% or more of individuals 15 or older are not enrolled in higher education - - + +

    @@ -363,37 +363,37 @@ exports[`rendering of the Categories checks if component renders 1`] = ` Health burdens

    - - Communities are + + Communities are identified as disadvantaged - - + +

    IF - at or above the 90th percentile for + at or above the 90th percentile for asthma - OR + OR diabetes - OR + OR heart disease - OR + OR @@ -401,25 +401,25 @@ exports[`rendering of the Categories checks if component renders 1`] = `

    - - + + AND - is at or above the 65th percentile for + is at or above the 65th percentile for low income - AND 80% or more of individuals 15 or older are not enrolled in + AND 80% or more of individuals 15 or older are not enrolled in higher education - - + +

    @@ -428,63 +428,63 @@ exports[`rendering of the Categories checks if component renders 1`] = ` Training and workforce development

    - - Communities are + + Communities are identified as disadvantaged - - + +

    IF - at or above the 90th percentile for + at or above the 90th percentile for low median income - as a percentage of area median income OR + as a percentage of area median income OR linguistic isolation - OR + OR unemployment - OR percentage of individuals in households at or below 100% Federal + OR percentage of individuals in households at or below 100% Federal poverty level - +

    AND - 10% or more of adults 25 or older have not attained a + 10% or more of adults 25 or older have not attained a high school degree - AND 80% or more of individuals 15 or older are not enrolled in + AND 80% or more of individuals 15 or older are not enrolled in higher education - - + +

    diff --git a/client/src/components/Category/Category.module.scss b/client/src/components/Category/Category.module.scss index d06ffca3..9430e991 100644 --- a/client/src/components/Category/Category.module.scss +++ b/client/src/components/Category/Category.module.scss @@ -7,4 +7,4 @@ .category { flex-basis: 80%; } -} \ No newline at end of file +} diff --git a/client/src/components/CategoryCard/CategoryCard.module.scss b/client/src/components/CategoryCard/CategoryCard.module.scss index e93035d8..2690273c 100644 --- a/client/src/components/CategoryCard/CategoryCard.module.scss +++ b/client/src/components/CategoryCard/CategoryCard.module.scss @@ -16,4 +16,4 @@ .idAsDisdvantaged { font-style: italic; -} \ No newline at end of file +} diff --git a/client/src/components/CategoryCard/__snapshots__/CategoryCard.test.tsx.snap b/client/src/components/CategoryCard/__snapshots__/CategoryCard.test.tsx.snap index 38c8bc95..db878b5c 100644 --- a/client/src/components/CategoryCard/__snapshots__/CategoryCard.test.tsx.snap +++ b/client/src/components/CategoryCard/__snapshots__/CategoryCard.test.tsx.snap @@ -7,31 +7,31 @@ exports[`rendering of the CategoryCard checks if component renders 1`] = ` Climate change

    - - Communities are + + Communities are identified as disadvantaged - - + +

    IF - at or above the 90th percentile for + at or above the 90th percentile for expected agriculture loss rate - OR + OR expected building loss rate - OR + OR @@ -39,25 +39,25 @@ exports[`rendering of the CategoryCard checks if component renders 1`] = `

    - - + + AND - is at or above the 65th percentile for + is at or above the 65th percentile for low income - AND 80% or more of individuals 15 or older are not enrolled in + AND 80% or more of individuals 15 or older are not enrolled in higher education - - + +

    diff --git a/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap b/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap index f9c8db2c..113251a7 100644 --- a/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap +++ b/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap @@ -9,27 +9,27 @@ exports[`rendering of indicator dataset card checks if component renders 1`] = ` Low income

    - + Percent of a census tract's population in households where household income is at or below 200% of the Federal poverty level. - +