diff --git a/CHANGELOG.md b/CHANGELOG.md index a1a303e..374cb72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). +## [0.17.0] - 2024-04-09 + +### Added +- Added Predetermined Prediction (Policy Lab) page to include an iframe for Surface 51's model [#260](https://github.com/policy-design-lab/pdl-frontend/issues/260) + ## [0.16.0] - 2024-02-22 ### Added @@ -217,6 +222,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) +[0.17.0]: https://github.com/policy-design-lab/pdl-frontend/compare/0.16.0...0.17.0 [0.16.0]: https://github.com/policy-design-lab/pdl-frontend/compare/0.15.0...0.16.0 [0.15.0]: https://github.com/policy-design-lab/pdl-frontend/compare/0.14.0...0.15.0 [0.14.0]: https://github.com/policy-design-lab/pdl-frontend/compare/0.13.0...0.14.0 diff --git a/package-lock.json b/package-lock.json index 2bd114f..f1d119d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "policy-design-lab", - "version": "0.16.0", + "version": "0.17.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index c88e500..e372ea4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "policy-design-lab", - "version": "0.16.0", + "version": "0.17.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/NavBar.tsx b/src/components/NavBar.tsx index 71627bb..7139497 100644 --- a/src/components/NavBar.tsx +++ b/src/components/NavBar.tsx @@ -18,6 +18,7 @@ import PDLLogo from "./PDLLogo"; const drawerWidth = 240; const navItems = [ { title: "HOME", link: "/" }, + { title: "POLICY LAB".toUpperCase(), link: "/policy_lab" }, { title: "ISSUES & WHITE PAPERS", link: "/issue_whitepaper" }, { title: "ABOUT PDL" } ]; diff --git a/src/files/Aleski_Thesis.pdf b/src/files/Aleski_Thesis.pdf new file mode 100644 index 0000000..1bafd78 Binary files /dev/null and b/src/files/Aleski_Thesis.pdf differ diff --git a/src/files/ISSUE.pdf b/src/files/issues/What_Farmers_Stand.pdf similarity index 100% rename from src/files/ISSUE.pdf rename to src/files/issues/What_Farmers_Stand.pdf diff --git a/src/main.tsx b/src/main.tsx index b80a03b..919585b 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -11,6 +11,7 @@ import CropInsurancePage from "./pages/CropInsurancePage"; import ACEPPage from "./pages/ACEPPage"; import IssueWhitePaperPage from "./pages/IssueWhitePaperPage"; import TitleIIPage from "./pages/TitleIIPage"; +import Surface51Page from "./pages/Surface51Page"; const ScrollToTop = (props: any) => { const location = useLocation(); @@ -37,6 +38,7 @@ export default function Main(): JSX.Element { } /> } /> } /> + } /> ); diff --git a/src/pages/IssueWhitePaperPage.tsx b/src/pages/IssueWhitePaperPage.tsx index c2f8560..8eebfc7 100644 --- a/src/pages/IssueWhitePaperPage.tsx +++ b/src/pages/IssueWhitePaperPage.tsx @@ -4,9 +4,8 @@ import { Box, createTheme, ThemeProvider, Typography, Grid, Tabs, Tab } from "@m import NavBar from "../components/NavBar"; import "../styles/issueWhitePaper.css"; import Footer from "../components/Footer"; -import CardPaper from "../components/issueWhitePaper/cardPaper"; import CardIFrame from "../components/issueWhitePaper/cardIframe"; -import PDF from "../files/ISSUE.pdf"; +import WhatFarmsStand from "../files/issues/What_Farmers_Stand.pdf"; export default function IssueWhitePaperPage(): JSX.Element { const [tab, setTab] = React.useState(0); @@ -119,7 +118,7 @@ export default function IssueWhitePaperPage(): JSX.Element { iframeTitle="What Farmers Stand to Lose in the Farm Bill If Congress Eliminates Conservation Investments" author="Professor Jonathan Coppess" date="Nov. 15 2023" - link={PDF} + link={WhatFarmsStand} iframeLink="https://datawrapper.dwcdn.net/jeiT4/5/" iframeWidth={iframeWidth} iframeHeight={iframeHeight} diff --git a/src/pages/Surface51Page.tsx b/src/pages/Surface51Page.tsx new file mode 100644 index 0000000..66b0973 --- /dev/null +++ b/src/pages/Surface51Page.tsx @@ -0,0 +1,214 @@ +import { Box, Grid, Typography } from "@mui/material"; +import React from "react"; +import { makeStyles } from "@mui/styles"; +import NavBar from "../components/NavBar"; +import AleskiThesis from "../files/Aleski_Thesis.pdf"; + +const useStyles = makeStyles(() => ({ + iframeContainer: { + "height": window.innerHeight > 900 ? "150vh" : "100vh", + "backgroundColor": "white", + "padding": 0, + "margin": 0, + "& iframe": { + "width": "100%", + "min-height": "100%", + "border": "none" + } + } +})); +export default function Surface51Page(): JSX.Element { + const classes = useStyles(); + const iframeLink = "https://surface51.github.io/policy-design-lab/"; + const iframeTitle = "Surface51 Policy Design Lab"; + function TrendIcon({ bkColor, fontColor, text }) { + return ( + + {text} + + ); + } + return ( + + + + + + + + Proof-of-Concept: Policy Design + + + Visualizing potential design changes for a farm payment program + + + + + + + + Demonstrating the potential impacts of changes to farm policy design + + + The following visualizes the modeling of possible changes in the policy design of a specific + farm payment program, Agriculture Risk Coverage, County Option (ARC-CO). It provides an + initial demonstration or example for how revising program calculations can impact payments + to farmers + + + + + + + + + + + Current policy design for ARC-CO + + + It provides income supporting payments to farmers who enroll eligible acres. Payments + are triggered when a crop’s revenue (Prices x Yields) falls below a historical + benchmark. + + + ARC-CO current calculation: + + + Benchmark = 5-year Olympic (drop highest and lowest year) average of national average + prices and county average yields. + + + Guarantee = 86% of Benchmark.{" "} + + + Payment Rate = Difference between actual revenue in the year (national average prices X + county average yields) and the Guarantee; not to exceed 10% of benchmark + + + + + The visualization below presents two different design options for ARC-CO: + + + + (1) Redesigned policy: Adjusted ARC-CO + + + For farmers enrolling in program and adopting cover crops on acres associated, the + actual revenue calculation in the crop year is discounted or reduced by $50 per + acre to account for cost of cover crop adoption. + + + (2) Redesigned policy: Enhanced ARC-CO + + + Benchmark = 5-year Olympic (drop highest and lowest year) average of national average + prices and county average yields.{" "} + + + + Guarantee = 90% of Benchmark{" "} + + + + Payment Rate = Difference between actual revenue in the year (national average prices X + county average yields) and the Guarantee; not to exceed 15% of benchmark{" "} + + + + + + + + + + +
+