Skip to content

Commit 587d4a8

Browse files
wesmclaude
andcommitted
feat: Show current category in recategorize modal
Added 'Current category:' label to SelectCategoryScreen to match the 'Current merchant:' shown in EditMerchantScreen. Makes both edit screens consistent in showing context. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> EOF
1 parent 0715546 commit 587d4a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

moneyflow/screens/edit_screens.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,11 @@ def compose(self) -> ComposeResult:
342342
)
343343
yield Static(details_text, classes="edit-label")
344344

345+
# Show current category
346+
if self.current_category_id and self.current_category_id in self.categories:
347+
current_cat_name = self.categories[self.current_category_id]["name"]
348+
yield Label(f"Current category: {current_cat_name}", classes="edit-label")
349+
345350
yield Input(placeholder="Type to filter categories...", id="search-input")
346351

347352
yield Static(f"{len(self.categories)} categories", id="results-count")

0 commit comments

Comments
 (0)