Skip to content

Commit

Permalink
Merge pull request #331 from policy-design-lab/release-1.2.0
Browse files Browse the repository at this point in the history
Release 1.2.0
  • Loading branch information
pengyin-shan authored Oct 24, 2024
2 parents 401c6c9 + b3839fa commit dc9152c
Show file tree
Hide file tree
Showing 12 changed files with 523 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ 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.2.0] - 2024-10-24

### Added
- Add selector to the landing page total map for users to select the program they want to see and get the total amount of the selected programs in the map [#317](https://github.com/policy-design-lab/pdl-frontend/issues/317)

## [1.1.0] - 2024-10-04

### Changed
Expand Down Expand Up @@ -294,6 +299,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.2.0]: https://github.com/policy-design-lab/pdl-frontend/compare/1.1.0...1.2.0
[1.1.0]: https://github.com/policy-design-lab/pdl-frontend/compare/1.0.5...1.1.0
[1.0.5]: https://github.com/policy-design-lab/pdl-frontend/compare/1.0.4...1.0.5
[1.0.4]: https://github.com/policy-design-lab/pdl-frontend/compare/1.0.3...1.0.4
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "policy-design-lab",
"version": "1.1.0",
"version": "1.2.0",
"description": "the front end of policy design lab",
"repository": "https://github.com/policy-design-lab/pdl-frontend",
"main": "src/app.tsx",
Expand Down
53 changes: 38 additions & 15 deletions src/components/LandingPageMapTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import Tab from "@mui/material/Tab";
import Box from "@mui/material/Box";
import { createTheme, styled, Typography, ThemeProvider } from "@mui/material";
import Divider from "@mui/material/Divider";
import LandingPageMap from "./LandingPageMap";
import LandingPageTotalMap from "./LandingPageTotalMap";
import LandingPageProgramMap from "./LandingPageProgramMap";
import LandingDisplay from "./LandingDisplay";

const theme = createTheme({
Expand Down Expand Up @@ -43,13 +44,24 @@ function TabPanel({
mx: "auto"
}}
>
<LandingPageMap
programTitle={title}
allStates={allStates}
stateCodes={stateCodes}
allPrograms={allPrograms}
summary={summary}
/>
{title.includes("All Programs") && (
<LandingPageTotalMap
programTitle={title}
allStates={allStates}
stateCodes={stateCodes}
allPrograms={allPrograms}
summary={summary}
/>
)}
{!title.includes("All Programs") && (
<LandingPageProgramMap
programTitle={title}
allStates={allStates}
stateCodes={stateCodes}
allPrograms={allPrograms}
summary={summary}
/>
)}
</Box>
)}
</Box>
Expand All @@ -62,13 +74,24 @@ function TabPanel({
mx: "auto"
}}
>
<LandingPageMap
programTitle={title}
allStates={allStates}
stateCodes={stateCodes}
allPrograms={allPrograms}
summary={summary}
/>
{title.includes("All Programs") && (
<LandingPageTotalMap
programTitle={title}
allStates={allStates}
stateCodes={stateCodes}
allPrograms={allPrograms}
summary={summary}
/>
)}
{!title.includes("All Programs") && (
<LandingPageProgramMap
programTitle={title}
allStates={allStates}
stateCodes={stateCodes}
allPrograms={allPrograms}
summary={summary}
/>
)}
</Box>
)}
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ MapChart.propTypes = {
title: PropTypes.string
};

const LandingPageMap = ({
const LandingPageProgramMap = ({
programTitle,
allStates,
stateCodes,
Expand Down Expand Up @@ -443,4 +443,4 @@ const LandingPageMap = ({
);
};

export default LandingPageMap;
export default LandingPageProgramMap;
Loading

0 comments on commit dc9152c

Please sign in to comment.