mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
Remove GU and VI (#1028)
- comment out GU and VI code - remove search from feature flag - keep comment on search production bug when wrapping div - add note on territories - add territories copy to constants
This commit is contained in:
parent
9dc70d48a4
commit
c9caa97ce3
4 changed files with 59 additions and 15 deletions
|
@ -157,7 +157,10 @@ const J40Map = ({location}: IJ40Interface) => {
|
||||||
<Grid col={12} desktop={{col: 9}}>
|
<Grid col={12} desktop={{col: 9}}>
|
||||||
|
|
||||||
{/*
|
{/*
|
||||||
The MapSearch component is wrapped in a div in order for MapSearch to render correctly in a production build.
|
The MapSearch component is no longer wrapped in a div in order to allow this feature
|
||||||
|
to be behind a feature flag. This was causing a bug for MapSearch to render
|
||||||
|
correctly in a production build. Leaving this comment here in case future flags are
|
||||||
|
needed in this component
|
||||||
|
|
||||||
When the MapSearch component is placed behind a feature flag without a div wrapping
|
When the MapSearch component is placed behind a feature flag without a div wrapping
|
||||||
MapSearch, the production build will inject CSS due to the null in the false conditional
|
MapSearch, the production build will inject CSS due to the null in the false conditional
|
||||||
|
@ -168,9 +171,7 @@ const J40Map = ({location}: IJ40Interface) => {
|
||||||
|
|
||||||
to ensure the production build works and that MapSearch and the map (ReactMapGL) render correctly.
|
to ensure the production build works and that MapSearch and the map (ReactMapGL) render correctly.
|
||||||
*/}
|
*/}
|
||||||
<div>
|
<MapSearch goToPlace={goToPlace}/>
|
||||||
{'sr' in flags ? <MapSearch goToPlace={goToPlace}/> : null}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ReactMapGL
|
<ReactMapGL
|
||||||
{...viewport}
|
{...viewport}
|
||||||
|
|
|
@ -24,6 +24,14 @@ const MapWrapper = ({location}: IMapWrapperProps) => {
|
||||||
</div>
|
</div>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Grid row>
|
||||||
|
<Grid col={7}>
|
||||||
|
<h2>{EXPLORE_COPY.NOTE_ON_TERRITORIES.INTRO}</h2>
|
||||||
|
<p>{EXPLORE_COPY.NOTE_ON_TERRITORIES.PARA_1}</p>
|
||||||
|
<p>{EXPLORE_COPY.NOTE_ON_TERRITORIES.PARA_2}</p>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -66,10 +66,10 @@ const TerritoryFocusControl = ({goToPlace}: ITerritoryFocusControl) => {
|
||||||
short: intl.formatMessage(EXPLORE_COPY.MAP.PR_SHORT),
|
short: intl.formatMessage(EXPLORE_COPY.MAP.PR_SHORT),
|
||||||
long: intl.formatMessage(EXPLORE_COPY.MAP.PR_LONG),
|
long: intl.formatMessage(EXPLORE_COPY.MAP.PR_LONG),
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
short: intl.formatMessage(EXPLORE_COPY.MAP.GU_SHORT),
|
// short: intl.formatMessage(EXPLORE_COPY.MAP.GU_SHORT),
|
||||||
long: intl.formatMessage(EXPLORE_COPY.MAP.GU_LONG),
|
// long: intl.formatMessage(EXPLORE_COPY.MAP.GU_LONG),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
short: intl.formatMessage(EXPLORE_COPY.MAP.AS_SHORT),
|
short: intl.formatMessage(EXPLORE_COPY.MAP.AS_SHORT),
|
||||||
long: intl.formatMessage(EXPLORE_COPY.MAP.AS_LONG),
|
long: intl.formatMessage(EXPLORE_COPY.MAP.AS_LONG),
|
||||||
|
@ -78,10 +78,10 @@ const TerritoryFocusControl = ({goToPlace}: ITerritoryFocusControl) => {
|
||||||
short: intl.formatMessage(EXPLORE_COPY.MAP.MP_SHORT),
|
short: intl.formatMessage(EXPLORE_COPY.MAP.MP_SHORT),
|
||||||
long: intl.formatMessage(EXPLORE_COPY.MAP.MP_LONG),
|
long: intl.formatMessage(EXPLORE_COPY.MAP.MP_LONG),
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
short: intl.formatMessage(EXPLORE_COPY.MAP.VI_SHORT),
|
// short: intl.formatMessage(EXPLORE_COPY.MAP.VI_SHORT),
|
||||||
long: intl.formatMessage(EXPLORE_COPY.MAP.VI_LONG),
|
// long: intl.formatMessage(EXPLORE_COPY.MAP.VI_LONG),
|
||||||
},
|
// },
|
||||||
];
|
];
|
||||||
// the offset for this array should map the territories variable
|
// the offset for this array should map the territories variable
|
||||||
const territoriesIconClassName = [
|
const territoriesIconClassName = [
|
||||||
|
@ -89,10 +89,10 @@ const TerritoryFocusControl = ({goToPlace}: ITerritoryFocusControl) => {
|
||||||
'mapboxgl-ctrl-zoom-to-ak',
|
'mapboxgl-ctrl-zoom-to-ak',
|
||||||
'mapboxgl-ctrl-zoom-to-hi',
|
'mapboxgl-ctrl-zoom-to-hi',
|
||||||
'mapboxgl-ctrl-zoom-to-pr',
|
'mapboxgl-ctrl-zoom-to-pr',
|
||||||
'mapboxgl-ctrl-zoom-to-gu',
|
// 'mapboxgl-ctrl-zoom-to-gu',
|
||||||
'mapboxgl-ctrl-zoom-to-as',
|
'mapboxgl-ctrl-zoom-to-as',
|
||||||
'mapboxgl-ctrl-zoom-to-mp',
|
'mapboxgl-ctrl-zoom-to-mp',
|
||||||
'mapboxgl-ctrl-zoom-to-vi',
|
// 'mapboxgl-ctrl-zoom-to-vi',
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -153,6 +153,7 @@ export const MAP = defineMessages({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Side Panel copy
|
// Side Panel copy
|
||||||
export const SIDE_PANEL_INITIAL_STATE = defineMessages({
|
export const SIDE_PANEL_INITIAL_STATE = defineMessages({
|
||||||
TITLE: {
|
TITLE: {
|
||||||
|
@ -407,7 +408,6 @@ export const SIDE_PANEL_INDICATORS = defineMessages({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
export const SIDE_PANEL_INDICATOR_DESCRIPTION = defineMessages({
|
export const SIDE_PANEL_INDICATOR_DESCRIPTION = defineMessages({
|
||||||
EXP_AG_LOSS: {
|
EXP_AG_LOSS: {
|
||||||
id: 'areaDetail.indicator.description.exp.ag.loss',
|
id: 'areaDetail.indicator.description.exp.ag.loss',
|
||||||
|
@ -576,6 +576,41 @@ export const DOWNLOAD_DRAFT = {
|
||||||
/>,
|
/>,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const NOTE_ON_TERRITORIES = {
|
||||||
|
INTRO: <FormattedMessage
|
||||||
|
id={'explore.page.note.on.territories.intro'}
|
||||||
|
defaultMessage={`A note on the U.S. territories`}
|
||||||
|
description={`territories intro text`}
|
||||||
|
/>,
|
||||||
|
PARA_1: <FormattedMessage
|
||||||
|
id={'explore.page.note.on.territories.para.1'}
|
||||||
|
defaultMessage={`
|
||||||
|
The data sources described on the {dataMethLink} page are used to
|
||||||
|
identify disadvantaged communities for all 50 states and the District of Columbia. However, not all
|
||||||
|
of these data sources are currently available for the U.S. territories. The Census ACS data from
|
||||||
|
2015-2019 was used to identify disadvantaged communities for Puerto Rico. This uses the same methodology
|
||||||
|
as all 50 states and the District of Columbia for which data is available, which is all fields in
|
||||||
|
the Training and Workforce Development category.
|
||||||
|
`}
|
||||||
|
description={`territories paragraph 1`}
|
||||||
|
values={{
|
||||||
|
dataMethLink: <Link to="/methodology">Methodology & data</Link>,
|
||||||
|
}}
|
||||||
|
/>,
|
||||||
|
PARA_2: <FormattedMessage
|
||||||
|
id={'explore.page.note.on.territories.para.2'}
|
||||||
|
defaultMessage={`
|
||||||
|
For American Samoa, Northern Mariana Islands, Guam and U.S. Virgin Islands, the last reported data from
|
||||||
|
the Census Bureau is the Decennial Census from 2010. The Decennial Census data from 2010 was used
|
||||||
|
for American Samoa and Northern Mariana Islands using only the unemployment, poverty, area median
|
||||||
|
income, and high school degree achievement rate fields in the Training and Workforce Development
|
||||||
|
category of the methodology. Work is underway to identify disadvantaged communities and update the
|
||||||
|
CEJST accordingly for Guam and the U.S. Virgin Islands.
|
||||||
|
`}
|
||||||
|
description={`territories paragraph 2`}
|
||||||
|
/>,
|
||||||
|
|
||||||
|
};
|
||||||
export const HOW_YOU_CAN_HELP_LIST_ITEMS = {
|
export const HOW_YOU_CAN_HELP_LIST_ITEMS = {
|
||||||
HEADING: <FormattedMessage
|
HEADING: <FormattedMessage
|
||||||
id={'youCanHelpInfoText.heading'}
|
id={'youCanHelpInfoText.heading'}
|
||||||
|
|
Loading…
Add table
Reference in a new issue