Skip to content

Commit

Permalink
Merge pull request #886 from cfpb/885-change-log-updt
Browse files Browse the repository at this point in the history
[ChangeLog] Add latest rate spread message.  Add Links.
  • Loading branch information
BarakStout authored Mar 19, 2021
2 parents 6414360 + a09df5c commit e1f71f5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/data-publication/ChangeLog/ChangeLogTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@
min-width: 165px;
}

#ChangeLogTable .links,
#ChangeLogTable .links li {
margin-bottom: 0;
padding-left: 1em;
}


@media screen and (max-width: 850px) {
#ChangeLogTable {
Expand Down
14 changes: 14 additions & 0 deletions src/data-publication/ChangeLog/ChangeLogTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,25 @@ const Row = ({ item, filter, products }) => {
autoEscape={true}
textToHighlight={item.description}
/>
<Links links={item.links} />
</Column>
</div>
)
}

const Links = ({ links }) => {
if (!links) return null
return (
<ul className='links'>
{links.map((l, l_idx) => (
<li key={l_idx}>
<a href={l.url}>{l.text}</a>
</li>
))}
</ul>
)
}


const Column = ({ value, onClick = () => null, className, children }) => {
if (className.indexOf('product') > -1)
Expand Down
14 changes: 8 additions & 6 deletions src/data-publication/ChangeLog/change-log-data.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"log": [
{
"date": "02/23/21",
"type": "correction",
"product": "tools",
"description": "Two sets of APORs were published for the week of 7/20/2020 for fixed rate loans with terms of 13 to 22 years. The first set was published on 7/16/2020 and was briefly incorporated into the Bureau’s rate spread calculator. The second set was published on 7/20/2020 and was substituted for the first in the Bureau’s rate spread calculator. Both sets of APORs are available below.",
"links": [{"text": "APOR Table - 7.20.20", "url": "https://files.consumerfinance.gov/hmda/7_20_2020_APORs_table.csv" }],
"url": ""
},
{
"date": "11/20/20",
"type": "update",
Expand Down Expand Up @@ -34,12 +42,6 @@
"description": "The Data Browser for the year 2018 has been updated with corrected per County counts.",
"url": "https://github.com/cfpb/hmda-frontend/issues/588"
},
{
"date": "07/21/20",
"type": "correction",
"product": "tools",
"description": "An error in the Mortgage Rate Survey table for 15-Year Fixed Points & Fees (cell E135) resulted in incorrect results for Rate Spread on fixed rate loans with terms of 13 to 22 years and rate set date of 7/20/2020. The issue was corrected in the online calculator and the linked tables."
},
{
"date": "07/08/20",
"type": "update",
Expand Down

0 comments on commit e1f71f5

Please sign in to comment.