From dc3cdf98a0aab91af08fdc6f8a0e6877c72723de Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sat, 14 Mar 2026 19:15:42 -0700 Subject: [PATCH] Debug menus array + preserve menuName in category confirmation - Add console.log to showFinalStep for menus debugging - Preserve menuName property when rebuilding categories in confirmCategories Co-Authored-By: Claude Opus 4.6 --- portal/setup-wizard.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/portal/setup-wizard.html b/portal/setup-wizard.html index 01ba0d5..1beedf0 100644 --- a/portal/setup-wizard.html +++ b/portal/setup-wizard.html @@ -2720,6 +2720,10 @@ if (origCat?.parentCategoryName) { catObj.parentCategoryName = origCat.parentCategoryName; } + // Preserve menuName for multi-menu mapping + if (origCat?.menuName) { + catObj.menuName = origCat.menuName; + } updatedCategories.push(catObj); } }); @@ -3278,6 +3282,11 @@ function showFinalStep() { updateProgress(6); + console.log('=== showFinalStep DEBUG ==='); + console.log('config.extractedData.menus:', config.extractedData.menus); + console.log('config.extractedData keys:', Object.keys(config.extractedData)); + console.log('menus length:', (config.extractedData.menus || []).length); + const { business, categories, modifiers, items } = config.extractedData; const topCats = categories.filter(c => !c.parentCategoryName);