From abe01cb8a0649caaf7bfea4e03e791d06be66afe Mon Sep 17 00:00:00 2001 From: sysadmin Date: Fri, 14 Nov 2025 00:05:02 +0000 Subject: [PATCH] feat: Redesign variant editor with preset buttons Major UX improvements based on user feedback: - Replaced auto-populated columns with preset shortcut buttons - Quick Add buttons for Size, Color, Material, Storage - Custom button for user-defined property names - Double-click column headers to rename - Rename column option in context menu - Starts with single empty column instead of defaults - Improved usage instructions in UI - Cache-busting version updated to force reload This design is more flexible and less confusing than auto-generating columns. --- .../Views/VariantCollections/Create.cshtml | 16 +- .../Views/VariantCollections/Edit.cshtml | 16 +- LittleShop/wwwroot/js/variant-editor.js | 263 +++++++++++------- 3 files changed, 176 insertions(+), 119 deletions(-) diff --git a/LittleShop/Areas/Admin/Views/VariantCollections/Create.cshtml b/LittleShop/Areas/Admin/Views/VariantCollections/Create.cshtml index a34d51a..c8ee4b4 100644 --- a/LittleShop/Areas/Admin/Views/VariantCollections/Create.cshtml +++ b/LittleShop/Areas/Admin/Views/VariantCollections/Create.cshtml @@ -42,11 +42,11 @@
How to use: Changes are automatically saved when you click "Create Collection" below.
@@ -67,14 +67,14 @@ @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} - - + + - + - + + + - + - +