Skip to content

Commit

Permalink
Add/update data product disclaimer (#481)
Browse files Browse the repository at this point in the history
* Add/update data product disclaimer

Moves the data product disclaimer above the date filter and adds it to
the chart as well.

Addresses DATAP-1225

* Update Jest test snapshots

* Fix product disclaimer punctuation
  • Loading branch information
contolini authored Nov 7, 2023
1 parent ff24a6c commit d4f0f0a
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 67 deletions.
4 changes: 2 additions & 2 deletions dist/ccdb5.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ccdb5.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/ccdb5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ccdb5.js.map

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions src/components/Filters/DateFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dayjs.extend(dayjsIsBetween);
dayjs.extend(dayjsUtc);

const WARN_SERIES_BREAK =
'CFPB updated product and issue options in April 2017 and August 2023';
'CFPB updated product and issue options in April 2017 and August 2023.';

const LEARN_SERIES_BREAK =
'https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes';
Expand Down Expand Up @@ -132,6 +132,19 @@ export const DateFilter = () => {
return (
<CollapsibleFilter title={title} className="aggregation date-filter">
<div>
<p className="u-mt15">
{' '}
{WARN_SERIES_BREAK}{' '}
<a
href={LEARN_SERIES_BREAK}
target="_blank"
rel="noopener noreferrer"
aria-label="Learn more about Product and
Issue changes (opens in new window)"
>
Learn More
</a>
</p>
<ul className="date-inputs">
<li>
<label
Expand Down Expand Up @@ -207,20 +220,6 @@ export const DateFilter = () => {
</span>
</>
) : null}
<p className="u-mt15">
{' '}
{WARN_SERIES_BREAK}
<a
href={LEARN_SERIES_BREAK}
target="_blank"
rel="noopener noreferrer"
aria-label="Learn more about Product and
Issue changes (opens in new window)"
>
{' '}
Learn More
</a>
</p>
</div>
</CollapsibleFilter>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@ exports[`component::DateFilter snapshot shows a warning for April 2017 1`] = `
>
<p />
<div>
<p
className="u-mt15"
>
CFPB updated product and issue options in April 2017 and August 2023.
<a
aria-label="Learn more about Product and Issue changes (opens in new window)"
href="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes"
rel="noopener noreferrer"
target="_blank"
>
Learn More
</a>
</p>
<ul
className="date-inputs"
>
Expand Down Expand Up @@ -151,21 +166,6 @@ exports[`component::DateFilter snapshot shows a warning for April 2017 1`] = `
All
</button>
</section>
<p
className="u-mt15"
>
CFPB updated product and issue options in April 2017 and August 2023
<a
aria-label="Learn more about Product and Issue changes (opens in new window)"
href="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes"
rel="noopener noreferrer"
target="_blank"
>
Learn More
</a>
</p>
</div>
</div>
</section>
Expand Down Expand Up @@ -207,6 +207,21 @@ exports[`component::DateFilter snapshot shows errors 1`] = `
>
<p />
<div>
<p
className="u-mt15"
>
CFPB updated product and issue options in April 2017 and August 2023.
<a
aria-label="Learn more about Product and Issue changes (opens in new window)"
href="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes"
rel="noopener noreferrer"
target="_blank"
>
Learn More
</a>
</p>
<ul
className="date-inputs"
>
Expand Down Expand Up @@ -332,21 +347,6 @@ exports[`component::DateFilter snapshot shows errors 1`] = `
error-round.svg
</svg>
</span>
<p
className="u-mt15"
>
CFPB updated product and issue options in April 2017 and August 2023
<a
aria-label="Learn more about Product and Issue changes (opens in new window)"
href="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes"
rel="noopener noreferrer"
target="_blank"
>
Learn More
</a>
</p>
</div>
</div>
</section>
Expand Down Expand Up @@ -388,6 +388,21 @@ exports[`component::DateFilter snapshot supports no dates in the Redux Store 1`]
>
<p />
<div>
<p
className="u-mt15"
>
CFPB updated product and issue options in April 2017 and August 2023.
<a
aria-label="Learn more about Product and Issue changes (opens in new window)"
href="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes"
rel="noopener noreferrer"
target="_blank"
>
Learn More
</a>
</p>
<ul
className="date-inputs"
>
Expand Down Expand Up @@ -503,21 +518,6 @@ exports[`component::DateFilter snapshot supports no dates in the Redux Store 1`]
All
</button>
</section>
<p
className="u-mt15"
>
CFPB updated product and issue options in April 2017 and August 2023
<a
aria-label="Learn more about Product and Issue changes (opens in new window)"
href="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes"
rel="noopener noreferrer"
target="_blank"
>
Learn More
</a>
</p>
</div>
</div>
</section>
Expand Down
3 changes: 3 additions & 0 deletions src/components/Trends/ExternalTooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export class ExternalTooltip extends React.Component {
</ul>
)}
</div>
<p className="a-micro-copy warn">
CFPB updated product and issue options in April 2017 and August 2023
</p>
</section>
);
}
Expand Down
5 changes: 5 additions & 0 deletions src/components/Trends/TrendsPanel.less
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@
float: right;
}
}

&.warn {
border-bottom: 0;
padding-top: 15px;
}
}

ul.tooltip-ul {
Expand Down

0 comments on commit d4f0f0a

Please sign in to comment.