From 3b86a6c8b3ed055c1ed5d8e183e3476858c986a2 Mon Sep 17 00:00:00 2001 From: "Janus C. H. Knudsen" Date: Fri, 2 Jan 2026 09:30:38 +0100 Subject: [PATCH] Adds debug codes for product scanning Includes example EAN codes for testing product scanning functionality Enhances UI with debug section for easier testing of scanner feature Improves development and testing experience --- wwwroot/poc-produkt-opret.html | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/wwwroot/poc-produkt-opret.html b/wwwroot/poc-produkt-opret.html index 619b9e2..8ff70bf 100644 --- a/wwwroot/poc-produkt-opret.html +++ b/wwwroot/poc-produkt-opret.html @@ -662,6 +662,35 @@ pointer-events: none; } + swp-debug-codes { + display: flex; + flex-direction: column; + gap: 4px; + margin-top: 16px; + padding: 12px; + background: var(--color-background-alt); + border: 1px dashed var(--color-border); + border-radius: 6px; + font-size: 11px; + color: var(--color-text-secondary); + } + + swp-debug-codes strong { + color: var(--color-text); + margin-bottom: 4px; + } + + swp-debug-codes code { + font-family: var(--font-mono); + font-size: 11px; + background: var(--color-surface); + padding: 2px 6px; + border-radius: 3px; + margin-right: 8px; + user-select: all; + cursor: pointer; + } + /* Loading State */ swp-scanner-loading { display: none; @@ -1009,6 +1038,13 @@ SCAN STREGKODE Klik på knappen og scan produktets stregkode + + Test EAN-koder: + 884486532879 Redken Serum + 3474636610143 Kérastase Olie + 0850018802239 Olaplex No.7 + 4015600159122 Wella Glam Mist +