Commit graph

731 commits

Author SHA1 Message Date
Lucas Merrill Brown
21834b4a91
Issue 883: Update FEMA risk index measure (#884)
* ETL updated

* Adding three fields to score
2021-11-13 11:32:15 -05:00
Lucas Merrill Brown
05ebf9b48c
Add median house value to Definition L (#882)
* Added house value to ETL

* Adding house value to score formula and comp tool
2021-11-13 10:29:23 -05:00
Vim
54bdda0f02
Display SurveyMonkey survey (#867)
* Display SurveyMonkey survey via FAB

- add Floating Action Button lib: react-tiny-fab
- enable Internal Page Survey with ?flags=ips
- update snapshots

* Add location to state

- update snapshots

* Fix build error

- remove react-tiny-fab
- remove location state
- create custom FAB component
- remove feature flag
- update snapshots

* Add SurveyFab snapshot test

* Remove embedded survey page

- add intl

* Remove conditional render logic on SurveyFab

* Remove cypress test around starting map via URL

- increase component code coverage to 83%
2021-11-12 09:39:04 -08:00
Vincent La
b0dbc90064
[ISS-723] Load Census Data for 4 Territories (#816)
* Adding census decennial data for island territories
2021-11-09 16:32:46 -05:00
Jorge Escobar
053dde0d40
Display score L on map (#849)
* updates to first docker run

* tile constants

* frontend changes

* updating pickles instructions

* pickles
2021-11-05 16:26:14 -04:00
Lucas Merrill Brown
03e59f2abd
Definition L updates (#862)
* Changing FEMA risk measure 

* Adding "basic stats" feature to comparison tool 

* Tweaking Definition L
2021-11-05 15:43:52 -04:00
Shelby Switzer
0a65060c0c
Add orientation deck to docs (#863)
* Add open source community orientation deck

* Reference orientation deck in README

* Update office hours in orientation deck

Co-authored-by: Shelby Switzer <shelby.switzer@cms.hhs.gov>
2021-11-05 13:21:26 -04:00
Vim
68014c94e4
Fix AREA MEDIAN INCOME prop on map (#860)
- add indicator values of selected CBG to console
- update snapshots
- update cypress tests (failure on zoom)
2021-11-05 08:43:47 -07:00
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