Commit graph

373 commits

Author SHA1 Message Date
Vim
28c5b9c869
Add language links to switch between English and Spanish (#842)
* Add language links to gov banner

- align banners to site logo
- create Language component and snapshot test
- add Language component to GovBanner
- update namespace for betaBanner scss.d.ts file

* Update snapshots for each page

* Componentizes the GovBanner

- add styles
- add unit test
- token most styles to USWDS

* Add language icon and update snapshots

* Make language link text smaller

* Update total height of BetaBanner

* Add languageLink to scss.d.ts file

* Add language links to mobile

- add isDesktop prop to Language component
- refactors header links to a simple array
- update snapshots

* Add href value to language links

- update snapshots

* merge other PRs and add spanish links

- merge PR 817
- merge PR 794
- add spanish links for footer
- add diffEnEs.js to detect differences between two json files
- adds esNoBrackets.json
- update intl README

* Add government banner in spanish

* Add spanish content for About and Explore page
2021-11-04 18:27:29 -07:00
Vim
62e20dd881
add score L (#854) 2021-11-04 16:54:39 -04:00
Shelby Switzer
a0bf186ee6
Add percentile column for L (#851)
* Add percentile column for L

* Use Definition instead of Score

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
2021-11-04 13:03:56 -04:00
Lucas Merrill Brown
8372b47d42
Various updates to Definition L (#850)
* removing percentiles as separate field names

* adding RMP
2021-11-04 12:17:45 -04:00
Jorge Escobar
3fbc77076c testing tippecanoe install 2021-11-03 10:23:06 -04:00
Vim
ee27e5cb8f
Add version number (#830) 2021-11-02 18:52:12 -07:00
Jorge Escobar
bacf2ce0fb trying prev version 2021-11-02 16:39:06 -04:00
Lucas Merrill Brown
1d541be447
Add EJSCREEN Areas of Concern (#843)
* Adding ej screen areas of concern

* Uses it where user has local files, but not otherwise

Co-authored-by: VincentLaUSDS <vincent.la@omb.eop.gov>
2021-11-02 15:38:42 -04:00
Jorge Escobar
1795be6cb4 tz 2021-11-02 15:23:17 -04:00
Jorge Escobar
aff17395c8 tippeacnoes test 2021-11-02 15:13:20 -04:00
Jorge Escobar
8c95150fa8 separate make 2021-11-02 14:44:59 -04:00
Jorge Escobar
831a0f2aa8 skip test 2021-11-02 14:37:34 -04:00
Jorge Escobar
6892033f5c tippecanoe test 2 2021-11-02 14:27:04 -04:00
Jorge Escobar
d4f1e3d3f4 tippecanoe test 2021-11-02 14:21:57 -04:00
Jorge Escobar
6d3e1d372c bin/sh 2021-11-02 14:14:50 -04:00
Shelby Switzer
7bd1a9e59e
Big ole score refactor (#815)
* WIP

* Create ScoreCalculator

This calculates all the factors for score L for now (with placeholder
formulae because this is a WIP). I think ideallly we'll want to
refactor all the score code to be extracted into this or  similar
classes.

* Add factor logic for score L

Updated factor logic to match score L factors methodology.
Still need to get the Score L field itself working.

Cleanup needed: Pull field names into constants file, extract all score
calculation into score calculator

* Update thresholds and get score L calc working

* Update header name for consistency and update comparison tool

* Initial move of score to score calculator

* WIP big refactor

* Continued WIP on score refactor

* WIP score refactor

* Get to a working score-run

* Refactor to pass df to score init

This makes it easier to pass df around within a class with multiple
methods that require df.

* Updates from Black

* Updates from linting

* Use named imports instead of wildcard; log more

* Additional refactors

* move more field names to field_names constants file
* import constants without a relative path (would break docker)
* run linting
* raise error if add_columns is not implemented in a child class

* Refactor dict to namedtuple in score c

* Update L to use all percentile field

* change high school ed field in L back

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
2021-11-02 14:12:53 -04:00
Jorge Escobar
44ee696787 workdir 2021-11-02 14:10:56 -04:00
Jorge Escobar
0845bd3f8c make install 2021-11-02 14:05:28 -04:00
Jorge Escobar
be55ed89ad git dir 2021-11-02 13:58:09 -04:00
Jorge Escobar
7123fa872a tz removed 2021-11-02 13:51:59 -04:00
Jorge Escobar
49f0b2f110 timezone commented out 2021-11-02 13:46:22 -04:00
Jorge Escobar
e012b09ed6 tz env var 2021-11-02 13:40:37 -04:00
Jorge Escobar
a91deea0d0 tippecanoe 2021-11-02 13:34:12 -04:00
Jorge Escobar
930465f411 updating combtilefy 2021-11-02 12:06:06 -04:00
Jorge Escobar
4c26e8e97c generate score update 2021-11-02 10:32:23 -04:00
Jorge Escobar
ebc363e300 updating score generate 2021-11-02 10:29:49 -04:00
Jorge Escobar
1b17af84c8
Combine + Tilefy (#806)
* init

* score-post

* added score csv s3 download; remore poetry cmds from readme

* working census tile fetch

* PR review

* Github Actions Work
2021-11-01 18:05:05 -04:00
Shelby Switzer
7b87e0ec99
Add Score L (#812)
* Create ScoreCalculator

This calculates all the factors for score L for now (with placeholder
formulae because this is a WIP). I think ideallly we'll want to
refactor all the score code to be extracted into this or  similar
classes.

* Add factor logic for score L

Updated factor logic to match score L factors methodology.
Still need to get the Score L field itself working.

Cleanup needed: Pull field names into constants file, extract all score
calculation into score calculator

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
Co-authored-by: lucasmbrown-usds <lucas.m.brown@omb.eop.gov>
2021-10-28 16:07:41 -04:00
Vim
b1adc1f69f
Add beta site banner (#802)
* Add new BetaBanner and remove legacy Alerts

- add BetaBanner component and test
- update AboutCard test
- remove AlertWrapper component, copy and tests
- remove AlertWrapper from all pages
- add BetaBanner copy and intl
- update logo and color
- add styles using USWDS tokens to globals.scss

* Add Beta pill to header

- refactor Header to use Grid and USWDS
- refactor global.scss to use Grid and USWDS
- updates snapshots

* Move styles from global to modules

- move BetaBanner styles from global to modules
- move J40Header to a folder component and module styles
- add J40Header unit test
- add a design-system.scss file that allows USWDS styles in modules
- updates snapshots

* Update en.json file

* Trigger Build

* Add initial Spanish content

- add README for translation team
- add createSpanishJson script
- add initial version of es.json
- add a spanish string variable to test translation

* Add retry and timeout config to stalled test

* Remove redundant test cases for AboutCard

- update snapshot

* Update BetaBanner description
2021-10-21 14:56:32 -07:00
Vim
e64e7fda60
Fix typos on Explore Tool page (#803)
- update snapshot
2021-10-20 15:13:56 -07:00
Vim
29d5b52f84
Add build status badges to client README (#799)
* Add build status badges to client README

* Update GHA names
2021-10-14 15:28:25 -07:00
Vim
54d07bddc8
Migrates global footer styles to USDS (#798)
- enables colors in settings file
- updates snapshots
2021-10-14 15:09:33 -07:00
Vim
d1511287b8
Updates intl file with latest copy (#795)
* Extract 404 page copy to intl

* Move all copy to data copy folder and add tests

- Add test:intl-extraction script
- Fix certain defaultMessages not appearing
- update snapshot
2021-10-14 13:49:16 -07:00
Jorge Escobar
a94b8e2761 final census GHA 2021-10-14 13:50:56 -04:00
Jorge Escobar
8b2225f22e typo on gen score 2021-10-14 13:48:46 -04:00
Jorge Escobar
b60830da0e removing delete 2021-10-14 13:44:44 -04:00
Jorge Escobar
77ccc78f76 temp comment gdal 2021-10-14 13:41:55 -04:00
Jorge Escobar
361654f4e2 use aws cp instead of sync 2021-10-14 13:40:48 -04:00
Jorge Escobar
8ddfc6b305
Update application.py 2021-10-14 13:31:37 -04:00
Jorge Escobar
d66439138e
Update generate-census.yml 2021-10-14 13:15:11 -04:00
Jorge Escobar
12a1a20b8b
Update generate-census.yml 2021-10-14 13:08:55 -04:00
Vim
6f64acf8cd
Turns on jest coverage reports (#793) 2021-10-13 17:25:02 -07:00
Vim
92d76fb6f4
Gherkin workflows for desktop (#788)
* Add gherkin tests for page navigation links

- test that every page will load when navigating from any other page
- update snapshots

* Add gherkin workflows 2 - 5

- add test for Federal program officer key information and CTA
- add test for Community members key information and CTA
- add test for Send feedback
- add test for Join the Open Source community
- update snapshots

* Add gherkin tests for footer links

- add footerlinks feature gherkin file
- adds a comment to the hyphenizeString()
- adds keyword functions for footer
- adds data-cy tags to footer component
- updates snapshots

* Adds workflow to learn more about EO

* Add gherkin test for dataset links

- add data-cy tags to dataset sections
- modify Cy command functions names
- update snapshots

* Add cypress test to deploy_staging.yml

* Add working directory env

* Remove keywords.js from cypress test

* Add a Then step to all About and Footer tests

* Refactor step definitions

- use globalStepDefinitions
- rename keywords to commonSteps
- remove keyword from exclusion list
2021-10-13 14:06:05 -07:00
Jorge Escobar
3b04356fb3
Data sources from S3 (#769)
* Started 535

* Data sources from S3

* lint

* renove breakpoints

* PR comments

* lint

* census data completed

* lint

* renaming data source
2021-10-13 16:00:33 -04:00
Billy Daly
d1273b63c5
Add ETL Contract Checks (#619)
* Adds dev dependencies to requirements.txt and re-runs black on codebase

* Adds test and code for national risk index etl, still in progress

* Removes test_data from .gitignore

* Adds test data to nation_risk_index tests

* Creates tests and ETL class for NRI data

* Adds tests for load() and transform() methods of NationalRiskIndexETL

* Updates README.md with info about the NRI dataset

* Adds to dos

* Moves tests and test data into a tests/ dir in national_risk_index

* Moves tmp_dir for tests into data/tmp/tests/

* Promotes fixtures to conftest and relocates national_risk_index tests:
The relocation of national_risk_index tests is necessary because tests 
can only use fixtures specified in conftests within the same package

* Fixes issue with df.equals() in test_transform()

* Files reformatted by black

* Commit changes to other files after re-running black

* Fixes unused import that caused lint checks to fail

* Moves tests/ directory to app root for data_pipeline

* Adds new methods to ExtractTransformLoad base class:
- __init__() Initializes class attributes
- _get_census_fips_codes() Loads a dataframe with the fips codes for 
census block group and tract
- validate_init() Checks that the class was initialized correctly
- validate_output() Checks that the output was loaded correctly

* Adds test for ExtractTransformLoad.__init__() and base.py

* Fixes failing flake8 test

* Changes geo_col to geoid_col and changes is_dataset to is_census in yaml

* Adds test for validate_output()

* Adds remaining tests

* Removes is_dataset from init method

* Makes CENSUS_CSV a class attribute instead of a class global:
This ensures that CENSUS_CSV is only set when the ETL class is for a 
non-census dataset and removes the need to overwrite the value in 
mock_etl fixture

* Re-formats files with black and fixes broken tox tests
2021-10-13 15:54:15 -04:00
Shelby Switzer
1f78920f63
Update diagrams in architecture docs (#790)
* Update diagrams in architecture docs

* Updates overall diagram to represent current arch and process
(including vision for data selection)
* Updates geo data pipleline arch diagram and removes geoplatform
version since we only have one version of this for the foreseeable
future and we're using geoplatform infradstructure

* Update diagram to remove something we do not yet do

* Updating Diagram

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
Co-authored-by: GitHub Action <action@github.com>
2021-10-08 13:12:03 -04:00
Vim
55fc8721e0
Add a comment to trigger build (#791)
* Add a comment to trigger build

* Remove comment to trigger build

* Add comment to trigger build
2021-10-08 08:19:27 -07:00
Vim
b913cf21e6
remove frontend PR artifacts from S3 (#665)
* adds initial prefix

* adds steps

* adds names

* adds runs-on

* tests direct env

* add prefix to folder

* rm AWS

* adds s3 uri

* adds recursive

* removes slash

* Trigger Build

* Trigger Build

* remove recursive

* update GHA name

* adds slash to s3 uri

* Trigger Build

* adds ls

* Trigger Build

* Trigger Build

* Trigger Build

* list main s3 bucket

* Trigger Build

* list j4-tool dir

* Trigger Build

* Trigger Build

* Add rm cmd

* adds CDN as env var

* modify web cdn id

* update cdn id

* Trigger Build

* Remove artifacts on PR merge

- also make the web cdn an env variable

* make web CDN an env variable

* Update CDN ID to newest CDN

* Add test remove artifacts yml file

* Add jobs to test.yml

* Update PR number to 111

* Remove testing artifacts yaml file
2021-10-07 17:38:37 -07:00
Vim
819113ceb7
Fix all failing cypress tests (#774)
* Fix all failing cypress tests

- update test name to be more appropriate
- update download packet tests to CDN
- update data-cy tag on About heading

* Update snapshot
2021-10-05 12:52:03 -07:00
Vim
e47cffc3f9
Update the base URL for the download packet (#775) 2021-10-05 11:34:29 -07:00