@shopbite-de/storefront 1.28.0 → 1.30.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 (59) hide show
  1. package/.env.example +9 -0
  2. package/CLAUDE.md +4 -1
  3. package/README.md +14 -14
  4. package/app/components/Category/Listing.vue +1 -0
  5. package/app/components/Home/Faq.vue +58 -0
  6. package/app/components/Home/Highlights.vue +69 -0
  7. package/app/components/Home/MenuCategories.vue +148 -0
  8. package/app/components/Product/Card.vue +46 -10
  9. package/app/components/Product/CardDietBadges.vue +7 -13
  10. package/app/components/Product/CrossSelling.vue +18 -2
  11. package/app/components/Product/DeselectIngredient.vue +10 -3
  12. package/app/components/Product/Detail.vue +33 -2
  13. package/app/components/Product/QuickView.vue +20 -1
  14. package/app/composables/useMenuSectionSchema.ts +21 -8
  15. package/app/composables/useProductCrossSelling.ts +1 -0
  16. package/app/composables/useProductQuickView.ts +151 -9
  17. package/app/composables/useRestaurantSchema.ts +40 -3
  18. package/app/composables/useShareLink.ts +47 -0
  19. package/app/composables/useTopSellers.ts +4 -1
  20. package/app/pages/index.vue +19 -11
  21. package/app/types/Association.d.ts +2 -0
  22. package/app/utils/product.ts +28 -0
  23. package/app/utils/productUrl.ts +87 -0
  24. package/app/utils/schema.ts +82 -1
  25. package/app/utils/seo.ts +13 -0
  26. package/content/index.yml +25 -4
  27. package/content.config.ts +28 -17
  28. package/docs/notes/2026-09-23-issue-388-home-sections.md +45 -0
  29. package/docs/notes/2026-09-25-dependency-update.md +55 -0
  30. package/docs/notes/2026-10-05-issue-289-product-deep-links.md +28 -0
  31. package/docs/notes/2026-10-05-issue-400-menu-item-ingredients-diet.md +18 -0
  32. package/docs/notes/2026-10-05-issue-401-restaurant-schema-ordering.md +21 -0
  33. package/docs/notes/2026-10-05-issue-402-llms-txt.md +17 -0
  34. package/docs/notes/2026-10-05-issue-403-ai-crawlers.md +15 -0
  35. package/docs/notes/2026-10-05-issue-404-faq.md +21 -0
  36. package/docs/notes/2026-10-05-issue-411-quick-view-share.md +22 -0
  37. package/nuxt.config.ts +20 -1
  38. package/package.json +9 -10
  39. package/pnpm-workspace.yaml +0 -1
  40. package/server/api/listing/[categoryId].get.ts +3 -0
  41. package/server/api/product/[productId]/cross-selling.get.ts +2 -1
  42. package/server/plugins/ai-crawlers.ts +27 -0
  43. package/server/routes/llms.txt.ts +213 -0
  44. package/server/utils/aiCrawlers.ts +79 -0
  45. package/server/utils/llmsTxt.ts +207 -0
  46. package/test/nuxt/HomeFaq.test.ts +34 -0
  47. package/test/nuxt/HomeMenuCategories.test.ts +94 -0
  48. package/test/nuxt/ProductCrossSelling.test.ts +20 -0
  49. package/test/nuxt/ProductDeselectIngredient.test.ts +34 -0
  50. package/test/nuxt/useShareLink.test.ts +76 -0
  51. package/test/unit/aiCrawlers.spec.ts +48 -0
  52. package/test/unit/llmsTxt.spec.ts +149 -0
  53. package/test/unit/product.spec.ts +20 -0
  54. package/test/unit/productUrl.spec.ts +90 -0
  55. package/test/unit/schema.spec.ts +123 -0
  56. package/test/unit/seo.spec.ts +13 -0
  57. package/app/components/Food/Marquee.vue +0 -35
  58. package/app/components/Food/MarqueeItem.vue +0 -77
  59. package/app/components/Topseller.vue +0 -53
@@ -33,6 +33,12 @@ export type SiteInfo = {
33
33
  cuisine?: string;
34
34
  priceRange?: string;
35
35
  googleBusinessProfileUrl?: string;
36
+ /** Places the shop delivers to, e.g. "63179 Obertshausen" (#401). */
37
+ deliveryAreas?: string[];
38
+ /** Nuxt parses numeric env values into numbers. */
39
+ geo?: { latitude?: number | string; longitude?: number | string };
40
+ /** `true`/`false` or a text such as "Nur telefonisch". */
41
+ acceptsReservations?: boolean | string;
36
42
  address?: {
37
43
  street?: string;
38
44
  postalCode?: string;
@@ -49,11 +55,26 @@ export type MenuSectionInfo = {
49
55
 
50
56
  export type MenuItemInfo = {
51
57
  name: string;
58
+ /** The quick view deep link of the product (#289). */
59
+ url?: string;
52
60
  description?: string;
61
+ /** Main ingredients, the description when the product has none (#400). */
62
+ ingredients?: string[];
63
+ diets?: ("vegetarian" | "vegan")[];
53
64
  image?: string;
54
65
  price?: number;
55
66
  };
56
67
 
68
+ // Vegan dishes are vegetarian too, so they carry both diets.
69
+ const DIET_URLS = {
70
+ vegetarian: ["https://schema.org/VegetarianDiet"],
71
+ vegan: ["https://schema.org/VegetarianDiet", "https://schema.org/VeganDiet"],
72
+ } as const;
73
+
74
+ function buildSuitableForDiet(diets: MenuItemInfo["diets"]) {
75
+ return [...new Set((diets ?? []).flatMap((diet) => DIET_URLS[diet]))];
76
+ }
77
+
57
78
  const formatTime = (time: string) => time.slice(0, 5);
58
79
 
59
80
  /**
@@ -115,6 +136,39 @@ function buildAddress(address: SiteInfo["address"]) {
115
136
  });
116
137
  }
117
138
 
139
+ function buildGeo(geo: SiteInfo["geo"]) {
140
+ const latitude = Number(geo?.latitude || NaN);
141
+ const longitude = Number(geo?.longitude || NaN);
142
+ if (Number.isNaN(latitude) || Number.isNaN(longitude)) return undefined;
143
+ return { "@type": "GeoCoordinates", latitude, longitude };
144
+ }
145
+
146
+ /**
147
+ * Online ordering as an `OrderAction` on the shop (#401): pickup when the
148
+ * shop has an address, own delivery when delivery areas are configured.
149
+ */
150
+ function buildOrderAction(orderUrl: string | undefined, site: SiteInfo) {
151
+ if (!orderUrl) return undefined;
152
+ const deliveryMethod = [
153
+ ...(site.address?.street ? ["https://schema.org/OnSitePickup"] : []),
154
+ ...(site.deliveryAreas?.length
155
+ ? ["http://purl.org/goodrelations/v1#DeliveryModeOwnFleet"]
156
+ : []),
157
+ ];
158
+ return compact({
159
+ "@type": "OrderAction",
160
+ target: {
161
+ "@type": "EntryPoint",
162
+ urlTemplate: orderUrl,
163
+ actionPlatform: [
164
+ "https://schema.org/DesktopWebPlatform",
165
+ "https://schema.org/MobileWebPlatform",
166
+ ],
167
+ },
168
+ deliveryMethod,
169
+ });
170
+ }
171
+
118
172
  /**
119
173
  * The shop as a `Restaurant` (a `LocalBusiness`) with its menu sections.
120
174
  * Empty values are left out, so a shop without address or phone still gets a
@@ -126,6 +180,10 @@ export function buildRestaurantSchema(input: {
126
180
  holidays?: HolidayLike[];
127
181
  menuUrl?: string;
128
182
  menuSections?: MenuSectionInfo[];
183
+ /** Set only when online ordering is enabled. */
184
+ orderUrl?: string;
185
+ paymentMethods?: string[];
186
+ currency?: string;
129
187
  }) {
130
188
  const { site } = input;
131
189
  const openingHours = buildOpeningHoursSpecification(
@@ -148,6 +206,12 @@ export function buildRestaurantSchema(input: {
148
206
  servesCuisine: site.cuisine,
149
207
  priceRange: site.priceRange,
150
208
  address: buildAddress(site.address),
209
+ geo: buildGeo(site.geo),
210
+ areaServed: site.deliveryAreas,
211
+ acceptsReservations: site.acceptsReservations,
212
+ paymentAccepted: input.paymentMethods?.join(", "),
213
+ currenciesAccepted: input.currency,
214
+ potentialAction: buildOrderAction(input.orderUrl, site),
151
215
  sameAs: site.googleBusinessProfileUrl
152
216
  ? [site.googleBusinessProfileUrl]
153
217
  : undefined,
@@ -204,8 +268,10 @@ export function buildMenuSectionSchema(input: {
204
268
  compact({
205
269
  "@type": "MenuItem",
206
270
  name: item.name,
207
- description: item.description,
271
+ url: item.url,
272
+ description: item.description || item.ingredients?.join(", "),
208
273
  image: item.image,
274
+ suitableForDiet: buildSuitableForDiet(item.diets),
209
275
  offers:
210
276
  item.price !== undefined
211
277
  ? {
@@ -222,6 +288,21 @@ export function buildMenuSectionSchema(input: {
222
288
  });
223
289
  }
224
290
 
291
+ /** Questions and answers as a `FAQPage` (#404). */
292
+ export function buildFaqPageSchema(
293
+ items: { question: string; answer: string }[],
294
+ ) {
295
+ return {
296
+ "@context": "https://schema.org",
297
+ "@type": "FAQPage",
298
+ mainEntity: items.map((item) => ({
299
+ "@type": "Question",
300
+ name: item.question,
301
+ acceptedAnswer: { "@type": "Answer", text: item.answer },
302
+ })),
303
+ };
304
+ }
305
+
225
306
  /** Drops `undefined`, empty strings and empty arrays. */
226
307
  function compact<T extends Record<string, unknown>>(object: T): T {
227
308
  return Object.fromEntries(
package/app/utils/seo.ts CHANGED
@@ -54,3 +54,16 @@ export function buildHomeDescription({
54
54
  }
55
55
  return undefined;
56
56
  }
57
+
58
+ /**
59
+ * A comma-separated env value as a list, e.g. the delivery areas (#401).
60
+ * Nuxt parses a JSON array value already.
61
+ */
62
+ export function splitList(value: unknown): string[] {
63
+ if (Array.isArray(value)) return value.map(String);
64
+ if (typeof value !== "string") return [];
65
+ return value
66
+ .split(",")
67
+ .map((entry) => entry.trim())
68
+ .filter(Boolean);
69
+ }
package/content/index.yml CHANGED
@@ -58,11 +58,14 @@ features:
58
58
  link:
59
59
  label: 06104 77777 anrufen
60
60
  to: "tel:+490610477777"
61
- marquee:
62
- title: Das lieben unsere Kunden
63
- description: Kundenbilder
61
+ menu:
64
62
  headline: SHOPBITE
65
- items:
63
+ title: Unsere Speisekarte
64
+ description: Pizza, Pasta, Fleisch und Fisch, frisch aus der Küche.
65
+ highlights:
66
+ headline: SHOPBITE
67
+ title: Beliebt bei unseren Gästen
68
+ description: Die Gerichte, die am häufigsten bestellt werden.
66
69
  gallery:
67
70
  title: Restaurant
68
71
  description: Genießen Sie leckeres Essen in einem rustikalen und gemütlichen Ambiente.
@@ -111,6 +114,24 @@ mittagstisch:
111
114
  color: neutral
112
115
  variant: subtle
113
116
  trailingIcon: i-lucide-phone
117
+ faq:
118
+ headline: SHOPBITE
119
+ title: Häufige Fragen
120
+ items:
121
+ - question: Wohin liefern Sie?
122
+ answer: Wir liefern nach 63179 Obertshausen (Obertshausen und Hausen) und nach 63165 Mühlheim-Lämmerspiel.
123
+ - question: Was kostet die Lieferung?
124
+ answer: Ab 15 € Bestellwert liefern wir kostenlos. Darunter berechnen wir eine Liefergebühr von 2 €.
125
+ - question: Wie lange dauert die Lieferung?
126
+ answer: Etwa 30 Minuten. Bei der Bestellung können Sie auch eine spätere Lieferzeit wählen.
127
+ - question: Kann ich meine Bestellung abholen?
128
+ answer: Ja, Sie können Ihre Bestellung auch bei uns in der Kantstraße 6 in Obertshausen abholen.
129
+ - question: Wie kann ich bezahlen?
130
+ answer: Bei Lieferung bar, bei Abholung bar oder mit EC-Karte.
131
+ - question: Gibt es vegetarische und vegane Gerichte?
132
+ answer: Ja, vegetarische und vegane Gerichte sind auf der Speisekarte gekennzeichnet.
133
+ - question: Kann ich einen Tisch reservieren?
134
+ answer: Tischreservierungen nehmen wir nur telefonisch entgegen.
114
135
  cta:
115
136
  title: Jetzt bestellen!
116
137
  description: Genieße die italienische Küche, frisch zubereitet und direkt zu dir geliefert oder vor Ort genießen.
package/content.config.ts CHANGED
@@ -84,23 +84,34 @@ export default defineContentConfig({
84
84
  features: createBaseSchema().extend({
85
85
  features: z.array(createFeatureSchema()),
86
86
  }),
87
- marquee: createBaseSchema().extend({
88
- items: z.array(
89
- z.object({
90
- image: z.string().nonempty(),
91
- productId: z.string().nonempty(),
92
- }),
93
- ),
94
- }),
95
- gallery: createBaseSchema().extend({
96
- images: z.array(
97
- z.object({
98
- image: z.string().nonempty(),
99
- alt: z.string().nonempty(),
100
- }),
101
- ),
102
- links: z.array(createLinkSchema()),
103
- }),
87
+ // Headings of the menu tiles and the top seller grid below the hero
88
+ // (#388); the components carry German defaults.
89
+ menu: createBaseSchema().partial().optional(),
90
+ highlights: createBaseSchema().partial().optional(),
91
+ // Questions and answers above the call to action, also emitted as
92
+ // FAQPage JSON-LD and in /llms.txt (#404). Plain text answers.
93
+ faq: createBaseSchema()
94
+ .partial()
95
+ .extend({
96
+ items: z.array(
97
+ z.object({
98
+ question: z.string().nonempty(),
99
+ answer: z.string().nonempty(),
100
+ }),
101
+ ),
102
+ })
103
+ .optional(),
104
+ gallery: createBaseSchema()
105
+ .extend({
106
+ images: z.array(
107
+ z.object({
108
+ image: z.string().nonempty(),
109
+ alt: z.string().nonempty(),
110
+ }),
111
+ ),
112
+ links: z.array(createLinkSchema()),
113
+ })
114
+ .optional(),
104
115
  mittagstisch: createBaseSchema().extend({
105
116
  reverse: z.boolean().optional(),
106
117
  orientation: createEnum(["horizontal", "vertical"]).optional(),
@@ -0,0 +1,45 @@
1
+ # Issue #388: Menu tiles and a dish grid instead of the product sliders
2
+
3
+ As of 2026-09-23, branch `feat/388-home-sections`.
4
+
5
+ ## Why
6
+
7
+ The home page below the hero was two product sliders in a row with the
8
+ same pictures: the top seller scroller (`Topseller.vue`, #327) and the
9
+ marquee (`Food/Marquee.vue`, one product request per item while rendering,
10
+ hand-maintained `productId`/`image` pairs in the content). Visitors could
11
+ not get from the hero into the menu. The automatically generated lead
12
+ demos (`leads/demo_create.py` in the monorepo) made the sameness obvious.
13
+
14
+ ## Changes
15
+
16
+ - `Home/MenuCategories.vue`: the children of the menu root (`menuCategoryId`,
17
+ else the navigation root) as tiles with the category photo
18
+ (`category.media`, set on the category in the Shopware admin) or the
19
+ section icon (`shopbite_category_icon`) on the brand gradient, name and
20
+ arrow, linking to the listing. `readNavigation` with `depth: 1` and an
21
+ `includes` projection as POST body (#312). Up to `limit` (8) tiles, then
22
+ one "Alle Kategorien" tile. Renders nothing without sections.
23
+ - `Home/Highlights.vue`: the top sellers from `useTopSellers` as a grid of
24
+ the regular `ProductCard` (quick view via `useProductQuickView`, #325),
25
+ 1/2/4 columns. Renders nothing without top sellers.
26
+ - `pages/index.vue`: hero, menu tiles, highlights, features, optional
27
+ Mittagstisch, gallery (only with images), CTA. `Topseller.vue`,
28
+ `Food/Marquee.vue` and `Food/MarqueeItem.vue` are deleted.
29
+ - Content schema: `marquee` removed, `menu` and `highlights` (headline,
30
+ title, description; all optional, German defaults in the components),
31
+ `gallery` optional. Existing `index.yml` files keep working; an old
32
+ `marquee` block is ignored by Zod.
33
+ - Homepage docs (`content/{de,en}/docs/8.storefront/3.content.md`).
34
+
35
+ ## Verification
36
+
37
+ - `HomeMenuCategories.test.ts`: tiles with photo/icon, cap and "all" tile,
38
+ empty state. Prettier, ESLint, typecheck and the unit suite pass.
39
+ - Production build against a lead demo channel (Da Piero): tiles show the
40
+ category photos, the grid the eight top sellers, quick view opens.
41
+
42
+ ## Follow-ups
43
+
44
+ - Category photos need a media on the category; `demo_create.py` sets the
45
+ first dish photo of each section, real shops set it in the admin.
@@ -0,0 +1,55 @@
1
+ # Dependency update — 2026-09-25
2
+
3
+ Branch `chore/dependency-update-2026-09-25`. Previous round:
4
+ `2026-09-21-dependency-update.md`.
5
+
6
+ ## Packages
7
+
8
+ | Package | From | To |
9
+ | ------------------------------------------------ | ------- | ------- |
10
+ | @nuxt/ui | 4.11.1 | 4.11.2 |
11
+ | dotenv | 18.0.1 | 18.0.3 |
12
+ | @typescript-eslint/eslint-plugin, parser | 8.70.0 | 8.70.1 |
13
+ | jsdom | 30.1.0 | 30.1.1 |
14
+ | prettier | 3.9.8 | 3.9.9 |
15
+ | @sentry/nuxt | 10.75.0 | removed |
16
+
17
+ Transitive packages were refreshed within their ranges (`pnpm update`).
18
+
19
+ Held back, as in the previous rounds:
20
+
21
+ - **typescript 7**: typescript-eslint 8.70.1 still declares
22
+ `typescript >=4.8.4 <6.1.0`.
23
+ - **@nuxt/devtools-kit 4**: only a beta (`4.0.0-beta.1`).
24
+
25
+ ## Sentry removed
26
+
27
+ `@sentry/nuxt` 11.0.0 is a major release (data collection and span streaming
28
+ on by default, `sendDefaultPii` replaced by `dataCollection`, orchestrion
29
+ build-time instrumentation auto-wired into the Nitro build). The storefront
30
+ only registered the module in `nuxt.config.ts`; it had no
31
+ `sentry.client.config.ts` / `sentry.server.config.ts`, no module options and
32
+ no shop uses it. Instead of migrating an unused integration, it is dropped:
33
+
34
+ - `@sentry/nuxt` removed from `package.json`, `@sentry/nuxt/module` from
35
+ `modules` in `nuxt.config.ts`, `@sentry/cli` from `allowBuilds` in
36
+ `pnpm-workspace.yaml` (the CLI was the only package needing a postinstall
37
+ build for Sentry).
38
+ - README feature table: "Analytics & monitoring" is now "Analytics" (Matomo).
39
+ - Lockfile shrinks by the whole `@sentry/*` and OpenTelemetry tree
40
+ (`pnpm-lock.yaml`: −556 lines net).
41
+ - `NUXT_PUBLIC_SENTRY_DSN` / `SENTRY_AUTH_TOKEN` in a local `.env` or in
42
+ Dokploy are now ignored and can be deleted. A shop that wants error
43
+ tracking adds `@sentry/nuxt` to its own dependencies and `modules`.
44
+
45
+ `pnpm peers check` now lists two unmet peers (`oxc-parser` and `unplugin`
46
+ for `unctx`); the `cac` peer from the previous round is gone.
47
+
48
+ ## Verification
49
+
50
+ - `pnpm eslint`, `pnpm prettier`, `pnpm typecheck` (0 errors),
51
+ `pnpm test:unit` (305 tests), `pnpm build`, `pnpm install --frozen-lockfile`
52
+ — all with pnpm 12.5.1.
53
+ - Production build against the demo backend (`node .output/server/index.mjs`
54
+ with the local `.env`): `/`, `/bestellung/warenkorb` and `/sitemap.xml`
55
+ return 200, no `sentry` string in the HTML, nothing in the server log.
@@ -0,0 +1,28 @@
1
+ # Issue #289: product deep links instead of product pages
2
+
3
+ As of 2026-10-05, branch `feature/289-product-deep-links`. Scope changed with Lirim: no product detail pages (a restaurant product is name, description, price: thin content next to the category page). The quick view deep link `/<category>/?produkt=<number>` is the product URL; its source of truth is the product SEO URL in Shopware, set by the ShopBite plugin (shopware-plugin#28).
4
+
5
+ ## Shopware SEO URL template
6
+
7
+ Lirim's template, verified on the demo (preview API and after indexing):
8
+
9
+ ```twig
10
+ {% set main = product.mainCategories|first %}{% set cat = main ? main.category : product.categories|first %}{% for p in (cat.translated.breadcrumb ?? [])|slice(1) %}{{ p }}/{% endfor %}?produkt={{ product.productNumber|url_encode|raw }}
11
+ ```
12
+
13
+ - `slice(1)` matches the demo's category template (`category.seoBreadcrumb` → `Speisekarte/Pizza/`, incl. slugs such as `Getraenke`); `slice(2)` gives `Pizza/…`, which does not exist. Shops with a prefixed category template (La Fattoria `c/…`) need the prefix: the plugin derives it.
14
+ - The product number must be `|url_encode|raw`: the SEO escaper slugifies variables, `LF-21-groß` became `LF-21-gross`, which the quick view cannot find. Encoded it is `LF-21-gro%C3%9F`, which the router decodes.
15
+ - `seoBreadcrumb`/`seoCategory` are not available in the product template; the preview API renders main products only, so variants are only visible after indexing.
16
+ - **The demo backend now runs this template** (set via Admin API for verification, both `frontend.detail.page` and `store-api.product.detail`, reindexed).
17
+
18
+ ## Implementation
19
+
20
+ - `app/utils/productUrl.ts`: `productDeepLink(product, categoryPath?)` takes the canonical product SEO URL if its query has `produkt`, otherwise category SEO URL + `?produkt=<number>`; `PRODUCT_QUICK_VIEW_PARAM` moved there.
21
+ - Listing (`server/api/listing`), top sellers and `/llms.txt` request `seoUrls` (`seo_url: seoPathInfo, isCanonical`, header `sw-include-seo-urls`).
22
+ - `MenuItem.url` in the category schema, dish links in `/llms.txt`.
23
+ - Product card: with `href`, the name is an `<a>` stretched over the card (`after:absolute after:inset-0`); the article drops `role="button"`/tabindex, the focus ring moves to `has-[a:focus-visible]`. A plain click is prevented and bubbles to the card's `select` (quick view in place, no page load); a modified click opens the link. The wishlist button got `z-10` to stay above the stretched link. Without `href` (e.g. search) the card behaves as before. Top seller cards link only when the product SEO URL is a deep link (no category known on the home page).
24
+ - `useProductQuickView`: a number that is not in the list is loaded in the browser (`readProduct`, `sw-inheritance`), and the quick view opens with it; `ProductDetail` loads the variant id, whose configurator preselects its options.
25
+
26
+ ## Verification
27
+
28
+ Production build against the demo: card `<a href>`s, `MenuItem.url` and `/llms.txt` links (fallback URLs before the template change, SEO URLs after). Playwright on mobile: card click opens the quick view without a page load; Enter on the focused link opens it; Ctrl+click opens a new tab without the quick view; the wishlist button stays clickable; `?produkt=LF-21-gro%C3%9F` opens "Pizza Margherita" with "Groß 40 cm" selected; no console errors. Card look unchanged (link inherits colour, no underline). All unit + nuxt tests, typecheck, ESLint green.
@@ -0,0 +1,18 @@
1
+ # Issue #400: ingredients and diet in the MenuItem schema
2
+
3
+ As of 2026-10-05, branch `feature/400-menu-item-ingredients-diet`. Part of the AI visibility issues #400–#404.
4
+
5
+ ## Finding
6
+
7
+ On www.pizzeria-lafattoria.de, `/c/Pizza/` carried 29 `MenuItem`s, but only 4 had a `description`: the ingredients live in the `Hauptzutaten` property group, not in the product description. No item said whether it is vegetarian or vegan. AI assistants answering "what is on it / is it vegetarian" had nothing to go on.
8
+
9
+ ## Implementation
10
+
11
+ - `buildMenuSectionSchema` takes `ingredients` and `diets` per item. The description falls back to the ingredients joined with ", " when the product has none; a product description always wins.
12
+ - `suitableForDiet`: `VegetarianDiet` for `Vegetarisch: Ja`, `VegetarianDiet` + `VeganDiet` for `Vegan: Ja` (vegan dishes are vegetarian; shops often flag only `Vegan`).
13
+ - `hasYesOption`/`getDiets` moved to `app/utils/product.ts`; `CardDietBadges.vue` uses them, so badges and schema share one rule.
14
+ - No extra request: `sortedProperties` is part of the listing the page loads anyway.
15
+
16
+ ## Verification
17
+
18
+ Production build against the demo backend: `/Speisekarte/Pizza/` 14/14 items with description, 5 with `suitableForDiet`; Salate 5/5 and 2; Nudeln 11/11 and 5. Unit, nuxt tests, typecheck and ESLint green.
@@ -0,0 +1,21 @@
1
+ # Issue #401: ordering, delivery area, geo and payment in the Restaurant schema
2
+
3
+ As of 2026-10-05, branch `feature/401-restaurant-schema-ordering`. Part of the AI visibility issues #400–#404.
4
+
5
+ ## Decisions (agreed with Lirim)
6
+
7
+ - Delivery areas, coordinates and reservations come from `runtimeConfig.public.site` (env), like the address. Moving them to the plugin configuration is #298.
8
+ - Payment methods are read live from the Store API (`readPaymentMethod`, `onlyAvailable`, `includes` in the POST body, #312): one extra request when the home page renders on the server.
9
+
10
+ ## Implementation
11
+
12
+ - `buildRestaurantSchema` adds `geo` (only with both coordinates; env values may be numbers or strings), `areaServed`, `acceptsReservations` (`false` is kept), `paymentAccepted` (names joined with ", "), `currenciesAccepted` and `potentialAction`.
13
+ - `OrderAction` only when the plugin reports `isCheckoutEnabled`. Target is `/speisekarte` (the same URL as `hasMenu`; it redirects to the menu category). `deliveryMethod`: `OnSitePickup` when an address street is set, `DeliveryModeOwnFleet` when delivery areas are set. Shopware shipping methods do not tell pickup and delivery apart (the demo has only `shipping_standard`), so they are not used.
14
+ - `NUXT_PUBLIC_SITE_DELIVERY_AREAS` is comma-separated; a JSON array (parsed by Nuxt) works too.
15
+ - Payment method names are shown as configured in Shopware (demo: "Nachnahme"); shops should name them the way customers say it ("Barzahlung bei Lieferung").
16
+
17
+ ## Verification
18
+
19
+ Production build against the demo backend with the new env variables: the home page `Restaurant` node carries `geo`, both delivery areas, `acceptsReservations: true`, `paymentAccepted: "Nachnahme"`, `currenciesAccepted: "EUR"` and the `OrderAction` with pickup and own delivery. Without the new variables only `paymentAccepted`, `currenciesAccepted` and `potentialAction` (without `deliveryMethod`) are added. Unit + nuxt tests, typecheck, ESLint green.
20
+
21
+ Docs: homepage branch `docs/401-restaurant-schema-ordering` (configuration page, DE/EN), including the note that `NUXT_PUBLIC_SITE_CUISINE` is a cuisine name: La Fattoria sets `italienische`, which produces "italienische in Obertshausen" in its meta description.
@@ -0,0 +1,17 @@
1
+ # Issue #402: /llms.txt
2
+
3
+ As of 2026-10-05, branch `feature/402-llms-txt`. Part of the AI visibility issues #400–#404.
4
+
5
+ ## Implementation
6
+
7
+ - `server/routes/llms.txt.ts` gathers the data, `server/utils/llmsTxt.ts` builds the Markdown (pure, unit-tested). The route lives in the layer, so every shop extending the storefront gets it.
8
+ - Sources: `runtimeConfig.public.site` (name, description, address, phone, cuisine, delivery areas from #401), the ShopBite plugin routes (business hours, holidays, config: checkout enabled, delivery time), `/context` (currency), the menu navigation (`menuCategoryId`, with SEO URLs) and all main products via `/product` (100 per page, at most 10 pages, `includes` in the POST body, #312). Each source is optional: `Promise.allSettled`, a failed request drops its section.
9
+ - Products are grouped by their directly assigned `categoryIds` (extras without category are not listed). Products with variants show "ab <cheapest price>". Ingredients and diets reuse `getMainIngredients`/`getDiets` (#400).
10
+ - Sorting: the `/product` route ignored `sort` by name, so items are sorted in code (German locale, numeric).
11
+ - Content pages come from the `landingpages` collection; pages that `robots.txt` blocks (La Fattoria's legal pages) are filtered with `getPathRobotConfig`.
12
+ - `swr: 3600` route rule. On non-indexable sites the robots module already sends `X-Robots-Tag: noindex, nofollow` for this route, so no own header is needed.
13
+ - `splitList` moved to `app/utils/seo.ts` (shared with `useRestaurantSchema`).
14
+
15
+ ## Verification
16
+
17
+ Production build against the demo backend: `/llms.txt` 200, `text/markdown; charset=utf-8`, 120 lines / 5 KB with 9 menu sections, "ab" prices for pizzas, ingredients and diets; with `NUXT_SITE_INDEXABLE=false` the response carries `X-Robots-Tag: noindex, nofollow`. Unit + nuxt tests, typecheck, ESLint green.
@@ -0,0 +1,15 @@
1
+ # Issue #403: AI crawler policy in robots.txt
2
+
3
+ As of 2026-10-05, branch `feature/403-ai-crawler-robots`. Part of the AI visibility issues #400–#404.
4
+
5
+ ## Implementation
6
+
7
+ - `runtimeConfig.aiCrawlers` (server-only): `search` and `training`, both `true` by default (the previous behaviour, now explicit). Env: `NUXT_AI_CRAWLERS_SEARCH`, `NUXT_AI_CRAWLERS_TRAINING`.
8
+ - `server/plugins/ai-crawlers.ts` hooks `robots:config` of `@nuxtjs/robots` (6.2), which runs at runtime for robots.txt and for the per-request `X-Robots-Tag`. A build-time `robots.groups` entry could not read the env. The hook gets a fresh copy of the configured groups on every call, so pushing groups does not accumulate.
9
+ - `server/utils/aiCrawlers.ts` (pure, unit-tested) builds one group per kind. A crawler matching a named group ignores the `*` group, so an allowed group repeats the `*` disallow paths (La Fattoria's legal pages stay blocked for AI bots too).
10
+ - User agents verified on the operators' pages on 2026-10-05 (sources in the file header). `Google-Extended` and `Applebot-Extended` are control tokens, not crawlers; Google AI Overviews follow Googlebot, not `Google-Extended`.
11
+ - Non-indexable sites (demo) never reach the hook: the module answers with `Disallow: /` before resolving groups.
12
+
13
+ ## Verification
14
+
15
+ Production build against the demo backend: default robots.txt lists both groups with `Allow: /` plus the three disallows; `NUXT_AI_CRAWLERS_TRAINING=false` gives the training group `Disallow: /` and a GPTBot request gets `X-Robots-Tag: noindex, nofollow`; `NUXT_SITE_INDEXABLE=false` keeps the single `Disallow: /`. Unit tests, typecheck, ESLint green.
@@ -0,0 +1,21 @@
1
+ # Issue #404: FAQ section with FAQPage schema
2
+
3
+ As of 2026-10-05, branch `feature/404-faq`. Last of the AI visibility issues #400–#404.
4
+
5
+ ## Decisions
6
+
7
+ - **Data:** optional `faq` (headline, title, description, `items` of question/answer) in the `home` collection (`content/index.yml`), next to the other home sections. Shops without `faq` render nothing; La Fattoria has its own `index.yml`, so nothing changes there until it adds questions.
8
+ - **Place:** home page, above the closing CTA. `/zahlung-und-versand` stays a Markdown page.
9
+ - **Markup:** native `<details>`/`<summary>` instead of `UAccordion`. Reka's accordion unmounts closed panels by default, so the answers would be missing from the SSR HTML that crawlers read; `<details>` keeps them in the markup, is keyboard accessible and adds no JavaScript or Nuxt UI theme (#314, #319).
10
+ - **Answers are plain text** (no Markdown/links), so the same strings work in the HTML, the JSON-LD and `/llms.txt`.
11
+ - Google shows FAQ rich results only for authoritative sites since 2023; the point is AI answers and on-page clarity.
12
+
13
+ ## Implementation
14
+
15
+ - `buildFaqPageSchema` in `app/utils/schema.ts`; `Home/Faq.vue` emits it via `useHead` (key `jsonld-faq`).
16
+ - `/llms.txt` gets a "Häufige Fragen" section after "Bestellen" (`queryCollection(event, "home").select("faq")`).
17
+ - Demo FAQ in `content/index.yml` with the facts from `zahlung-und-versand.md`. Note: the delivery info card in the same file says "darunter 1 € Liefergebühr", the payment page and the FAQ say 2 €.
18
+
19
+ ## Verification
20
+
21
+ Production build against the demo backend: home HTML has 7 `<details>` with all answers and a `FAQPage` node with 7 questions; `/llms.txt` lists them. Screenshots desktop light and mobile dark (via `nuxt-color-mode`, the demo's preference is light): consistent with the other sections, no hydration errors. All unit + nuxt tests (incl. new `HomeFaq.test.ts`), typecheck, ESLint green.
@@ -0,0 +1,22 @@
1
+ # Issue #411: quick view configuration in the URL, share button
2
+
3
+ As of 2026-10-05, branch `feature/411-quick-view-share`.
4
+
5
+ ## Decisions (agreed with Lirim)
6
+
7
+ - Readable parameters next to `produkt`: `ohne` = deselected main ingredients by name, `extras` = selected extras by product number, comma-separated. Unknown entries are ignored. IDs were rejected (long, unreadable links).
8
+ - Live: every change writes the URL with `router.replace` (no history entries); closing removes all three parameters.
9
+ - Share: Web Share API where available, otherwise clipboard + toast "Link kopiert". Icon button in the drawer header (`#actions` slot of `UDrawer`, before close).
10
+
11
+ ## Implementation
12
+
13
+ - `app/utils/productUrl.ts`: parameter names, `parseListParam`, `withQuickViewConfiguration(query, configuration | undefined)` (replaces the three parameters, keeps filters).
14
+ - `useProductQuickView`: a variant switch changes `produkt` to a number that may not be in the list. Without care the drawer would swap its product (and re-mount `ProductDetail`, losing the selection) or load the variant. Numbers the drawer wrote itself are kept in `useState("quick-view-switched-numbers")`; for them the opened product stays. Reset when another product opens or the drawer closes.
15
+ - `useQuickViewConfiguration`: `initial` (parsed from the route) and `update()`; `QuickView.vue` passes `initial` to `ProductDetail`, which hands it to `DeselectIngredient`/`CrossSelling` (read once at setup, emitted immediately so the cart payload and the price include them), and emits `configuration-changed` on ingredient, extras and variant changes.
16
+ - Cross-selling route and `AssociationItemProduct` carry `productNumber`.
17
+ - The header number follows the selected variant (was the opened product's number; visible since variant links, #289).
18
+ - `useShareLink`: `canShare` is set in `onMounted`, so SSR and hydration render the same icon.
19
+
20
+ ## Verification
21
+
22
+ Production build against the demo, Playwright: `?produkt=LF-21-gro%C3%9F&ohne=K%C3%A4se&extras=EXTRA-900,EXTRA-903` opens with Käse deselected, two extras checked, 12,00 € (10 + 2); toggling Tomatensoße appends it to `ohne`; switching to "Normal" sets `produkt=LF-21-normal`, the drawer stays open and keeps the selection; share copies the live URL and shows the toast (headless Chromium has no `navigator.share`); closing removes the parameters without a history entry, back goes to the previous page; no console errors, mobile and desktop. All unit + nuxt tests (new: helpers, initial selection, `useShareLink`), typecheck, ESLint green.
package/nuxt.config.ts CHANGED
@@ -57,6 +57,12 @@ export default defineNuxtConfig({
57
57
  },
58
58
  apiClientConfig: {},
59
59
  geoapifyApiKey: "",
60
+ // AI crawlers named in robots.txt (#403, server/plugins/ai-crawlers.ts):
61
+ // search = AI search and assistant fetches, training = model training.
62
+ aiCrawlers: {
63
+ search: true,
64
+ training: true,
65
+ },
60
66
  public: {
61
67
  shopBite: {
62
68
  cacheTtl: {
@@ -105,6 +111,15 @@ export default defineNuxtConfig({
105
111
  googleBusinessProfileUrl: "",
106
112
  // Restaurant schema only, e.g. "€€" (#272).
107
113
  priceRange: "",
114
+ // Restaurant schema only (#401): comma-separated delivery areas
115
+ // ("63179 Obertshausen, 63165 Lämmerspiel"), coordinates and
116
+ // "true"/"false" or a text for table reservations.
117
+ deliveryAreas: "",
118
+ geo: {
119
+ latitude: "",
120
+ longitude: "",
121
+ },
122
+ acceptsReservations: "",
108
123
  },
109
124
  storeUrl: "",
110
125
  // Matomo config, runtime-overridable via NUXT_PUBLIC_SCRIPTS_MATOMO_ANALYTICS_*
@@ -121,6 +136,11 @@ export default defineNuxtConfig({
121
136
  },
122
137
 
123
138
  routeRules: {
139
+ // Rebuilt at most hourly: hours, closing days and the menu change rarely
140
+ // (#402).
141
+ "/llms.txt": {
142
+ swr: 3600,
143
+ },
124
144
  "/merkliste": {
125
145
  ssr: false,
126
146
  },
@@ -176,7 +196,6 @@ export default defineNuxtConfig({
176
196
  "@nuxt/content",
177
197
  "@nuxtjs/robots",
178
198
  "@vite-pwa/nuxt",
179
- "@sentry/nuxt/module",
180
199
  "@nuxt/ui",
181
200
  "@nuxt/scripts",
182
201
  "nuxt-vitalizer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopbite-de/storefront",
3
- "version": "1.28.0",
3
+ "version": "1.30.0",
4
4
  "main": "nuxt.config.ts",
5
5
  "description": "Shopware storefront for food delivery shops",
6
6
  "keywords": [
@@ -20,15 +20,14 @@
20
20
  "dependencies": {
21
21
  "@headlessui/vue": "^1.7.23",
22
22
  "@heroicons/vue": "^2.2.0",
23
- "@iconify-json/lucide": "^1.2.135",
23
+ "@iconify-json/lucide": "^1.2.136",
24
24
  "@iconify-json/simple-icons": "^1.2.97",
25
- "@nuxt/content": "3.16.0",
25
+ "@nuxt/content": "3.16.1",
26
26
  "@nuxt/image": "^2.1.0",
27
27
  "@nuxt/scripts": "1.3.9",
28
- "@nuxt/ui": "^4.11.1",
28
+ "@nuxt/ui": "^4.11.2",
29
29
  "@nuxtjs/robots": "^6.2.3",
30
30
  "@nuxtjs/sitemap": "^8.5.1",
31
- "@sentry/nuxt": "^10.75.0",
32
31
  "@shopware/api-client": "^1.6.0",
33
32
  "@shopware/api-gen": "^1.5.2",
34
33
  "@shopware/composables": "^1.13.0",
@@ -37,7 +36,7 @@
37
36
  "@unhead/vue": "^3.4.1",
38
37
  "@vite-pwa/nuxt": "^1.1.1",
39
38
  "@vueuse/core": "^15.0.0",
40
- "dotenv": "^18.0.1",
39
+ "dotenv": "^18.0.3",
41
40
  "fflate": "^0.8.3",
42
41
  "nuxt": "^4.5.2",
43
42
  "nuxt-vitalizer": "3.0.0",
@@ -53,8 +52,8 @@
53
52
  "@playwright/test": "^1.63.0",
54
53
  "@types/js-cookie": "^3.0.6",
55
54
  "@types/node": "^26.6.2",
56
- "@typescript-eslint/eslint-plugin": "^8.70.0",
57
- "@typescript-eslint/parser": "^8.70.0",
55
+ "@typescript-eslint/eslint-plugin": "^8.70.1",
56
+ "@typescript-eslint/parser": "^8.70.1",
58
57
  "@vitejs/plugin-vue": "^6.0.9",
59
58
  "@vitest/ui": "5.0.1",
60
59
  "@vue/compiler-dom": "^3.5.43",
@@ -64,9 +63,9 @@
64
63
  "eslint": "^10.11.0",
65
64
  "eslint-config-prettier": "^10.1.8",
66
65
  "happy-dom": "^20.14.5",
67
- "jsdom": "^30.1.0",
66
+ "jsdom": "^30.1.1",
68
67
  "playwright-core": "^1.63.0",
69
- "prettier": "^3.9.8",
68
+ "prettier": "^3.9.9",
70
69
  "tailwindcss": "^4.3.3",
71
70
  "typescript": "^6.0.3",
72
71
  "vitest": "^5.0.1",
@@ -2,7 +2,6 @@
2
2
  shamefullyHoist: true
3
3
  allowBuilds:
4
4
  '@parcel/watcher': true
5
- '@sentry/cli': true
6
5
  better-sqlite3: true
7
6
  esbuild: true
8
7
  sharp: true
@@ -17,7 +17,10 @@ const BASE_CRITERIA = {
17
17
  "cover",
18
18
  // "Ausverkauft" on the card (#325).
19
19
  "available",
20
+ // Product deep link (#289); the request sends `sw-include-seo-urls`.
21
+ "seoUrls",
20
22
  ],
23
+ seo_url: ["seoPathInfo", "isCanonical"],
21
24
  property: ["id", "name", "translated", "displayType", "options"],
22
25
  property_group_option: [
23
26
  "id",
@@ -6,7 +6,8 @@ const criteria = {
6
6
  includes: {
7
7
  cross_selling_element: ["crossSelling", "products"],
8
8
  cross_selling: ["name"],
9
- product: ["id", "name", "calculatedPrice", "translated"],
9
+ // productNumber: extras in the quick view URL (#411)
10
+ product: ["id", "productNumber", "name", "calculatedPrice", "translated"],
10
11
  calculated_price: ["unitPrice"],
11
12
  },
12
13
  };