mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
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
This commit is contained in:
parent
7c6555de13
commit
a4c9d84c99
10 changed files with 51 additions and 396 deletions
|
@ -803,9 +803,8 @@ const AreaDetail = ({properties, hash}: IAreaDetailProps) => {
|
|||
{/* YES, NO or PARTIALLY disadvantaged */}
|
||||
<div className={styles.communityOfFocus}>
|
||||
<TractPrioritization
|
||||
totalCategoriesPrioritized={properties[constants.COUNT_OF_CATEGORIES_DISADV]}
|
||||
isAdjacencyThreshMet={properties[constants.ADJACENCY_EXCEEDS_THRESH]}
|
||||
isAdjacencyLowIncome={properties[constants.ADJACENCY_LOW_INCOME_EXCEEDS_THRESH]}
|
||||
scoreNCommunities={properties[constants.SCORE_N_COMMUNITIES] === true ?
|
||||
properties[constants.SCORE_N_COMMUNITIES] : false}
|
||||
tribalCountAK={properties[constants.TRIBAL_AREAS_COUNT_AK] >= 1 ?
|
||||
properties[constants.TRIBAL_AREAS_COUNT_AK] : null}
|
||||
tribalCountUS={properties[constants.TRIBAL_AREAS_COUNT_CONUS] >= 1 ?
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.`,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
@ -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`] = `
|
||||
<DocumentFragment>
|
||||
<div>
|
||||
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.
|
||||
</div>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<div>
|
||||
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.
|
||||
</div>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
|
|
@ -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(
|
||||
<LocalizedComponent>
|
||||
<TractPrioritization
|
||||
totalCategoriesPrioritized={testCase.totCats}
|
||||
isAdjacencyThreshMet={testCase.ADJ_ET}
|
||||
isAdjacencyLowIncome={testCase.AJDLI_ET}
|
||||
scoreNCommunities={testCase.scoreNComm}
|
||||
tribalCountAK={testCase.tribalCountAK}
|
||||
tribalCountUS={null}
|
||||
percentTractTribal={testCase.percentTribal}
|
||||
|
|
|
@ -5,9 +5,7 @@ import * as styles from './TractPrioritization.module.scss';
|
|||
import * as EXPLORE_COPY from '../../data/copy/explore';
|
||||
|
||||
interface ITractPrioritization {
|
||||
totalCategoriesPrioritized: number
|
||||
isAdjacencyThreshMet: boolean,
|
||||
isAdjacencyLowIncome: boolean,
|
||||
scoreNCommunities: boolean,
|
||||
tribalCountAK: number | null,
|
||||
tribalCountUS: number | null,
|
||||
percentTractTribal: number | null,
|
||||
|
@ -16,31 +14,25 @@ interface ITractPrioritization {
|
|||
/**
|
||||
* This component will return the appropriate designation for the tract's prioritization
|
||||
*
|
||||
* @param {number} totalCategoriesPrioritized
|
||||
* @param {boolean} isAdjacencyThreshMet
|
||||
* @param {boolean} isAdjacencyLowIncome
|
||||
* @param {boolean} scoreNCommunities
|
||||
* @param {number | null} tribalCountAK
|
||||
* @param {number | null} tribalCountUS
|
||||
* @param {number | null} percentTractTribal
|
||||
* @return {JSX}
|
||||
*/
|
||||
const TractPrioritization = (
|
||||
{totalCategoriesPrioritized,
|
||||
isAdjacencyThreshMet,
|
||||
isAdjacencyLowIncome,
|
||||
{scoreNCommunities,
|
||||
tribalCountAK,
|
||||
tribalCountUS,
|
||||
percentTractTribal}:ITractPrioritization) => {
|
||||
if (totalCategoriesPrioritized === 0) {
|
||||
if (isAdjacencyThreshMet && isAdjacencyLowIncome) {
|
||||
if (scoreNCommunities === true) {
|
||||
return <h3 className={styles.invert}>{EXPLORE_COPY.COMMUNITY.OF_FOCUS}</h3>;
|
||||
} else if (percentTractTribal === null && tribalCountAK === null && tribalCountUS === null) {
|
||||
} else {
|
||||
if (percentTractTribal === null && tribalCountAK === null && tribalCountUS === null) {
|
||||
return <h3>{EXPLORE_COPY.COMMUNITY.NOT_OF_FOCUS}</h3>;
|
||||
} else {
|
||||
return <h3>{EXPLORE_COPY.COMMUNITY.PARTIAL}</h3>;
|
||||
}
|
||||
} else {
|
||||
return <h3 className={styles.invert}>{EXPLORE_COPY.COMMUNITY.OF_FOCUS}</h3>;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
No
|
||||
|
@ -8,23 +8,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
No
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
No
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
|
@ -32,7 +16,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
|
@ -40,7 +24,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
|
@ -48,7 +32,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
|
@ -56,7 +40,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
|
@ -64,87 +48,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
Partially
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
|
@ -152,7 +56,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
|
@ -160,7 +64,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
|
@ -168,7 +72,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
|
@ -176,7 +80,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
|
@ -184,199 +88,7 @@ exports[`rendering of TractPrioritization Component checks if component renders
|
|||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
</h3>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
<DocumentFragment>
|
||||
<h3>
|
||||
YES
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -640,8 +640,8 @@ export const getPrioFRTCopy = (amount:string, isAlso:boolean = false) => {
|
|||
return (
|
||||
<FormattedMessage
|
||||
id={'explore.map.page.side.panel.prio.copy.prio.frt.n.perc'}
|
||||
defaultMessage={ 'The {amount} of this tract that are Federally-Recognized Tribal lands are {also} considered disadvantaged.'}
|
||||
description={`Navigate to the explore the map page. Click on tract, The {amount} of this tract that are Federally-Recognized Tribal lands are {also} considered disadvantaged.`}
|
||||
defaultMessage={ 'The Federally-Recognized Tribal lands that cover {amount} of this tract are {also} considered disadvantaged.'}
|
||||
description={`Navigate to the explore the map page. Click on tract, The Federally-Recognized Tribal lands that cover [#%] of this tract are considered disadvantaged.`}
|
||||
values={{
|
||||
amount: amount,
|
||||
also: isAlso? 'also' : '',
|
||||
|
@ -686,8 +686,8 @@ export const getPrioPercAndNumPointsAlsoCopy = (amount:string, numPoints:number)
|
|||
return (
|
||||
<FormattedMessage
|
||||
id={'explore.map.page.side.panel.prio.copy.prio.frt.n.perc'}
|
||||
defaultMessage={ 'The {amount} of this tract that are Federally-Recognized Tribal lands and the {numPoints} tribes that are Federally-Recognized are also considered disadvantaged.'}
|
||||
description={`Navigate to the explore the map page. Click on tract, The {amount} of this tract that are Federally-Recognized Tribal lands and the {numPoints} tribes that are Federally-Recognized are also considered disadvantaged.`}
|
||||
defaultMessage={ 'The Federally-Recognized Tribal lands that cover {amount} of this tract and the {numPoints} tribes that are Federally-Recognized are also considered disadvantaged.'}
|
||||
description={`Navigate to the explore the map page. Click on tract, The Federally-Recognized Tribal lands that cover {amount} of this tract and the {numPoints} tribes that are Federally-Recognized are also considered disadvantaged.`}
|
||||
values={{
|
||||
amount: amount,
|
||||
numPoints: numPoints,
|
||||
|
|
|
@ -1108,8 +1108,8 @@
|
|||
"description": "Navigate to the explore the map page. Click on tract, The side panel will show This tract is considered disadvantaged. It is completely surrounded by tracts that are disadvantaged AND meets an adjusted low income threshold. The adjustment does not apply to any of the categories."
|
||||
},
|
||||
"explore.map.page.side.panel.prio.copy.prio.frt.n.perc": {
|
||||
"defaultMessage": "The {amount} of this tract that are Federally-Recognized Tribal lands and the {numPoints} tribes that are Federally-Recognized are also considered disadvantaged.",
|
||||
"description": "Navigate to the explore the map page. Click on tract, The {amount} of this tract that are Federally-Recognized Tribal lands and the {numPoints} tribes that are Federally-Recognized are also considered disadvantaged."
|
||||
"defaultMessage": "The Federally-Recognized Tribal lands that cover {amount} of this tract and the {numPoints} tribes that are Federally-Recognized are also considered disadvantaged.",
|
||||
"description": "Navigate to the explore the map page. Click on tract, The Federally-Recognized Tribal lands that cover {amount} of this tract and the {numPoints} tribes that are Federally-Recognized are also considered disadvantaged."
|
||||
},
|
||||
"explore.map.page.side.panel.prio.copy.prio.n.burden": {
|
||||
"defaultMessage": "This tract is considered disadvantaged because it meets {burdens} burden threshold AND the associated socio-economic threshold.",
|
||||
|
|
Loading…
Add table
Reference in a new issue