Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #148 from cfpb/group-reports
Browse files Browse the repository at this point in the history
Group reports
  • Loading branch information
wpears authored May 15, 2018
2 parents 5705fe7 + 64598d0 commit 9b1b7ca
Show file tree
Hide file tree
Showing 12 changed files with 509 additions and 123 deletions.
Binary file removed npm-packages-offline-cache/react-select-1.2.1.tgz
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"react": "16.3.2",
"react-dom": "16.3.2",
"react-router-dom": "4.2.2",
"react-select": "1.2.1",
"react-select-plus": "1.2.0",
"uswds": "1.4.6"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/Option.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var _react = require('react')

var _react2 = _interopRequireDefault(_react)

var _blockEvent = require('../node_modules/react-select/lib/utils/blockEvent')
var _blockEvent = require('../node_modules/react-select-plus/lib/utils/blockEvent')

var _blockEvent2 = _interopRequireDefault(_blockEvent)

Expand Down
2 changes: 1 addition & 1 deletion src/app.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import 'sass/uswds-customer-vars.scss';
@import 'node_modules/uswds/src/stylesheets/all.scss';
@import 'node_modules/react-select/dist/react-select';
@import 'node_modules/react-select-plus/dist/react-select-plus';
// HDMA customizations to USWDS
@import 'sass/header.scss';
@import 'sass/hero.scss';
Expand Down
277 changes: 227 additions & 50 deletions src/constants/aggregate-reports.js
Original file line number Diff line number Diff line change
@@ -1,52 +1,229 @@
export const AGGREGATE_REPORTS = [
{ id: 'i', name: 'Reporting Institutions' },
{ id: '1', name: 'Appliations by Tract' },
{ id: '2', name: 'Loans Purchased by Tract' },
{ id: '3-1', name: 'Loans Sold by Tract' },
{ id: '3-2', name: 'Loans Sold by Purchaser Type' },
{ id: '4-1', name: 'FHA, FSA/RHS and VA Purchases by Race' },
{ id: '4-2', name: 'Conventional Purchases by Race' },
{ id: '4-3', name: 'Refinancings by Race' },
{ id: '4-4', name: 'Home Improvements by Race' },
{ id: '4-5', name: 'Multi-Family Loans by Race' },
{ id: '4-6', name: 'Nonoccupant Loans by Race' },
{ id: '4-7', name: 'Manufactured Homes by Race' },
{ id: '5-1', name: 'FHA, FSA/RHS and VA by App Income' },
{ id: '5-2', name: 'Conv Purchases by App Income' },
{ id: '5-3', name: 'Refinancings by App Income' },
{ id: '5-4', name: 'Home Improvements by App Income' },
{ id: '5-6', name: 'Nonoccupant Loans by Income' },
{ id: '5-7', name: 'Manufactured Homes by Income' },
{ id: '7-1', name: 'FHA, FSA/RHS and VA by Tract Income' },
{ id: '7-2', name: 'Conv Purchases by Tract Income' },
{ id: '7-3', name: 'Refinancings by Tract Income' },
{ id: '7-4', name: 'Home Improvements by Tract Income' },
{ id: '7-5', name: 'Multi-Family Loans by Tract Income' },
{ id: '7-6', name: 'Nonoccupant Loans by Tract Income' },
{ id: '7-7', name: 'Manufactured Homes by Tract Income' },
{ id: '8-1', name: 'FHA, FSA/RHS and VA Purchase Denials' },
{ id: '8-2', name: 'Conv Home-Purchase Denials' },
{ id: '8-3', name: 'Refinancing Denials' },
{ id: '8-4', name: 'Home Improvement Denials' },
{ id: '8-5', name: 'Multi-Family Denials' },
{ id: '8-6', name: 'Nonoccupant Loan Denials' },
{ id: '8-7', name: 'Manufactured Home Denials' },
{ id: '9', name: 'Loan by Med Age of Homes' },
{ id: '11-1', name: 'FHA Home-Pur Pricing Info First' },
{ id: '11-2', name: 'VA Home-Pur Pricing Info First' },
{ id: '11-3', name: 'Conv Home-Pur Pricing Info First' },
{ id: '11-4', name: 'Conv Home-Pur Pricing Info Junior' },
{ id: '11-5', name: 'FHA Refi Pricing Info First' },
{ id: '11-6', name: 'VA Refi Pricing Info First' },
{ id: '11-7', name: 'Conv Refi Pricing Info First' },
{ id: '11-8', name: 'Conv Refi Pricing Info Junior' },
{ id: '11-9', name: 'Conv Home-Imp Pricing Info First' },
{ id: '11-10', name: 'Conv Home-Imp Pricing Info Junior' },
{ id: '12-1', name: 'Conv Manuf Home-Pur First' },
{ id: '12-2', name: 'Conv Manuf Home-Pur Pricing Info First' },
{ id: 'A1', name: 'Loan Sale by Loan Type 1 to 4 Families' },
{ id: 'A2', name: 'Loan Sale by Loan Type Manufactured' },
{ id: 'A3', name: 'Loan Sale by Loan Type Multi-Family' },
{ id: 'A4', name: 'Preapproval Conv Home-Pur First' },
{ id: 'B', name: 'Conv Price Info by Incidence and Level' }
{ value: 'i', label: 'Reporting Institutions' },
{ value: '1', label: 'Appliations by Tract' },
{ value: '2', label: 'Loans Purchased by Tract' },
{
label: 'Loans Sold',
options: [
{
value: '3-1',
label: 'Loans Sold by Tract'
},
{
value: '3-2',
label: 'Loans Sold by Purchaser Type'
}
]
},
{
label: 'By Race',
options: [
{
value: '4-1',
label: 'FHA, FSA/RHS and VA Purchases by Race'
},
{
value: '4-2',
label: 'Conventional Purchases by Race'
},
{
value: '4-3',
label: 'Refinancings by Race'
},
{
value: '4-4',
label: 'Home Improvements by Race'
},
{
value: '4-5',
label: 'Multi-Family Loans by Race'
},
{
value: '4-6',
label: 'Nonoccupant Loans by Race'
},
{
value: '4-7',
label: 'Manufactured Homes by Race'
}
]
},
{
label: 'By App Income',
options: [
{
value: '5-1',
label: 'FHA, FSA/RHS and VA by App Income'
},
{
value: '5-2',
label: 'Conv Purchases by App Income'
},
{
value: '5-3',
label: 'Refinancings by App Income'
},
{
value: '5-4',
label: 'Home Improvements by App Income'
},
{
value: '5-6',
label: 'Nonoccupant Loans by Income'
},
{
value: '5-7',
label: 'Manufactured Homes by Income'
}
]
},
{
label: 'By Tract Income',
options: [
{
value: '7-1',
label: 'FHA, FSA/RHS and VA by Tract Income'
},
{
value: '7-2',
label: 'Conv Purchases by Tract Income'
},
{
value: '7-3',
label: 'Refinancings by Tract Income'
},
{
value: '7-4',
label: 'Home Improvements by Tract Income'
},
{
value: '7-5',
label: 'Multi-Family Loans by Tract Income'
},
{
value: '7-6',
label: 'Nonoccupant Loans by Tract Income'
},
{
value: '7-7',
label: 'Manufactured Homes by Tract Income'
}
]
},
{
label: 'Denials',
options: [
{
value: '8-1',
label: 'FHA, FSA/RHS and VA Purchase Denials'
},
{
value: '8-2',
label: 'Conv Home-Purchase Denials'
},
{
value: '8-3',
label: 'Refinancing Denials'
},
{
value: '8-4',
label: 'Home Improvement Denials'
},
{
value: '8-5',
label: 'Multi-Family Denials'
},
{
value: '8-6',
label: 'Nonoccupant Loan Denials'
},
{
value: '8-7',
label: 'Manufactured Home Denials'
}
]
},
{ value: '9', label: 'Loan by Med Age of Homes' },
{
label: 'Pricing Info First',
options: [
{
value: '11-1',
label: 'FHA Home-Pur Pricing Info First'
},
{
value: '11-2',
label: 'VA Home-Pur Pricing Info First'
},
{
value: '11-3',
label: 'Conv Home-Pur Pricing Info First'
},
{
value: '11-4',
label: 'Conv Home-Pur Pricing Info Junior'
},
{
value: '11-5',
label: 'FHA Refi Pricing Info First'
},
{
value: '11-6',
label: 'VA Refi Pricing Info First'
},
{
value: '11-7',
label: 'Conv Refi Pricing Info First'
},
{
value: '11-8',
label: 'Conv Refi Pricing Info Junior'
},
{
value: '11-9',
label: 'Conv Home-Imp Pricing Info First'
},
{
value: '11-10',
label: 'Conv Home-Imp Pricing Info Junior'
}
]
},

{
label: 'Conv Manuf Home-Pur',
options: [
{
value: '12-1',
label: 'Conv Manuf Home-Pur First'
},
{
value: '12-2',
label: 'Conv Manuf Home-Pur Pricing Info First'
}
]
},
{
label: 'Loan Sale by Loan Type',
options: [
{
value: 'A1',
label: 'Loan Sale by Loan Type 1 to 4 Families'
},
{
value: 'A2',
label: 'Loan Sale by Loan Type Manufactured'
},
{
value: 'A3',
label: 'Loan Sale by Loan Type Multi-Family'
},
{
value: 'A4',
label: 'Preapproval Conv Home-Pur First'
}
]
},

{ value: 'B', label: 'Conv Price Info by Incvalueence and Level' }
]
Loading

0 comments on commit 9b1b7ca

Please sign in to comment.