Move "Manage Categories" from Home to Settings #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Enhancement
The "Manage Categories" action currently lives on the Home screen as an
OutlinedButtoninActionsRow(app/src/main/java/dev/achmad/ledgerr/ui/screens/home/HomeScreen.kt:397-419, used viaDashboardContentat line 218-223). It should move to the Settings screen instead, and the Home action should be removed.Current code
HomeScreen.kt:218-223— the "actions" item passesonManageCategoriesandonSeeAllintoActionsRow.HomeScreen.kt:397-419—ActionsRowrenders two equal-weightOutlinedButtons.HomeScreen.kt:161—onManageCategories = { navigator.push(CategoryScreen) }.Expected behavior
OutlinedButtonfromActionsRow. The row may become a single "See All" button, or be removed entirely (see #32 for the new "View All" treatment). Either way, the Home screen no longer exposes category management directly.SettingsScreen(app/src/main/java/dev/achmad/ledgerr/ui/screens/settings/SettingsScreen.kt:61-122) inside the existingAppearancepreference group (or a new "Categories" group — your call):Edit Categories"<n> categories"where<n>is the current count of categories fromCategoryScreenModel. UsepluralStringResource(the project already uses it forhome_recurring_banner) so the unit is correct for1 categoryvsn categories.CategoryScreen(same navigator pattern as the rest of the file).SettingsScreendoes not currently have aLocalNavigatorplumbed in — wire one the same wayHomeScreendoes (LocalNavigator.currentOrThrow).SettingsScreenModeleither exposes aStateFlow<Int>for the category count, orSettingsScreenreads it directly from the repository /CategoryScreenModel(mirror the read-only style already used inCategoryScreenModel). Re-render the subtitle when the count changes (e.g. after adding/deleting onCategoryScreenand popping back).Acceptance criteria
Edit Categoriespreference with a live-updating"<n> categories"subtitle.CategoryScreen; backing out returns to Settings and the count is still correct.res/values/strings.xml(no hardcoded copy).Related
ActionsRowis reduced to a single button.admin referenced this issue2026-06-28 14:00:22 +00:00