Skip to content

Commit 3779a8b

Browse files
committed
fix(fixtures): update feed decorator configurations
- Add linkAccount and upgrade call-to-action decorators - Increase premiumUser daysBetweenViews for rateApp decorator to 90 - Add enableNotifications call-to-action decorator for all user roles - Add suggestedSources content collection decorator
1 parent c0c41c0 commit 3779a8b

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

lib/src/fixtures/remote_configs.dart

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,24 @@ final remoteConfigsFixturesData = <RemoteConfig>[
114114
feed: FeedConfig(
115115
itemClickBehavior: FeedItemClickBehavior.internalNavigation,
116116
decorators: {
117+
FeedDecoratorType.linkAccount: FeedDecoratorConfig(
118+
category: FeedDecoratorCategory.callToAction,
119+
enabled: true,
120+
visibleTo: {
121+
AppUserRole.guestUser: FeedDecoratorRoleConfig(
122+
daysBetweenViews: 3,
123+
),
124+
},
125+
),
126+
FeedDecoratorType.upgrade: FeedDecoratorConfig(
127+
category: FeedDecoratorCategory.callToAction,
128+
enabled: true,
129+
visibleTo: {
130+
AppUserRole.standardUser: FeedDecoratorRoleConfig(
131+
daysBetweenViews: 7,
132+
),
133+
},
134+
),
117135
FeedDecoratorType.rateApp: FeedDecoratorConfig(
118136
category: FeedDecoratorCategory.callToAction,
119137
enabled: true,
@@ -125,7 +143,22 @@ final remoteConfigsFixturesData = <RemoteConfig>[
125143
daysBetweenViews: 30,
126144
),
127145
AppUserRole.premiumUser: FeedDecoratorRoleConfig(
128-
daysBetweenViews: 0,
146+
daysBetweenViews: 90,
147+
),
148+
},
149+
),
150+
FeedDecoratorType.enableNotifications: FeedDecoratorConfig(
151+
category: FeedDecoratorCategory.callToAction,
152+
enabled: true,
153+
visibleTo: {
154+
AppUserRole.guestUser: FeedDecoratorRoleConfig(
155+
daysBetweenViews: 5,
156+
),
157+
AppUserRole.standardUser: FeedDecoratorRoleConfig(
158+
daysBetweenViews: 10,
159+
),
160+
AppUserRole.premiumUser: FeedDecoratorRoleConfig(
161+
daysBetweenViews: 20,
129162
),
130163
},
131164
),
@@ -142,6 +175,19 @@ final remoteConfigsFixturesData = <RemoteConfig>[
142175
),
143176
},
144177
),
178+
FeedDecoratorType.suggestedSources: FeedDecoratorConfig(
179+
category: FeedDecoratorCategory.contentCollection,
180+
enabled: true,
181+
itemsToDisplay: 5,
182+
visibleTo: {
183+
AppUserRole.guestUser: FeedDecoratorRoleConfig(
184+
daysBetweenViews: 7,
185+
),
186+
AppUserRole.standardUser: FeedDecoratorRoleConfig(
187+
daysBetweenViews: 14,
188+
),
189+
},
190+
),
145191
},
146192
),
147193
pushNotifications: PushNotificationConfig(

0 commit comments

Comments
 (0)