diff --git a/CHANGELOG.md b/CHANGELOG.md
index 72e4718..4a48c48 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
+## [1.5.0] - 2024-12-10
+
+### Changed
+- Changed all 'grey' word of the site into 'gray' to accommodate US language practice [#341](https://github.com/policy-design-lab/pdl-frontend/issues/341)
+- Changed comma-handled multi-practice selecting query to delimiter-handled query for EQIP and CSP total page selector [#344](https://github.com/policy-design-lab/pdl-frontend/issues/344)
+
+### Fixed
+- Fixed the bug where the map tips lagged in rendering HTML code and processing styles on the EQIP and CSO total page [#345](https://github.com/policy-design-lab/pdl-frontend/issues/345)
+
## [1.4.0] - 2024-11-26
### Added
@@ -310,6 +319,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Map data json [#12](https://github.com/policy-design-lab/pdl-frontend/issues/12)
- Final landing page changes for initial milestone [#15](https://github.com/policy-design-lab/pdl-frontend/issues/15)
+[1.5.0]: https://github.com/policy-design-lab/pdl-frontend/compare/1.4.0...1.5.0
[1.4.0]: https://github.com/policy-design-lab/pdl-frontend/compare/1.3.0...1.4.0
[1.3.0]: https://github.com/policy-design-lab/pdl-frontend/compare/1.2.0...1.3.0
[1.2.0]: https://github.com/policy-design-lab/pdl-frontend/compare/1.1.0...1.2.0
diff --git a/package-lock.json b/package-lock.json
index 1d86614..569962a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "policy-design-lab",
- "version": "1.4.0",
+ "version": "1.5.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index 61b4be5..5434c85 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "policy-design-lab",
- "version": "1.4.0",
+ "version": "1.5.0",
"description": "the front end of policy design lab",
"repository": "https://github.com/policy-design-lab/pdl-frontend",
"main": "src/app.tsx",
diff --git a/src/components/acep/ACEPTotalMap.tsx b/src/components/acep/ACEPTotalMap.tsx
index 09f61b7..16e5a42 100644
--- a/src/components/acep/ACEPTotalMap.tsx
+++ b/src/components/acep/ACEPTotalMap.tsx
@@ -235,7 +235,7 @@ const titleElement = (attribute, year): JSX.Element => {
{attribute} Benefits from {year}
{" "}
- In any state that appears in grey, there is no available data
+ In any state that appears in gray, there is no available data
);
diff --git a/src/components/crp/CRPTotalMap.tsx b/src/components/crp/CRPTotalMap.tsx
index 318cd25..80e9142 100644
--- a/src/components/crp/CRPTotalMap.tsx
+++ b/src/components/crp/CRPTotalMap.tsx
@@ -242,7 +242,7 @@ const titleElement = (attribute, year): JSX.Element => {
{attribute} Benefits from {year}
{" "}
- In any state that appears in grey, there is no available data
+ In any state that appears in gray, there is no available data
);
diff --git a/src/components/crp/CategoryMap.tsx b/src/components/crp/CategoryMap.tsx
index aac0021..4b59963 100644
--- a/src/components/crp/CategoryMap.tsx
+++ b/src/components/crp/CategoryMap.tsx
@@ -316,7 +316,7 @@ const titleElement = (attribute, year): JSX.Element => {
{attribute} Benefits from {year}
{" "}
- In any state that appears in grey, there is no available data
+ In any state that appears in gray, there is no available data
);
diff --git a/src/components/csp/CategoryMap.tsx b/src/components/csp/CategoryMap.tsx
index 0f26251..a5dad95 100644
--- a/src/components/csp/CategoryMap.tsx
+++ b/src/components/csp/CategoryMap.tsx
@@ -290,7 +290,7 @@ const titleElement = (attribute, year): JSX.Element => {
{attribute} Benefits from {year}
{" "}
- In any state that appears in grey, there is no available data
+ In any state that appears in gray, there is no available data
);
diff --git a/src/components/eqip/CategoryMap.tsx b/src/components/eqip/CategoryMap.tsx
index 082823a..7743329 100644
--- a/src/components/eqip/CategoryMap.tsx
+++ b/src/components/eqip/CategoryMap.tsx
@@ -236,7 +236,7 @@ const titleElement = (attribute, year): JSX.Element => {
{attribute} Benefits from {year}
{" "}
- In any state that appears in grey, there is no available data
+ In any state that appears in gray, there is no available data
);
diff --git a/src/components/ira/IRADollarMap.tsx b/src/components/ira/IRADollarMap.tsx
index bde90a3..d3390b1 100644
--- a/src/components/ira/IRADollarMap.tsx
+++ b/src/components/ira/IRADollarMap.tsx
@@ -493,7 +493,7 @@ const IRADollarMap = ({
thresholds.push(nonZeroData[adjustedIndex]);
}
const colorScale = d3.scaleThreshold().domain(thresholds).range(mapColor);
- // For IRA, only if all practices are zero, the state will be colored as grey
+ // For IRA, only if all practices are zero, the state will be colored as gray
let zeroPoints = [];
statePerformance[year].forEach((state) => {
if (practices[0] === "Total") {
diff --git a/src/components/ira/IRAPredictedMap.tsx b/src/components/ira/IRAPredictedMap.tsx
index 8ddb30b..a043e8a 100644
--- a/src/components/ira/IRAPredictedMap.tsx
+++ b/src/components/ira/IRAPredictedMap.tsx
@@ -330,7 +330,7 @@ const IRAPredictedMap = ({
thresholds.push(nonZeroData[adjustedIndex]);
}
const colorScale = d3.scaleThreshold().domain(thresholds).range(mapColor);
- // For IRA, only if all practices are zero, the state will be colored as grey
+ // For IRA, only if all practices are zero, the state will be colored as gray
let zeroPoints = [];
predictedPerformance[year].forEach((state) => {
if (practices[0] === "Total") {
diff --git a/src/components/rcpp/RCPPTotalMap.tsx b/src/components/rcpp/RCPPTotalMap.tsx
index 03a43cf..47a5e9f 100644
--- a/src/components/rcpp/RCPPTotalMap.tsx
+++ b/src/components/rcpp/RCPPTotalMap.tsx
@@ -243,7 +243,7 @@ const titleElement = (attribute, year): JSX.Element => {
{attribute} Benefits from {year}
{" "}
- In any state that appears in grey, there is no available data
+ In any state that appears in gray, there is no available data
);
diff --git a/src/components/shared/DrawLegend.tsx b/src/components/shared/DrawLegend.tsx
index 7421014..b0efe2f 100644
--- a/src/components/shared/DrawLegend.tsx
+++ b/src/components/shared/DrawLegend.tsx
@@ -164,7 +164,7 @@ export default function DrawLegend({
.attr("class", "legendTextSide")
.attr("x", -1000)
.attr("y", -1000)
- .text("In any state that appears in grey, there is no available data");
+ .text("In any state that appears in gray, there is no available data");
const middleBox = middleText.node().getBBox();
middleText.remove();
baseSVG
@@ -172,7 +172,7 @@ export default function DrawLegend({
.attr("class", "legendTextSide")
.attr("x", (svgWidth + margin * 2) / 2 - middleBox.width / 2)
.attr("y", 80)
- .text("In any state that appears in grey, there is no available data");
+ .text("In any state that appears in gray, there is no available data");
}
} else {
baseSVG.attr("height", 40);
diff --git a/src/components/shared/titleii/TitleIIPracticeMap.tsx b/src/components/shared/titleii/TitleIIPracticeMap.tsx
index 7ce3fd8..e07c530 100644
--- a/src/components/shared/titleii/TitleIIPracticeMap.tsx
+++ b/src/components/shared/titleii/TitleIIPracticeMap.tsx
@@ -1,4 +1,5 @@
import React, { useState, useMemo } from "react";
+import { CircularProgress } from "@mui/material";
import { geoCentroid } from "d3-geo";
import { ComposableMap, Geographies, Geography, Marker, Annotation } from "react-simple-maps";
import ReactTooltip from "react-tooltip";
@@ -48,11 +49,22 @@ const MapChart = ({
year,
stateCodes,
colorScale,
- selectedPractices
+ selectedPractices,
+ classes
}) => {
- const classes = useStyles();
+ const handleMouseEnter = React.useCallback(
+ (geo, record) => {
+ const tooltipContent = computeTooltipContent(geo, record, selectedPractices, classes, getNationalTotal);
+ setReactTooltipContent(tooltipContent);
+ },
+ [selectedPractices, classes, getNationalTotal]
+ );
+ const handleMouseLeave = React.useCallback(() => {
+ setReactTooltipContent("");
+ }, []);
+
return (
-