Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Footnote/AMIFootnote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export const AMIFootnote = ({ shouldDisplay }: AMITableFootnoteProps) =>
based on the income needed to afford currently available market rate
housing. Learn more about how HUD calculated NYC’s Income Limits here:{" "}
<Link
href="https://www.huduser.gov/portal/datasets/il/il2024/2024summary.odn?states=36.0&data=2024&inputname=METRO35620MM5600*3606199999%2BNew+York+County&stname=New+York&statefp=36&year=2024&selection_type=county"
href="https://www.huduser.gov/portal/datasets/il/il2025/2025summary.odn?STATES=36.0&INPUTNAME=METRO35620MM5600*3606199999%2BNew+York+County&statelist=&stname=New+York&wherefrom=&statefp=36&year=2025&ne_flag=&selection_type=county&incpath=&data=2025&SubmitButton=View+County+Calculations"
isExternal
>
FY 2024 Income Limits Documentation System -- Income Limits
FY 2025 Income Limits Documentation System -- Income Limits
Calculations for New York, NY HUD Metro FMR Area (huduser.gov)
</Link>
</Text>
Expand Down
26 changes: 26 additions & 0 deletions src/components/Footnote/HSAQFootnote.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { Box, Text } from "@chakra-ui/react";

interface HSAQTableFootnoteProps {
shouldDisplay: boolean;
}

export const HSAQFootnote = ({ shouldDisplay }: HSAQTableFootnoteProps) =>
shouldDisplay ? (
<Box>
<Text
align="left"
padding={1}
fontStyle="italic"
fontSize="md"
color={"gray"}
>
*The Census Bureau has reviewed this data product to ensure appropriate
access, use, and disclosure avoidance protection of the confidential
source data used to produce this product (Data Management System (DMS)
number: P-7519373, Disclosure Review Board (DRB) approval number:
CBDRB-FY24-0395).
</Text>
</Box>
) : (
<></>
);
1 change: 1 addition & 0 deletions src/components/Footnote/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./AMIFootnote";
export * from "./HPSFootnote";
export * from "./HSAQFootnote";
4 changes: 2 additions & 2 deletions src/components/Map/DRM/DRMMapLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export const DRMMapLegend = () => (
</HStack>
<HStack direction="row" alignItems="center" spacing="8px">
<Square size="16px" bg="#BD2E89" borderRadius="4px" />
<Text>Higher</Text>
<Text>High</Text>
</HStack>
<HStack direction="row" alignItems="center" spacing="8px">
<Square size="16px" bg="#ED6CA0" borderRadius="4px" />
<Text>Intermediate</Text>
</HStack>
<HStack direction="row" alignItems="center" spacing="8px">
<Square size="16px" bg="#F5B6BC" borderRadius="4px" />
<Text>Lower</Text>
<Text>Low</Text>
</HStack>
<HStack direction="row" alignItems="center" spacing="8px">
<Square size="16px" bg="#FEEFE5" borderRadius="4px" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
districtOutlineLayer,
parent,
}: MapProps) => {
const [hoverInfo, setHoverInfo] = useState<any | null>(null);

Check warning on line 36 in src/components/Map/Map.tsx

View workflow job for this annotation

GitHub Actions / 🔎 Lint

Unexpected any. Specify a different type

const layers = useLayers(setHoverInfo, ntaOutlineLayer, districtOutlineLayer);

Expand Down Expand Up @@ -83,7 +83,7 @@
break;
case "nta":
hoverInfo?.object
? (tooltipText = `NTA ${hoverInfo?.object?.properties.ntacode}: ${hoverInfo?.object?.properties.ntaname}`)
? (tooltipText = `NTA ${hoverInfo?.object?.properties.nta2020}: ${hoverInfo?.object?.properties.ntaname}`)
: (tooltipText = undefined);
break;
default:
Expand Down
38 changes: 23 additions & 15 deletions src/components/SidebarContent/DRMSelection/DRMSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ export const DRMSelection = () => {
<Box p="0rem 1rem 0rem 1rem">
<Subindicator
subindicatorTitle="Population Vulnerability"
subindicatorBin={selection?.populationvulnerability_reclass}
subindicatorBin={selection?.populationvulnerability}
/>
<DataPoint
title="Non-white Population"
value={selection?.percentnotwhite}
value={selection?.notwhite}
percentage={true}
/>
<Divider borderColor="gray.100" />
<DataPoint
title="Population with income below 200% of Federal poverty rate"
value={selection?.percentbelow2xpovertyrate}
value={selection?.below2xpovertyrate}
percentage={true}
moe={selection?.percentbelow2xpovertyrate_moe}
moe={selection?.below2xpovertyrate_moe}
/>
<Divider borderColor="gray.100" />
<DataPoint
Expand All @@ -37,7 +37,7 @@ export const DRMSelection = () => {
<Divider borderColor="gray.100" />
<DataPoint
title="households with severe rent burden"
value={selection?.percentrentburdenedvscity}
value={selection?.severerentburdenvscity}
percentage={false}
noNumber={true}
/>
Expand All @@ -46,33 +46,41 @@ export const DRMSelection = () => {
<Box p="0rem 1rem 0rem 1rem">
<Subindicator
subindicatorTitle="Housing Conditions"
subindicatorBin={selection?.housingconditions_reclass}
subindicatorBin={selection?.housingconditions}
/>
<DataPoint
title="housing with 3+ maintenance deficiencies"
value={selection?.percentunitswith3plusmaintenancedeficienciesvscity}
title="Housing with 3+ housing problems"
value={
selection?.unitswith3ormorehousingproblemsvscity == 0
? "N/A"
: selection?.unitswith3ormorehousingproblemsvscity
}
percentage={false}
noNumber={true}
/>
<Divider borderColor="gray.100" />
<DataPoint
title="Housing that is not Income-Restricted"
value={selection?.percentunitswithnoincomerestrictions}
percentage={true}
value={selection?.notincomerestricted}
percentage={false}
/>
<Divider borderColor="gray.100" />
<DataPoint
title="Housing that is not Rent-Stabilized"
value={selection?.percentunitswithrentregulationsvscity}
title="Occupied housing that is rent-stabilized"
value={
selection?.occupiedrentstabilizedasashareofalloccupiedvscity == 0
? "N/A"
: selection?.occupiedrentstabilizedasashareofalloccupiedvscity
}
percentage={false}
noNumber={true}
/>
<Divider borderColor="gray.100" />
<DataPoint
title="renter-occupied housing units"
value={selection?.percentrenters}
value={selection?.rentalhousing}
percentage={true}
moe={selection?.percentrenters_moe}
moe={selection?.rentalhousing_moe}
/>
</Box>
<Divider borderColor="gray.400" />
Expand All @@ -89,7 +97,7 @@ export const DRMSelection = () => {
/>
<Divider borderColor="gray.100" />
<DataPoint
title="Residential Property Price Appreciation 2000-2020"
title="Residential Property Price Appreciation 2000-2024"
value={selection?.salespriceappreciation}
percentage={false}
/>
Expand Down
Loading
Loading