Skip to content

Commit 3a0a76b

Browse files
committed
chore: Add action to headlines and sources
- Added action to headlines.json - Added action to sources.json
1 parent 622e2cd commit 3a0a76b

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

lib/src/fixtures/headlines.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,22 @@
1010
"id": "s1a2b3c4-d5e6-f789-0123-456789abcdef",
1111
"name": "Very Good Ventures Blog",
1212
"url": "https://vgv.dev/blog",
13-
"type": "blog"
13+
"type": "blog",
14+
"action": {
15+
"type": "open_internal_content",
16+
"content_id": "s1a2b3c4-d5e6-f789-0123-456789abcdef",
17+
"content_type": "source"
18+
}
1419
},
1520
"category": {
1621
"id": "c1a2b3c4-d5e6-f789-0123-456789abcdef",
1722
"name": "Technology",
18-
"description": "News about software development and frameworks."
23+
"description": "News about software development and frameworks.",
24+
"action": {
25+
"type": "open_internal_content",
26+
"content_id": "c1a2b3c4-d5e6-f789-0123-456789abcdef",
27+
"content_type": "category"
28+
}
1929
},
2030
"action": {
2131
"type": "open_internal_content",
@@ -34,12 +44,22 @@
3444
"id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
3545
"name": "Flutter Dev",
3646
"url": "https://flutter.dev",
37-
"type": "specializedPublisher"
47+
"type": "specializedPublisher",
48+
"action": {
49+
"type": "open_internal_content",
50+
"content_id": "s2b3c4d5-e6f7-a890-1234-567890abcdef",
51+
"content_type": "source"
52+
}
3853
},
3954
"category": {
4055
"id": "c2b3c4d5-e6f7-a890-1234-567890abcdef",
4156
"name": "Mobile Development",
42-
"description": "Articles related to mobile app development."
57+
"description": "Articles related to mobile app development.",
58+
"action": {
59+
"type": "open_internal_content",
60+
"content_id": "c2b3c4d5-e6f7-a890-1234-567890abcdef",
61+
"content_type": "category"
62+
}
4363
},
4464
"action": {
4565
"type": "open_internal_content",

lib/src/fixtures/sources.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@
5252
"id": "country-gb",
5353
"iso_code": "GB",
5454
"name": "United Kingdom",
55-
"flag_url": "https://example.com/flags/gb.png"
55+
"flag_url": "https://example.com/flags/gb.png",
56+
"action": {
57+
"type": "open_internal_content",
58+
"content_id": "country-gb",
59+
"content_type": "country"
60+
}
5661
},
5762
"action": {
5863
"type": "open_internal_content",

0 commit comments

Comments
 (0)