@@ -210,43 +210,6 @@ HtDataRepository<AppConfig> _createAppConfigRepository() {
210
210
return HtDataRepository <AppConfig >(dataClient: client);
211
211
}
212
212
213
- // New repositories for feed enhancement templates
214
- HtDataRepository <EngagementContentTemplate >
215
- _createEngagementContentTemplateRepository () {
216
- print ('Initializing EngagementContentTemplate Repository...' );
217
- final initialData = _loadFixtureSync ('engagement_content_templates.json' )
218
- .map (EngagementContentTemplate .fromJson)
219
- .toList ();
220
- final client = HtDataInMemoryClient <EngagementContentTemplate >(
221
- toJson: (i) => i.toJson (),
222
- getId: (i) => i.type.name, // Use enum name as ID
223
- initialData: initialData,
224
- );
225
- print (
226
- 'EngagementContentTemplate Repository Initialized with '
227
- '${initialData .length } items.' ,
228
- );
229
- return HtDataRepository <EngagementContentTemplate >(dataClient: client);
230
- }
231
-
232
- HtDataRepository <SuggestedContentTemplate >
233
- _createSuggestedContentTemplateRepository () {
234
- print ('Initializing SuggestedContentTemplate Repository...' );
235
- final initialData = _loadFixtureSync ('suggested_content_templates.json' )
236
- .map (SuggestedContentTemplate .fromJson)
237
- .toList ();
238
- final client = HtDataInMemoryClient <SuggestedContentTemplate >(
239
- toJson: (i) => i.toJson (),
240
- getId: (i) => i.type.name, // Use enum name as ID
241
- initialData: initialData,
242
- );
243
- print (
244
- 'SuggestedContentTemplate Repository Initialized with '
245
- '${initialData .length } items.' ,
246
- );
247
- return HtDataRepository <SuggestedContentTemplate >(dataClient: client);
248
- }
249
-
250
213
/// Middleware to asynchronously load and provide the AppConfig.
251
214
Middleware _appConfigProviderMiddleware () {
252
215
return (handler) {
0 commit comments