Skip to content

Commit

Permalink
Merge pull request #984 from Eastern-Research-Group/feature/726_more-…
Browse files Browse the repository at this point in the history
…climate-tab-changes

Feature/726 more climate tab changes
  • Loading branch information
maxdiebold-erg authored Jun 27, 2024
2 parents 950712f + 4e057b1 commit 684c0d6
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 27 deletions.
63 changes: 36 additions & 27 deletions app/client/src/components/shared/WaterbodyInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1066,32 +1066,41 @@ function WaterbodyInfo({
);

// jsx
const sewerOverflowsContent = (
<ListContent
rows={[
{
label: 'Permit Status',
value: attributes.permit_status_code,
},
{
label: 'Permit Type',
value: attributes.permit_type_code,
},
{
label: 'Latitude/Longitude',
value: `${toFixedFloat(
parseFloat(attributes.facility_lat),
5,
)}, ${toFixedFloat(parseFloat(attributes.facility_lon), 5)}`,
},
{
label: 'NPDES ID',
value: attributes.npdes_id,
},
]}
styles={listContentStyles}
/>
);
const sewerOverflowsContent = () => {
const echoLookups = lookupFiles?.extremeWeatherConfig?.data?.echoLookups;
if (!echoLookups) return null;

const { permit_status_code, permit_type_code } = attributes;
return (
<ListContent
rows={[
{
label: 'Permit Status',
value:
echoLookups.permitStatus?.[permit_status_code] ??
permit_status_code,
},
{
label: 'Permit Type',
value:
echoLookups.permitType?.[permit_type_code] ?? permit_type_code,
},
{
label: 'Latitude/Longitude',
value: `${toFixedFloat(
parseFloat(attributes.facility_lat),
5,
)}, ${toFixedFloat(parseFloat(attributes.facility_lon), 5)}`,
},
{
label: 'NPDES ID',
value: attributes.npdes_id,
},
]}
styles={listContentStyles}
/>
);
};

// jsx
const storageTankContent = (
Expand Down Expand Up @@ -1401,7 +1410,7 @@ function WaterbodyInfo({
if (type === 'Protected Areas') content = protectedAreaContent;
if (type === 'Demographic Indicators') content = ejscreenContent;
if (type === 'Pollutant Storage Tank') content = storageTankContent;
if (type === 'Combined Sewer Overflow') content = sewerOverflowsContent;
if (type === 'Combined Sewer Overflow') content = sewerOverflowsContent();
if (type === 'Wells') content = wellsContent;
if (type === 'Dams') content = damsContent();
if (type === 'Congressional District') {
Expand Down
4 changes: 4 additions & 0 deletions app/client/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ export type ExtremeWeatherConfigState = {
status: 'fetching' | 'failure' | 'success';
data: {
currentWeatherDefaults: ExtremeWeatherRow[];
echoLookups: {
permitStatus: { [key: string]: string };
permitType: { [key: string]: string };
};
historicalDefaults: ExtremeWeatherRow[];
historicalRangeDefaults: ExtremeWeatherRow[];
potentiallyVulnerableDefaults: ExtremeWeatherRow[];
Expand Down
21 changes: 21 additions & 0 deletions app/server/app/public/data/community/extreme-weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,27 @@
}
],

"echoLookups": {
"permitStatus": {
"none": "Any",
"EFF": "Effective",
"EXP": "Expired",
"ADC": "Administratively Continued",
"PND": "Pending",
"RET": "Retired",
"NON": "Not Needed",
"TRM": "Terminated"
},

"permitType": {
"none": "Any",
"NPD": "NPDES Individual Permit",
"NGP": "NPDES Master General Permit",
"GPC": "General Permit Covered Facility",
"UFT": "Unpermitted Facility"
}
},

"historicalDefaults": [
{
"id": "fire",
Expand Down
46 changes: 46 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# Change Log

## 2.10.0 (July 2024)

### Added

- Added the Extreme Weather tab.

- Added GRTS success stories to the Restore tab of the community page.

- Added the ability to search for monitoring locations and waterbodies (these results open to their respective reports in a new tab).

### Changed

- Updated One EPA Template footer links.

- Updated the links for monitoring locations to automatically open to the advanced tab of the WQP page.

- Updated the sitemap to have examples for dynamic pages (i.e., waterbody report, monitoring report, etc.).

- Updated the waterbody report page to list all cycles for the waterbody (including links to that specific cycle).

- Moved more config files to S3 bucket.

- Fixed issue of waterbody report page not always loading. Switched to `summarize=N` for calls to attains actions service.

- Fixed issue with GA4 not logging correctly.

- Fixed issue of layer list not always loading in full screen view.

- Fixed issue of the legend for the land cover layer being scrunched.

- Fixed issue of highcharts tooltip overflowing container.

- Fixed issue of infinite loading spinners when searching for a bad location.

- Fixed issue of error message disappearing immediately when searching for a bad location.

- Fixed issue of USGS sensors no longer showing in list views.

### Chores

- Updated dependencies.

- Updated ArcGIS JS API.

- Created a github action for building production.

## 2.9.0 (February 2024)

### Changed
Expand Down

0 comments on commit 684c0d6

Please sign in to comment.