Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 2e97c55

Browse files
authored
Merge pull request #283 from GSA/sc_add-ai-info
Add AI info
2 parents 191dd7b + 7927156 commit 2e97c55

7 files changed

Lines changed: 301 additions & 19 deletions

File tree

150 KB
Binary file not shown.

assets/data/schema.json

Lines changed: 275 additions & 1 deletion
Large diffs are not rendered by default.

assets/img/news/ai.jpg

119 KB
Loading

config/site/site.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,14 @@
159159
}
160160
],
161161
"news": [
162+
{
163+
"title": "New Guidance for Enterprise Data and Source Code Inventories (.pdf)",
164+
"description": "OMB releases new guidance for tagging Artificial Intelligence (AI) digital assets…",
165+
"url": "/assets/data/ai_inventory-guidance.pdf",
166+
"date": "8/5/2019",
167+
"image": "/assets/img/news/ai.jpg",
168+
"alt": "Brain outlined in half circuits"
169+
},
162170
{
163171
"title": "Join the CIO.gov DEV/OPS Challenge!",
164172
"description": "The federal government is looking for top IT talent to help modernize federal IT systems and you could be just the person we need...",
@@ -174,14 +182,6 @@
174182
"date": "7/2/2019",
175183
"image": "/assets/img/news/redesign.jpeg",
176184
"alt": "Website planning. Web designer working on website sitemap"
177-
},
178-
{
179-
"title": "OSS SPOTLIGHT: The U.S. Web Design System 2.0 from GSA",
180-
"description": "USWDS 2.0, a new approach to design that saves time in upgrading websites or...",
181-
"url": "https://medium.com/codedotgov/success-story-the-u-s-web-design-system-2-0-from-gsa-be66295b6e5f",
182-
"date": "6/5/2019",
183-
"image": "/assets/img/news/uswds.jpeg",
184-
"alt": "A collection of wireframes"
185185
}
186186
],
187187
"about": [

src/components/home-news/__snapshots__/home-news.component.test.js.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ exports[`components - HomeNews should render correctly 1`] = `
1818
<h1>
1919
<a
2020
href="u1"
21+
rel="noopener noreferrer"
22+
target="_blank"
2123
>
2224
t1
2325
</a>
@@ -55,6 +57,8 @@ exports[`components - HomeNews should render correctly 1`] = `
5557
<h1>
5658
<a
5759
href="u2"
60+
rel="noopener noreferrer"
61+
target="_blank"
5862
>
5963
t2
6064
</a>
@@ -92,6 +96,8 @@ exports[`components - HomeNews should render correctly 1`] = `
9296
<h1>
9397
<a
9498
href="u3"
99+
rel="noopener noreferrer"
100+
target="_blank"
95101
>
96102
t3
97103
</a>

src/components/home-news/__snapshots__/home-news.container.test.js.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
exports[`containers - HomeNews mapStateToProps should return the correct properties 1`] = `
44
Object {
55
"newsItems": Array [
6+
Object {
7+
"alt": "Brain outlined in half circuits",
8+
"date": "8/5/2019",
9+
"description": "OMB releases new guidance for tagging Artificial Intelligence (AI) digital assets…",
10+
"image": "/assets/img/news/ai.jpg",
11+
"title": "New Guidance for Enterprise Data and Source Code Inventories (.pdf)",
12+
"url": "/assets/data/ai_inventory-guidance.pdf",
13+
},
614
Object {
715
"alt": "Person sitting at computer",
816
"date": "8/5/2019",
@@ -19,14 +27,6 @@ Object {
1927
"title": "Building Off Feedback: A Re-Design of Code.gov",
2028
"url": "https://medium.com/@CodeDotGov/building-off-feedback-a-re-design-of-code-gov-63a7859d79d5",
2129
},
22-
Object {
23-
"alt": "A collection of wireframes",
24-
"date": "6/5/2019",
25-
"description": "USWDS 2.0, a new approach to design that saves time in upgrading websites or...",
26-
"image": "/assets/img/news/uswds.jpeg",
27-
"title": "OSS SPOTLIGHT: The U.S. Web Design System 2.0 from GSA",
28-
"url": "https://medium.com/codedotgov/success-story-the-u-s-web-design-system-2-0-from-gsa-be66295b6e5f",
29-
},
3030
],
3131
}
32-
`;
32+
`

src/components/home-news/home-news.component.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export default class HomeNews extends Component {
1111
<li className="news-item" key={news.title}>
1212
<div className="news-content">
1313
<h1>
14-
<a href={news.url}>{news.title}</a>
14+
<a href={news.url} target="_blank" rel="noopener noreferrer">
15+
{news.title}
16+
</a>
1517
</h1>
1618
<p>{news.description}</p>
1719
<time>{news.date}</time>

0 commit comments

Comments
 (0)