Skip to content

Commit b18ad71

Browse files
committed
Initial Draft for 2025 FIG
1 parent 7b85a21 commit b18ad71

26 files changed

+4175
-8
lines changed

docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const config = {
6666
path: 'fig',
6767
routeBasePath: '/fig',
6868
//sidebarPath: './sidebarsFig.js',
69-
lastVersion: '2024',
69+
lastVersion: '2025',
7070
includeCurrentVersion: false,
7171
},
7272
],
Loading
Loading
95.8 KB
Loading

fig_versioned_docs/version-2025/overview.mdx

+1,474
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from "react";
2+
3+
const PrintPage = () => {
4+
const handlePrint = () => {
5+
window.print()
6+
}
7+
8+
return (
9+
<a className="printBtn" onClick={handlePrint}>
10+
Print PDF
11+
</a>
12+
)
13+
}
14+
15+
export default PrintPage
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
import React from 'react'
2+
import { useTable } from 'react-table'
3+
import CsvDownloadButton from 'react-json-to-csv'
4+
5+
6+
7+
export const TableMaker = ({ jsonData, tableNumber, tableName }) => {
8+
// Define columns based on the keys of the first object in the JSON data
9+
const columns = React.useMemo(
10+
() => Object.keys(jsonData[0]).map((key) => ({ Header: key, accessor: key })),
11+
[]
12+
);
13+
14+
// Create a table instance
15+
const { getTableProps, getTableBodyProps, headerGroups, rows, prepareRow } = useTable({
16+
columns,
17+
data: jsonData,
18+
});
19+
20+
const Cell = ({ cell, column }) => {
21+
const cellValue = cell.value.toString()
22+
const columnKey = cell.column.id
23+
let modifiedValue = cellValue
24+
if (columnKey == 'Valid Values') {
25+
modifiedValue = cellValue
26+
.replace(/(\d+) /g, '$1<br>') // Add <br> after digit-space
27+
}
28+
else if (columnKey == 'Descriptions and Examples' || columnKey == 'Affected Data Fields') {
29+
modifiedValue = cellValue
30+
.replace(/ (\d+)\. /g, '<br>$1. ') // Add <br> before space-digit-period-space
31+
.replace(/: (\d+);/g, ': $1;<br>') // Add <br> after colon-space-digit-semicolon
32+
}
33+
else if (columnKey == 'Edit Description') {
34+
modifiedValue = cellValue
35+
.replace(/ (\d+)\)/g, '<br>$1) ') // Add <br> before space-digit-period-space
36+
}
37+
else if (columnKey == 'Data Field Number' || columnKey == "Edit ID") {
38+
modifiedValue = '<span class="anchor anchorWithStickyNavbar_LWe7" id="table' + tableNumber + '-' + cellValue + '">' + cellValue + '</span>' + '<a class="hash-link" href="#table' + tableNumber + '-' + cellValue + '"></a>'
39+
}
40+
41+
return <div dangerouslySetInnerHTML={{ __html: modifiedValue }} />;
42+
};
43+
44+
return (
45+
<div className='react-table'>
46+
<div className='export-csv'>
47+
<CsvDownloadButton
48+
className="btn-csv"
49+
data={jsonData}
50+
filename={'table' + tableNumber + ".csv"}
51+
delimiter=","
52+
>
53+
Export CSV
54+
</CsvDownloadButton>
55+
</div>
56+
<table {...getTableProps()} className={'table' + tableNumber}>
57+
<thead>
58+
<tr className="table-name">
59+
<th colSpan={columns.length}>{tableName}</th>
60+
</tr>
61+
{headerGroups.map((headerGroup) => (
62+
<tr {...headerGroup.getHeaderGroupProps()}>
63+
{headerGroup.headers.map((column) => (
64+
<th {...column.getHeaderProps()}>{column.render('Header')}</th>
65+
))}
66+
</tr>
67+
))}
68+
</thead>
69+
<tbody {...getTableBodyProps()}>
70+
{rows.map((row) => {
71+
prepareRow(row);
72+
return (
73+
<tr {...row.getRowProps()}>
74+
{row.cells.map((cell) => (
75+
<td {...cell.getCellProps()}>
76+
<Cell cell={cell} />
77+
</td>
78+
))}
79+
</tr>
80+
);
81+
})}
82+
</tbody>
83+
</table>
84+
</div>
85+
86+
);
87+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
[
2+
{
3+
"Data Field Number": "1",
4+
"Data Field Name": "Record Identifier – Value is 1",
5+
"Data Field Type": "Numeric",
6+
"Valid Values": "1",
7+
"Descriptions and Examples": ""
8+
},
9+
{
10+
"Data Field Number": "2",
11+
"Data Field Name": "Financial Institution Name",
12+
"Data Field Type": "Alphanumeric",
13+
"Valid Values": "",
14+
"Descriptions and Examples": "Example: Ficus Bank"
15+
},
16+
{
17+
"Data Field Number": "3",
18+
"Data Field Name": "Calendar Year",
19+
"Data Field Type": "Numeric",
20+
"Valid Values": "",
21+
"Descriptions and Examples": "Example: 2025"
22+
},
23+
{
24+
"Data Field Number": "4",
25+
"Data Field Name": "Calendar Quarter",
26+
"Data Field Type": "Numeric",
27+
"Valid Values": "4",
28+
"Descriptions and Examples": "4. Annual submissions for all HMDA filers for covered loans and applications with respect to which final action was taken from January 1st (01/01) and December 31st (12/31) Codes 1, 2, and 3 are used only during quarterly filing by institutions required to report data quarterly [1]. More information on quarterly filing is found in the Supplemental Guide for Quarterly Filers ."
29+
},
30+
{
31+
"Data Field Number": "5",
32+
"Data Field Name": "Contact Person’s Name",
33+
"Data Field Type": "Alphanumeric",
34+
"Valid Values": "",
35+
"Descriptions and Examples": "Example: Erika Otis"
36+
},
37+
{
38+
"Data Field Number": "6",
39+
"Data Field Name": "Contact Person’s Telephone Number",
40+
"Data Field Type": "Alphanumeric",
41+
"Valid Values": "",
42+
"Descriptions and Examples": "Example: 999-999-9999"
43+
},
44+
{
45+
"Data Field Number": "7",
46+
"Data Field Name": "Contact Person’s E-mail Address",
47+
"Data Field Type": "Alphanumeric",
48+
"Valid Values": "",
49+
"Descriptions and Examples": "Example: [email protected]"
50+
},
51+
{
52+
"Data Field Number": "8",
53+
"Data Field Name": "Contact Person’s Office Street Address",
54+
"Data Field Type": "Alphanumeric",
55+
"Valid Values": "",
56+
"Descriptions and Examples": "Example: 4321 W Random Blvd Ste 201"
57+
},
58+
{
59+
"Data Field Number": "9",
60+
"Data Field Name": "Contact Person’s Office City",
61+
"Data Field Type": "Alphanumeric",
62+
"Valid Values": "",
63+
"Descriptions and Examples": "Example: Somecity"
64+
},
65+
{
66+
"Data Field Number": "10",
67+
"Data Field Name": "Contact Person’s Office State",
68+
"Data Field Type": "Alphanumeric",
69+
"Valid Values": "",
70+
"Descriptions and Examples": "Example: CA"
71+
},
72+
{
73+
"Data Field Number": "11",
74+
"Data Field Name": "Contact Person’s Office ZIP Code",
75+
"Data Field Type": "Alphanumeric",
76+
"Valid Values": "",
77+
"Descriptions and Examples": "Example: 90049-9998"
78+
},
79+
{
80+
"Data Field Number": "12",
81+
"Data Field Name": "Federal Agency",
82+
"Data Field Type": "Numeric",
83+
"Valid Values": "1 2 3 5 7 9",
84+
"Descriptions and Examples": "1. Office of the Comptroller of the Currency (OCC) 2. Federal Reserve System (FRS) 3. Federal Deposit Insurance Corporation (FDIC) 5. National Credit Union Administration (NCUA) 7. United States Department of Housing and Urban Development (HUD) 9. Consumer Financial Protection Bureau (Bureau)"
85+
},
86+
{
87+
"Data Field Number": "13",
88+
"Data Field Name": "Total Number of Entries Contained in Submission",
89+
"Data Field Type": "Numeric",
90+
"Valid Values": "",
91+
"Descriptions and Examples": "Example: 5000"
92+
},
93+
{
94+
"Data Field Number": "14",
95+
"Data Field Name": "Federal Taxpayer Identification Number",
96+
"Data Field Type": "Alphanumeric",
97+
"Valid Values": "",
98+
"Descriptions and Examples": "Example: 99-9999999"
99+
},
100+
{
101+
"Data Field Number": "15",
102+
"Data Field Name": "Legal Entity Identifier (LEI)",
103+
"Data Field Type": "Alphanumeric; Width is 20 characters",
104+
"Valid Values": "",
105+
"Descriptions and Examples": "Example: 10BX939C5543TQA1144M"
106+
}
107+
]

0 commit comments

Comments
 (0)