Expense tabs: use TabText with per-tab badge counts
#25
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 Expenses screen has two tabs (Expenses, Recurring) but renders them with plain
Text, no badge.Current code —
app/src/main/java/dev/achmad/ledgerr/ui/screens/expenses/ExpenseListScreen.kt:166-181Expected behavior
Use the shared
TabTextcomposable inapp/src/main/java/dev/achmad/ledgerr/ui/components/TabText.kt:13, which accepts abadgeCount: Int?and renders a small pill next to the label.badgeCount= current size of the (already filtered)expenseslist.badgeCount= current size of therecurringlist.The counts must reflect the post-search / post-filter result, not the raw table size. (When a search query or date-range filter is active, the Expenses badge should show the number of items actually visible after filtering.)
Acceptance criteria
TabText(title, badgeCount = …).