@shopbite-de/storefront 1.23.3 → 1.25.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.
Files changed (204) hide show
  1. package/.env.example +22 -0
  2. package/.github/workflows/build.yaml +1 -1
  3. package/.github/workflows/ci.yaml +6 -3
  4. package/CLAUDE.md +48 -3
  5. package/README.md +139 -40
  6. package/api-gen.config.json +9 -0
  7. package/api-types/storeApiSchema.shopbite.overrides.json +35 -0
  8. package/api-types/storeApiTypes.d.ts +95 -81
  9. package/app/app.config.ts +3 -2
  10. package/app/app.vue +40 -53
  11. package/app/assets/css/main.css +36 -4
  12. package/app/components/AddToWishlist.vue +13 -6
  13. package/app/components/Address/Fields.vue +2 -21
  14. package/app/components/AnimatedSection.vue +9 -4
  15. package/app/components/BottomNavi.vue +9 -2
  16. package/app/components/Cart/Bar.vue +102 -0
  17. package/app/components/Cart/Item.vue +21 -10
  18. package/app/components/Cart/QuickView.vue +4 -0
  19. package/app/components/Cart/Upsell.vue +106 -0
  20. package/app/components/Category/Header.vue +9 -3
  21. package/app/components/Category/Listing.vue +62 -45
  22. package/app/components/Checkout/PaymentAndDelivery.vue +19 -3
  23. package/app/components/Checkout/Summary.vue +70 -2
  24. package/app/components/Cta.vue +4 -2
  25. package/app/components/DemoBanner.vue +13 -0
  26. package/app/components/Feature/Card.vue +121 -0
  27. package/app/components/Features.vue +14 -9
  28. package/app/components/Food/MarqueeItem.vue +20 -8
  29. package/app/components/Footer/Contact.vue +82 -0
  30. package/app/components/Footer/StoreStatus.vue +30 -0
  31. package/app/components/Footer.vue +2 -1
  32. package/app/components/Header/Body.vue +1 -1
  33. package/app/components/Header/Right.vue +60 -17
  34. package/app/components/Header/Title.vue +1 -0
  35. package/app/components/Header.vue +5 -15
  36. package/app/components/Hero.vue +169 -36
  37. package/app/components/ImageGallery.vue +11 -5
  38. package/app/components/Product/Card.vue +104 -46
  39. package/app/components/Product/CardCompact.vue +72 -0
  40. package/app/components/Product/CardDietBadges.vue +38 -31
  41. package/app/components/Product/CardIngredients.vue +35 -0
  42. package/app/components/Product/CardSkeleton.vue +10 -18
  43. package/app/components/Product/Category.vue +9 -2
  44. package/app/components/Product/Configurator.vue +11 -7
  45. package/app/components/Product/CrossSelling.vue +45 -34
  46. package/app/components/Product/DeselectIngredient.vue +37 -31
  47. package/app/components/Product/Detail.vue +73 -13
  48. package/app/components/Product/QuickView.vue +77 -0
  49. package/app/components/Topseller.vue +44 -34
  50. package/app/components/User/RegistrationForm.vue +0 -1
  51. package/app/components/Wishlist.vue +2 -15
  52. package/app/composables/useAddToCart.ts +13 -40
  53. package/app/composables/useAddressAutocomplete.ts +12 -19
  54. package/app/composables/useAddressSuggestionArea.ts +16 -0
  55. package/app/composables/useAddressValidation.ts +3 -19
  56. package/app/composables/useCartMutations.ts +168 -0
  57. package/app/composables/useCartQuickView.ts +19 -0
  58. package/app/composables/useCartUpsell.ts +100 -0
  59. package/app/composables/{useCategory.ts → useCategoryById.ts} +1 -1
  60. package/app/composables/useCategorySeo.ts +27 -29
  61. package/app/composables/useCheckoutMethodGuard.ts +201 -0
  62. package/app/composables/useMatomo.ts +25 -0
  63. package/app/composables/useMatomoConfig.ts +12 -0
  64. package/app/composables/useMenuSectionSchema.ts +55 -0
  65. package/app/composables/useNavigation.ts +12 -9
  66. package/app/composables/usePageSeo.ts +50 -0
  67. package/app/composables/useProductCartQuantity.ts +15 -0
  68. package/app/composables/useProductCrossSelling.ts +1 -0
  69. package/app/composables/useProductDetail.ts +15 -1
  70. package/app/composables/useProductEvents.ts +30 -0
  71. package/app/composables/useProductQuickView.ts +65 -0
  72. package/app/composables/useRestaurantSchema.ts +64 -0
  73. package/app/composables/useScrollAnimation.ts +39 -8
  74. package/app/composables/useSearchTracking.ts +33 -0
  75. package/app/composables/useSeoUrlRoute.ts +58 -0
  76. package/app/composables/useSortingSelection.ts +28 -0
  77. package/app/composables/useStoreStatus.ts +48 -0
  78. package/app/composables/useTopSellers.ts +22 -0
  79. package/app/composables/useTrackEvent.ts +36 -23
  80. package/app/pages/[...all].vue +4 -4
  81. package/app/pages/account/recover/password/index.vue +1 -0
  82. package/app/pages/anmelden.vue +4 -0
  83. package/app/pages/bestellung/[id]/erfolg.vue +1 -5
  84. package/app/pages/bestellung/[id]/fehler.vue +2 -2
  85. package/app/pages/bestellung/[id]/index.vue +9 -3
  86. package/app/pages/bestellung/bestaetigen.vue +1 -5
  87. package/app/pages/bestellung/warenkorb.vue +1 -5
  88. package/app/pages/bestellung/zahlung-versand.vue +1 -5
  89. package/app/pages/c/[...all].vue +2 -35
  90. package/app/pages/index.vue +28 -14
  91. package/app/pages/kontakt.vue +4 -0
  92. package/app/pages/konto/adressen.vue +4 -0
  93. package/app/pages/konto/bestellung/[id].vue +4 -0
  94. package/app/pages/konto/bestellungen.vue +4 -0
  95. package/app/pages/konto/index.vue +4 -0
  96. package/app/pages/konto/profil.vue +4 -0
  97. package/app/pages/maintenance.vue +6 -0
  98. package/app/pages/merkliste.vue +1 -7
  99. package/app/pages/passwort-vergessen.vue +1 -0
  100. package/app/pages/registrierung/bestaetigen.vue +4 -0
  101. package/app/pages/registrierung/index.vue +4 -0
  102. package/app/pages/speisekarte/[...all].vue +2 -36
  103. package/app/pages/suche.vue +42 -26
  104. package/app/plugins/matomo.ts +35 -0
  105. package/app/types/Association.d.ts +1 -0
  106. package/app/utils/hydrateWhenVisible.ts +20 -0
  107. package/app/utils/media.ts +33 -0
  108. package/app/utils/openingHours.ts +90 -0
  109. package/app/utils/product.ts +31 -0
  110. package/app/utils/schema.ts +235 -0
  111. package/app/utils/seo.ts +56 -0
  112. package/app/utils/seoPath.ts +57 -0
  113. package/content/index.yml +26 -20
  114. package/content.config.ts +16 -0
  115. package/docs/notes/2026-07-05-issue-259-matomo-broken.md +7 -0
  116. package/docs/notes/2026-09-08-issue-240-shipping-method-blocked.md +83 -0
  117. package/docs/notes/2026-09-08-issue-241-cart-lock-conflicts.md +63 -0
  118. package/docs/notes/2026-09-08-issue-244-category-url-trailing-slash.md +65 -0
  119. package/docs/notes/2026-09-08-issue-276-payment-method-blocked.md +39 -0
  120. package/docs/notes/2026-09-08-issue-277-typecheck.md +99 -0
  121. package/docs/notes/2026-09-10-issue-250-animated-section.md +23 -0
  122. package/docs/notes/2026-09-10-issue-251-shop-data-in-base-layer.md +30 -0
  123. package/docs/notes/2026-09-10-issue-272-restaurant-schema.md +27 -0
  124. package/docs/notes/2026-09-10-issue-273-performance-media.md +64 -0
  125. package/docs/notes/2026-09-10-issue-274-seo-basics.md +49 -0
  126. package/docs/notes/2026-09-10-issue-275-accessibility.md +46 -0
  127. package/docs/notes/2026-09-10-issue-290-footer-nap.md +28 -0
  128. package/docs/notes/2026-09-10-issue-291-seo-url-trailing-slash.md +24 -0
  129. package/docs/notes/2026-09-10-issue-294-matomo-without-config.md +33 -0
  130. package/docs/notes/2026-09-10-issue-295-search-hydration-mismatch.md +25 -0
  131. package/docs/notes/2026-09-10-issue-296-track-direct-search.md +19 -0
  132. package/docs/notes/2026-09-10-issue-312-store-api-criteria-post.md +64 -0
  133. package/docs/notes/2026-09-10-issue-313-wishlist-scoped-tailwind.md +29 -0
  134. package/docs/notes/2026-09-10-issue-314-mobile-js-cost.md +119 -0
  135. package/docs/notes/2026-09-12-issue-319-stylesheet-cost.md +154 -0
  136. package/docs/notes/2026-09-12-issue-325-product-card.md +100 -0
  137. package/docs/notes/2026-09-12-issue-327-home-hero.md +64 -0
  138. package/docs/notes/2026-09-13-demo-banner.md +32 -0
  139. package/docs/notes/2026-09-13-issue-332-home-info-cards.md +46 -0
  140. package/docs/notes/2026-09-13-quick-view-flicker.md +65 -0
  141. package/docs/notes/2026-09-14-cart-upsell.md +105 -0
  142. package/docs/notes/2026-09-14-demo-noindex.md +57 -0
  143. package/node.dockerfile +5 -2
  144. package/nuxt.config.ts +98 -15
  145. package/package.json +5 -3
  146. package/patches/@shopware__nuxt-module@1.5.1.patch +32 -0
  147. package/pnpm-workspace.yaml +2 -0
  148. package/public/hero-poster.webp +0 -0
  149. package/scripts/perf/first-render.mjs +30 -0
  150. package/scripts/perf/h2-proxy.cjs +49 -0
  151. package/scripts/perf/lighthouse.sh +22 -0
  152. package/scripts/perf/quick-view-layout.mjs +126 -0
  153. package/server/api/__sitemap__/urls.get.ts +49 -0
  154. package/server/api/category/[categoryId].get.ts +20 -9
  155. package/server/api/content/home.get.ts +14 -0
  156. package/server/api/content/page.get.ts +22 -0
  157. package/server/api/listing/[categoryId].get.ts +14 -18
  158. package/server/api/product/[productId]/cross-selling.get.ts +3 -9
  159. package/server/api/product/[productId].get.ts +4 -8
  160. package/server/api/search.get.ts +2 -0
  161. package/server/plugins/site-url.ts +13 -0
  162. package/server/plugins/sitemap-trailing-slash.ts +26 -0
  163. package/server/utils/sitemap.ts +60 -0
  164. package/server/utils/storeApi.ts +34 -0
  165. package/shopware.d.ts +35 -11
  166. package/test/e2e/simple-checkout-as-recurring-customer.test.ts +13 -17
  167. package/test/nuxt/AddressFields.test.ts +2 -73
  168. package/test/nuxt/AnimatedSection.test.ts +67 -0
  169. package/test/nuxt/CartBar.test.ts +110 -0
  170. package/test/nuxt/CartItem.test.ts +95 -0
  171. package/test/nuxt/CartUpsell.test.ts +125 -0
  172. package/test/nuxt/DemoBanner.test.ts +12 -0
  173. package/test/nuxt/FooterContact.test.ts +102 -0
  174. package/test/nuxt/FooterStoreStatus.test.ts +48 -0
  175. package/test/nuxt/HeaderRight.test.ts +14 -10
  176. package/test/nuxt/Hero.test.ts +68 -0
  177. package/test/nuxt/PaymentAndDelivery.test.ts +67 -8
  178. package/test/nuxt/RegistrationForm.test.ts +3 -0
  179. package/test/nuxt/useAddToCart.test.ts +37 -17
  180. package/test/nuxt/useAddressAutocomplete.test.ts +2 -38
  181. package/test/nuxt/useAddressSuggestionArea.test.ts +27 -0
  182. package/test/nuxt/useBusinessHours.test.ts +1 -1
  183. package/test/nuxt/useCartMutations.test.ts +225 -0
  184. package/test/nuxt/useCartUpsell.test.ts +126 -0
  185. package/test/nuxt/useCheckoutMethodGuard.test.ts +386 -0
  186. package/test/nuxt/useScrollAnimation.test.ts +55 -49
  187. package/test/nuxt/useSearchTracking.test.ts +71 -0
  188. package/test/nuxt/useSeoUrlRoute.test.ts +93 -0
  189. package/test/nuxt/useStoreStatus.test.ts +77 -0
  190. package/test/nuxt/useTrackEvent.test.ts +127 -0
  191. package/test/unit/media.spec.ts +49 -0
  192. package/test/unit/openingHours.spec.ts +90 -0
  193. package/test/unit/product.spec.ts +72 -0
  194. package/test/unit/schema.spec.ts +243 -0
  195. package/test/unit/seo.spec.ts +107 -0
  196. package/test/unit/seoPath.spec.ts +116 -0
  197. package/test/unit/sitemap.spec.ts +88 -0
  198. package/test/unit/useCategorySeo.spec.ts +42 -31
  199. package/test/unit/useSortingSelection.spec.ts +39 -0
  200. package/test/visual/playwright.config.ts +33 -0
  201. package/test/visual/visual.spec.ts +87 -0
  202. package/app/components/Product/CardDescription.vue +0 -27
  203. package/app/components/Product/CardFooter.vue +0 -51
  204. package/app/composables/useValidCitiesForDelivery.ts +0 -12
@@ -0,0 +1,57 @@
1
+ import { withLeadingSlash, withTrailingSlash, withoutTrailingSlash } from "ufo";
2
+
3
+ type SeoPathMatch = {
4
+ seoPathInfo?: string;
5
+ };
6
+
7
+ type SeoPathResolution<T> = { match: T | null; redirectPath?: string };
8
+
9
+ /**
10
+ * Looks a path up against the backend SEO URLs and tells the caller where to
11
+ * redirect if the visited path is only an alias of the SEO URL:
12
+ *
13
+ * - The lookup is exact on the trailing slash: `/c/Pizza/` exists, `/c/Pizza`
14
+ * does not (#291). A miss is retried once with the slash toggled.
15
+ * - The lookup is case-insensitive, so `/c/pizza/` resolves too (#244).
16
+ *
17
+ * Whenever the match carries a SEO path that differs from the visited path,
18
+ * `redirectPath` names it, so the visited URL always ends up canonical.
19
+ */
20
+ export async function resolveSeoPath<T extends SeoPathMatch>(
21
+ path: string,
22
+ resolve: (path: string) => Promise<T | null>,
23
+ ): Promise<SeoPathResolution<T>> {
24
+ if (path === "/") return { match: await resolve(path) };
25
+
26
+ const match = await resolve(path);
27
+ if (match) return withRedirect(path, match);
28
+
29
+ const toggledPath = path.endsWith("/")
30
+ ? withoutTrailingSlash(path)
31
+ : withTrailingSlash(path);
32
+ const toggledMatch = await resolve(toggledPath);
33
+ if (!toggledMatch?.seoPathInfo) return { match: null };
34
+
35
+ return withRedirect(path, toggledMatch);
36
+ }
37
+
38
+ function withRedirect<T extends SeoPathMatch>(
39
+ path: string,
40
+ match: T,
41
+ ): SeoPathResolution<T> {
42
+ if (!match.seoPathInfo) return { match };
43
+
44
+ const seoPath = withLeadingSlash(match.seoPathInfo);
45
+ if (decodePath(seoPath) === decodePath(path)) return { match };
46
+
47
+ return { match, redirectPath: seoPath };
48
+ }
49
+
50
+ /** Compares paths on their decoded form; the router encodes `route.path`. */
51
+ function decodePath(path: string): string {
52
+ try {
53
+ return decodeURI(path);
54
+ } catch {
55
+ return path;
56
+ }
57
+ }
package/content/index.yml CHANGED
@@ -5,7 +5,9 @@ seo:
5
5
  title: ShopBite
6
6
  description: Reduziere Kosten und steigere deinen Umsatz
7
7
  hero:
8
- backgroundVideo: https://shopware.shopbite.de/media/10/59/96/1762465181/background.mp4
8
+ title: Frisch gekocht, schnell geliefert.
9
+ backgroundVideo: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/f8/66/7e/1789150226/background.mp4?ts=1789150226
10
+ poster: /hero-poster.webp
9
11
  headline: SHOPBITE
10
12
  usps:
11
13
  - title: 4.5 ⭐
@@ -38,20 +40,24 @@ features:
38
40
  headline: SHOPBITE
39
41
  features:
40
42
  - title: Öffnungszeiten
41
- description: Von 11:30 - 14:30 und 17:30 - 23:00 Uhr. Samstags von 17:30 - 23:30 Uhr. Dienstag ist Ruhetag.
43
+ kind: hours
44
+ description: Samstags 17:30 - 23:30 Uhr, Dienstag ist Ruhetag.
42
45
  icon: i-lucide-clock
43
- ui:
44
- leading: bg-accented/50 p-2 rounded-md border border-muted border-dashed
46
+ link:
47
+ label: Alle Öffnungszeiten
48
+ to: "#oeffnungszeiten"
45
49
  - title: Lieferung
46
- description: Wir liefern nach Obertshausen und Lämmerspiel. Ab 15€ liefern wir frei Haus, darunter berechnen wir lediglich 1€. Die Lieferzeit beträgt bei normaler Auslastung ca. 30 min
50
+ kind: delivery
51
+ description: Wir liefern nach Obertshausen und Lämmerspiel. Ab 15 € frei Haus, darunter 1 € Liefergebühr.
47
52
  icon: i-lucide-truck
48
- ui:
49
- leading: bg-accented/50 p-2 rounded-md border border-muted border-dashed
50
- - title: Reservierungen und Bestellungen
51
- description: Reservierungen nehmen wir ausschließlich telefonisch entgegen. Bestellungen nehmen wir gerne telefonisch oder online entgegen.
52
- icon: i-lucide-pizza
53
- ui:
54
- leading: bg-accented/50 p-2 rounded-md border border-muted border-dashed
53
+ - title: Reservierung
54
+ kind: reservation
55
+ lead: Tisch nur telefonisch
56
+ description: Bestellungen nehmen wir gerne online oder telefonisch entgegen.
57
+ icon: i-lucide-phone
58
+ link:
59
+ label: 06104 77777 anrufen
60
+ to: "tel:+490610477777"
55
61
  marquee:
56
62
  title: Das lieben unsere Kunden
57
63
  description: Kundenbilder
@@ -68,17 +74,17 @@ gallery:
68
74
  variant: subtle
69
75
  trailingIcon: i-lucide-phone
70
76
  images:
71
- - image: https://shopware.shopbite.de/media/71/2a/1a/1762465670/restaurant1.webp
77
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/be/7b/ba/1789148625/restaurant1.webp?ts=1789148625
72
78
  alt: La Fattoria Restaurant Innenbereich 1
73
- - image: https://shopware.shopbite.de/media/61/ea/77/1762465670/restaurant2.webp
79
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/7c/a7/1c/1789148639/restaurant2.webp?ts=1789148639
74
80
  alt: La Fattoria Restaurant Innenbereich 2
75
- - image: https://shopware.shopbite.de/media/6d/ac/ca/1762465670/restaurant3.webp
81
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/94/27/0b/1789148651/restaurant3.webp?ts=1789148651
76
82
  alt: La Fattoria Restaurant Innenbereich 3
77
- - image: https://shopware.shopbite.de/media/af/d6/da/1762465670/restaurant4.webp
83
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
78
84
  alt: La Fattoria Restaurant Innenbereich 4
79
- - image: https://shopware.shopbite.de/media/6a/ff/e2/1762465670/restaurant5.webp
85
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/41/1b/09/1789148680/restaurant5.webp?ts=1789148680
80
86
  alt: La Fattoria Restaurant Innenbereich 5
81
- - image: https://shopware.shopbite.de/media/80/76/d0/1762465670/restaurant6.webp
87
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/5b/d1/f9/1789148692/restaurant6.webp?ts=1789148692
82
88
  alt: La Fattoria Restaurant Innenbereich 6
83
89
 
84
90
  mittagstisch:
@@ -87,7 +93,7 @@ mittagstisch:
87
93
  description: Jetzt auch Samstags!
88
94
  reverse: true
89
95
  orientation: horizontal
90
- image: https://shopware.shopbite.de/media/1f/c3/c8/1771943544/lm2.webp
96
+ image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
91
97
  imageAlt: Illustration
92
98
  features:
93
99
  - title: Montag bis Samstag
@@ -108,7 +114,7 @@ mittagstisch:
108
114
  cta:
109
115
  title: Jetzt bestellen!
110
116
  description: Genieße die italienische Küche, frisch zubereitet und direkt zu dir geliefert oder vor Ort genießen.
111
- backgroundImage: https://shopware.shopbite.de/media/f2/22/5f/1770899823/category-pizza-header2.webp
117
+ backgroundImage: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/60/5f/0e/1789148993/footer-cta.webp?ts=1789148993
112
118
  links:
113
119
  - label: Zur Speisekarte
114
120
  to: /speisekarte/
package/content.config.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { defineCollection, defineContentConfig, z } from "@nuxt/content";
2
+ import { defineSitemapSchema } from "@nuxtjs/sitemap/content";
2
3
 
3
4
  const createEnum = (options: [string, ...string[]]) => z.enum(options);
4
5
 
@@ -40,6 +41,17 @@ const createBaseSchema = () =>
40
41
  const createFeatureSchema = () =>
41
42
  createBaseSchema().extend({
42
43
  icon: z.string().editor({ input: "icon" }),
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
46
+ // alternative, `link` the card's action (a `tel:` target is a button).
47
+ kind: createEnum(["hours", "delivery", "reservation"]).optional(),
48
+ lead: z.string().optional(),
49
+ link: z
50
+ .object({
51
+ label: z.string().nonempty(),
52
+ to: z.string().nonempty(),
53
+ })
54
+ .optional(),
43
55
  ui: z
44
56
  .object({
45
57
  leading: z.string().optional(),
@@ -55,7 +67,10 @@ export default defineContentConfig({
55
67
  schema: z.object({
56
68
  hero: z.object({
57
69
  backgroundVideo: z.string().optional(),
70
+ poster: z.string().optional(),
58
71
  headline: z.string().optional(),
72
+ // Hero title; the page title (shop name) is the fallback (#327).
73
+ title: z.string().optional(),
59
74
  links: z.array(createLinkSchema()),
60
75
  usps: z.array(
61
76
  z.object({
@@ -106,6 +121,7 @@ export default defineContentConfig({
106
121
  schema: z.object({
107
122
  title: z.string().min(1),
108
123
  description: z.string().optional(),
124
+ sitemap: defineSitemapSchema({ z }),
109
125
  }),
110
126
  }),
111
127
  },
@@ -74,3 +74,10 @@ src; the `undefined` cloud URL is gone.
74
74
  now `matomoAnalytics: { trigger: "onNuxtReady" }` (what `true` normalised to);
75
75
  only `scriptOptions` is inlined, so runtime config still wins. Re-verified on
76
76
  a production build — see `docs/notes/2026-09-07-dependency-update.md`.
77
+
78
+ ## Addendum 2026-09-10
79
+
80
+ The registry entry is gone. Matomo is now registered by `app/plugins/matomo.ts`
81
+ via `useMatomo()`, and only when `matomoUrl` and `siteId` are set — without
82
+ config the registry requested `cdn.matomo.cloud/undefined/matomo.js` (#294).
83
+ See `docs/notes/2026-09-10-issue-294-matomo-without-config.md`.
@@ -0,0 +1,83 @@
1
+ # Issue #240 — `shipping-method-blocked` invalidates the cart and blocks orders
2
+
3
+ Date: 2026-09-08 · Branch: `fix/issue-240-shipping-method-blocked`
4
+
5
+ ## Symptom
6
+
7
+ OpenObserve RUM reported 39 occurrences in 7 days of
8
+
9
+ > Failed request
10
+ > - [Internal Server Error] The cart is invalid, got 1 error(s): shipping-method-blocked…
11
+
12
+ raised by `POST /store-api/checkout/order`. The customer clicks
13
+ "Jetzt bestellen!", the button briefly spins, and nothing happens.
14
+
15
+ ## Root cause
16
+
17
+ Two things combine:
18
+
19
+ 1. **Shopware only auto-switches a blocked shipping method in its Twig
20
+ storefront.** `Shopware\Storefront\Checkout\Shipping\BlockedShippingMethodSwitcher`
21
+ is wired into `StorefrontCartFacade`, which the Store API never uses.
22
+ Via the Store API the cart simply carries a `shipping-method-blocked`
23
+ error (`ShippingMethodBlockedError`, level *warning*, `blockOrder() = true`)
24
+ and `OrderPersister::persist()` throws `CartException::invalidCart()`
25
+ (HTTP 500, `CHECKOUT__CART_INVALID`). Verified against
26
+ `shopware/core` v6.7.13.1 in `../shopware/vendor`.
27
+
28
+ A shipping method becomes blocked whenever its availability rule no
29
+ longer matches the current context (`DeliveryValidator`) or it is not
30
+ in the "onlyAvailable" list (`CheckoutGatewayRoute`). Typical triggers
31
+ in a food-delivery shop: cart total falls below the minimum order value
32
+ of the delivery rule, the customer switches to an address outside the
33
+ delivery zone, or the rule depends on time/day.
34
+
35
+ 2. **The headless storefront never looked at cart errors and never caught
36
+ the failed order request.** `CheckoutSummary.handleCreateOrder()` had
37
+ only `try … finally`, so the rejection escaped as an unhandled error
38
+ (which is what RUM captured) and the customer saw no feedback. The
39
+ "Jetzt bestellen!" button only checked that *some* shipping method was
40
+ set in the session, not that it was still allowed.
41
+
42
+ ## Fix
43
+
44
+ - New composable `app/composables/useShippingMethodGuard.ts`:
45
+ - `hasBlockedShippingMethod(cart)` / `getCartErrors(cart)` normalise
46
+ `cart.errors` (array or keyed object) and look for
47
+ `messageKey === "shipping-method-blocked"`.
48
+ - `ensureAvailableShippingMethod()` refreshes the cart and, if blocked,
49
+ reloads the available shipping methods (`forceReload`), picks the
50
+ sales-channel default (`sessionContext.salesChannel.shippingMethodId`)
51
+ or otherwise the first available method, sets it, refreshes the cart
52
+ again and shows a warning toast. Returns `false` when no alternative
53
+ exists or the cart is still blocked. This mirrors Shopware's own
54
+ `BlockedShippingMethodSwitcher` behaviour.
55
+ - `Checkout/PaymentAndDelivery.vue` runs the guard after loading the
56
+ methods, keeps the radio in sync with the session's shipping method and
57
+ no longer re-sets a method that is already selected.
58
+ - `Checkout/Summary.vue` runs the guard on mount and again right before
59
+ `createOrder()`. If no shipping method is available the order button is
60
+ disabled with "Aktuell ist keine Versandart verfügbar". `createOrder`
61
+ failures are now caught, logged and surfaced as an error toast, and the
62
+ cart is refreshed.
63
+
64
+ Tests: `test/nuxt/useShippingMethodGuard.test.ts` (new) and
65
+ `test/nuxt/PaymentAndDelivery.test.ts` (extended).
66
+
67
+ ## Not covered / follow-ups
68
+
69
+ - The same gap exists for `payment-method-blocked`
70
+ (`BlockedPaymentMethodSwitcher` is Twig-storefront only as well).
71
+ Filed as #276 and fixed in #280, which generalised the composable into
72
+ `app/composables/useCheckoutMethodGuard.ts`. `useShippingMethodGuard`
73
+ described above no longer exists; see
74
+ `2026-09-08-issue-276-payment-method-blocked.md` for the current API.
75
+ - The *reason* a shipping method gets blocked lives in the Shopware admin
76
+ rule configuration of each shop and cannot be determined from this
77
+ repository. If the RUM count does not drop after this fix, check the
78
+ availability rules of the delivery shipping method for the affected
79
+ sales channel.
80
+ - `pnpm typecheck` reports 37 pre-existing errors on `main` (30 inside
81
+ `@shopware/composables` / `@shopware/nuxt-module`, 7 in our test files).
82
+ Unrelated to this change; filed as #277. #276 covers the
83
+ `payment-method-blocked` gap.
@@ -0,0 +1,63 @@
1
+ # Issue #241 — cart writes collide (`CHECKOUT__CART_LOCKED`)
2
+
3
+ Date: 2026-09-08 · Branch: `fix/issue-241-cart-mutation-queue`
4
+
5
+ ## Re-verified against OpenObserve (last 7 days)
6
+
7
+ | Signature from the issue | In the issue | Now |
8
+ | --------------------------------------------- | ------------ | --- |
9
+ | PATCH line-item "Failed to fetch" | 40 | 0 |
10
+ | POST line-item/delete "Failed to fetch" | 18 | 0 |
11
+ | Cart "locked due to concurrent write" (409) | 12 | 15 |
12
+
13
+ The mutation timeouts are gone. The remaining "<no response>" errors are
14
+ GET requests (`/store-api/seo-url` ×39, `/store-api/checkout/cart` ×10),
15
+ mostly marked *handled*, clustered in 8 sessions on 3 days — consistent
16
+ with navigations aborting in-flight requests, not with a backend outage.
17
+ Only the lock conflicts are still real: 15 errors in 8 sessions, all
18
+ unhandled; one session hit 5 within a minute, two in the same second.
19
+
20
+ ## Root cause
21
+
22
+ Every cart write went straight to the Store API with no coordination:
23
+
24
+ - `Cart/Item.vue` called `changeProductQuantity` from a computed setter on
25
+ every `+`/`-` click. Two quick clicks = two concurrent PATCH requests;
26
+ Shopware rejects the second with `CHECKOUT__CART_LOCKED` (409). The
27
+ input also displayed the *cart* quantity, so a click during an
28
+ in-flight request counted from the stale value.
29
+ - `removeItem` / `addProducts` were fired without `await`, without
30
+ error handling and without disabling the control.
31
+ - `useAddToCart` set `isLoading` but had no `try/finally`: after a
32
+ failure the button stayed disabled and nothing was shown.
33
+
34
+ ## Fix
35
+
36
+ `app/composables/useCartMutations.ts` — one module-level queue for all
37
+ cart writes (shared by every component instance):
38
+
39
+ - `setQuantity(id, qty)`: coalesces calls for the same line item — while
40
+ one request is in flight at most one follow-up is queued and it sends
41
+ the latest value; a value equal to the cart's current quantity sends
42
+ nothing.
43
+ - `removeLineItem(item)`, `addLineItems(items)`: serialized writes.
44
+ - A 409 lock conflict (other tab, SSR overlap) is retried once after
45
+ 400 ms. A final failure logs, shows an error toast ("Bitte versuche es
46
+ erneut."), re-reads the cart to re-sync the UI and resolves
47
+ `undefined` so callers skip their success path.
48
+ - `isMutating` for disabling destructive controls.
49
+
50
+ Call sites: `Cart/Item.vue` (optimistic local quantity, delete disabled
51
+ while mutating), `useAddToCart` (`try/finally`, no success toast/tracking
52
+ on failure), `Food/MarqueeItem.vue`.
53
+
54
+ Tests: `test/nuxt/useCartMutations.test.ts`, `test/nuxt/CartItem.test.ts`,
55
+ extended `test/nuxt/useAddToCart.test.ts`.
56
+
57
+ ## Left out on purpose
58
+
59
+ - Retry-with-backoff for "Failed to fetch" on mutations: no longer
60
+ occurring in telemetry.
61
+ - Backend availability check: nothing in the current data points at it.
62
+ - Voucher removal (`useVoucherCode` → `removeItem`) still bypasses the
63
+ queue; it is a rare, single click on the summary page.
@@ -0,0 +1,65 @@
1
+ # Issue #244: `/c/fisch` returned 404, and aliases of a SEO URL redirect
2
+
3
+ Date: 2026-09-08, reduced to the remaining delta on 2026-09-10. Branch `fix/issue-244-seo-url-trailing-slash`.
4
+
5
+ ## Re-verified (2026-09-08)
6
+
7
+ Live probe on pizzeria-lafattoria.de:
8
+
9
+ | URL | Result |
10
+ | ------------ | ----------------------------------------- |
11
+ | `/c/Extras/` | 200 |
12
+ | `/c/extras/` | 200 — lowercase already resolves |
13
+ | `/c/Extras` | **404** — correct case, no trailing slash |
14
+ | `/c/extras` | **404** |
15
+
16
+ Shopware only stores `c/Extras/` (with slash). Its `equals` filter on
17
+ `seoPathInfo` is case-insensitive (MySQL collation), so casing never was
18
+ the problem; the exact match simply failed without the slash.
19
+
20
+ OpenObserve (`_rumdata`): 0 category 404s in the last 7 days, 17 in the
21
+ last 30 days, all slash-less, arriving as Applebot + Safari pairs
22
+ (Siri/Spotlight suggestions strip the slash and lowercase the path).
23
+
24
+ The 301 that `/c/fisch` already got in production does not come from this
25
+ repository (probably a hosting rule).
26
+
27
+ ## History
28
+
29
+ The original PR (#284, 2026-09-08) fixed the slash in a project copy of
30
+ `useNavigationSearch` and added `useSeoUrlRoute`. Before it was merged, #291
31
+ reported the same 404 and #293 fixed it on `main` with `resolveSeoPath` +
32
+ `useSeoUrlRoute`, without shadowing the layer composable (see the typecheck
33
+ note of #277 on why a project composable must not share a layer name).
34
+ #284 was then reduced to what `main` still lacked.
35
+
36
+ ## Fix (delta on top of #293)
37
+
38
+ - `resolveSeoPath` now also returns a `redirectPath` for an **exact** match
39
+ whose SEO path differs from the visited path. `useSeoUrlRoute` answers
40
+ with a 301 (query preserved), so `/c/fisch/`, `/c/fisch` and `/c/FISCH`
41
+ all land on `/c/Fisch/`. Paths are compared decoded, because the router
42
+ encodes `route.path`.
43
+ - Records without a SEO path (the helpers' fallback for technical routes)
44
+ are served as before.
45
+ - A technical `/navigation/<id>` path would resolve to its SEO URL record
46
+ and redirect the same way, but no page routes it today: it hits the
47
+ content catch-all `[...all].vue` and returns 404 (verified live, and
48
+ unchanged by this PR). The catch-all fallback planned in #289 will route
49
+ it.
50
+ - Tests: `test/unit/seoPath.spec.ts` (casing, encoding, technical path),
51
+ `test/nuxt/useSeoUrlRoute.test.ts` (ported from #284: no redirect on the
52
+ SEO URL, 301 for an alias, 404, history-state shortcut).
53
+
54
+ ## Verification
55
+
56
+ Production build against the La Fattoria Store API: `/c/Fisch/` 200,
57
+ `/c/fisch/`, `/c/fisch`, `/c/FISCH` and `/c/Pizza` → 301 to the SEO URL,
58
+ `/c/Fisch?properties=x` → 301 `/c/Fisch/?properties=x`, unknown paths 404.
59
+ Playwright: direct load, link navigation, client-side redirect and back
60
+ button work without hydration warnings.
61
+
62
+ ## Still not covered
63
+
64
+ Non-canonical SEO URLs (`isCanonical: false`, old paths after a rename)
65
+ are served under their old path instead of redirected to the canonical one.
@@ -0,0 +1,39 @@
1
+ # Issue #276 — `payment-method-blocked` is not handled headlessly
2
+
3
+ Date: 2026-09-08 · Branch: `fix/issue-276-payment-method-blocked` · PR #280
4
+ (builds on #278, merged the same day)
5
+
6
+ ## Background
7
+
8
+ Same mechanism as #240, see
9
+ `2026-09-08-issue-240-shipping-method-blocked.md`. Shopware's
10
+ `BlockedPaymentMethodSwitcher` only runs inside the Twig storefront
11
+ (`StorefrontCartFacade`). Via the Store API a payment method whose
12
+ availability rule stops matching leaves a `payment-method-blocked` cart
13
+ error (`PaymentMethodBlockedError`, `blockOrder() = true`) and
14
+ `POST /checkout/order` fails with `CHECKOUT__CART_INVALID`.
15
+
16
+ ## Fix
17
+
18
+ `useShippingMethodGuard` was generalised into
19
+ `app/composables/useCheckoutMethodGuard.ts`:
20
+
21
+ - One internal `resolve(config)` handles both method types. The config
22
+ describes how to detect the blocked state, load the available methods
23
+ (`forceReload`), pick the sales-channel default
24
+ (`salesChannel.shippingMethodId` / `salesChannel.paymentMethodId`) and
25
+ select the replacement.
26
+ - Public API: `ensureAvailableShippingMethod()`,
27
+ `ensureAvailablePaymentMethod()` and `ensureAvailableCheckoutMethods()`.
28
+ The combined variant refreshes the cart once and resolves shipping
29
+ before payment, because payment availability rules may depend on the
30
+ shipping method. Exposes `isShippingMethodBlocked`,
31
+ `isPaymentMethodBlocked` and `isResolving`.
32
+ - `Checkout/Summary.vue` and `Checkout/PaymentAndDelivery.vue` use the
33
+ combined variant. The summary button label and the "nothing available"
34
+ toast name the affected method type ("Versandart" / "Zahlart").
35
+ - The payment radio on the "Zahlung & Versand" step is kept in sync with
36
+ the session like the shipping radio.
37
+
38
+ Tests: `test/nuxt/useCheckoutMethodGuard.test.ts` (replaces the shipping
39
+ guard test) and `test/nuxt/PaymentAndDelivery.test.ts`.
@@ -0,0 +1,99 @@
1
+ # Issue #277 — `pnpm typecheck` failed on `main` with 37 errors
2
+
3
+ Date: 2026-09-08 · Branch: `fix/issue-277-typecheck`
4
+
5
+ ## Symptom
6
+
7
+ `pnpm typecheck` exited with 37 `error TS…` lines. CI did not run it, so
8
+ nobody noticed. 7 errors were in our test files, 30 in package sources
9
+ that Nuxt pulls into the type program:
10
+
11
+ | Source | Errors |
12
+ | ----------------------------------------------------- | ------ |
13
+ | `@shopware/composables/src/useB2bQuoteManagement.ts` | 14 |
14
+ | `@shopware/nuxt-module/plugin.ts` | 12 |
15
+ | `@shopware/composables/src/useListing.ts` | 2 |
16
+ | `@shopware/composables/src/useCartItem.ts` | 1 |
17
+ | `@shopware/composables/src/useNewsletter.ts` | 1 |
18
+ | our tests | 7 |
19
+
20
+ Why package sources are checked at all: `@shopware/composables` is
21
+ consumed as a Nuxt **layer**, so its `src/*.ts` are compiled as part of
22
+ the app, and `@shopware/nuxt-module` ships its plugin as `plugin.ts`.
23
+ `skipLibCheck` only skips `.d.ts` files, and `exclude` does not help
24
+ because the files are reached through imports.
25
+
26
+ ## Root causes and fixes
27
+
28
+ ### 1. Custom API types miss what the layer references (15 errors)
29
+
30
+ `shopware.d.ts` replaces the `#shopware` `operations`/`Schemas` with the
31
+ types generated from **our** Shopware instance. The layer also references
32
+ endpoints/schemas our instance does not expose (B2B `Quote`, newsletter
33
+ status responses).
34
+
35
+ Fix: `shopware.d.ts` now falls back to the api-client's default types for
36
+ keys missing in ours (`Omit<Default, keyof Custom> & Custom`). Ours always
37
+ win where both exist. One fallback operation
38
+ (`createOrderFromQuote`) has its response re-mapped to our `Order`
39
+ because the composable compares it against `Schemas["Order"]`.
40
+
41
+ ### 2. `useListing` broke because we shadowed `useCategory` (2 errors)
42
+
43
+ Project composables override layer composables **everywhere**, including
44
+ inside the layer's own code. Our async `useCategory(categoryId)` was
45
+ picked up by the layer's `useListing`, which calls `useCategory()`
46
+ synchronously. This was also a latent runtime bug.
47
+
48
+ Fix: renamed ours to `useCategoryById`. Rule added to `CLAUDE.md`.
49
+
50
+ ### 3. Shopware 6.7 schema differences (2 errors)
51
+
52
+ - `LineItem.payload` is required in the 6.7 OpenAPI schema; the layer
53
+ casts it as optional. Container/promotion/custom line items have no
54
+ product payload anyway, so `shopware.d.ts` keeps `payload` optional.
55
+ - `POST /newsletter/subscribe` is documented without a response body; the
56
+ layer reads `status` from it. `api-types/storeApiSchema.shopbite.overrides.json`
57
+ adds the response the default types declare.
58
+
59
+ `api-gen.config.json` now also applies the **upstream** schema patches
60
+ (`@shopware/api-client/api-types/storeApiSchema.overrides.json`) when
61
+ running `pnpm generate-types`, which is what the layer is written against.
62
+ Regenerating changed `customFields` typings (`GenericRecord` →
63
+ `CustomFields | null`) and a few required flags; app code typechecks
64
+ unchanged.
65
+
66
+ ### 4. `@shopware/nuxt-module` plugin (12 errors)
67
+
68
+ Three upstream problems in `plugin.ts` of 1.5.1:
69
+
70
+ - `import type { ShopwareNuxtOptions } from "./src"` — `src` is not
71
+ published.
72
+ - No types for `js-cookie` → added `@types/js-cookie` as devDependency.
73
+ - Nuxt's generated `NuxtApp` augmentation infers the plugin's provided
74
+ type from `typeof import(plugin)`, while the plugin body reads
75
+ `NuxtApp.ssrContext`. With an untyped default export this is a cycle
76
+ ("Type 'NuxtApp' recursively references itself") that cascades into
77
+ implicit `any` errors.
78
+
79
+ Fix: pnpm patch (`patches/@shopware__nuxt-module@1.5.1.patch`) that
80
+ imports the type from `./dist/index` and annotates the export as
81
+ `Plugin<{ shopwareApiClient: ApiClient }>`. **When Renovate bumps
82
+ `@shopware/nuxt-module`, the patch has to be re-created for the new
83
+ version** (`pnpm patch @shopware/nuxt-module@<version>`, apply the same
84
+ two changes, `pnpm patch-commit`). pnpm fails the install if the patch no
85
+ longer applies, so a stale patch cannot go unnoticed. Worth reporting
86
+ upstream (shopware/frontends).
87
+
88
+ ### 5. Test typings (7 errors)
89
+
90
+ Small fixes: typed `onUpdate:modelValue` handler, removed a `global`
91
+ detour in `HeaderRight.test.ts`, `ref<unknown>(null)`, full
92
+ `IntersectionObserverCallback` arguments, and a typed `useCategorySeo`
93
+ holder with a cast helper in the unit spec.
94
+
95
+ ## Process changes
96
+
97
+ - `typecheck` script is now `nuxt typecheck` (was `pnpx nuxt typecheck
98
+ --cwd=app`, which downloads a Nuxt via dlx instead of using the local one).
99
+ - CI lint job runs `pnpm typecheck` after ESLint.
@@ -0,0 +1,23 @@
1
+ # Issue #250: AnimatedSection rendered content invisible in the SSR HTML
2
+
3
+ As of 2026-09-10, branch `fix/250-animated-section-ssr-visible`.
4
+
5
+ ## Cause
6
+
7
+ `useScrollAnimation` started with `isVisible = false`, and `AnimatedSection` rendered the initial animation classes (`opacity-0 translate-y-20`) for that state, on the server as well. Every product card, the features, the marquee and the top sellers were transparent until the `IntersectionObserver` fired after hydration: invisible for no-JS visitors and crawlers, and a flash of empty page on slow devices even above the fold. It also caused the remaining CLS of 0.028 on the home page (#273) once the sections faded in.
8
+
9
+ ## Solution
10
+
11
+ The state is inverted to `isHidden`, default `false`:
12
+
13
+ - Server HTML and the client's first render carry the final classes (`opacity-100 translate-y-0`), so hydration matches (#239).
14
+ - After mount the observer's first callback decides: an element already in the viewport stays visible and is unobserved (no animation above the fold); an element below the fold gets the hidden classes and animates in when it scrolls into view. Nobody sees the switch to hidden, because it only happens off-screen.
15
+ - `prefers-reduced-motion: reduce`, a missing `IntersectionObserver` or a missing element: no observer, nothing is ever hidden.
16
+ - The observer is disconnected on unmount.
17
+ - The observer's root margin extends 100000 px above the viewport, so a section that a jump scrolled past (anchor link such as `#food`, End key, restored scroll position) counts as in view and is revealed too. Found with Playwright: after `mouse.wheel(0, 20000)` the last product card sat above the viewport and stayed at `opacity: 0`, with the old implementation as well.
18
+
19
+ Tests: `test/nuxt/useScrollAnimation.test.ts` (rewritten for the new state machine), `test/nuxt/AnimatedSection.test.ts` (SSR string contains the content without `opacity-0`; hide/reveal after mount).
20
+
21
+ ## Verification
22
+
23
+ See the PR description.
@@ -0,0 +1,30 @@
1
+ # Issue #251: shop-specific data hardcoded in the base layer
2
+
3
+ As of 2026-09-10, branch `fix/251-header-phone-from-config`.
4
+
5
+ ## Audit of `app/` (base layer code)
6
+
7
+ | Place | Hardcoded | Now |
8
+ | --- | --- | --- |
9
+ | `Header/Right.vue` | `tel:+49610471427` (La Fattoria) | `site.telephone`, button hidden without a number |
10
+ | `BottomNavi.vue` (not used by any page, but exported by the layer) | OpenStreetMap directions to La Fattoria's coordinates, same phone number | `site.googleBusinessProfileUrl` for the route, `site.telephone` for the call; each button hidden without a value |
11
+ | `pages/bestellung/[id]/index.vue` | `tel:+4917623456789` ("call us" card) | `site.telephone`, card hidden without a number |
12
+ | `useValidCitiesForDelivery` | delivery cities `Obertshausen, Lämmerspiel, Hausen` and a Geoapify bounding box around Obertshausen | removed, see below |
13
+
14
+ `content/` (demo content that a shop overrides) still carries La Fattoria's phone number and gallery alt texts, the ShopBite demo's imprint and the "Kantstraße 6" 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
+
16
+ ## Decision on the delivery area (Lirim)
17
+
18
+ Where the shop delivers is decided by the Shopware cart rules, not by the storefront. The client-side city check is therefore gone entirely, not turned into a config:
19
+
20
+ - `useValidCitiesForDelivery`, the `validCities` option of `useAddressValidation`, `isInvalidCity` and the "An diese Adresse können wir leider nicht liefern" alert in `Address/Fields.vue` are removed; the address suggestions are no longer filtered by city.
21
+ - What remains is `useAddressSuggestionArea`: an optional Geoapify bounding box (`runtimeConfig.public.shopBite.addressAutocomplete.boundingBox`, `NUXT_PUBLIC_SHOP_BITE_ADDRESS_AUTOCOMPLETE_BOUNDING_BOX`) that narrows the address suggestions. Pure convenience, empty means no filter.
22
+ - A first version of this branch had made the cities configurable (`NUXT_PUBLIC_SHOP_BITE_DELIVERY_CITIES`); that variable does not exist.
23
+
24
+ ## Behaviour change
25
+
26
+ The checkout no longer warns about cities outside the delivery area while typing; Shopware rejects such addresses through its rules as before (see #240 for how a blocked shipping method surfaces). The phone buttons need `NUXT_PUBLIC_SITE_TELEPHONE` (set with #290 anyway).
27
+
28
+ ## Verification
29
+
30
+ See the PR description.
@@ -0,0 +1,27 @@
1
+ # Issue #272: Restaurant and Menu schema
2
+
3
+ As of 2026-09-10, branch `feature/272-restaurant-schema`.
4
+
5
+ ## Decisions (agreed with Lirim)
6
+
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 La Fattoria (#273).
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
+ - `Product` schema on product pages waits for #289 (there are no product pages yet).
11
+
12
+ ## Implementation
13
+
14
+ - `buildOpeningHoursSpecification`: days with identical intervals share one entry (`dayOfWeek` array). `buildSpecialOpeningHoursSpecification`: closing days with `opens`/`closes` at `00:00` (Google's convention), dates taken from the first ten characters of the plugin's ISO timestamps (UTC; the admin enters local dates, which map to the same UTC date for CET/CEST).
15
+ - `useRestaurantSchema` (home page) prefetches business hours and holidays on the server (`onServerPrefetch`, same `useAsyncData` keys as `app.vue`/footer, so no duplicate requests) and reads the menu sections from `useNavigation(true).menuCardMenu`.
16
+ - `useMenuSectionSchema` (category listing) reads the loaded `elements`; currency from `useCommercePrice` (session context).
17
+ - Empty values are dropped (`compact`), so a shop without address or phone still emits a valid node.
18
+
19
+ ## Pitfalls found on the first run
20
+
21
+ - Nuxt parses a numeric env value (`NUXT_PUBLIC_SITE_ADDRESS_POSTAL_CODE=63179`) into a number; `postalCode` is coerced to a string in the builder.
22
+ - `dayOfWeek` lists are sorted Monday to Sunday; the plugin returns Sunday (7) before Saturday in insertion order.
23
+ - Menu sections nest: `Nudeln` carries its nine pasta subcategories as `hasMenuSection`.
24
+
25
+ ## Verification
26
+
27
+ Production build against the La Fattoria 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.