1e060c10f5247f8abd7a628a13121b9b295d1b2e
Created a dedicated page for viewing and managing merchants: **Backend (Merchants.cshtml.cs):** - List all merchants with transaction and mapping counts - Add new merchant with duplicate name validation - Edit merchant name (updates all linked transactions/mappings) - Delete merchant (unlinks from transactions/mappings via SET NULL) - Full CRUD operations with proper validation **Frontend (Merchants.cshtml):** - Clean table view showing merchant name, transaction count, mapping count - Add modal for creating new merchants - Edit modal for renaming merchants (click row or Edit button) - Delete with confirmation showing impact (# of transactions/mappings) - Success/error message display - Responsive Bootstrap layout **Navigation:** - Added "Merchants" link to main navigation bar - Positioned between "Categories" and "Recategorize" **Features:** - Shows transaction count per merchant (useful for seeing merchant usage) - Shows mapping count per merchant (useful for seeing pattern coverage) - Inline edit with modal dialog (consistent with CategoryMappings UI) - Safe delete with SET NULL (transactions/mappings remain, just unlinked) - Duplicate name prevention on add/edit **Benefits:** - Easy merchant management without SQL queries - Visual feedback on merchant usage - Rename propagates to all transactions/mappings automatically - Consistent UI with rest of application 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Description
No description provided
Languages
C#
66.6%
HTML
31.2%
JavaScript
1.9%
CSS
0.2%
Dockerfile
0.1%