@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,154 @@
1
+ # Issue #319: Stylesheet cost and Style & Layout time on mobile
2
+
3
+ As of 2026-09-12, branch `fix/319-stylesheet-cost`.
4
+
5
+ ## Measurement setup
6
+
7
+ Production build, La Fattoria Store API, Lighthouse 12.8.2 mobile
8
+ (simulated throttling, 4× CPU) behind the h2/gzip proxy of the #273 and
9
+ #314 notes, two runs per page. In addition, Chrome DevTools Protocol
10
+ traces through Playwright (4× CPU throttling, mobile viewport):
11
+ `Performance.getMetrics`, the `SelectorStats` trace category for selector
12
+ matching cost, and the invalidation-tracking category for the reasons of
13
+ each style recalculation and layout. To isolate causes, copies of the
14
+ server-rendered home page with modified stylesheets were served as static
15
+ files through the same proxy.
16
+
17
+ ## Where the 253 KB come from
18
+
19
+ Tailwind source attribution (compiling `main.css` with the Tailwind node
20
+ API and removing the candidates unique to each `@source`):
21
+
22
+ - Nuxt UI registers the theme files of all 120 components as Tailwind
23
+ sources (`@source "./ui"` in the generated `ui.css`), although the
24
+ storefront renders 49 of them (63 with their dependencies). The colour
25
+ and state variants of the unused ones (Calendar, Table, CommandPalette,
26
+ Editor, Dashboard, Chat, …) were 59 KB, 7 KB gzipped.
27
+ - The Nuxt UI prose theme (`ui/prose`, present because `@nuxt/content` is
28
+ installed) is 41 KB, 4 KB gzipped, and only the legal pages use it.
29
+ - `UButton` alone is 17 KB (7 colours × 4 variants × states), the
30
+ storefront's own classes 16 KB, `UTabs` 10 KB, `UDropdownMenu` 8 KB,
31
+ `UNavigationMenu` 7 KB.
32
+ - Without any utility: 18 KB of theme variables, `@property`
33
+ registrations, preflight, keyframes and 29 `@font-face` blocks.
34
+ - All seven colour aliases (`primary`, `secondary`, `success`, `info`,
35
+ `warning`, `error`, `neutral`) are used by the storefront, so
36
+ `theme.colors` cannot be narrowed without design changes.
37
+
38
+ ## What the Style & Layout time is made of
39
+
40
+ The stylesheet is not the cost. On the home page (300 elements, 4× CPU):
41
+
42
+ - Selector matching for the whole load is 11–14 ms; the most attempted
43
+ selectors are prose rules with `::marker` and `> ul` (1,154 attempts,
44
+ 0 matches), not the `data-*`, `:has()` or `.dark` variants.
45
+ - The first style recalculation is 52 ms with the full stylesheet and
46
+ 36 ms with no stylesheet at all; the first layout is 140–175 ms.
47
+ - Removing the `@property` registrations, pre-resolving `oklch()` /
48
+ `color-mix()`, or dropping `text-wrap: pretty/balance` changes nothing
49
+ measurable.
50
+ - Replacing the font stack with `system-ui` takes the first layout from
51
+ 143 ms to 15 ms.
52
+
53
+ The font stack was
54
+ `"Public Sans", "Public Sans Fallback: BlinkMacSystemFont", "… Segoe UI",
55
+ "… Helvetica Neue", "… Arial", "… Noto Sans", sans-serif`: `@nuxt/fonts`
56
+ (enabled by Nuxt UI) generates a metric-adjusted `local()` face for each
57
+ of its five default fallback families. During the first layout, before the
58
+ web font has arrived, Chrome resolves every family in the stack for every
59
+ text style in use, and each family that is not installed costs a system
60
+ font lookup (fontconfig here, the unique-name lookup on Android). In
61
+ Lighthouse terms, static copies of the home page measured:
62
+
63
+ | Font stack | Style & Layout |
64
+ | --- | --- |
65
+ | Public Sans + 5 fallback families (as shipped) | 743–869 ms |
66
+ | Public Sans + 2 fallback families | 480–514 ms |
67
+ | Public Sans + 1 fallback family | 433–442 ms |
68
+ | Public Sans only | 339–378 ms |
69
+ | `system-ui` (no web font) | 226–264 ms |
70
+
71
+ The metric fallbacks made no difference to CLS in any run (0.058 on the
72
+ home page from the hero row, 0.001 on the category page).
73
+
74
+ The lookups are wall-clock work in the browser process, not renderer CPU:
75
+ the first layout of the live page takes 63 ms at 1× and 75 ms at 4× CPU
76
+ throttling, while the same page without fallback families scales from
77
+ 8.5 ms to 24 ms. Lighthouse multiplies observed durations by the CPU
78
+ multiplier, so every remaining fallback family shows up as roughly 100 ms
79
+ of Style & Layout on this machine (fontconfig, 2,183 installed fonts); on
80
+ a phone the per-family cost is smaller but not zero (Chrome's local font
81
+ lookup is a synchronous call into the browser process).
82
+
83
+ The rest of the time is the first render itself plus hydration: after the
84
+ entry chunk runs, a 285-element recalculation and a full layout
85
+ (28 ms + 24 ms at 4×) follow the DOM patches of hydration.
86
+
87
+ ## Changes
88
+
89
+ 1. `ui.experimental.componentDetection: true` (`nuxt.config.ts`): Nuxt UI
90
+ scans the layers for `<U…>` / `LazyU…` usages and registers only those
91
+ component themes (plus dependencies) as Tailwind sources; the themes of
92
+ the others are emptied. Components rendered dynamically by name would
93
+ need to be listed in the option's array form.
94
+ 2. `fonts.defaults.fallbacks["sans-serif"]` limited to `Roboto` and
95
+ `Helvetica Neue` (Android and iOS system fonts; the storefront is
96
+ phone-first). Windows and Linux desktops fall back to their default
97
+ sans-serif without metric adjustment during the swap.
98
+ 3. `app.config.ts`: `ui.colors.primary` is the alias `brand` instead of the
99
+ hex value, which produced eleven invalid
100
+ `--ui-color-primary-*: var(--color-#ff5b00-*, )` declarations in the
101
+ inlined `nuxt-ui-colors` style and left `primary-*` utilities without a
102
+ value. `--ui-primary` is still set in `main.css` (600 / 400 steps,
103
+ #275). The `gray: "cool"` key was a Nuxt UI v2 leftover.
104
+
105
+ ## Results (Lighthouse mobile, two runs each)
106
+
107
+ | Page | Metric | Baseline | After |
108
+ | --- | --- | --- | --- |
109
+ | `/` | Style & Layout | 763–875 ms | 488–566 ms |
110
+ | `/` | Performance | 74–75 | 75 |
111
+ | `/c/Pizza/` | Style & Layout | 861–912 ms | 546–576 ms |
112
+ | `/c/Pizza/` | Performance | 75–80 | 79–80 |
113
+ | stylesheet | `entry.*.css` | 253 KB / 32.5 KB gzip | 194 KB / 25.5 KB gzip |
114
+
115
+ The 20 KB gzip target of the issue is not reached: the remaining 25 KB
116
+ are the components the storefront does use (`UButton` with all colour
117
+ variants, `UNavigationMenu`, `USelectMenu`, …), the prose theme for the
118
+ content pages (4 KB) and the theme/preflight base (3 KB). Since the
119
+ stylesheet size has no measurable effect on Style & Layout, further
120
+ trimming (a separate prose stylesheet for the content pages, fewer colour
121
+ aliases) is a transfer-size topic, not a main-thread one.
122
+
123
+ ## Tooling
124
+
125
+ `scripts/perf/h2-proxy.cjs` (TLS + HTTP/2 + gzip in front of the Nitro
126
+ server, plus a static `/exp/` directory for page variants),
127
+ `scripts/perf/lighthouse.sh` (mobile run with the main-thread breakdown
128
+ per page) and `scripts/perf/first-render.mjs` (first style recalculation
129
+ and layout via CDP, optional request blocking) are checked in so the
130
+ setup of the #273/#314/#319 notes does not have to be rebuilt.
131
+ `test/visual/` holds the Playwright screenshot suite used for the
132
+ before/after comparison (`pnpm playwright test --config
133
+ test/visual/playwright.config.ts --update-snapshots` on the baseline,
134
+ then without the flag).
135
+
136
+ ## Verification
137
+
138
+ - Playwright screenshots (home, category, product card options, cart
139
+ drawer, checkout, footer; light and dark; 390 px and 1280 px) are
140
+ pixel-identical to the baseline after each step (24 images, `maxDiffPixels: 0`).
141
+ - The inlined colour style now maps `--ui-color-primary-*` to the brand
142
+ scale; no `var(--color-#…)` left.
143
+ - Unit tests, Prettier, ESLint, typecheck and build pass.
144
+
145
+ ## Not done / follow-ups
146
+
147
+ - Prose theme (4 KB gzip) ships on every page; a page-level stylesheet
148
+ for `[...all].vue` would need the generated `#build/ui/prose` directory
149
+ as a Tailwind source, whose location differs between dev and build.
150
+ - `@nuxt/fonts` still emits italic faces (unused by the storefront) and
151
+ the Vietnamese subset (kept on purpose: Vietnamese menus).
152
+ - The hydration recalculation/layout pair after the entry chunk runs is
153
+ the next largest Style & Layout item; it belongs to the hydration
154
+ strategy (#314), not to the stylesheet.
@@ -0,0 +1,100 @@
1
+ # Issue #325: Product card redesign
2
+
3
+ As of 2026-09-12, branch `feature/325-product-card`.
4
+
5
+ ## Decision
6
+
7
+ Design canvas "Produktkarten Varianten"
8
+ (https://claude.ai/code/artifact/95cc5132-1515-477f-af62-3afa79d0ee3c):
9
+ three directions (A compact with thumbnail, B dense menu list, C visual
10
+ with a large image), then three derivatives of C for shops without
11
+ product photos, then five levels of button emphasis. Chosen: **C1** (the
12
+ anatomy of C, the image block only when the product has a cover) with
13
+ button level **B1** (`variant="subtle"`). La Fattoria has no product
14
+ covers at all, the ShopBite demo a few, so the card must look finished
15
+ without any image.
16
+
17
+ ## Changes
18
+
19
+ Second iteration (same day): the card carries no buttons at all. The
20
+ whole card is the control (`role="button"`, keyboard, hover ring) and opens
21
+ a product quick view, the "micro PDP" the customer asked for.
22
+
23
+ - `Product/Card.vue`: an `article` with `ring ring-default rounded-xl
24
+ shadow-md`, the cover as `h-44 object-cover` on top with the diet badge
25
+ as overlay, the wishlist button top right (a `@click.stop` wrapper keeps
26
+ it from opening the quick view), number (primary, `text-xs`), name
27
+ (`text-lg font-bold`), description, price on the right with either
28
+ "Ausverkauft" (`available === false`) or a "n× im Warenkorb" hint
29
+ (`useProductCartQuantity`), and the main ingredients as chips
30
+ (`Product/CardIngredients.vue`, replaces `CardDescription.vue`;
31
+ `CardDietBadges` got a `variant` prop). `selectable` (replaces
32
+ `withAddToCartButton`) emits `select`; the top sellers on the home page
33
+ are not selectable.
34
+ - `useProductQuickView(products)`: the open product is the `produkt`
35
+ query parameter (product number, e.g. `/c/Pizza/?produkt=22`). Opening
36
+ pushes a history entry, so the back button closes the drawer; closing
37
+ replaces the URL. A direct load with the parameter opens the drawer once
38
+ the listing holds the product. One drawer per listing (category page,
39
+ search page incl. fallback suggestions, `Product/Category.vue`), created
40
+ on first use.
41
+ - `Product/QuickView.vue`: `UDrawer` as bottom sheet on phones and side
42
+ panel from `lg` (`useMediaQuery`), title = number + name, description,
43
+ ingredient chips, then `Product/Detail.vue`. Only the body scrolls
44
+ (`container: overflow-hidden`, `body: min-h-0 overflow-y-auto`), so the
45
+ title stays visible above 34 extras chips; the header needs `shrink-0`
46
+ or the flex column squeezes it to its `min-h-8`. The button says
47
+ "Hinzufügen" plus the total (`aria-label` "In den Warenkorb"): the long
48
+ label wrapped to two lines next to the stepper on phones.
49
+ - `Product/Detail.vue`: variants (`Configurator`, unchanged select), extras
50
+ as toggle chips with surcharge (`CrossSelling.vue`, replaces the
51
+ `UInputMenu`), "Ohne" chips with line-through for the ingredient
52
+ deselection (`DeselectIngredient.vue`, replaces the `USelect`), and a
53
+ sticky footer with the quantity stepper and the button that shows the
54
+ total (unit price plus extras, times quantity; `AssociationItemProduct`
55
+ carries `unitPrice` for that). Skeleton while the detail loads.
56
+ - `Cart/Bar.vue` (mounted in `app.vue`): sticky bar at the bottom on
57
+ phones (`lg:hidden`) as soon as the cart holds something, "Warenkorb ·
58
+ n Artikel · subtotal", opens the cart drawer. `useCartQuickView` holds
59
+ the drawer state (`useState`) so the header button and the bar share it. The cart drawer itself is a bottom sheet on phones and a side panel from `lg`, like the product quick view, with a close button next to the title (it also closes by swiping the handle down, tapping the overlay or Escape).
60
+ Hidden under `/bestellung`; a spacer keeps the footer clear; the cart is
61
+ loaded on the client, so the bar never renders on the server. Adding a
62
+ product pops the bar (`--animate-cart-pop` in `main.css`, re-triggered
63
+ by re-keying the button) and shows "2× Pizza Salami hinzugefügt" for
64
+ 1.8 s before the count and subtotal return; the header cart badge pops
65
+ as well. This replaces the add-to-cart toast: `useAddToCart` now emits
66
+ `triggerCartItemAdded(product, quantity)` (`useProductEvents`,
67
+ `onCartItemAdded`) instead of calling `useToast`.
68
+ - Listing and search routes add `available` to the projection.
69
+ - `AddToWishlist.vue` takes `size` and `variant` and an `aria-label`.
70
+ - Category listing, search page and `Product/Category.vue` render two
71
+ columns from `xl`; `CardSkeleton.vue` follows the new anatomy.
72
+ - The e2e helper opens the quick view from the card, checks the URL
73
+ parameter, sets the quantity and adds from the drawer.
74
+
75
+ `productHasOptions` (variants or cross-sellings) from the first iteration
76
+ is gone with the direct add-to-cart; the listing projection no longer
77
+ loads cross-sellings.
78
+
79
+ ## Verification
80
+
81
+ - Production build with the La Fattoria API: tapping a pizza card sets
82
+ `?produkt=22` and opens the sheet with 34 extras chips and the "Ohne"
83
+ chip; one extra plus quantity 2 puts 17,00 € into the cart and the card
84
+ shows "2× im Warenkorb"; the back button closes the sheet;
85
+ `/c/Pizza/?produkt=30` opens the side panel on desktop directly; the
86
+ search page opens it from a result. A drink without extras shows only
87
+ the quantity and the button. After adding, the cart bar reads
88
+ "2 Artikel · 7,00 €", opens the cart drawer, and is absent on
89
+ `/bestellung/warenkorb` and at 1280 px. Screenshots mobile light/dark and desktop
90
+ reviewed, no page errors.
91
+ - Unit tests, Prettier, ESLint, typecheck and build pass. The unit run
92
+ still exits 1 because of #323.
93
+ - Lighthouse (first iteration, still valid as an upper bound: the card
94
+ now hydrates fewer components): within the run-to-run spread of `main`
95
+ on this machine; CDP CPU profiles of both builds equal within 5 %.
96
+
97
+ ## Follow-ups (not in this issue)
98
+
99
+ - The quick view URL only resolves products of the current listing; a
100
+ `?produkt=` on a page that does not list the product is ignored.
@@ -0,0 +1,64 @@
1
+ # Issue #327: Home page hero and top sellers
2
+
3
+ As of 2026-09-12, branch `feature/327-home-hero` (stacked on
4
+ `feature/325-product-card`, it uses the product quick view).
5
+
6
+ ## Decision
7
+
8
+ Canvas "Startseite Hero"
9
+ (https://claude.ai/code/artifact/a17d8c92-1897-467b-82b3-47155fe6f0f2):
10
+ A (order hero, photo with gradient, one action), B (compact banner with
11
+ button, top sellers and category tiles first), C (light editorial with the
12
+ photo as a card). Chosen: **A**, full-bleed (a rounded banner and a
13
+ flatpay.com-style near-full-height hero were tried and dropped), plus the
14
+ top sellers as a horizontal scroller.
15
+
16
+ ## Changes
17
+
18
+ - `Hero.vue`: full-bleed photo/video (poster preload and the ≥768 px video
19
+ rule of #273 unchanged) with a bottom-to-top gradient
20
+ (`from-neutral-950/15 … to-neutral-950/85`) instead of the flat 50 %
21
+ overlay; content bottom left inside the container width: USPs as a
22
+ compact inline row, `headline` eyebrow, title, description, a live
23
+ status line and the buttons. The first link is the single primary
24
+ button (full width on phones), further links are ghost buttons in
25
+ white.
26
+ - Status line: `useStoreStatus` ("Geöffnet bis 23:00" / "Geschlossen ·
27
+ öffnet …", client only, #275) and `deliveryTime` from the plugin config;
28
+ a `min-h-6` reserves the space before hydration (CLS 0.001).
29
+ - `hero.title` in the content schema (optional, falls back to the page
30
+ title); the demo content sets "Frisch gekocht, schnell geliefert.".
31
+ Existing shop content works unchanged.
32
+ - `Topseller.vue`: rendered on the home page directly below the hero
33
+ (it was not mounted anywhere before). Horizontal snap scroller of
34
+ `Product/CardCompact.vue` (cover or placeholder, number, name, price,
35
+ plus; the card opens the quick view of #325), heading with a
36
+ "Speisekarte" link, nothing without top sellers. Loaded with
37
+ `useAsyncData`.
38
+ - `useTopSellers`: limit 8, includes for cover, properties and
39
+ availability, and the `sw-inheritance` header so variants marked as top
40
+ sellers carry the parent's name and cover (La Fattoria marks both the
41
+ parent "Cordon Bleu" and its three variants; the header type of the
42
+ generated operation lacks `sw-inheritance`, hence the `@ts-expect-error`).
43
+ - Homepage docs (`content/{de,en}/docs/8.storefront/3.content.md`)
44
+ describe `hero.title`, the status line, the link order and the top
45
+ sellers.
46
+
47
+ ## Verification
48
+
49
+ - Production build with the La Fattoria API: status "Geöffnet bis 23:00",
50
+ eight top sellers, a tap opens the quick view (`?produkt=18V`), video
51
+ only at 1280 px; screenshots mobile light/dark and desktop reviewed, no
52
+ page errors.
53
+ - Lighthouse mobile on `/`: the LCP element is still the poster image,
54
+ CLS 0.001.
55
+ - Unit tests (`Hero.test.ts`, `useTopSellers.test.ts` unchanged and
56
+ green), Prettier, ESLint, typecheck and build pass; the unit run still
57
+ exits 1 because of #323.
58
+
59
+ ## Follow-ups
60
+
61
+ - Products without a cover show a placeholder in the top seller row; a
62
+ category icon per product would need the category association.
63
+ - The USP row still comes from `hero.usps`; a dedicated rating field
64
+ (value, count, link) would render the Google rating with stars.
@@ -0,0 +1,32 @@
1
+ # Demo banner
2
+
3
+ Date: 2026-09-13. Branch `feature/demo-banner`.
4
+
5
+ ## Goal
6
+
7
+ Demo shops in `demos/` look like real shops. A prospect (or a visitor who
8
+ finds the demo URL) must not mistake them for a live shop, so the
9
+ storefront shows a notice above the header when the feature flag
10
+ `shopBite.feature.demoBanner` (`NUXT_PUBLIC_SHOP_BITE_FEATURE_DEMO_BANNER`)
11
+ is set.
12
+
13
+ ## Implementation
14
+
15
+ - `components/DemoBanner.vue` renders Nuxt UI's `UBanner` (`color="warning"`)
16
+ with a fixed German notice. It has no `close` and no `id`, so it cannot be
17
+ dismissed and nothing is persisted in `localStorage`.
18
+ - `app.vue` mounts it as `LazyDemoBanner v-if="shopBite.feature.demoBanner"`
19
+ above `Header`, so real shops do not ship the `UBanner` chunk (#314). The
20
+ banner is part of the SSR HTML and scrolls away; `UHeader` stays sticky.
21
+ - `UBanner` is found by `ui.experimental.componentDetection` because the
22
+ component file lives in the project layer (#319).
23
+ - Both demo shops set `runtimeConfig.public.shopBite.feature.demoBanner: true`
24
+ in their `nuxt.config.ts`. They consume the published `@shopbite-de/storefront`
25
+ package, so the banner appears there after the next release.
26
+
27
+ ## Verified
28
+
29
+ - `pnpm vitest run test/nuxt/DemoBanner.test.ts`, `pnpm eslint`, `pnpm typecheck`.
30
+ - `NUXT_PUBLIC_SHOP_BITE_FEATURE_DEMO_BANNER=true pnpm dev`: the notice is in
31
+ the server-rendered HTML of `/` before the header; without the flag it is
32
+ absent.
@@ -0,0 +1,46 @@
1
+ # Issue #332: Information cards on the home page
2
+
3
+ As of 2026-09-13, branch `feature/332-home-info` (from `main`).
4
+
5
+ ## Decision
6
+
7
+ Canvas "Alle Informationen"
8
+ (https://claude.ai/code/artifact/ed95c1eb-e63b-4692-9e7d-b09340a22f4d):
9
+ A (three cards with a bold lead, detail text and one action) vs. B
10
+ (compact three-row list with expandable details). Chosen: **A**.
11
+
12
+ ## Changes
13
+
14
+ - `Feature/Card.vue`: tinted icon, category label (`title`), bold lead,
15
+ detail (`description`), optional action (`link`; a `tel:` target is a
16
+ subtle button with a phone icon, anything else a text link with an
17
+ arrow). `kind: hours` fills the lead with today's intervals
18
+ (`formatTodayHours` in `app/utils/openingHours.ts`, unit-tested) and
19
+ shows the open/closed status from `useStoreStatus`; `kind: delivery`
20
+ uses `deliveryTime` from the plugin config. Both live parts are
21
+ `ClientOnly` with reserved height, like `Footer/StoreStatus.vue` (#275):
22
+ business hours load on the client and the browser's clock decides.
23
+ - `Features.vue`: `UPageSection` with a 1/2/3-column grid of cards instead
24
+ of the `features` prop; the decorative blur blobs sit behind the cards
25
+ (`-z-10`, they were above them before).
26
+ - `content.config.ts`: optional `kind`, `lead` and `link` on the feature
27
+ schema (also available to the Mittagstisch section, which ignores
28
+ them); existing content renders as before, only as cards.
29
+ - `Footer/Contact.vue`: `id="oeffnungszeiten"` on the opening hours block
30
+ so the hours card can link to it.
31
+ - Demo content: the three entries carry `kind`, the hours description
32
+ keeps only the exceptions (Saturday, closed Tuesday), the reservation
33
+ card gets a call button.
34
+ - Homepage docs (`content/{de,en}/docs/8.storefront/3.content.md`,
35
+ branch `docs/storefront-info-cards` stacked on
36
+ `docs/storefront-hero-title`).
37
+
38
+ ## Verification
39
+
40
+ - Production build with the La Fattoria API: leads "Heute 11:30–14:30
41
+ und 17:30–23:00", "In ca. 30 Minuten bei dir", "Tisch nur telefonisch";
42
+ status "Geöffnet bis 14:30"; the hours link scrolls to
43
+ `#oeffnungszeiten`; no page errors and no hydration warnings on 390 px
44
+ light/dark and 1280 px.
45
+ - Unit tests (3 new for `formatTodayHours`), Prettier, ESLint, typecheck
46
+ and build pass; the unit run still exits 1 because of #323.
@@ -0,0 +1,65 @@
1
+ # Quick view: flicker on open and on variant switch
2
+
3
+ Date: 2026-09-13. Branch `fix/quick-view-flicker`.
4
+
5
+ ## Symptom
6
+
7
+ The product quick view drawer (`Product/QuickView.vue`, #325) flickers when
8
+ it opens for the first time and again whenever a variant is switched.
9
+
10
+ ## Cause
11
+
12
+ `Product/Detail.vue` loaded its data in two stages. `useProductDetail`
13
+ fetched `/api/product/<id>` and showed a skeleton; once that arrived,
14
+ `Product/CrossSelling.vue` mounted and fetched
15
+ `/api/product/<id>/cross-selling` behind a second skeleton. The drawer
16
+ body therefore rendered three times: skeleton, options + extras skeleton,
17
+ everything. On phones the bottom sheet takes its height from the content,
18
+ so it grew in three steps while sliding in.
19
+
20
+ Switching a variant emitted the variant to `Detail.vue`, which passed the
21
+ new product to `CrossSelling.vue`; its `useFetch` key changed to the
22
+ variant id, `pending` went back to `true` and the extras collapsed into
23
+ the skeleton until the (identical) extras came back.
24
+
25
+ Measured with `scripts/perf/quick-view-layout.mjs`, which logs the drawer body per animation
26
+ frame against the production build with the La Fattoria data (product
27
+ 18V "Insalata di Pollo", two variants, 12 extras):
28
+
29
+ | Viewport | Open: body height steps | Variant switch: steps |
30
+ | -------- | ---------------------------- | --------------------- |
31
+ | Mobile | 271 px → 464 px → 916 px | 916 → 464 → 916 px |
32
+ | Desktop | 3 renders (fixed-height panel) | 2 renders |
33
+
34
+ ## Fix
35
+
36
+ - `useProductDetail` requests the cross-selling together with the product
37
+ detail, both keyed by the listing product id, and exposes one `pending`
38
+ that covers both. The body renders once, after both responses.
39
+ - The cross-selling stays keyed by the listing product across variant
40
+ switches. Shopware resolves the cross-selling of a variant to its
41
+ parent's (checked against the live Store API: variant and parent of 18V
42
+ return the same "Extras" list), so nothing is reloaded and the extras
43
+ keep their place and selection.
44
+ - `Product/CrossSelling.vue` takes the mapped associations as a prop and
45
+ no longer fetches or shows a skeleton.
46
+ - The skeleton in `Detail.vue` has the shape of the loaded body (a select,
47
+ a row of extras, a row of ingredients), so the single swap moves less.
48
+
49
+ After the fix (same script):
50
+
51
+ | Viewport | Open: body height steps | Variant switch: steps |
52
+ | -------- | ----------------------- | --------------------- |
53
+ | Mobile | 447 px → 916 px | none (916 px) |
54
+ | Desktop | 2 renders | none |
55
+
56
+ ## Not changed
57
+
58
+ - The variant request (`/api/product/variant`) still runs after the select
59
+ changes; the options, price and name update when it returns, without a
60
+ loading state. That is a content update, not a re-layout.
61
+ - The first detail request starts about half a second after the tap,
62
+ because the drawer chunk is created on first use (#314) and loads
63
+ before `Detail.vue` mounts. Prefetching the detail from
64
+ `useProductQuickView.show()` would hide that, but it is a separate
65
+ change.
@@ -0,0 +1,105 @@
1
+ # Cart upsell row
2
+
3
+ Date: 2026-09-14. Branch `feature/338-cart-upsell`, issue #338.
4
+
5
+ ## Goal
6
+
7
+ Restaurants miss easy add-on sales (a dessert or a drink) before checkout.
8
+ Shop owners flag suggestion products with the boolean custom field
9
+ `shopbite_cart_upsell` (shopbite-de/shopware-plugin#18). "Cross-selling"
10
+ already means the extras of a product in this codebase, so the feature is
11
+ called upsell.
12
+
13
+ ## Placement
14
+
15
+ The issue planned the row in the cart drawer. A first version there worked
16
+ (verified live), but Lirim decided to show it only on the order confirmation
17
+ step `/bestellung/bestaetigen`, inside the cart card between the line items
18
+ and shipping/total. The drawer and `/bestellung/warenkorb` render no row.
19
+
20
+ The confirmation step lists the line items without quantity input and delete
21
+ button, and that stays: a suggestion added by mistake is removed in the cart.
22
+
23
+ ## Implementation
24
+
25
+ - `useCartUpsell`: `loadUpsellProducts()` reads up to 6 flagged products
26
+ (`readProduct post /product`, `sw-inheritance: true`, sorted by name, only
27
+ the fields the card needs). `addUpsellProduct()` adds a plain product line
28
+ item with quantity 1 through `useCartMutations().addLineItems` (queue, lock
29
+ retry, error toast), then pops the cart badge and tracks
30
+ `Cart / UpsellAdd / <productNumber> / 1`. `isAdding(id)` covers the time the
31
+ write is queued; a second click in that time is ignored.
32
+ - `Cart/Upsell.vue`: products already in the cart (plain or as a container
33
+ child, `lineItemHoldsProduct`) are hidden, so a card disappears once its
34
+ product is added; without cards nothing is rendered.
35
+ - `Cart/QuickView.vue` renders it lazily behind the `withUpsell` prop, which
36
+ only `Checkout/Summary.vue` sets.
37
+ - `useAsyncData(…, { server: false })`: the confirmation step is rendered on
38
+ the server, but `app.vue` loads the cart in `onMounted`. Filtering on the
39
+ server would render cards that the browser hides, so the suggestions are
40
+ loaded in the browser and the row appears after the request.
41
+
42
+ ## Design
43
+
44
+ Iterated with Lirim on screenshots of the demo shop:
45
+
46
+ - The row sits in a tinted box (`bg-primary/5`, primary ring) with a sparkles
47
+ icon, the heading "Dazu passt" and the hint "Mit einem Klick zur Bestellung
48
+ hinzufügen". Small tiles without a frame looked like line items.
49
+ - One suggestion spans the full width of the card; with several, the cards are
50
+ 85 % wide in a horizontal snap scroller, so the next one peeks in (thin
51
+ scrollbar for mouse users).
52
+ - Card: square cover flush on the left (112 px, 144 px from `sm`, placeholder
53
+ icon without cover), number and name, price and an "Hinzufügen" button at
54
+ the bottom. Below `sm` the button shows only the plus icon, the label does
55
+ not fit next to the price. The cover is decorative (`alt=""`).
56
+
57
+ ## Variant filter (differs from the issue)
58
+
59
+ The issue excluded variant parents with `childCount = 0`. That also excludes
60
+ every variant: Shopware's `ProductIndexer` runs the `ChildCountUpdater` only
61
+ for main products (`filterVariants`: `parent_id IS NULL`), and
62
+ `product.child_count` is a nullable column without default
63
+ (`Migration1562841035AddProductChildCount`). Variants keep `NULL`; core's
64
+ `CheapestPriceUpdater` checks `child_count = 0 OR parent_id IS NOT NULL` for
65
+ the same reason. The filter is therefore `childCount = 0 OR childCount = null`,
66
+ which still drops parents (`> 0`) but keeps flagged variants and the variants
67
+ of a flagged parent (inheritance), as the plugin's help text describes.
68
+
69
+ With inheritance a variant shows the parent's name without its options, so two
70
+ flagged variants of one product look alike in the row.
71
+
72
+ ## Verified
73
+
74
+ - `pnpm typecheck` (0 errors), `pnpm prettier`, `pnpm eslint`.
75
+ - `pnpm test:unit` without the local Matomo variables, as in CI. With Matomo
76
+ configured in `.env` the run reports the three unhandled rejections of #323,
77
+ which are unrelated.
78
+ - `pnpm build`: `components/Cart/Upsell.vue` is its own dynamic chunk; the
79
+ heading and the custom field name only occur in that chunk.
80
+ - Demo Store API (shopware.shopbite.de, plugin field deployed, Tiramisu
81
+ flagged): the request returns exactly `LF-144 Tiramisu` with price and
82
+ cover. None of the 66 variants matches `childCount = 0` although the API
83
+ serializes their child count as `0`, which confirms the variant filter
84
+ finding above.
85
+ - Production build against the demo backend, Playwright on 1280×800 and
86
+ 390×844 with a guest checkout (script not committed, order not placed):
87
+ - drawer and `/bestellung/warenkorb`: no row, the upsell chunk is not
88
+ requested;
89
+ - `/bestellung/bestaetigen`: the server HTML has no row; after hydration the
90
+ Tiramisu card sits inside the cart card below the line item and above the
91
+ total; the request carries `sw-inheritance: true` and the filter above;
92
+ - plus: total 9,50 € → 15,00 €, badge 1 → 2, the row disappears, Tiramisu
93
+ is a line item; Matomo sends `Cart / UpsellAdd / LF-144 / 1` (tracker
94
+ hits were aborted in the check);
95
+ - layout with three suggestions checked by extending the API response in
96
+ the browser.
97
+ - Local guest registration needs a `storefrontUrl` that is a domain of the
98
+ sales channel; the app sends the page origin, so the check replaced
99
+ `http://localhost:3338` with `http://localhost:3000`.
100
+
101
+ ## Found along the way
102
+
103
+ Direct loads of `/bestellung/zahlung-versand` and `/bestellung/bestaetigen`
104
+ log "Hydration completed but contains mismatches." and the stepper highlights
105
+ "Warenkorb" on the last step, also without the upsell row: #339.
@@ -0,0 +1,57 @@
1
+ # Demo shop not indexable
2
+
3
+ Date: 2026-09-14. Branch `feature/demo-noindex`.
4
+
5
+ ## Goal
6
+
7
+ This repository is the base layer of every production shop, but deployed as
8
+ the app it only runs as the ShopBite demo shop (demo.shopbite.de). The demo
9
+ must not be crawled. Before the change the live demo answered with
10
+ `X-Robots-Tag: index, follow, …` and an indexable robots.txt with a sitemap.
11
+
12
+ ## Decision
13
+
14
+ The demo deployment (Dokploy) sets `NUXT_SITE_INDEXABLE=false`. Nothing in
15
+ `nuxt.config.ts`:
16
+
17
+ - An unconditional `site: { indexable: false }` would be merged into every shop
18
+ project. Pizzeria La Fattoria does not set `site.indexable`, so it would drop
19
+ out of search engines with the next release.
20
+ - A config flag limited to this repository as the root project (comparing
21
+ `process.cwd()` with the config directory) worked, but was rejected as too
22
+ much machinery for one deployment setting.
23
+ - nuxt-site-config reads `NUXT_SITE_INDEXABLE` at runtime (priority `runtime`),
24
+ so no rebuild is needed. The trade-off: the setting lives in the deployment,
25
+ not in the repository; without it the demo is indexable again.
26
+
27
+ With `indexable: false`, @nuxtjs/robots serves `Disallow: /` in robots.txt (no
28
+ sitemap entry), `X-Robots-Tag: noindex, nofollow` and the robots meta tag.
29
+
30
+ ## Category pages
31
+
32
+ `useCategorySeo` set `robots: "index,follow"` for active categories. The page
33
+ meta replaced the module's tag, so category pages rendered `index,follow` next
34
+ to a noindex header on a non-indexable site, and production shops lost the
35
+ module's `max-image-preview:large` rule. The composable now only sets
36
+ `noindex,nofollow` for inactive categories and leaves the rest to the module.
37
+
38
+ ## Verified
39
+
40
+ Production build with La Fattoria's Store API, `node .output/server/index.mjs`:
41
+
42
+ - `NUXT_SITE_INDEXABLE=false`: robots.txt `Disallow: /`; `/`, `/c/Pizza/` and
43
+ `/bestellung/warenkorb` send `X-Robots-Tag: noindex, nofollow` and render
44
+ `<meta name="robots" content="noindex, nofollow">`.
45
+ - Without the variable (production shop): robots.txt with the disallow list
46
+ and sitemap, `/` and `/c/Pizza/` `index, follow, max-image-preview:large, …`
47
+ in header and meta, `/bestellung/warenkorb` keeps its page-level
48
+ `noindex, nofollow`.
49
+ - `pnpm vitest run test/unit/useCategorySeo.spec.ts`, ESLint, Prettier,
50
+ `pnpm typecheck`.
51
+
52
+ ## After merging
53
+
54
+ Set `NUXT_SITE_INDEXABLE=false` in the Dokploy environment of demo.shopbite.de
55
+ and redeploy. Pages Google has already indexed disappear slowly because
56
+ `Disallow: /` stops crawling before the noindex is seen; use the removal tool
57
+ in Google Search Console for a faster cleanup.
package/node.dockerfile CHANGED
@@ -14,8 +14,11 @@ WORKDIR /app
14
14
 
15
15
  RUN corepack enable && corepack prepare pnpm@${PNPM_VERSION} --activate
16
16
 
17
- # Copy manifests first so dependency layer is cached independently from source changes
18
- COPY package.json pnpm-lock.yaml .npmrc ./
17
+ # Copy manifests first so dependency layer is cached independently from source changes.
18
+ # pnpm-workspace.yaml (allowBuilds, patchedDependencies) and patches/ are part of the
19
+ # lockfile contract; without them `--frozen-lockfile` fails.
20
+ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
21
+ COPY patches ./patches
19
22
  RUN pnpm install --frozen-lockfile --prefer-offline
20
23
 
21
24
  COPY . .