From 0731f306ea2ee1c330618b9cd884d433c5b24309 Mon Sep 17 00:00:00 2001 From: jeznorth Date: Thu, 25 Mar 2021 08:50:24 -0700 Subject: [PATCH] [BHBC-899] Funding Source Dialog UI Update --- .../features/projects/CreateProjectPage.tsx | 2 +- .../CreateProjectPage.test.tsx.snap | 22 +- .../components/ProjectFundingItemForm.tsx | 47 +- .../ProjectFundingItemForm.test.tsx.snap | 414 +++++++++--------- app/src/styles.scss | 17 + app/src/themes/appTheme.ts | 27 +- 6 files changed, 289 insertions(+), 240 deletions(-) diff --git a/app/src/features/projects/CreateProjectPage.tsx b/app/src/features/projects/CreateProjectPage.tsx index 8f93380a0a..925a0557d5 100644 --- a/app/src/features/projects/CreateProjectPage.tsx +++ b/app/src/features/projects/CreateProjectPage.tsx @@ -495,7 +495,7 @@ const CreateProjectPage: React.FC = () => { {stepForms[index].stepTitle} - {stepForms[index].stepSubTitle} + {stepForms[index].stepSubTitle} diff --git a/app/src/features/projects/__snapshots__/CreateProjectPage.test.tsx.snap b/app/src/features/projects/__snapshots__/CreateProjectPage.test.tsx.snap index b4b0bcba45..eafa8d9353 100644 --- a/app/src/features/projects/__snapshots__/CreateProjectPage.test.tsx.snap +++ b/app/src/features/projects/__snapshots__/CreateProjectPage.test.tsx.snap @@ -107,7 +107,7 @@ exports[`CreateProjectPage removes the extra project steps if all permits are ma Project Coordinator
Enter contact details for the project coordinator
@@ -172,7 +172,7 @@ exports[`CreateProjectPage removes the extra project steps if all permits are ma Permits
Enter permits associated with this project
@@ -572,7 +572,7 @@ exports[`CreateProjectPage renders the initial default page correctly 1`] = ` Project Coordinator
Enter contact details for the project coordinator
@@ -1076,7 +1076,7 @@ exports[`CreateProjectPage renders the initial default page correctly 1`] = ` Permits
Enter permits associated with this project
@@ -1142,7 +1142,7 @@ exports[`CreateProjectPage renders the initial default page correctly 1`] = ` General Information
General information and details about this project
@@ -1208,7 +1208,7 @@ exports[`CreateProjectPage renders the initial default page correctly 1`] = ` Objectives
Enter the objectives and potential caveats for this project
@@ -1274,7 +1274,7 @@ exports[`CreateProjectPage renders the initial default page correctly 1`] = ` Location
Specify project regions and boundary information
@@ -1340,7 +1340,7 @@ exports[`CreateProjectPage renders the initial default page correctly 1`] = ` Species
Information about species this project is inventorying or monitoring
@@ -1406,7 +1406,7 @@ exports[`CreateProjectPage renders the initial default page correctly 1`] = ` IUCN Classification
Lorem ipsum dolor sit amet, consectur whatever whatever
@@ -1472,7 +1472,7 @@ exports[`CreateProjectPage renders the initial default page correctly 1`] = ` Funding
Specify funding sources for the project
@@ -1538,7 +1538,7 @@ exports[`CreateProjectPage renders the initial default page correctly 1`] = ` Partnerships
Specify partnerships for the project
diff --git a/app/src/features/projects/components/ProjectFundingItemForm.tsx b/app/src/features/projects/components/ProjectFundingItemForm.tsx index 720c2362bd..7664e67715 100644 --- a/app/src/features/projects/components/ProjectFundingItemForm.tsx +++ b/app/src/features/projects/components/ProjectFundingItemForm.tsx @@ -4,17 +4,17 @@ import { Dialog, DialogActions, DialogContent, - DialogContentText, DialogTitle, + Divider, FormControl, FormHelperText, + FormLabel, Grid, InputAdornment, InputLabel, MenuItem, Select, - TextField, - Typography + TextField } from '@material-ui/core'; import { IMultiAutocompleteFieldOption } from 'components/fields/MultiAutocompleteFieldVariableSize'; import StartEndDateFields from 'components/fields/StartEndDateFields'; @@ -105,14 +105,13 @@ const ProjectFundingItemForm: React.FC = (props) = aria-describedby="alert-dialog-description"> Add Funding Source - Enter Funding Source Details - + + + Agency Details + - Agency Details - - - + Agency Name