Commit graph

692 commits

Author SHA1 Message Date
Vim USDS
99761e46d0 Make the no-labels base map the default base map 2022-10-24 19:27:31 -07:00
Matt Bowen
9ddf7c3ec8
Remove unused vars from the constants (#2020) (#2023) 2022-10-21 09:02:13 -04:00
Vim
a4c9d84c99
FRT copy update, isDAC to use SN_C and new base map of custom colors + updated tribal names (#2029)
* Update FRT copy in isDAC copy in side panel

* Update base map
- custom colors + updated tribal names
- closes #2005

* Update isDAC logic to use SN_C

- update component props
- update test cases
- closes #2024

* Update snapshots
2022-10-19 16:08:21 -07:00
Vim
7c6555de13
Initial Download page (#2021)
* Intial version of 1.0 download page

* fix a11y errors

* Update snapshots
2022-10-18 09:16:36 -07:00
Vim
b321b267fc
Previous versions page narwal (#2018)
* Add Previous Version page

- Create a new DownloadButton component
- Add PreviousVersion link to main nav
- Extract out download button from PublicVideo component
- Update SidePageNav to render PrevVersion
- Add Beta start date
- Create previous-version page
- Add public eng to all pages
- update snapshots

* Update cypress test to test prev version page

- Add <ul> around card as it fails a11y without it.

* Add updated tribal base map

- this removes the LAR suffix in MapBox studio
2022-10-14 16:23:42 -07:00
Vim
8dc81639c7
FAQS page (#2016)
* Fix a11y issue on Ling Iso card

* Add layout of new FAQs page

* Reorder SubNav links on About page

* Add NEW tag to new Burdens

* Add first 6 questions to FAQs

* Add the rest of the FAQs onto the page

* Adjust sub-nav order in About header

- update snapshots
- ensure that FAQ in SubNav is active
2022-10-13 22:46:32 -07:00
Vim
da254e4157
Update methodology page copy to Content 1.0 (#2009)
* Update methodology copy

- update categories
- update snapshots

* Add button to datasets page

- add tests

* Update copy for meth page according to Content1.0
2022-10-12 16:43:04 -07:00
Vim USDS
797ad7176b Add comments back to match main 2022-10-07 20:04:50 -07:00
Vim USDS
f2d0cff556 Remove markdown ignore comments
- hoping this will build and match main so that the FE doesn't trigger the BE
2022-10-07 19:36:51 -07:00
Vim
9ee80a5203
Update copy from Word Doc (#2001)
* add tsc compile

* fix TS warning around headingLevel

* Temporary fix around availableFor type error

- correlated to fix needed in ticket 2000

* Add copy update from CEJST pages - STATUS doc

- Add a period in Get the Data box
- Update unselected side panel text
- Update text under explore the map
- Content and styling for territories note
- persistent FAB - “Help improve the tool”
- Water needs to be “Water and Wastewater”
- Styling on demographics ( show )  => (show)
- Update age in demographics to be Elderly over 65
- Wildfire description is not correct
- Lead paint description needs to be updated
- remove bullet from How you can help
- Footer - remove RFI
- Footer - remove Eng cal
- add sign up link

* Update side panel non-selected copy

* Add back PEC button to each main page

* Remove console logs from J40Header

* Fix DOM warning on About page

- can't have <li> in <p>

* Fix nested DOM warning on Explore page

- Modify ExploreDataBox styling

* Update side panel non-selected with icons

- update height on mobile
- update snapshots
2022-10-07 19:19:28 -07:00
Vim
743f647814
Updated side panel, with two paragraphs, "Completely surrounded" and "Adjusted low income" and more! (#1990)
* Update logic for TractPrioritization and bug fix

- fix wildfire bug closes #1953
- rename TractPri API to better align with BE signal names
- redo test and all test cases

* Add PrioCopy1 and PrioCopy2

- fix rounding
- limited tests for each component. Many more test cases are needed
- add copy to i18n

* Adjust LowInc tool tip only on IMP_FLG=T

- remove threshold change for low income

* Add copy for comp. surr and Adj low inc

- create a new component DonutCopy
- add tests
- modify styling to work in both 1 para case and 2 para case

* Add Donut copy

* Fix typo on 2nd paragraph

* Update browser list

* Adds TA_COUNT_AK, TA_COUNT_C and TA_PERC_FE

- Prio1 and Prio2 both take TA_COUNT_C which should be null
- updates basic tests

* Remvoe cypress tests

* Update CONUS number to troubleshoot

* Copy adjustments

- move test copy to console.log
- move donutCopy to only show when ADJ_ET is true
2022-10-06 13:15:50 -07:00
Lucas Merrill Brown
0569dc9f0f
No issue number: Update front-end Readme (#1935)
* Addresses `nvm` install
2022-10-06 10:27:21 -04:00
Jorge Escobar
3bed8ef70b
Merge branch 'main' into vimusds/release/frontend-narwhal-2 2022-10-04 16:06:41 -04:00
Jorge Escobar
e8e951fe9a
Rezip CSV and Excel with Codebook (#1971)
* Rezip CSV and Excel files with Codebook

* codebook version

* packages fix

* pydantic

* lint

* Remove markdown link from markdown checker (#1936)

Co-authored-by: Vim <86254807+vim-usds@users.noreply.github.com>
2022-10-04 15:45:09 -04:00
Vim
9eca504cfc
Update copy based on bug party (#1973)
* Update copy from team debug party
- closes #1945
- Lack of green space description
- Lack of indoor plumbing

* Update copy
- closes #1950

* Update copy
- closes #1951

* Update survey button
- Text and link
- closes 1967

* Update copy

- correct tool tip copy
- closes #1959
2022-10-03 19:23:39 -07:00
Vim
55af21cd13
side panel narwal (#1943)
* Adds the PrioritizationCopy and TractPriotization

- adds both components
- removes logic around selecting AK data points
- update snapshots

* Add tests for TractPrioritization

* Adds tests for PrioritizationCopy

* Add income icon and tilde

- this is dependent on imputed income and adjacency

* Add tool tip to low income icon

* Update snapshots

* Removing AreaDetail test to allow tooltip library

- This library react-tooltip creates random DOM ID which will not allow for snapshot testing as he IDs change on each build. Due to time constraints, we simply removed the AreaDetails test. The AreaDetails component is made up of sub component and each sub component has tests so this is low risk.

- This is a temporary solution. Some longer terms solutions may be
1. Remove this library and get the USWDS tool tip to work
2. Re-factor the areaDetail.tests.tsx snapshot tests to do more DOM assertions rather than snapshots
3. Some combination of the two.

* Fix Tribal percentage error
2022-09-29 02:12:50 -07:00
Vim
dd83f8d48b
About page 1.0 (#1933)
* Initial About page

* Update navigation links

- adds hover and current effects
- fits width of each nav link to content

* Add location prop to J40Header

* Fix a11y error on internal links

- remove AboutCard LinkTypeWrapper if url is not specified
- remove gherkin tests on new nav links
- update snapshots

* Fix mobile nav for new nav links

* Add usa-current class to dropdown nav
2022-09-27 20:23:42 -07:00
Vim
8f4b1b6df1
Update copy on Explore the Map page (#1915)
* Add Explore the Data box

* Update explore page description

- Remove paragraph under map

* Update territories copy

- Remove How you can help

* Update Whitehouse footer icon

* Correct heading order to pass a11y

* Remove beta pill in Beta Banner
- update snapshots

* Update explore page description
- remove color key

* revert image back to eagle seal

* Update release date variable name

* Add Impute, Adj and tribal signals to side panel

* Remove test category

- move send feedback button outside of categorization div
- left justify send feedback button
- update snapshots

* Update links in the territories paragraph on explore page

* Update tribal lands copy on explore page

* Align geolocate icon on desktop and mobile

* Add inverted style to YES

- update snapshots
2022-09-23 20:05:36 -07:00
Vim
dfdb885ebe
Merge branch 'main' into vimusds/release/frontend-narwhal-2 2022-09-21 13:44:34 -07:00
Vim
5633d0f86e
Fix all link colors, prevent logo from wrapping, update non-selected side-panel (#1908)
* Update links colors

- Language links
- Download links
- Simple links
- External links
- Side panel demographics links
- return to top links
- update snapshots

* Fix wrapping on logo title

- remove beta pill

* Update un-selected side panel copy (desktop)

- two icons are needed

* Remove icons on mobile view

* Remove the pub. eng. button on all pages

* Add usa-link class to all links

- will create consiste visible state on all links

* Remove tribal toggle

- remove tribal layer from feature flag and make it default
2022-09-21 13:39:54 -07:00
Vim
bf27f2958b
update styles for mapbox base map (#1852)
- update airport color
2022-09-20 13:30:45 -07:00
Vim USDS
eeb7d07c40 Add USVI and GU to map
- remove shortcuts on mobile
2022-09-15 17:30:48 -07:00
Vim
29d701ca95
Merge branch 'main' into vimusds/release/frontend-narwhal-2 2022-09-15 11:38:52 -07:00
Vim USDS
0af61e8f09 Merge branch 'vimusds/1862-new-side-pnl-indctr-dsgn' into vimusds/release/frontend-narwhal-2 2022-09-15 11:33:32 -07:00
Vim
6ae0ada1e2
1.0 side panel indicator designs (#1896)
* Remove up/down arrows from indicators

* update style of side panel categories if supported

- if the browser has ":has" support, the new category styles will be applied
- if not, the older style will remain in place

* update snapshots

* update styling for indicator values

- refactor disadvantaged blue dot to utils.scss

* remove missing icon and reduce subtext font size

* Remove un-needed import in test file

* Update category, indicator copy

* Update copy indicator desc and titles

* update side panel styling for 1.0

* Update methodology version / styling
2022-09-15 11:28:50 -07:00
Vim USDS
23c9b2d8d1 Update methodology version / styling 2022-09-13 15:24:34 -07:00
Vim USDS
dec3305834 update side panel styling for 1.0 2022-09-13 14:16:41 -07:00
Vim USDS
5ed00f603c Update copy indicator desc and titles 2022-09-13 11:48:48 -07:00
Vim USDS
5ecebf3247 Update category, indicator copy 2022-09-13 10:05:23 -07:00
Vim USDS
be227972c8 Remove un-needed import in test file 2022-09-09 15:52:20 -07:00
Vim USDS
228aca0da5 remove missing icon and reduce subtext font size 2022-09-09 15:46:11 -07:00
Vim USDS
a49dbfdf90 update styling for indicator values
- refactor disadvantaged blue dot to utils.scss
2022-09-08 23:52:16 -07:00
Vim USDS
b0b2bc387b update snapshots 2022-09-08 23:23:14 -07:00
Vim USDS
2bfa7d454f update style of side panel categories if supported
- if the browser has ":has" support, the new category styles will be applied
- if not, the older style will remain in place
2022-09-08 23:14:34 -07:00
Vim USDS
825361ab1c Remove up/down arrows from indicators 2022-09-08 23:12:57 -07:00
Vim
c71d7a34b7
Remove duplicate Higher Ed indicator, update higher ed types and correct copy on 404 page (#1886)
* remove duplicate high school degree indicator

- for island areas

* Update 404 page copy

* Remove link that is failing during markdown checks

* Updated FE indicators constants to remove _M

- by removing these _M suffix on the FE
constants, we remove any dependency on changes to the BE score
2022-09-07 13:13:50 -07:00
Vim USDS
6be93a48f6 Update Quickstart docker link 2022-09-02 00:55:57 -07:00
Vim USDS
ffcd352f6e Adds adjacency, impute flag and custom colors 2022-09-02 00:50:02 -07:00
Vim
4b9580c28a
Correct BE signal on low income (#1877) 2022-09-01 08:48:58 -07:00
Vim
83fb0e875d
Add HRS, AML, FUDS and demographics (#1861)
* Add HRS_ET

- refactor to add IndicatorTypes
- modify tests
- add intl

* Add AML and FUDS

- update indicatorFilter
- update tests each indicator has 3 states to test

* Connect BE signal for demographics

- update tests
- i18n-ize

* Remove obsolete tests snapshots

* Update to Score N constants

* Remove higher ed socio-economic indicator

- remove spacer "Meets both socio"
- update snapshots

* Update BE signal types for

- AML
- FUDS

* Filter out missing historic underinvest. indicators

- For the special case when historic underinvestments are missing do not show that indicator at all
- update unit tests

* Make AML appear as No for all that are missing

* Update snapshot
2022-08-30 19:22:29 -07:00
Vim USDS
8175407806 Fix 2 demographics typos
- repeated demographic
- change to race/ethnicity
2022-08-22 08:54:58 -07:00
Vim USDS
df63450762 Update SCORE_HIGH_PROP from SM_PFS to SM_C
- Will allow high zoom tiles to load with BE staging branch 1822/e638
2022-08-19 21:16:54 -07:00
Vim USDS
79d50e9cb4 Show Tract info/demo only when tracts are selected 2022-08-17 16:59:11 -07:00
Vim USDS
908d712144 Add back the selected feature layer 2022-08-17 16:42:44 -07:00
Vim USDS
fc930d19f6 Add indicators
- barriers to transport
- lack of green space
- lack of plumbing
- leaky tanks
2022-08-17 14:51:41 -07:00
Vim USDS
a97a779171 Add flooding and wildfire indicators to side panel 2022-08-17 14:06:07 -07:00
Vim USDS
481e5e3dce Comment out markdown check on link 2022-08-17 12:50:07 -07:00
Vim USDS
198203fe13 Adjust CSS to place LayerSelector in MapHeader 2022-08-17 11:46:47 -07:00
Vim USDS
976249b56c Update Tribal shortname ID 2022-08-17 10:35:44 -07:00
Vim USDS
90a4415cd6 Merge branch 'vimusds/1692-tribal-layer-toggle' into vimusds/release/frontend-narwhal-2 2022-08-17 10:34:32 -07:00