diff --git a/client/src/components/AreaDetail/AreaDetail.tsx b/client/src/components/AreaDetail/AreaDetail.tsx index 464bc106..4836e4a4 100644 --- a/client/src/components/AreaDetail/AreaDetail.tsx +++ b/client/src/components/AreaDetail/AreaDetail.tsx @@ -803,9 +803,8 @@ const AreaDetail = ({properties, hash}: IAreaDetailProps) => { {/* YES, NO or PARTIALLY disadvantaged */}
= 1 ? properties[constants.TRIBAL_AREAS_COUNT_AK] : null} tribalCountUS={properties[constants.TRIBAL_AREAS_COUNT_CONUS] >= 1 ? diff --git a/client/src/components/J40Map.tsx b/client/src/components/J40Map.tsx index bfa87653..675428f3 100644 --- a/client/src/components/J40Map.tsx +++ b/client/src/components/J40Map.tsx @@ -304,7 +304,7 @@ const J40Map = ({location}: IJ40Interface) => { }; const mapBoxBaseLayer = { - streetsWithTribal: `mapbox://styles/justice40/cl2qimpi2000014qeb1egpox8`, + customColorsWithUpdatedTribal: `mapbox://styles/justice40/cl9g30qh7000p15l9cp1ftw16`, streetsWithUpdatedTribal: `mapbox://styles/justice40/cl98rlidr002c14obpsvz6zzs`, }; @@ -348,7 +348,7 @@ const J40Map = ({location}: IJ40Interface) => { // http://visgl.github.io/react-map-gl/docs/api-reference/interactive-map#map-state {...viewport} mapStyle={process.env.MAPBOX_STYLES_READ_TOKEN ? - mapBoxBaseLayer.streetsWithUpdatedTribal : getOSBaseMap()} + mapBoxBaseLayer.customColorsWithUpdatedTribal : getOSBaseMap()} width="100%" // Ajusting this height with a conditional statement will not render the map on staging. // The reason for this issue is unknown. Consider styling the parent container via SASS. diff --git a/client/src/components/PrioritizationCopy2/PrioritizationCopy2.test.tsx b/client/src/components/PrioritizationCopy2/PrioritizationCopy2.test.tsx index 6d26e57e..652e65b9 100644 --- a/client/src/components/PrioritizationCopy2/PrioritizationCopy2.test.tsx +++ b/client/src/components/PrioritizationCopy2/PrioritizationCopy2.test.tsx @@ -14,7 +14,7 @@ describe('rendering of PrioritizationCopy2 Component', () => { tribalCountUS: null, percentTractTribal: 2, // eslint-disable-next-line max-len - para1: `The 2% of this tract that are Federally-Recognized Tribal lands are also considered disadvantaged.`, + para1: `The Federally-Recognized Tribal lands that cover 2% of this tract are also considered disadvantaged.`, }, { totalCategoriesPrioritized: 0, @@ -25,7 +25,7 @@ describe('rendering of PrioritizationCopy2 Component', () => { tribalCountUS: 3, percentTractTribal: 4, // eslint-disable-next-line max-len - para1: `The 4% of this tract that are Federally-Recognized Tribal lands are also considered disadvantaged.`, + para1: `The Federally-Recognized Tribal lands that cover 4% of this tract are also considered disadvantaged.`, }, ]; diff --git a/client/src/components/PrioritizationCopy2/__snapshots__/PrioritizationCopy2.test.tsx.snap b/client/src/components/PrioritizationCopy2/__snapshots__/PrioritizationCopy2.test.tsx.snap index dc0c0ea9..01c77615 100644 --- a/client/src/components/PrioritizationCopy2/__snapshots__/PrioritizationCopy2.test.tsx.snap +++ b/client/src/components/PrioritizationCopy2/__snapshots__/PrioritizationCopy2.test.tsx.snap @@ -1,17 +1,17 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`rendering of PrioritizationCopy2 Component checks if component renders The 2% of this tract that are Federally-Recognized Tribal lands are also considered disadvantaged. when totCats = 0, totBurds = 0, isAdj = true, isAdjLI = true, tribal % = 2, 1`] = ` +exports[`rendering of PrioritizationCopy2 Component checks if component renders The Federally-Recognized Tribal lands that cover 2% of this tract are also considered disadvantaged. when totCats = 0, totBurds = 0, isAdj = true, isAdjLI = true, tribal % = 2, 1`] = `
- The 2% of this tract that are Federally-Recognized Tribal lands are also considered disadvantaged. + The Federally-Recognized Tribal lands that cover 2% of this tract are also considered disadvantaged.
`; -exports[`rendering of PrioritizationCopy2 Component checks if component renders The 4% of this tract that are Federally-Recognized Tribal lands are also considered disadvantaged. when totCats = 0, totBurds = 1, isAdj = true, isAdjLI = true, tribal % = 4, 1`] = ` +exports[`rendering of PrioritizationCopy2 Component checks if component renders The Federally-Recognized Tribal lands that cover 4% of this tract are also considered disadvantaged. when totCats = 0, totBurds = 1, isAdj = true, isAdjLI = true, tribal % = 4, 1`] = `
- The 4% of this tract that are Federally-Recognized Tribal lands are also considered disadvantaged. + The Federally-Recognized Tribal lands that cover 4% of this tract are also considered disadvantaged.
`; diff --git a/client/src/components/TractPrioritization/TractPrioritization.test.tsx b/client/src/components/TractPrioritization/TractPrioritization.test.tsx index d1822cc0..adfe3c6b 100644 --- a/client/src/components/TractPrioritization/TractPrioritization.test.tsx +++ b/client/src/components/TractPrioritization/TractPrioritization.test.tsx @@ -5,79 +5,29 @@ import TractPrioritization from './TractPrioritization'; describe('rendering of TractPrioritization Component', () => { const testCases = [ - // total categories >= 1 all other are don't care - {totCats: 1, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: null, percentTribal: null, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: null, percentTribal: 0, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: null, percentTribal: .45, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: 1, percentTribal: null, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: 2, percentTribal: 0, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: 3, percentTribal: .45, isDAC: 'YES'}, - - {totCats: 1, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: null, percentTribal: null, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: null, percentTribal: 0, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: null, percentTribal: .45, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: 1, percentTribal: null, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: 2, percentTribal: 0, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: 3, percentTribal: .45, isDAC: 'YES'}, - - {totCats: 1, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: null, percentTribal: null, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: null, percentTribal: 0, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: null, percentTribal: .45, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: 1, percentTribal: null, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: 2, percentTribal: 0, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: 3, percentTribal: .45, isDAC: 'YES'}, - - {totCats: 1, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: null, percentTribal: null, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: null, percentTribal: 0, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: null, percentTribal: .45, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: 1, percentTribal: null, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: 2, percentTribal: 0, isDAC: 'YES'}, - {totCats: 1, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: 3, percentTribal: .45, isDAC: 'YES'}, - - // Total categories == 0, while Adjacency index = True and Adjacency low income = True - {totCats: 0, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: null, percentTribal: null, isDAC: 'YES'}, - {totCats: 0, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: null, percentTribal: 0, isDAC: 'YES'}, - {totCats: 0, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: null, percentTribal: .13, isDAC: 'YES'}, - {totCats: 0, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: 1, percentTribal: null, isDAC: 'YES'}, - {totCats: 0, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: 2, percentTribal: 0, isDAC: 'YES'}, - {totCats: 0, ADJ_ET: true, AJDLI_ET: true, tribalCountAK: 3, percentTribal: .13, isDAC: 'YES'}, - - // Total categories == 0, while Adjacency index = True and Adjacency low income = False - {totCats: 0, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: null, percentTribal: null, isDAC: 'No'}, - {totCats: 0, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: null, percentTribal: 0, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: null, percentTribal: .13, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: 1, percentTribal: null, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: 2, percentTribal: 0, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: true, AJDLI_ET: false, tribalCountAK: 3, percentTribal: .13, isDAC: 'Partially'}, - - // Total categories == 0, while Adjacency index = False and Adjacency low income = True - {totCats: 0, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: null, percentTribal: null, isDAC: 'No'}, - {totCats: 0, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: null, percentTribal: 0, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: null, percentTribal: .13, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: 1, percentTribal: null, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: 2, percentTribal: 0, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: false, AJDLI_ET: true, tribalCountAK: 3, percentTribal: .13, isDAC: 'Partially'}, - - // Total categories == 0, while Adjacency index = False - {totCats: 0, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: null, percentTribal: null, isDAC: 'No'}, - {totCats: 0, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: null, percentTribal: 0, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: null, percentTribal: .13, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: 1, percentTribal: null, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: 2, percentTribal: 0, isDAC: 'Partially'}, - {totCats: 0, ADJ_ET: false, AJDLI_ET: false, tribalCountAK: 3, percentTribal: .13, isDAC: 'Partially'}, + {scoreNComm: true, tribalCountAK: null, percentTribal: null, isDAC: 'YES'}, + {scoreNComm: true, tribalCountAK: null, percentTribal: 0, isDAC: 'YES'}, + {scoreNComm: true, tribalCountAK: null, percentTribal: .45, isDAC: 'YES'}, + {scoreNComm: true, tribalCountAK: 1, percentTribal: null, isDAC: 'YES'}, + {scoreNComm: true, tribalCountAK: 2, percentTribal: 0, isDAC: 'YES'}, + {scoreNComm: true, tribalCountAK: 3, percentTribal: .45, isDAC: 'YES'}, + {scoreNComm: false, tribalCountAK: null, percentTribal: null, isDAC: 'No'}, + {scoreNComm: false, tribalCountAK: null, percentTribal: 0, isDAC: 'Partially'}, + {scoreNComm: false, tribalCountAK: null, percentTribal: .13, isDAC: 'Partially'}, + {scoreNComm: false, tribalCountAK: 1, percentTribal: null, isDAC: 'Partially'}, + {scoreNComm: false, tribalCountAK: 2, percentTribal: 0, isDAC: 'Partially'}, + {scoreNComm: false, tribalCountAK: 3, percentTribal: .13, isDAC: 'Partially'}, ]; testCases.forEach((testCase) => { // eslint-disable-next-line max-len - it(`checks if component renders ${testCase.isDAC} when category count = ${testCase.totCats}, isAdjacency = ${testCase.ADJ_ET}, isAdjLowInc = ${testCase.AJDLI_ET}, tribal points in AK = ${testCase.tribalCountAK} tribal % = ${testCase.percentTribal}`, () => { + it(`checks if component renders ${testCase.isDAC} when score N communities = ${testCase.scoreNComm}, tribal points in AK = ${testCase.tribalCountAK} tribal % = ${testCase.percentTribal}`, () => { const {asFragment} = render( { - if (totalCategoriesPrioritized === 0) { - if (isAdjacencyThreshMet && isAdjacencyLowIncome) { - return

{EXPLORE_COPY.COMMUNITY.OF_FOCUS}

; - } else if (percentTractTribal === null && tribalCountAK === null && tribalCountUS === null) { + if (scoreNCommunities === true) { + return

{EXPLORE_COPY.COMMUNITY.OF_FOCUS}

; + } else { + if (percentTractTribal === null && tribalCountAK === null && tribalCountUS === null) { return

{EXPLORE_COPY.COMMUNITY.NOT_OF_FOCUS}

; } else { return

{EXPLORE_COPY.COMMUNITY.PARTIAL}

; } - } else { - return

{EXPLORE_COPY.COMMUNITY.OF_FOCUS}

; } }; diff --git a/client/src/components/TractPrioritization/__snapshots__/TractPrioritization.test.tsx.snap b/client/src/components/TractPrioritization/__snapshots__/TractPrioritization.test.tsx.snap index 0c73f7d8..a794b7ac 100644 --- a/client/src/components/TractPrioritization/__snapshots__/TractPrioritization.test.tsx.snap +++ b/client/src/components/TractPrioritization/__snapshots__/TractPrioritization.test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`rendering of TractPrioritization Component checks if component renders No when category count = 0, isAdjacency = false, isAdjLowInc = false, tribal points in AK = null tribal % = null 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders No when score N communities = false, tribal points in AK = null tribal % = null 1`] = `

No @@ -8,23 +8,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders No when category count = 0, isAdjacency = false, isAdjLowInc = true, tribal points in AK = null tribal % = null 1`] = ` - -

- No -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders No when category count = 0, isAdjacency = true, isAdjLowInc = false, tribal points in AK = null tribal % = null 1`] = ` - -

- No -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = false, isAdjLowInc = false, tribal points in AK = 1 tribal % = null 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders Partially when score N communities = false, tribal points in AK = 1 tribal % = null 1`] = `

Partially @@ -32,7 +16,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = false, isAdjLowInc = false, tribal points in AK = 2 tribal % = 0 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders Partially when score N communities = false, tribal points in AK = 2 tribal % = 0 1`] = `

Partially @@ -40,7 +24,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = false, isAdjLowInc = false, tribal points in AK = 3 tribal % = 0.13 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders Partially when score N communities = false, tribal points in AK = 3 tribal % = 0.13 1`] = `

Partially @@ -48,7 +32,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = false, isAdjLowInc = false, tribal points in AK = null tribal % = 0 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders Partially when score N communities = false, tribal points in AK = null tribal % = 0 1`] = `

Partially @@ -56,7 +40,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = false, isAdjLowInc = false, tribal points in AK = null tribal % = 0.13 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders Partially when score N communities = false, tribal points in AK = null tribal % = 0.13 1`] = `

Partially @@ -64,87 +48,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = false, isAdjLowInc = true, tribal points in AK = 1 tribal % = null 1`] = ` - -

- Partially -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = false, isAdjLowInc = true, tribal points in AK = 2 tribal % = 0 1`] = ` - -

- Partially -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = false, isAdjLowInc = true, tribal points in AK = 3 tribal % = 0.13 1`] = ` - -

- Partially -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = false, isAdjLowInc = true, tribal points in AK = null tribal % = 0 1`] = ` - -

- Partially -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = false, isAdjLowInc = true, tribal points in AK = null tribal % = 0.13 1`] = ` - -

- Partially -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = true, isAdjLowInc = false, tribal points in AK = 1 tribal % = null 1`] = ` - -

- Partially -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = true, isAdjLowInc = false, tribal points in AK = 2 tribal % = 0 1`] = ` - -

- Partially -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = true, isAdjLowInc = false, tribal points in AK = 3 tribal % = 0.13 1`] = ` - -

- Partially -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = true, isAdjLowInc = false, tribal points in AK = null tribal % = 0 1`] = ` - -

- Partially -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders Partially when category count = 0, isAdjacency = true, isAdjLowInc = false, tribal points in AK = null tribal % = 0.13 1`] = ` - -

- Partially -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 0, isAdjacency = true, isAdjLowInc = true, tribal points in AK = 1 tribal % = null 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders YES when score N communities = true, tribal points in AK = 1 tribal % = null 1`] = `

YES @@ -152,7 +56,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 0, isAdjacency = true, isAdjLowInc = true, tribal points in AK = 2 tribal % = 0 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders YES when score N communities = true, tribal points in AK = 2 tribal % = 0 1`] = `

YES @@ -160,7 +64,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 0, isAdjacency = true, isAdjLowInc = true, tribal points in AK = 3 tribal % = 0.13 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders YES when score N communities = true, tribal points in AK = 3 tribal % = 0.45 1`] = `

YES @@ -168,7 +72,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 0, isAdjacency = true, isAdjLowInc = true, tribal points in AK = null tribal % = 0 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders YES when score N communities = true, tribal points in AK = null tribal % = 0 1`] = `

YES @@ -176,7 +80,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 0, isAdjacency = true, isAdjLowInc = true, tribal points in AK = null tribal % = 0.13 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders YES when score N communities = true, tribal points in AK = null tribal % = 0.45 1`] = `

YES @@ -184,199 +88,7 @@ exports[`rendering of TractPrioritization Component checks if component renders `; -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 0, isAdjacency = true, isAdjLowInc = true, tribal points in AK = null tribal % = null 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = false, tribal points in AK = 1 tribal % = null 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = false, tribal points in AK = 2 tribal % = 0 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = false, tribal points in AK = 3 tribal % = 0.45 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = false, tribal points in AK = null tribal % = 0 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = false, tribal points in AK = null tribal % = 0.45 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = false, tribal points in AK = null tribal % = null 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = true, tribal points in AK = 1 tribal % = null 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = true, tribal points in AK = 2 tribal % = 0 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = true, tribal points in AK = 3 tribal % = 0.45 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = true, tribal points in AK = null tribal % = 0 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = true, tribal points in AK = null tribal % = 0.45 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = false, isAdjLowInc = true, tribal points in AK = null tribal % = null 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = false, tribal points in AK = 1 tribal % = null 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = false, tribal points in AK = 2 tribal % = 0 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = false, tribal points in AK = 3 tribal % = 0.45 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = false, tribal points in AK = null tribal % = 0 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = false, tribal points in AK = null tribal % = 0.45 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = false, tribal points in AK = null tribal % = null 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = true, tribal points in AK = 1 tribal % = null 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = true, tribal points in AK = 2 tribal % = 0 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = true, tribal points in AK = 3 tribal % = 0.45 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = true, tribal points in AK = null tribal % = 0 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = true, tribal points in AK = null tribal % = 0.45 1`] = ` - -

- YES -

-
-`; - -exports[`rendering of TractPrioritization Component checks if component renders YES when category count = 1, isAdjacency = true, isAdjLowInc = true, tribal points in AK = null tribal % = null 1`] = ` +exports[`rendering of TractPrioritization Component checks if component renders YES when score N communities = true, tribal points in AK = null tribal % = null 1`] = `

YES diff --git a/client/src/data/constants.tsx b/client/src/data/constants.tsx index b4ef875e..cc6dc79e 100644 --- a/client/src/data/constants.tsx +++ b/client/src/data/constants.tsx @@ -70,6 +70,8 @@ export const SCORE_BOUNDARY_THRESHOLD = 0.6; export const TOTAL_NUMBER_OF_DISADVANTAGE_INDICATORS = 'TC'; 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 SIDE_PANEL_STATE = 'UI_EXP'; export const SIDE_PANEL_STATE_VALUES = { diff --git a/client/src/data/copy/explore.tsx b/client/src/data/copy/explore.tsx index 4976142e..cf8066fd 100644 --- a/client/src/data/copy/explore.tsx +++ b/client/src/data/copy/explore.tsx @@ -640,8 +640,8 @@ export const getPrioFRTCopy = (amount:string, isAlso:boolean = false) => { return (