Skip to content

Commit b205057

Browse files
committed
refactor: remove action and rules from fixtures
- Simplified fixture data - Removed unused fields
1 parent 8b018b9 commit b205057

File tree

5 files changed

+232
-1069
lines changed

5 files changed

+232
-1069
lines changed

lib/src/fixtures/app_config.json

Lines changed: 4 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -16,57 +16,8 @@
1616
"premium_ad_frequency": 0,
1717
"premium_ad_placement_interval": 0
1818
},
19-
"engagement_rules": [
20-
{
21-
"template_type": "rate_app",
22-
"user_roles": ["standard_user"],
23-
"min_days_since_account_creation": 7,
24-
"max_times_to_show": 1,
25-
"min_days_since_last_shown": 30,
26-
"placement": {
27-
"after_primary_item_index": 5,
28-
"min_primary_items_required": 10
29-
}
30-
},
31-
{
32-
"template_type": "link_account",
33-
"user_roles": ["guest_user"],
34-
"min_days_since_account_creation": 3,
35-
"max_times_to_show": 3,
36-
"min_days_since_last_shown": 7,
37-
"placement": {
38-
"after_primary_item_index": 3,
39-
"min_primary_items_required": 5
40-
}
41-
},
42-
{
43-
"template_type": "upgrade_to_premium",
44-
"user_roles": ["standard_user"],
45-
"min_days_since_account_creation": 14,
46-
"max_times_to_show": 2,
47-
"min_days_since_last_shown": 15,
48-
"placement": {
49-
"relative_position": "middle",
50-
"min_primary_items_required": 10
51-
}
52-
}
53-
],
54-
"suggestion_rules": [
55-
{
56-
"template_type": "categories_to_follow",
57-
"user_roles": ["guest_user", "standard_user"],
58-
"placement": {
59-
"after_primary_item_index": 7,
60-
"min_primary_items_required": 10
61-
}
62-
},
63-
{
64-
"template_type": "sources_to_follow",
65-
"user_roles": ["standard_user"],
66-
"placement": {
67-
"relative_position": "end_quarter",
68-
"min_primary_items_required": 15
69-
}
70-
}
71-
]
19+
"account_action_config": {
20+
"guest_days_between_account_actions": 2,
21+
"standard_user_days_between_account_actions": 7
22+
}
7223
}

lib/src/fixtures/categories.json

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,27 @@
44
"name": "Technology",
55
"description": "News about software development, hardware, and the internet.",
66
"icon_url": null,
7-
"action": {
8-
"type": "open_internal_content",
9-
"content_id": "c1a2b3c4-d5e6-f789-0123-456789abcdef",
10-
"content_type": "category"
11-
}
7+
"type": "category"
128
},
139
{
1410
"id": "c2b3c4d5-e6f7-a890-1234-567890abcdef",
1511
"name": "Mobile Development",
1612
"description": "Articles related to mobile app development for iOS and Android.",
1713
"icon_url": null,
18-
"action": {
19-
"type": "open_internal_content",
20-
"content_id": "c2b3c4d5-e6f7-a890-1234-567890abcdef",
21-
"content_type": "category"
22-
}
14+
"type": "category"
2315
},
2416
{
2517
"id": "c3d4e5f6-a7b8-c901-d234-e56789abcdef",
2618
"name": "Business",
2719
"description": "News about companies, finance, and the economy.",
2820
"icon_url": null,
29-
"action": {
30-
"type": "open_internal_content",
31-
"content_id": "c3d4e5f6-a7b8-c901-d234-e56789abcdef",
32-
"content_type": "category"
33-
}
21+
"type": "category"
3422
},
3523
{
3624
"id": "c4e5f6a7-b8c9-d012-e345-f67890abcdef",
3725
"name": "Sports",
3826
"description": "Latest updates from the world of sports.",
3927
"icon_url": null,
40-
"action": {
41-
"type": "open_internal_content",
42-
"content_id": "c4e5f6a7-b8c9-d012-e345-f67890abcdef",
43-
"content_type": "category"
44-
}
28+
"type": "category"
4529
}
4630
]

lib/src/fixtures/countries.json

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,27 @@
44
"iso_code": "US",
55
"name": "United States",
66
"flag_url": "https://example.com/flags/us.png",
7-
"action": {
8-
"type": "open_internal_content",
9-
"content_id": "country-us",
10-
"content_type": "country"
11-
}
7+
"type": "country"
128
},
139
{
1410
"id": "country-gb",
1511
"iso_code": "GB",
1612
"name": "United Kingdom",
1713
"flag_url": "https://example.com/flags/gb.png",
18-
"action": {
19-
"type": "open_internal_content",
20-
"content_id": "country-gb",
21-
"content_type": "country"
22-
}
14+
"type": "country"
2315
},
2416
{
2517
"id": "country-ca",
2618
"iso_code": "CA",
2719
"name": "Canada",
2820
"flag_url": "https://example.com/flags/ca.png",
29-
"action": {
30-
"type": "open_internal_content",
31-
"content_id": "country-ca",
32-
"content_type": "country"
33-
}
21+
"type": "country"
3422
},
3523
{
3624
"id": "country-de",
3725
"iso_code": "DE",
3826
"name": "Germany",
3927
"flag_url": "https://example.com/flags/de.png",
40-
"action": {
41-
"type": "open_internal_content",
42-
"content_id": "country-de",
43-
"content_type": "country"
44-
}
28+
"type": "country"
4529
}
4630
]

0 commit comments

Comments
 (0)