Skip to content

Commit

Permalink
Merge pull request #187 from policy-design-lab/release-0.8.0
Browse files Browse the repository at this point in the history
Front-end Release 0.8.0
  • Loading branch information
pengyin-shan authored Sep 6, 2023
2 parents b57df11 + 98c4296 commit cafb5f3
Show file tree
Hide file tree
Showing 29 changed files with 3,800 additions and 223 deletions.
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ 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).

## [0.8.0] - 2023-09-06

### Added

- Add Crop Insurance page and corresponding components for its attributes [#125](https://github.com/policy-design-lab/pdl-frontend/issues/125)
- Added Average Insured Area In Acres sub-page to Crop Insurance pages [#183](https://github.com/policy-design-lab/pdl-frontend/issues/183)

### Changed

- Use different title equations for the bar charts in pages under the Net Farmer Benefit section [#179](https://github.com/policy-design-lab/pdl-frontend/issues/179)
- Adjusted font size of chart headers on Crop Insurance page [#182](https://github.com/policy-design-lab/pdl-frontend/issues/182)
- Adjusted '$' sign for some sub-pages of Crop Insurance page [#184](https://github.com/policy-design-lab/pdl-frontend/issues/184)
- Adjusted menu height of Crop Insurance page [#185](https://github.com/policy-design-lab/pdl-frontend/issues/185)
- Added explanation to the Insured Acres subpage of Crop Insurance page [#186](https://github.com/policy-design-lab/pdl-frontend/issues/186)


## [0.7.0] - 2023-08-22

### Changed
Expand All @@ -14,6 +30,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Updated the year related labels on landing page and title 1 page to reflect changes of new title 1 API [#168](https://github.com/policy-design-lab/pdl-frontend/issues/168)
- Updated the landing page map tab to include a label to explain that the top-line numbers are not finalized [#171](https://github.com/policy-design-lab/pdl-frontend/issues/171)
- Added '(Numbers have not yet been finalized)' label on landing page top line tab and updated several details on Title 1 page [#172](https://github.com/policy-design-lab/pdl-frontend/issues/172)
- Changed the "Total Commodities Programs" on the Title I page menu to "Total Commodities Programs, Subtitle A" [#176](https://github.com/policy-design-lab/pdl-frontend/issues/176)

## [0.6.0] - 2023-07-18

Expand Down Expand Up @@ -122,7 +139,8 @@ 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)

[0.7.0]: https://github.com/policy-design-lab/pdl-frontend/compare/0.5.1...0.7.0
[0.8.0]: https://github.com/policy-design-lab/pdl-frontend/compare/0.7.0...0.8.0
[0.7.0]: https://github.com/policy-design-lab/pdl-frontend/compare/0.6.0...0.7.0
[0.6.0]: https://github.com/policy-design-lab/pdl-frontend/compare/0.5.1...0.6.0
[0.5.1]: https://github.com/policy-design-lab/pdl-frontend/compare/0.5.0...0.5.1
[0.5.0]: https://github.com/policy-design-lab/pdl-frontend/compare/0.4.0...0.5.0
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": "0.7.0",
"version": "0.8.0",
"description": "the front end of policy design lab",
"repository": "https://github.com/policy-design-lab/pdl-frontend",
"main": "src/app.tsx",
Expand Down
5 changes: 3 additions & 2 deletions src/components/LandingDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function LandingDisplay({ programTitle }: { programTitle: string
bodyText =
"Crop Insurance provides farmers with the option to purchase insurance policies on the acres of crops they plant to help manage the risks of farming, including to indemnify against losses in yields, crop or whole farm revenue, crop margins and other risks. The program also offsets the cost of the insurance policies through premium subsidies. In addition, the program provides Administrative and Operating (A&O) subsidies to the private crop insurance companies who provide federal crop insurance to farmers. The map shows the total farmer net benefitbenefit of the crop insurance program by state from 2018-2022.";

route = "/";
route = "/cropinsurance";
buttonText = "Explore Maps of Crop Insurance";
button = (
<Button
Expand All @@ -98,7 +98,8 @@ export default function LandingDisplay({ programTitle }: { programTitle: string
borderRadius: 0
}}
disableElevation
onClick={handleAlertOpen}
component={Link}
to={route}
>
<Typography variant="subtitle1">
<strong>{buttonText}</strong>
Expand Down
10 changes: 5 additions & 5 deletions src/components/LandingPageMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ const MapChart = (props) => {
break;
case "Crop Insurance":
searchKey = "Crop Insurance Total";
color1 = "#A1622F";
color2 = "#DCC287";
color3 = "#E3E3E3";
color4 = "#89CBC1";
color5 = "#2C8472";
color1 = "#C26C06";
color2 = "#CCECE6";
color3 = "#66C2A4";
color4 = "#238B45";
color5 = "#005C24";
legendTitle = (
<div>
<Box display="flex" flexDirection="column">
Expand Down
Loading

0 comments on commit cafb5f3

Please sign in to comment.