@shopbite-de/storefront 2.4.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +13 -1
- package/CLAUDE.md +7 -4
- package/api-types/storeApiSchema.json +62 -6
- package/api-types/storeApiTypes.d.ts +23 -4
- package/app/components/Checkout/DeliveryTimeSelect.vue +39 -18
- package/app/components/Checkout/Summary.vue +5 -1
- package/app/components/Home/Categories.vue +2 -2
- package/app/components/Home/Facts.vue +9 -4
- package/app/components/Home/Hero.vue +8 -2
- package/app/components/Navigation/MobileTop.vue +1 -1
- package/app/components/Order/Detail.vue +3 -4
- package/app/composables/useAddressAutocomplete.ts +3 -11
- package/app/composables/useCheckoutMethodGuard.ts +1 -1
- package/app/composables/useDeliveryTime.ts +8 -5
- package/app/composables/useShippingLeadTime.ts +17 -0
- package/app/composables/useShippingMethodChoice.ts +2 -2
- package/app/composables/useShopBiteConfig.ts +10 -1
- package/app/composables/useTrackEvent.ts +4 -3
- package/app/pages/account/recover/password/index.vue +10 -0
- package/app/pages/registrierung/bestaetigen.vue +4 -0
- package/app/utils/leadTime.ts +97 -0
- package/app/utils/openingHours.ts +1 -1
- package/app/utils/schema.ts +2 -2
- package/app/utils/trackingUrl.ts +39 -0
- package/content/index.yml +16 -16
- package/content/zahlung-und-versand.md +3 -3
- package/content.config.ts +2 -2
- package/docs/notes/2026-07-04-issue-239-hydration-mismatches.md +1 -1
- package/docs/notes/2026-09-08-issue-244-category-url-trailing-slash.md +2 -2
- package/docs/notes/2026-09-10-issue-251-shop-data-in-base-layer.md +4 -4
- package/docs/notes/2026-09-10-issue-272-restaurant-schema.md +3 -3
- package/docs/notes/2026-09-10-issue-273-performance-media.md +4 -4
- package/docs/notes/2026-09-10-issue-274-seo-basics.md +6 -6
- package/docs/notes/2026-09-10-issue-275-accessibility.md +3 -3
- package/docs/notes/2026-09-10-issue-290-footer-nap.md +5 -5
- package/docs/notes/2026-09-10-issue-294-matomo-without-config.md +1 -1
- package/docs/notes/2026-09-10-issue-296-track-direct-search.md +1 -1
- package/docs/notes/2026-09-10-issue-312-store-api-criteria-post.md +3 -3
- package/docs/notes/2026-09-10-issue-313-wishlist-scoped-tailwind.md +1 -1
- package/docs/notes/2026-09-10-issue-314-mobile-js-cost.md +1 -1
- package/docs/notes/2026-09-12-issue-319-stylesheet-cost.md +1 -1
- package/docs/notes/2026-09-12-issue-325-product-card.md +2 -2
- package/docs/notes/2026-09-12-issue-327-home-hero.md +2 -2
- package/docs/notes/2026-09-13-issue-332-home-info-cards.md +1 -1
- package/docs/notes/2026-09-13-quick-view-flicker.md +1 -1
- package/docs/notes/2026-09-14-demo-noindex.md +2 -2
- package/docs/notes/2026-09-17-quick-view-compact-options.md +1 -1
- package/docs/notes/2026-09-21-issue-273-cache-and-demo-video.md +1 -1
- package/docs/notes/2026-09-21-issue-363-non-fatal-404.md +2 -2
- package/docs/notes/2026-09-21-issue-366-wishlist-404.md +1 -1
- package/docs/notes/2026-09-21-issue-378-dev-modules.md +1 -1
- package/docs/notes/2026-10-05-issue-289-product-deep-links.md +1 -1
- package/docs/notes/2026-10-05-issue-400-menu-item-ingredients-diet.md +1 -1
- package/docs/notes/2026-10-05-issue-401-restaurant-schema-ordering.md +1 -1
- package/docs/notes/2026-10-05-issue-402-llms-txt.md +1 -1
- package/docs/notes/2026-10-05-issue-403-ai-crawlers.md +1 -1
- package/docs/notes/2026-10-05-issue-404-faq.md +1 -1
- package/docs/notes/2026-10-06-old-seo-url-redirect.md +5 -5
- package/docs/notes/2026-10-07-issue-434-property-group-projection.md +1 -1
- package/nuxt.config.ts +56 -8
- package/package.json +3 -2
- package/server/api/address/autocomplete.get.ts +79 -14
- package/server/api/listing/[categoryId].get.ts +5 -28
- package/server/api/search.get.ts +4 -18
- package/server/api/shopbite/config.get.ts +1 -1
- package/server/plugins/bounded-cache.ts +28 -0
- package/server/plugins/security-headers.ts +54 -0
- package/server/routes/llms.txt.ts +6 -5
- package/server/utils/addressAutocomplete.ts +181 -0
- package/server/utils/listingParams.ts +117 -0
- package/server/utils/llmsTxt.ts +7 -3
- package/server/utils/securityHeaders.ts +165 -0
- package/server/utils/shopBiteConfig.ts +1 -1
- package/test/layer/nuxt.config.ts +2 -2
- package/test/nuxt/AccountPagesPreset.test.ts +10 -10
- package/test/nuxt/AuthPagesPreset.test.ts +3 -0
- package/test/nuxt/CheckoutFormsPreset.test.ts +5 -5
- package/test/nuxt/CheckoutOnePage.test.ts +4 -1
- package/test/nuxt/CheckoutSummary.test.ts +42 -3
- package/test/nuxt/DeliveryTimeSelect.test.ts +181 -0
- package/test/nuxt/HeaderFooterPreset.test.ts +10 -10
- package/test/nuxt/HomeFaq.test.ts +1 -1
- package/test/nuxt/HomeLeadTimes.test.ts +78 -0
- package/test/nuxt/NavigationMobileTop.test.ts +1 -1
- package/test/nuxt/OrderPagesPreset.test.ts +22 -2
- package/test/nuxt/RegisterConfirmPage.test.ts +12 -0
- package/test/nuxt/useAddressAutocomplete.test.ts +7 -22
- package/test/nuxt/useCheckoutMethodGuard.test.ts +1 -1
- package/test/nuxt/useDeliveryTime.test.ts +30 -6
- package/test/nuxt/useShippingLeadTime.test.ts +66 -0
- package/test/nuxt/useShippingMethodChoice.test.ts +1 -1
- package/test/nuxt/useShopBiteConfig.test.ts +57 -3
- package/test/nuxt/useTrackEvent.test.ts +16 -0
- package/test/unit/addressAutocomplete.spec.ts +247 -0
- package/test/unit/boundedCache.spec.ts +231 -0
- package/test/unit/highlight.spec.ts +2 -2
- package/test/unit/leadTime.spec.ts +86 -0
- package/test/unit/llmsTxt.spec.ts +30 -29
- package/test/unit/openingHours.spec.ts +3 -3
- package/test/unit/schema.spec.ts +29 -32
- package/test/unit/securityHeaders.spec.ts +254 -0
- package/test/unit/seo.spec.ts +23 -29
- package/test/unit/sitemap.spec.ts +1 -1
- package/test/unit/trackingUrl.spec.ts +48 -0
|
@@ -16,6 +16,7 @@ const PASSWORD_MISMATCH_ERROR = "Die Passwörter stimmen nicht überein.";
|
|
|
16
16
|
|
|
17
17
|
const { apiClient } = useShopwareContext();
|
|
18
18
|
const route = useRoute();
|
|
19
|
+
const router = useRouter();
|
|
19
20
|
|
|
20
21
|
// Schemas
|
|
21
22
|
const routeValidationSchema = z.object({
|
|
@@ -53,6 +54,15 @@ function validateRouteParameters(): string {
|
|
|
53
54
|
const recoveryHash = ref<string>("");
|
|
54
55
|
recoveryHash.value = validateRouteParameters();
|
|
55
56
|
|
|
57
|
+
// The hash is a one-time secret: remove it from the address bar (history,
|
|
58
|
+
// tracking, shared screenshots) once read. After hydration, so the server
|
|
59
|
+
// and the browser render the same page.
|
|
60
|
+
onMounted(() => {
|
|
61
|
+
if (route.query.hash !== undefined) {
|
|
62
|
+
router.replace({ query: {} });
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
56
66
|
async function resetPassword(data: PasswordResetSchema) {
|
|
57
67
|
await apiClient.invoke(
|
|
58
68
|
"recoveryPassword post /account/recovery-password-confirm",
|
|
@@ -6,6 +6,7 @@ useSeoMeta({
|
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
const route = useRoute();
|
|
9
|
+
const router = useRouter();
|
|
9
10
|
|
|
10
11
|
const { apiClient } = useShopwareContext();
|
|
11
12
|
const { refreshSessionContext } = useSessionContext();
|
|
@@ -41,6 +42,9 @@ function toConfirmError(e: unknown): ConfirmError {
|
|
|
41
42
|
async function confirmRegistration() {
|
|
42
43
|
const em = route.query.em;
|
|
43
44
|
const hash = route.query.hash;
|
|
45
|
+
// One-time secrets: off the address bar (history, tracking, shared
|
|
46
|
+
// screenshots) once read.
|
|
47
|
+
router.replace({ query: {} });
|
|
44
48
|
if (typeof em !== "string" || typeof hash !== "string" || !em || !hash) {
|
|
45
49
|
error.value = "invalid";
|
|
46
50
|
return;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lead times per shipping method (shopbite#6): the ShopBite plugin reports
|
|
3
|
+
* for every active shipping method of the sales channel whether it is a
|
|
4
|
+
* delivery or a pickup and how many minutes the kitchen needs
|
|
5
|
+
* (`shippingMethods` of `/store-api/shopbite/config`). Also imported by the
|
|
6
|
+
* server (llms.txt), so it stays free of Nuxt imports.
|
|
7
|
+
*/
|
|
8
|
+
export type Fulfillment = "delivery" | "pickup";
|
|
9
|
+
|
|
10
|
+
export type ShippingMethodLeadTime = {
|
|
11
|
+
id: string;
|
|
12
|
+
fulfillment: Fulfillment;
|
|
13
|
+
leadTimeMinutes: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type LeadTimeConfig =
|
|
17
|
+
| { shippingMethods?: readonly ShippingMethodLeadTime[] | null }
|
|
18
|
+
| null
|
|
19
|
+
| undefined;
|
|
20
|
+
|
|
21
|
+
export type LeadTime = { fulfillment: Fulfillment; minutes: number | null };
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Fulfillment and lead time of a shipping method. A method the plugin does
|
|
25
|
+
* not list (or none, or no configuration yet) counts as delivery without a
|
|
26
|
+
* lead time.
|
|
27
|
+
*/
|
|
28
|
+
export function shippingLeadTime(
|
|
29
|
+
config: LeadTimeConfig,
|
|
30
|
+
method: { id?: string } | null | undefined,
|
|
31
|
+
): LeadTime {
|
|
32
|
+
const entry = method?.id
|
|
33
|
+
? config?.shippingMethods?.find((item) => item.id === method.id)
|
|
34
|
+
: undefined;
|
|
35
|
+
return entry
|
|
36
|
+
? { fulfillment: entry.fulfillment, minutes: entry.leadTimeMinutes }
|
|
37
|
+
: { fulfillment: "delivery", minutes: null };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Lead time of the first shipping method of a fulfillment, for texts that
|
|
42
|
+
* are not about a selected method (home page, llms.txt); `null` when the
|
|
43
|
+
* sales channel has no such method.
|
|
44
|
+
*/
|
|
45
|
+
export function fulfillmentLeadTime(
|
|
46
|
+
config: LeadTimeConfig,
|
|
47
|
+
fulfillment: Fulfillment,
|
|
48
|
+
): number | null {
|
|
49
|
+
return (
|
|
50
|
+
config?.shippingMethods?.find((item) => item.fulfillment === fulfillment)
|
|
51
|
+
?.leadTimeMinutes ?? null
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** German wording of the time choice per fulfillment. */
|
|
56
|
+
export const FULFILLMENT_WORDING = {
|
|
57
|
+
delivery: {
|
|
58
|
+
wishedTime: "Wunschlieferzeit",
|
|
59
|
+
time: "Lieferzeit",
|
|
60
|
+
times: "Lieferzeiten",
|
|
61
|
+
leadTimeHint: (minutes: number) =>
|
|
62
|
+
`Lieferzeit ca. ${minutes} Minuten, zu Stoßzeiten kann es etwas länger dauern.`,
|
|
63
|
+
},
|
|
64
|
+
pickup: {
|
|
65
|
+
wishedTime: "Wunschabholzeit",
|
|
66
|
+
time: "Abholzeit",
|
|
67
|
+
times: "Abholzeiten",
|
|
68
|
+
leadTimeHint: (minutes: number) =>
|
|
69
|
+
`Abholbereit in ca. ${minutes} Minuten, zu Stoßzeiten kann es etwas länger dauern.`,
|
|
70
|
+
},
|
|
71
|
+
} as const satisfies Record<Fulfillment, unknown>;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The order's customer comment carries the wished time, e.g.
|
|
75
|
+
* "Wunschabholzeit: 18:40" (read by the receipt printer and the backoffice).
|
|
76
|
+
*/
|
|
77
|
+
export function wishedTimeComment(
|
|
78
|
+
fulfillment: Fulfillment,
|
|
79
|
+
time: string,
|
|
80
|
+
): string {
|
|
81
|
+
return `${FULFILLMENT_WORDING[fulfillment].wishedTime}: ${time}`;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The wished time of a customer comment; both prefixes are accepted (orders
|
|
86
|
+
* before shopbite#6 always say "Wunschlieferzeit"). Other comments are
|
|
87
|
+
* returned as they are.
|
|
88
|
+
*/
|
|
89
|
+
export function parseWishedTime(
|
|
90
|
+
comment: string | null | undefined,
|
|
91
|
+
): string | undefined {
|
|
92
|
+
if (!comment) return undefined;
|
|
93
|
+
return comment
|
|
94
|
+
.trim()
|
|
95
|
+
.replace(/^Wunsch(?:liefer|abhol)zeit:\s*/, "")
|
|
96
|
+
.trim();
|
|
97
|
+
}
|
|
@@ -84,7 +84,7 @@ export function groupOpeningHours(
|
|
|
84
84
|
return rows;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
/** `tel:` link for a displayed phone number, e.g. `+49
|
|
87
|
+
/** `tel:` link for a displayed phone number, e.g. `+49 123 456789`. */
|
|
88
88
|
export function toTelHref(telephone: string): string {
|
|
89
89
|
return `tel:${telephone.replace(/[^\d+]/g, "")}`;
|
|
90
90
|
}
|
package/app/utils/schema.ts
CHANGED
|
@@ -26,7 +26,7 @@ type HolidayLike = {
|
|
|
26
26
|
|
|
27
27
|
export type SiteInfo = {
|
|
28
28
|
name: string;
|
|
29
|
-
/** Other names the shop is listed under, e.g. "
|
|
29
|
+
/** Other names the shop is listed under, e.g. "Alter Hof". */
|
|
30
30
|
alternateNames?: string[];
|
|
31
31
|
url: string;
|
|
32
32
|
description?: string;
|
|
@@ -35,7 +35,7 @@ export type SiteInfo = {
|
|
|
35
35
|
cuisine?: string;
|
|
36
36
|
priceRange?: string;
|
|
37
37
|
googleBusinessProfileUrl?: string;
|
|
38
|
-
/** Places the shop delivers to, e.g. "
|
|
38
|
+
/** Places the shop delivers to, e.g. "12345 Musterstadt" (#401). */
|
|
39
39
|
deliveryAreas?: string[];
|
|
40
40
|
/** Nuxt parses numeric env values into numbers. */
|
|
41
41
|
geo?: { latitude?: number | string; longitude?: number | string };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Query parameters that page tracking may send: Matomo and UTM campaign
|
|
3
|
+
* parameters and the quick view configuration (`produkt`, `ohne`, `extras`,
|
|
4
|
+
* #411). Everything else is dropped, because links from e-mails carry
|
|
5
|
+
* one-time secrets in the query (password reset `hash`, registration
|
|
6
|
+
* confirmation `em`/`hash`).
|
|
7
|
+
*/
|
|
8
|
+
const ALLOWED_PARAMS = new Set(["produkt", "ohne", "extras"]);
|
|
9
|
+
const ALLOWED_PREFIXES = ["utm_", "mtm_", "pk_", "matomo_"];
|
|
10
|
+
|
|
11
|
+
function isAllowed(name: string): boolean {
|
|
12
|
+
return (
|
|
13
|
+
ALLOWED_PARAMS.has(name) ||
|
|
14
|
+
ALLOWED_PREFIXES.some(
|
|
15
|
+
(prefix) => name.startsWith(prefix) && name.length > prefix.length,
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** The path for Matomo's `setCustomUrl`: no fragment, allowed parameters only. */
|
|
21
|
+
export function trackingUrl(fullPath: string): string {
|
|
22
|
+
const withoutHash = fullPath.split("#")[0] ?? "";
|
|
23
|
+
const queryStart = withoutHash.indexOf("?");
|
|
24
|
+
if (queryStart === -1) return withoutHash;
|
|
25
|
+
|
|
26
|
+
const path = withoutHash.slice(0, queryStart);
|
|
27
|
+
const kept = withoutHash
|
|
28
|
+
.slice(queryStart + 1)
|
|
29
|
+
.split("&")
|
|
30
|
+
.filter((pair) => {
|
|
31
|
+
const name = pair.split("=")[0] ?? "";
|
|
32
|
+
try {
|
|
33
|
+
return isAllowed(decodeURIComponent(name));
|
|
34
|
+
} catch {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return kept.length ? `${path}?${kept.join("&")}` : path;
|
|
39
|
+
}
|
package/content/index.yml
CHANGED
|
@@ -15,7 +15,7 @@ hero:
|
|
|
15
15
|
icon: i-simple-icons-google
|
|
16
16
|
link: https://www.google.com/maps/place/?q=place_id
|
|
17
17
|
- title: 20 Jahre
|
|
18
|
-
subtitle: in
|
|
18
|
+
subtitle: in Musterstadt
|
|
19
19
|
icon: i-lucide-award
|
|
20
20
|
- title: Lieferservice
|
|
21
21
|
subtitle: Schnell & zuverlässig
|
|
@@ -32,7 +32,7 @@ hero:
|
|
|
32
32
|
size: xl
|
|
33
33
|
color: neutral
|
|
34
34
|
variant: outline
|
|
35
|
-
to: "tel:+
|
|
35
|
+
to: "tel:+49123456789"
|
|
36
36
|
target: _blank
|
|
37
37
|
features:
|
|
38
38
|
title: Alle [Informationen]{.text-primary} auf einen Blick
|
|
@@ -48,7 +48,7 @@ features:
|
|
|
48
48
|
to: "#oeffnungszeiten"
|
|
49
49
|
- title: Lieferung
|
|
50
50
|
kind: delivery
|
|
51
|
-
description: Wir liefern nach
|
|
51
|
+
description: Wir liefern nach Musterstadt und Beispieldorf. Ab 15 € frei Haus, darunter 1 € Liefergebühr.
|
|
52
52
|
icon: i-lucide-truck
|
|
53
53
|
- title: Reservierung
|
|
54
54
|
kind: reservation
|
|
@@ -56,8 +56,8 @@ features:
|
|
|
56
56
|
description: Bestellungen nehmen wir gerne online oder telefonisch entgegen.
|
|
57
57
|
icon: i-lucide-phone
|
|
58
58
|
link:
|
|
59
|
-
label:
|
|
60
|
-
to: "tel:+
|
|
59
|
+
label: 0123 456789 anrufen
|
|
60
|
+
to: "tel:+49123456789"
|
|
61
61
|
menu:
|
|
62
62
|
headline: SHOPBITE
|
|
63
63
|
title: Unsere Speisekarte
|
|
@@ -72,23 +72,23 @@ gallery:
|
|
|
72
72
|
headline: SHOPBITE
|
|
73
73
|
links:
|
|
74
74
|
- label: Tisch reservieren
|
|
75
|
-
to: tel:+
|
|
75
|
+
to: tel:+49123456789
|
|
76
76
|
color: primary
|
|
77
77
|
variant: subtle
|
|
78
78
|
trailingIcon: i-lucide-phone
|
|
79
79
|
images:
|
|
80
80
|
- image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/be/7b/ba/1789148625/restaurant1.webp?ts=1789148625
|
|
81
|
-
alt:
|
|
81
|
+
alt: Restaurant Innenbereich 1
|
|
82
82
|
- image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/7c/a7/1c/1789148639/restaurant2.webp?ts=1789148639
|
|
83
|
-
alt:
|
|
83
|
+
alt: Restaurant Innenbereich 2
|
|
84
84
|
- image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/94/27/0b/1789148651/restaurant3.webp?ts=1789148651
|
|
85
|
-
alt:
|
|
85
|
+
alt: Restaurant Innenbereich 3
|
|
86
86
|
- image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
|
|
87
|
-
alt:
|
|
87
|
+
alt: Restaurant Innenbereich 4
|
|
88
88
|
- image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/41/1b/09/1789148680/restaurant5.webp?ts=1789148680
|
|
89
|
-
alt:
|
|
89
|
+
alt: Restaurant Innenbereich 5
|
|
90
90
|
- image: https://fsn1.your-objectstorage.com/shopbite-demo-shopware/media/5b/d1/f9/1789148692/restaurant6.webp?ts=1789148692
|
|
91
|
-
alt:
|
|
91
|
+
alt: Restaurant Innenbereich 6
|
|
92
92
|
|
|
93
93
|
mittagstisch:
|
|
94
94
|
headline: SHOPBITE
|
|
@@ -110,7 +110,7 @@ mittagstisch:
|
|
|
110
110
|
icon: i-lucide-info
|
|
111
111
|
links:
|
|
112
112
|
- label: Reservieren
|
|
113
|
-
to: "tel:+
|
|
113
|
+
to: "tel:+49123456789"
|
|
114
114
|
color: neutral
|
|
115
115
|
variant: subtle
|
|
116
116
|
trailingIcon: i-lucide-phone
|
|
@@ -119,13 +119,13 @@ faq:
|
|
|
119
119
|
title: Häufige Fragen
|
|
120
120
|
items:
|
|
121
121
|
- question: Wohin liefern Sie?
|
|
122
|
-
answer: Wir liefern nach
|
|
122
|
+
answer: Wir liefern nach 12345 Musterstadt (Musterstadt und Nebenort) und nach 12346 Beispieldorf.
|
|
123
123
|
- question: Was kostet die Lieferung?
|
|
124
124
|
answer: Ab 15 € Bestellwert liefern wir kostenlos. Darunter berechnen wir eine Liefergebühr von 2 €.
|
|
125
125
|
- question: Wie lange dauert die Lieferung?
|
|
126
126
|
answer: Etwa 30 Minuten. Bei der Bestellung können Sie auch eine spätere Lieferzeit wählen.
|
|
127
127
|
- question: Kann ich meine Bestellung abholen?
|
|
128
|
-
answer: Ja, Sie können Ihre Bestellung auch bei uns in der
|
|
128
|
+
answer: Ja, Sie können Ihre Bestellung auch bei uns in der Musterstraße 1 in Musterstadt abholen.
|
|
129
129
|
- question: Wie kann ich bezahlen?
|
|
130
130
|
answer: Bei Lieferung bar, bei Abholung bar oder mit EC-Karte.
|
|
131
131
|
- question: Gibt es vegetarische und vegane Gerichte?
|
|
@@ -141,6 +141,6 @@ cta:
|
|
|
141
141
|
to: /speisekarte/
|
|
142
142
|
color: primary
|
|
143
143
|
- label: Tisch reservieren
|
|
144
|
-
to: tel:+
|
|
144
|
+
to: tel:+49123456789
|
|
145
145
|
variant: outline
|
|
146
146
|
trailingIcon: i-lucide-phone
|
|
@@ -10,7 +10,7 @@ description: Zahlungs- und Lieferinformationen
|
|
|
10
10
|
Wir bieten Ihnen zwei Möglichkeiten, Ihre Bestellung zu erhalten:
|
|
11
11
|
|
|
12
12
|
- **Lieferung:** Wir bringen Ihre Bestellung direkt zu Ihnen nach Hause (beachten Sie bitte unsere Liefergebiete).
|
|
13
|
-
- **Abholung:** Sie können Ihre Bestellung auch direkt bei uns abholen (
|
|
13
|
+
- **Abholung:** Sie können Ihre Bestellung auch direkt bei uns abholen (Musterstraße 1, 12345 Musterstadt).
|
|
14
14
|
|
|
15
15
|
### Zahlungsmöglichkeiten
|
|
16
16
|
|
|
@@ -21,8 +21,8 @@ Wir bieten Ihnen zwei Möglichkeiten, Ihre Bestellung zu erhalten:
|
|
|
21
21
|
|
|
22
22
|
Wir liefern ausschließlich in folgende Gebiete:
|
|
23
23
|
|
|
24
|
-
- **
|
|
25
|
-
- **
|
|
24
|
+
- **12345 Musterstadt** (Stadtteile Musterstadt und Nebenort)
|
|
25
|
+
- **12346 Beispieldorf**
|
|
26
26
|
|
|
27
27
|
### Lieferkosten
|
|
28
28
|
|
package/content.config.ts
CHANGED
|
@@ -42,9 +42,9 @@ const createFeatureSchema = () =>
|
|
|
42
42
|
createBaseSchema().extend({
|
|
43
43
|
icon: z.string().editor({ input: "icon" }),
|
|
44
44
|
// Information cards on the home page (#332): `kind` fills the lead line
|
|
45
|
-
// with live data (today's hours, delivery time), `lead` is the static
|
|
45
|
+
// with live data (today's hours, delivery or pickup time), `lead` is the static
|
|
46
46
|
// alternative, `link` the card's action (a `tel:` target is a button).
|
|
47
|
-
kind: createEnum(["hours", "delivery", "reservation"]).optional(),
|
|
47
|
+
kind: createEnum(["hours", "delivery", "pickup", "reservation"]).optional(),
|
|
48
48
|
lead: z.string().optional(),
|
|
49
49
|
link: z
|
|
50
50
|
.object({
|
|
@@ -71,7 +71,7 @@ This is a step toward the multi-platform goal: only the seeding in
|
|
|
71
71
|
- `AnimatedSection` renders product cards with `opacity-0` in SSR HTML
|
|
72
72
|
(IntersectionObserver reveals them post-mount) — content invisible without
|
|
73
73
|
JS; potential SEO/CLS concern. → suggested issue
|
|
74
|
-
- `Header/Right.vue` hardcodes the phone number `tel:+
|
|
74
|
+
- `Header/Right.vue` hardcodes the phone number `tel:+49123456789` in the
|
|
75
75
|
base layer — should come from config for multi-tenant demo shops.
|
|
76
76
|
→ suggested issue
|
|
77
77
|
- The 16 home-page mismatches from the RUM data were **not** reproducible
|
|
@@ -4,7 +4,7 @@ Date: 2026-09-08, reduced to the remaining delta on 2026-09-10. Branch `fix/issu
|
|
|
4
4
|
|
|
5
5
|
## Re-verified (2026-09-08)
|
|
6
6
|
|
|
7
|
-
Live probe on
|
|
7
|
+
Live probe on the customer shop:
|
|
8
8
|
|
|
9
9
|
| URL | Result |
|
|
10
10
|
| ------------ | ----------------------------------------- |
|
|
@@ -53,7 +53,7 @@ note of #277 on why a project composable must not share a layer name).
|
|
|
53
53
|
|
|
54
54
|
## Verification
|
|
55
55
|
|
|
56
|
-
Production build against the
|
|
56
|
+
Production build against the customer Store API: `/c/Fisch/` 200,
|
|
57
57
|
`/c/fisch/`, `/c/fisch`, `/c/FISCH` and `/c/Pizza` → 301 to the SEO URL,
|
|
58
58
|
`/c/Fisch?properties=x` → 301 `/c/Fisch/?properties=x`, unknown paths 404.
|
|
59
59
|
Playwright: direct load, link navigation, client-side redirect and back
|
|
@@ -6,12 +6,12 @@ As of 2026-09-10, branch `fix/251-header-phone-from-config`.
|
|
|
6
6
|
|
|
7
7
|
| Place | Hardcoded | Now |
|
|
8
8
|
| --- | --- | --- |
|
|
9
|
-
| `Header/Right.vue` | `tel:+
|
|
10
|
-
| `BottomNavi.vue` (not used by any page, but exported by the layer) | OpenStreetMap directions to
|
|
9
|
+
| `Header/Right.vue` | `tel:+49123456789` (the customer shop) | `site.telephone`, button hidden without a number |
|
|
10
|
+
| `BottomNavi.vue` (not used by any page, but exported by the layer) | OpenStreetMap directions to the customer shop's coordinates, same phone number | `site.googleBusinessProfileUrl` for the route, `site.telephone` for the call; each button hidden without a value |
|
|
11
11
|
| `pages/bestellung/[id]/index.vue` | `tel:+4917623456789` ("call us" card) | `site.telephone`, card hidden without a number |
|
|
12
|
-
| `useValidCitiesForDelivery` | delivery cities `
|
|
12
|
+
| `useValidCitiesForDelivery` | delivery cities `Musterstadt, Beispieldorf, Hausen` and a Geoapify bounding box around Musterstadt | removed, see below |
|
|
13
13
|
|
|
14
|
-
`content/` (demo content that a shop overrides) still carries
|
|
14
|
+
`content/` (demo content that a shop overrides) still carries the customer shop's phone number and gallery alt texts, the ShopBite demo's imprint and the "Musterstraße 1" pickup address in `zahlung-und-versand.md`. Left as is: it is content, not code, and every shop replaces it; worth a separate clean-up of the demo content.
|
|
15
15
|
|
|
16
16
|
## Decision on the delivery area (Lirim)
|
|
17
17
|
|
|
@@ -5,7 +5,7 @@ As of 2026-09-10, branch `feature/272-restaurant-schema`.
|
|
|
5
5
|
## Decisions (agreed with Lirim)
|
|
6
6
|
|
|
7
7
|
- **Own builders + `useHead`** instead of `nuxt-schema-org`: the storefront already writes `CollectionPage` and `BreadcrumbList` JSON-LD by hand, the builders in `app/utils/schema.ts` are pure functions (unit-testable, an acceptance criterion), no new dependency, platform-neutral.
|
|
8
|
-
- **Menu split:** the home page carries `Restaurant` + `Menu` with one `MenuSection` per menu category (name, URL) from the menu navigation that is loaded anyway; each category page carries a `MenuSection` with its products as `MenuItem` incl. `offers.price` from the listing that is loaded anyway. A full menu on the home page would have meant ~41 listing requests during SSR and 60–80 KB more HTML for
|
|
8
|
+
- **Menu split:** the home page carries `Restaurant` + `Menu` with one `MenuSection` per menu category (name, URL) from the menu navigation that is loaded anyway; each category page carries a `MenuSection` with its products as `MenuItem` incl. `offers.price` from the listing that is loaded anyway. A full menu on the home page would have meant ~41 listing requests during SSR and 60–80 KB more HTML for the customer shop (#273).
|
|
9
9
|
- Data source is `runtimeConfig.public.site` (as for the footer, #290) plus two new keys: `address.country` (default `DE`) and `priceRange`. Later the plugin config (shopbite-de/shopware-plugin#15, #298) can feed the same builders.
|
|
10
10
|
- `Product` schema on product pages waits for #289 (there are no product pages yet).
|
|
11
11
|
|
|
@@ -18,10 +18,10 @@ As of 2026-09-10, branch `feature/272-restaurant-schema`.
|
|
|
18
18
|
|
|
19
19
|
## Pitfalls found on the first run
|
|
20
20
|
|
|
21
|
-
- Nuxt parses a numeric env value (`NUXT_PUBLIC_SITE_ADDRESS_POSTAL_CODE=
|
|
21
|
+
- Nuxt parses a numeric env value (`NUXT_PUBLIC_SITE_ADDRESS_POSTAL_CODE=12345`) into a number; `postalCode` is coerced to a string in the builder.
|
|
22
22
|
- `dayOfWeek` lists are sorted Monday to Sunday; the plugin returns Sunday (7) before Saturday in insertion order.
|
|
23
23
|
- Menu sections nest: `Nudeln` carries its nine pasta subcategories as `hasMenuSection`.
|
|
24
24
|
|
|
25
25
|
## Verification
|
|
26
26
|
|
|
27
|
-
Production build against the
|
|
27
|
+
Production build against the customer Store API with the NAP env variables set: the home page HTML carries one `Restaurant` node (3 KB) with address, phone, cuisine, price range, `sameAs`, two grouped `openingHoursSpecification` entries, two `specialOpeningHoursSpecification` entries (holidays from the plugin), and a `Menu` with nine sections, two of them nested. `/c/Pizza/` carries `CollectionPage`, `BreadcrumbList` and a `MenuSection` with 29 `MenuItem`s incl. `offers` in EUR (3 KB). The Rich Results Test and the Schema Markup Validator need a public URL, so that check happens after the deploy.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
As of 2026-09-10, branch `feature/273-performance-hero-media`.
|
|
4
4
|
|
|
5
|
-
## Measurement (Lighthouse 12 on
|
|
5
|
+
## Measurement (Lighthouse 12 on the customer shop, 2026-09-10)
|
|
6
6
|
|
|
7
7
|
| | Mobile | Desktop |
|
|
8
8
|
| --- | --- | --- |
|
|
@@ -34,7 +34,7 @@ ffmpeg -i hero.mp4 -vf "scale=1280:-2" -r 25 -c:v libx264 -crf 28 -preset medium
|
|
|
34
34
|
|
|
35
35
|
| Shop | Original | 720p | Poster 1280 |
|
|
36
36
|
| --- | --- | --- | --- |
|
|
37
|
-
|
|
|
37
|
+
| Customer shop | 3.4 MB | 713 KB | 65 KB |
|
|
38
38
|
| ShopBite demo | 27.6 MB | 6.0 MB | 60 KB (`public/hero-poster.webp`) |
|
|
39
39
|
|
|
40
40
|
The 720p files are not in a repository; they need to be uploaded to the respective Shopware media (no admin credentials in the storefront `.env`).
|
|
@@ -42,7 +42,7 @@ The 720p files are not in a repository; they need to be uploaded to the respecti
|
|
|
42
42
|
## Not covered
|
|
43
43
|
|
|
44
44
|
- `Wishlist.vue`, `CardKitchen.vue`, `FilterGroup.vue`, `ShippingMethod.vue`, `PaymentMethod.vue` still use `NuxtImg` for small icons; harmless without a provider domain.
|
|
45
|
-
-
|
|
45
|
+
- The customer shop's `Kalam-Regular.ttf` (154 KB, `font-display: optional`) is the shop's own font.
|
|
46
46
|
- bf-cache "Internal error".
|
|
47
47
|
|
|
48
48
|
## Measuring locally: pitfalls
|
|
@@ -54,7 +54,7 @@ Lighthouse against the bare `node .output/server/index.mjs` is not comparable wi
|
|
|
54
54
|
- TTFB is 450–680 ms here (SSR calls the Store API in another data centre) vs 190 ms live.
|
|
55
55
|
- The observed (unthrottled) first paint of the local headless Chrome is ~1.5 s although HTML, CSS and poster are loaded at 0.45 s, while the live site paints at 0.4 s; nothing in the HTML hides the page. Simulated mobile FCP therefore stays around 3.2 s locally regardless of media, and mobile LCP (poster loaded at 1.6 s) is reported as 5.6 s ("render delay" ~4 s). The mobile acceptance numbers need a run against the deployed shop.
|
|
56
56
|
|
|
57
|
-
Local results (h2 proxy,
|
|
57
|
+
Local results (h2 proxy, customer Store API, demo content): desktop `/` 98 (LCP 1.0 s, was 88/1.9 s live), `/c/Pizza/` 98 (LCP 1.0 s); mobile `/` 66 (LCP element is the 19 KB poster, page weight 1.07 MB instead of 5.1 MB, no video request), `/c/Pizza/` 65 (category header 37 KB thumbnail instead of 756 KB, CLS 0).
|
|
58
58
|
|
|
59
59
|
The `blur-sm` on the poster made no measurable difference in the simulation; it was still removed in favour of a pre-blurred file (19 KB instead of 60 KB), which also saves the filter on real phones.
|
|
60
60
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
As of 2026-09-10, branch `feature/274-seo-sitemap-canonical-og`.
|
|
4
4
|
|
|
5
|
-
## Starting point (live,
|
|
5
|
+
## Starting point (live, the customer shop)
|
|
6
6
|
|
|
7
7
|
- `/sitemap.xml` 404, robots.txt without `Sitemap:`.
|
|
8
8
|
- Home page: no canonical, no `og:image`, `twitter:card: summary`.
|
|
@@ -35,15 +35,15 @@ As of 2026-09-10, branch `feature/274-seo-sitemap-canonical-og`.
|
|
|
35
35
|
|
|
36
36
|
## Verification
|
|
37
37
|
|
|
38
|
-
Production build locally against the
|
|
38
|
+
Production build locally against the customer Shopware (Store API, public access key) with `NUXT_PUBLIC_STORE_URL=https://shop.example.com`:
|
|
39
39
|
|
|
40
|
-
- robots.txt: `Sitemap: https://
|
|
40
|
+
- robots.txt: `Sitemap: https://shop.example.com/sitemap.xml`
|
|
41
41
|
- `/sitemap.xml` 200: home page, content pages, categories incl. subcategories with `/`, lastmod, category images
|
|
42
42
|
- Home page, `/c/Pizza/`, `/c/Nudeln/Penne/`, `/agb`, `/anmelden`, `/bestellung/warenkorb`: exactly one absolute canonical and one absolute `og:image` each, individual title
|
|
43
43
|
|
|
44
|
-
## After the release for
|
|
44
|
+
## After the release for the customer shop
|
|
45
45
|
|
|
46
|
-
- Set `NUXT_PUBLIC_SITE_ADDRESS_CITY=
|
|
47
|
-
- Remove `seo.title`/`seo.description` in `content/index.yml` or fill them with search terms (currently
|
|
46
|
+
- Set `NUXT_PUBLIC_SITE_ADDRESS_CITY=Musterstadt`, `NUXT_PUBLIC_SITE_CUISINE`.
|
|
47
|
+
- Remove `seo.title`/`seo.description` in `content/index.yml` or fill them with search terms (currently the shop name and city, which takes precedence over the new default).
|
|
48
48
|
- `public/card.png` exists; check it is 1200 × 630 px. Run the Facebook Sharing Debugger.
|
|
49
49
|
- The `robots.disallow` for `/impressum`, `/datenschutz`, `/agb` keeps those pages out of the sitemap.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
As of 2026-09-10, branch `fix/275-accessibility-contrast-aria-hidden`.
|
|
4
4
|
|
|
5
|
-
## Findings (Lighthouse 12 on
|
|
5
|
+
## Findings (Lighthouse 12 on the customer shop, score 92 mobile and desktop)
|
|
6
6
|
|
|
7
7
|
The issue guessed at light backgrounds and a carousel; both audits point elsewhere.
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ Contrast of the palettes in use (WCAG ratio, target ≥ 4.5; "tint" is the 10 %
|
|
|
14
14
|
| Palette | 500 on white | 600 on white / tint | 400 on #171717 | 500 on #171717 |
|
|
15
15
|
| --- | --- | --- | --- | --- |
|
|
16
16
|
| ShopBite orange (storefront default) | 3.11 | old `#e64d00` 3.87; new `#c23d00` 5.30 / 4.59 | 6.89 | 5.76 |
|
|
17
|
-
|
|
|
17
|
+
| Customer green | 4.99 | 7.12 / 6.12 | 9.07 | 3.59 |
|
|
18
18
|
| Tailwind rose (hey-amore) | 3.67 | 4.70 / ~4.1 | 6.66 | 4.88 |
|
|
19
19
|
| Tailwind red (masala-mio) | 3.76 | 4.83 / ~4.2 | 6.48 | 4.76 |
|
|
20
20
|
|
|
@@ -25,7 +25,7 @@ So the storefront default and both demos fail in light mode as well; nobody had
|
|
|
25
25
|
- Contrast: Nuxt UI convention. `--ui-primary` is `brand-600` in light mode and `brand-400` in dark mode; the storefront's own `brand-600` becomes `#c23d00` (5.30 on white, 4.59 on its tint). `--ui-success` is `green-800` light / `green-400` dark. Rule for demos: `brand-600` ≥ 5:1 on white (covers the tint), `brand-400` ≥ 4.5:1 on `#171717`.
|
|
26
26
|
- Toast proxies: instead of patching `reka-ui` (tried first: a pnpm patch of `dist/Toast/FocusProxy.{js,cjs}` without `aria-hidden` cleared the audit), the **status toasts are gone**. A permanent "closed" toast was a misuse of a transient notification; the status is now a line above the opening hours in the footer (`components/Footer/StoreStatus.vue`, `useStoreStatus`). A chip next to the logo was tried first: on phones only the dot fit, on the desktop the text ran into the navigation, and inside the logo link it broke the link's accessible name. Transient toasts stay on Nuxt UI; their proxies only exist for seconds. Upstream issue for the proxy still worth filing.
|
|
27
27
|
- The status line is client only (`ClientOnly` with a placeholder of the same size): the open/closed state depends on the current time, and the server's clock/time zone is not the shop's. Server-rendered status would need a configured time zone; separate issue if wanted.
|
|
28
|
-
-
|
|
28
|
+
- The customer shop keeps its own `main.css`; the same `--ui-primary` and `--ui-success` changes went there.
|
|
29
29
|
|
|
30
30
|
## Implementation
|
|
31
31
|
|
|
@@ -7,7 +7,7 @@ As of 2026-09-10, branch `feature/290-footer-nap`.
|
|
|
7
7
|
- Data comes from `runtimeConfig.public.site` (platform-neutral, via env): `address.street`, `address.postalCode`, `address.city` (since #274), `telephone`, `googleBusinessProfileUrl`. The same values will later feed the `Restaurant` schema from #272. Long-term the values move to the Shopware plugin config (shopbite-de/shopware-plugin#15, storefront #298), env stays as fallback.
|
|
8
8
|
- A dedicated contact block above the Shopware footer navigation (not extra columns), so it stays readable regardless of the number of navigation columns.
|
|
9
9
|
- Opening hours: consecutive days with identical intervals are grouped, days without hours show as "Ruhetag". No holidays/closing days in the footer.
|
|
10
|
-
-
|
|
10
|
+
- The customer shop: only a note in the PR, no special handling (see below).
|
|
11
11
|
|
|
12
12
|
## Implementation
|
|
13
13
|
|
|
@@ -21,8 +21,8 @@ As of 2026-09-10, branch `feature/290-footer-nap`.
|
|
|
21
21
|
- A `mockNuxtImport("useRuntimeConfig")` without `app.baseURL` breaks the router setup of the Nuxt test environment (`useRouter()` undefined, see #294; `HeaderRight.test.ts` mocks with `app.baseURL` and works). `test/nuxt/FooterContact.test.ts` sets the real runtime config via `Object.assign` instead.
|
|
22
22
|
- After switching branches across #292, `@nuxtjs/sitemap` was missing from `node_modules` (`nuxt prepare`: "Cannot resolve module"). Run `pnpm install --frozen-lockfile` after every switch to a newer `main`.
|
|
23
23
|
|
|
24
|
-
## After the release for
|
|
24
|
+
## After the release for the customer shop
|
|
25
25
|
|
|
26
|
-
- Set env: `NUXT_PUBLIC_SITE_ADDRESS_STREET="
|
|
27
|
-
- **Clarify the phone number:** imprint says `+49
|
|
28
|
-
- Remove the link categories "
|
|
26
|
+
- Set env: `NUXT_PUBLIC_SITE_ADDRESS_STREET="Musterstr. 1"`, `NUXT_PUBLIC_SITE_ADDRESS_POSTAL_CODE=12345`, `NUXT_PUBLIC_SITE_ADDRESS_CITY=Musterstadt`, `NUXT_PUBLIC_SITE_TELEPHONE`, `NUXT_PUBLIC_SITE_GOOGLE_BUSINESS_PROFILE_URL`.
|
|
27
|
+
- **Clarify the phone number:** imprint says `+49 123 456789`, the Shopware footer navigation `tel:+49123456780`. For NAP consistency use one number, identical to the Google Business Profile.
|
|
28
|
+
- Remove the link categories "Musterstraße 1" and "Tel: …" in the Shopware folder "Unternehmen", otherwise address and phone appear twice in the footer.
|
|
@@ -23,7 +23,7 @@ As of 2026-09-10, branch `fix/294-matomo-without-config`.
|
|
|
23
23
|
|
|
24
24
|
## Verification
|
|
25
25
|
|
|
26
|
-
Production build locally against the
|
|
26
|
+
Production build locally against the customer Store API, three scenarios, Playwright records every request containing `matomo`:
|
|
27
27
|
|
|
28
28
|
- Without Matomo env and with `MATOMO_URL` only: no `matomo.js` reference in the SSR HTML, no request (neither `cdn.matomo.cloud` nor anything else).
|
|
29
29
|
- With URL + site ID: preload and request to `<matomoUrl>/matomo.js`, `_paq` contains `setTrackerUrl`, `setSiteId`, `trackPageView`. A client-side search from `/c/Pizza/` to `/suche?q=salat` pushes `trackSiteSearch` through the same instance (only one script request).
|
|
@@ -16,4 +16,4 @@ As of 2026-09-10, branch `fix/296-track-direct-search`.
|
|
|
16
16
|
|
|
17
17
|
## Verification
|
|
18
18
|
|
|
19
|
-
Production build against the
|
|
19
|
+
Production build against the customer Store API with Matomo configured: direct load of `/suche?q=pizza` pushes exactly one `trackSiteSearch`; a client-side search from `/c/Pizza/` to `/suche?q=salat` still pushes one.
|
|
@@ -9,7 +9,7 @@ criteria as `_criteria` query parameters (`encodeForQuery` from
|
|
|
9
9
|
`@shopware/api-client/helpers`), and `useNavigation` used the
|
|
10
10
|
`readNavigationGet` operation the same way. Shopware applies `associations`
|
|
11
11
|
and `limit` from the query string, but not the `includes` projection: every
|
|
12
|
-
entity came back with all of its fields. Measured on the
|
|
12
|
+
entity came back with all of its fields. Measured on the customer shop Store
|
|
13
13
|
API (category "Pizza", 100 products): the listing route returned 285 KB with
|
|
14
14
|
92 fields per product; the same criteria as a POST body returns 147 KB with
|
|
15
15
|
the 11 requested fields. `/api/category/<id>` returned 40 fields incl.
|
|
@@ -36,7 +36,7 @@ The category page shipped 546 KB of HTML (393 KB Nuxt payload).
|
|
|
36
36
|
|
|
37
37
|
## Verification
|
|
38
38
|
|
|
39
|
-
Production build against the
|
|
39
|
+
Production build against the customer Store API (category "Pizza", 100
|
|
40
40
|
products), uncompressed sizes:
|
|
41
41
|
|
|
42
42
|
| Response | Before | After |
|
|
@@ -52,7 +52,7 @@ back) shows the same product counts and no hydration warnings. Lighthouse
|
|
|
52
52
|
mobile on `/c/Pizza/` is unchanged on the CPU side (TBT 600 ms, main
|
|
53
53
|
thread 3.9 s): the gain is transfer size only; script cost is #314.
|
|
54
54
|
|
|
55
|
-
The product cover projection could not be checked on
|
|
55
|
+
The product cover projection could not be checked on the customer shop: 39 of
|
|
56
56
|
100 products carry a `coverId`, but none of them resolves to a `cover`,
|
|
57
57
|
with or without `includes` (the media rows are gone; a data problem of that
|
|
58
58
|
instance, unrelated to this change). Verified against Shopware's public
|
|
@@ -23,7 +23,7 @@ instead of `@import`; it resolves utilities without re-emitting the base.
|
|
|
23
23
|
|
|
24
24
|
- Production build: the `merkliste.*.css` chunk is gone; the remaining
|
|
25
25
|
chunks are `entry.css` (253 KB) and `kontakt.css` (117 B).
|
|
26
|
-
- `/merkliste` on the production build against the
|
|
26
|
+
- `/merkliste` on the production build against the customer Store API
|
|
27
27
|
loads only `entry.css` (25 KB gzipped), renders the empty-wishlist state
|
|
28
28
|
as before, no console errors.
|
|
29
29
|
- Prettier and ESLint pass.
|
|
@@ -4,7 +4,7 @@ As of 2026-09-10, branch `fix/314-mobile-js-cost`.
|
|
|
4
4
|
|
|
5
5
|
## Measurement setup
|
|
6
6
|
|
|
7
|
-
Production build,
|
|
7
|
+
Production build, customer Store API, Lighthouse 12.8.2 mobile
|
|
8
8
|
(simulated throttling, 4× CPU) behind the h2/gzip proxy from
|
|
9
9
|
`docs/notes/2026-09-10-issue-273-performance-media.md`; two runs per page,
|
|
10
10
|
same machine. Chunk attribution comes from the client manifest that Nuxt
|
|
@@ -4,7 +4,7 @@ As of 2026-09-12, branch `fix/319-stylesheet-cost`.
|
|
|
4
4
|
|
|
5
5
|
## Measurement setup
|
|
6
6
|
|
|
7
|
-
Production build,
|
|
7
|
+
Production build, customer Store API, Lighthouse 12.8.2 mobile
|
|
8
8
|
(simulated throttling, 4× CPU) behind the h2/gzip proxy of the #273 and
|
|
9
9
|
#314 notes, two runs per page. In addition, Chrome DevTools Protocol
|
|
10
10
|
traces through Playwright (4× CPU throttling, mobile viewport):
|
|
@@ -10,7 +10,7 @@ three directions (A compact with thumbnail, B dense menu list, C visual
|
|
|
10
10
|
with a large image), then three derivatives of C for shops without
|
|
11
11
|
product photos, then five levels of button emphasis. Chosen: **C1** (the
|
|
12
12
|
anatomy of C, the image block only when the product has a cover) with
|
|
13
|
-
button level **B1** (`variant="subtle"`).
|
|
13
|
+
button level **B1** (`variant="subtle"`). The customer shop has no product
|
|
14
14
|
covers at all, the ShopBite demo a few, so the card must look finished
|
|
15
15
|
without any image.
|
|
16
16
|
|
|
@@ -78,7 +78,7 @@ loads cross-sellings.
|
|
|
78
78
|
|
|
79
79
|
## Verification
|
|
80
80
|
|
|
81
|
-
- Production build with the
|
|
81
|
+
- Production build with the customer API: tapping a pizza card sets
|
|
82
82
|
`?produkt=22` and opens the sheet with 34 extras chips and the "Ohne"
|
|
83
83
|
chip; one extra plus quantity 2 puts 17,00 € into the cart and the card
|
|
84
84
|
shows "2× im Warenkorb"; the back button closes the sheet;
|