mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-10-17 04:41:27 -07:00
Added tract grandfathering language to UI
This commit is contained in:
parent
d22c348504
commit
a58edbc724
10 changed files with 49 additions and 23 deletions
|
@ -1163,6 +1163,9 @@ const AreaDetail = ({properties}: IAreaDetailProps) => {
|
|||
null
|
||||
}
|
||||
percentTractTribal={percentTractTribal}
|
||||
isGrandfathered={
|
||||
properties[constants.IS_GRANDFATHERED]
|
||||
}
|
||||
/>
|
||||
<PrioritizationCopy2
|
||||
totalCategoriesPrioritized={
|
||||
|
@ -1189,9 +1192,11 @@ const AreaDetail = ({properties}: IAreaDetailProps) => {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{/* Only show the DonutCopy if Adjacency index is true and the total number of disadv ind == 0 */}
|
||||
{/* Only show the DonutCopy if Adjacency index is true, the total number of disadv ind == 0,
|
||||
and not grandfathered. */}
|
||||
{properties[constants.ADJACENCY_EXCEEDS_THRESH] &&
|
||||
properties[constants.TOTAL_NUMBER_OF_DISADVANTAGE_INDICATORS] === 0 && (
|
||||
properties[constants.TOTAL_NUMBER_OF_DISADVANTAGE_INDICATORS] === 0 &&
|
||||
!properties[constants.IS_GRANDFATHERED] && (
|
||||
<DonutCopy
|
||||
isAdjacent={properties[constants.ADJACENCY_EXCEEDS_THRESH]}
|
||||
povertyBelow200Percentile={
|
||||
|
|
|
@ -10,6 +10,7 @@ interface IPrioritizationCopy {
|
|||
isAdjacencyThreshMet: boolean,
|
||||
isAdjacencyLowIncome: boolean,
|
||||
isIslandLowIncome: boolean,
|
||||
isGrandfathered: boolean,
|
||||
tribalCountAK: number | null,
|
||||
tribalCountUS: null, // when this signal is supported add number type
|
||||
percentTractTribal: number | null
|
||||
|
@ -38,6 +39,7 @@ const PrioritizationCopy =
|
|||
totalBurdensPrioritized,
|
||||
isAdjacencyThreshMet,
|
||||
isAdjacencyLowIncome,
|
||||
isGrandfathered,
|
||||
isIslandLowIncome,
|
||||
tribalCountAK,
|
||||
tribalCountUS,
|
||||
|
@ -57,8 +59,10 @@ const PrioritizationCopy =
|
|||
} else if (isAdjacencyThreshMet && !isAdjacencyLowIncome) {
|
||||
// if 1-2-1
|
||||
if ( tribalCountAK === null && tribalCountUS === null) {
|
||||
if (isGrandfathered) {
|
||||
prioCopyRendered = EXPLORE_COPY.PRIORITIZATION_COPY.PRIO_GRANDFATHERED_LI;
|
||||
// if 1-2-1-1
|
||||
if (percentTractTribal === null) {
|
||||
} else if (percentTractTribal === null) {
|
||||
prioCopyRendered = EXPLORE_COPY.PRIORITIZATION_COPY.NOT_PRIO_SURR_LI;
|
||||
// if 1-2-1-2
|
||||
} else if (percentTractTribal === 0) {
|
||||
|
|
|
@ -71,6 +71,7 @@ export const TOTAL_NUMBER_OF_INDICATORS = "THRHLD";
|
|||
export const COUNT_OF_CATEGORIES_DISADV = "CC";
|
||||
export const SCORE_N_COMMUNITIES = "SN_C";
|
||||
export const SCORE_N_TRIBAL = "SN_T";
|
||||
export const IS_GRANDFATHERED = "SN_GRAND";
|
||||
|
||||
export const SIDE_PANEL_STATE = "UI_EXP";
|
||||
export const SIDE_PANEL_STATE_VALUES = {
|
||||
|
|
|
@ -660,6 +660,14 @@ export const PRIORITIZATION_COPY = {
|
|||
bold: boldFn,
|
||||
}}
|
||||
/>,
|
||||
PRIO_GRANDFATHERED_LI: <FormattedMessage
|
||||
id={'explore.map.page.side.panel.prio.copy.prio.grandfathered'}
|
||||
defaultMessage={'This tract is considered disadvantaged because it was identified as disadvantaged in version 1.0 of the tool.'}
|
||||
description={`Navigate to the explore the map page. Click on tract, The side panel will show This tract is considered disadvantaged. This tract is considered disadvantaged because it was identified as disadvantaged in version 1.0 of the tool.`}
|
||||
values={{
|
||||
bold: boldFn,
|
||||
}}
|
||||
/>,
|
||||
};
|
||||
|
||||
export const getPrioNBurdenCopy = (burdens:string) => {
|
||||
|
|
|
@ -1427,6 +1427,10 @@
|
|||
"defaultMessage": "The {numPoints} that are Federally Recognized Tribes in this tract are are {also} considered disadvantaged.",
|
||||
"description": "Navigate to the explore the map page. Click on tract, The {numPoints} that are Federally Recognized Tribes in this tract ares are {also} considered disadvantaged."
|
||||
},
|
||||
"explore.map.page.side.panel.prio.copy.prio.grandfathered": {
|
||||
"defaultMessage": "This tract is considered disadvantaged because it was identified as disadvantaged in version 1.0 of the tool.",
|
||||
"description": "Navigate to the explore the map page. Click on tract, The side panel will show This tract is considered disadvantaged. This tract is considered disadvantaged because it was identified as disadvantaged in version 1.0 of the tool."
|
||||
},
|
||||
"explore.map.page.side.panel.prio.copy.prio.island.li": {
|
||||
"defaultMessage": "This tract is considered disadvantaged because it meets the low income threshold <bold>AND</bold> is located in a U.S. Territory.",
|
||||
"description": "Navigate to the explore the map page. Click on tract, The side panel will show This tract is considered disadvantaged. It is an island territory that meets an adjusted low income threshold."
|
||||
|
|
|
@ -356,6 +356,7 @@
|
|||
"explore.map.page.side.panel.prio.copy.prio.akus": "Los {numAKpoints} pueblos nativos de Alaska y las {numUSpoints} tribus de esta zona que están reconocidas a nivel federal también se consideran desfavorecidos.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.anv": "Los {numAKpoints} pueblos nativos de Alaska y las tribus de esta zona que están reconocidas a nivel federal {also} se consideran desfavorecidos.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.donut": "Este distrito censal se considera desfavorecido. Está rodeado de distritos censales desfavorecidos <bold>Y</bold> cumple con el umbral ajustado de bajos ingresos. El ajuste no corresponde a ninguna de las categorías.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.grandfathered": "Este distrito censal se considera desfavorecido porque fue identificado como desfavorecido en la versión 1.0 de esta herramienta.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.frt": "Las tierras de las tribus reconocidas a nivel federal que cubren {amount} de esta extensión se consideran {also} desfavorecidas.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.frt.n.points": "Los {numPoints} que son tribus reconocidas a nivel federal en este distrito censal se consideran {also} desfavorecidos.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.n.burden": "Este distrito censal se considera desfavorecido porque cumple con el umbral de carga <bold>Y</bold> con el umbral socioeconómico asociado.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue