Skip to content

Commit 7e97f87

Browse files
committed
refactor(router): rename content preferences route
- Renamed to manage followed items - Added sub-routes for categories - Added sub-routes for sources - Added sub-routes for countries
1 parent 8f7438c commit 7e97f87

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

lib/router/routes.dart

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,24 @@ abstract final class Routes {
6666
// static const settingsNotificationCategoriesName = 'settingsNotificationCategories';
6767

6868
// --- Account Sub-Routes (relative to /account) ---
69-
static const accountContentPreferences = 'content-preferences';
70-
static const accountContentPreferencesName = 'accountContentPreferences';
69+
static const manageFollowedItems = 'manage-followed-items'; // Renamed
70+
static const manageFollowedItemsName = 'manageFollowedItems'; // Renamed
7171
static const accountSavedHeadlines = 'saved-headlines';
7272
static const accountSavedHeadlinesName = 'accountSavedHeadlines';
73+
74+
// --- Manage Followed Items Sub-Routes (relative to /account/manage-followed-items) ---
75+
static const followedCategoriesList = 'categories';
76+
static const followedCategoriesListName = 'followedCategoriesList';
77+
static const addCategoryToFollow = 'add-category';
78+
static const addCategoryToFollowName = 'addCategoryToFollow';
79+
80+
static const followedSourcesList = 'sources';
81+
static const followedSourcesListName = 'followedSourcesList';
82+
static const addSourceToFollow = 'add-source';
83+
static const addSourceToFollowName = 'addSourceToFollow';
84+
85+
static const followedCountriesList = 'countries';
86+
static const followedCountriesListName = 'followedCountriesList';
87+
static const addCountryToFollow = 'add-country';
88+
static const addCountryToFollowName = 'addCountryToFollow';
7389
}

0 commit comments

Comments
 (0)