From 52615eeb75b1d25ce03217f1e72452301e98825a Mon Sep 17 00:00:00 2001 From: AJ Date: Sun, 12 Oct 2025 01:27:19 -0400 Subject: [PATCH] Add JSON export/import functionality for category mappings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the ability to export and import category mappings as JSON files: Export: - Downloads all category mappings as a formatted JSON file - Ordered by category and priority Import: - Upload JSON file with category mappings - Option to replace all existing mappings or merge with current ones - Validates JSON format and data integrity - Shows clear error messages for invalid files UI additions: - Export to JSON button in header - Import from JSON button with modal dialog - Shows example JSON format in import modal - Replace/merge option with clear explanation This allows users to: - Backup their custom category mappings - Share mappings between instances - Version control their categorization rules - Easily restore default or custom configurations 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- MoneyMap/Pages/CategoryMappings.cshtml | 62 ++++++++++++- MoneyMap/Pages/CategoryMappings.cshtml.cs | 101 ++++++++++++++++++++++ 2 files changed, 162 insertions(+), 1 deletion(-) diff --git a/MoneyMap/Pages/CategoryMappings.cshtml b/MoneyMap/Pages/CategoryMappings.cshtml index e91eed0..1054b26 100644 --- a/MoneyMap/Pages/CategoryMappings.cshtml +++ b/MoneyMap/Pages/CategoryMappings.cshtml @@ -6,7 +6,13 @@

Category Mappings

-
+
+ + ⬇ Export to JSON + + Back to Dashboard
@@ -227,6 +233,60 @@ else
+ + + @section Scripts {