From f882e8470478f53e128c0710dc9869dc72643b25 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Thu, 12 Feb 2026 20:44:42 -0800 Subject: [PATCH] Add image type breakdown to setup wizard summary --- portal/setup-wizard.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/portal/setup-wizard.html b/portal/setup-wizard.html index 875ef18..d7560a1 100644 --- a/portal/setup-wizard.html +++ b/portal/setup-wizard.html @@ -890,6 +890,10 @@ Menu Items 0 +
+ Images + +
@@ -2610,6 +2614,24 @@ document.getElementById('summaryModifiers').textContent = modifiers.length; document.getElementById('summaryItems').textContent = items.length; + // Count images by type + const itemsWithImageUrl = items.filter(item => item.imageUrl).length; + const manuallyMatchedImages = Object.keys(config.itemImages || {}).length; + const hasHeaderImage = config.headerImageFile != null; + + const imageParts = []; + if (itemsWithImageUrl > 0) imageParts.push(`${itemsWithImageUrl} item`); + if (manuallyMatchedImages > 0) imageParts.push(`${manuallyMatchedImages} matched`); + if (hasHeaderImage) imageParts.push('1 header'); + + const imagesRow = document.getElementById('summaryImagesRow'); + if (imageParts.length > 0) { + document.getElementById('summaryImages').textContent = imageParts.join(', '); + imagesRow.style.display = ''; + } else { + imagesRow.style.display = 'none'; + } + // In add-menu mode, hide menu name/hours/community meal (already set during menu creation) if (config.menuId) { document.getElementById('menuNameInput').parentElement.style.display = 'none'; @@ -2630,6 +2652,8 @@ } } + const imagesSummary = imageParts.length > 0 ? `
  • ${imageParts.join(', ')} images
  • ` : ''; + addMessage('ai', `

    Your menu is ready to save!

    ${config.menuId && config.menuName @@ -2639,6 +2663,7 @@
  • ${categories.length} categories
  • ${modifiers.length} modifier templates
  • ${items.length} menu items
  • + ${imagesSummary}

    Click "Save Menu" below to add everything to your Payfrit account.

    `);