@shopbite-de/storefront 1.24.0 → 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.
- package/.env.example +3 -0
- package/CLAUDE.md +9 -2
- package/app/app.config.ts +3 -2
- package/app/app.vue +4 -1
- package/app/assets/css/main.css +16 -0
- package/app/components/AddToWishlist.vue +13 -6
- package/app/components/Cart/Bar.vue +102 -0
- package/app/components/Cart/QuickView.vue +4 -0
- package/app/components/Cart/Upsell.vue +106 -0
- package/app/components/Category/Listing.vue +11 -3
- package/app/components/Checkout/Summary.vue +5 -1
- package/app/components/DemoBanner.vue +13 -0
- package/app/components/Feature/Card.vue +121 -0
- package/app/components/Features.vue +14 -9
- package/app/components/Footer/Contact.vue +5 -1
- package/app/components/Header/Right.vue +44 -15
- package/app/components/Hero.vue +126 -36
- package/app/components/Product/Card.vue +102 -50
- package/app/components/Product/CardCompact.vue +72 -0
- package/app/components/Product/CardDietBadges.vue +38 -31
- package/app/components/Product/CardIngredients.vue +35 -0
- package/app/components/Product/CardSkeleton.vue +10 -18
- package/app/components/Product/Category.vue +9 -2
- package/app/components/Product/Configurator.vue +11 -7
- package/app/components/Product/CrossSelling.vue +45 -34
- package/app/components/Product/DeselectIngredient.vue +37 -31
- package/app/components/Product/Detail.vue +73 -13
- package/app/components/Product/QuickView.vue +77 -0
- package/app/components/Topseller.vue +44 -34
- package/app/composables/useAddToCart.ts +3 -30
- package/app/composables/useCartQuickView.ts +19 -0
- package/app/composables/useCartUpsell.ts +100 -0
- package/app/composables/useCategorySeo.ts +5 -4
- package/app/composables/useProductCartQuantity.ts +15 -0
- package/app/composables/useProductCrossSelling.ts +1 -0
- package/app/composables/useProductDetail.ts +15 -1
- package/app/composables/useProductEvents.ts +30 -0
- package/app/composables/useProductQuickView.ts +65 -0
- package/app/composables/useTopSellers.ts +22 -0
- package/app/composables/useTrackEvent.ts +7 -0
- package/app/pages/index.vue +3 -1
- package/app/pages/suche.vue +18 -5
- package/app/types/Association.d.ts +1 -0
- package/app/utils/openingHours.ts +31 -8
- package/app/utils/product.ts +31 -0
- package/content/index.yml +16 -11
- package/content.config.ts +13 -0
- package/docs/notes/2026-09-12-issue-319-stylesheet-cost.md +154 -0
- package/docs/notes/2026-09-12-issue-325-product-card.md +100 -0
- package/docs/notes/2026-09-12-issue-327-home-hero.md +64 -0
- package/docs/notes/2026-09-13-demo-banner.md +32 -0
- package/docs/notes/2026-09-13-issue-332-home-info-cards.md +46 -0
- package/docs/notes/2026-09-13-quick-view-flicker.md +65 -0
- package/docs/notes/2026-09-14-cart-upsell.md +105 -0
- package/docs/notes/2026-09-14-demo-noindex.md +57 -0
- package/nuxt.config.ts +24 -0
- package/package.json +1 -1
- package/scripts/perf/first-render.mjs +30 -0
- package/scripts/perf/h2-proxy.cjs +49 -0
- package/scripts/perf/lighthouse.sh +22 -0
- package/scripts/perf/quick-view-layout.mjs +126 -0
- package/server/api/listing/[categoryId].get.ts +2 -0
- package/server/api/search.get.ts +2 -0
- package/test/e2e/simple-checkout-as-recurring-customer.test.ts +13 -17
- package/test/nuxt/CartBar.test.ts +110 -0
- package/test/nuxt/CartUpsell.test.ts +125 -0
- package/test/nuxt/DemoBanner.test.ts +12 -0
- package/test/nuxt/useAddToCart.test.ts +6 -19
- package/test/nuxt/useCartUpsell.test.ts +126 -0
- package/test/nuxt/useTrackEvent.test.ts +15 -0
- package/test/unit/openingHours.spec.ts +32 -1
- package/test/unit/product.spec.ts +72 -0
- package/test/unit/useCategorySeo.spec.ts +2 -1
- package/test/visual/playwright.config.ts +33 -0
- package/test/visual/visual.spec.ts +87 -0
- package/app/components/Product/CardDescription.vue +0 -27
- package/app/components/Product/CardFooter.vue +0 -61
|
@@ -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/nuxt.config.ts
CHANGED
|
@@ -77,6 +77,9 @@ export default defineNuxtConfig({
|
|
|
77
77
|
multiChannel: false,
|
|
78
78
|
secureKey: "",
|
|
79
79
|
contactForm: false,
|
|
80
|
+
// Shows a non-dismissible notice above the header that the shop
|
|
81
|
+
// is a demo and orders are not fulfilled (demo shops in demos/).
|
|
82
|
+
demoBanner: false,
|
|
80
83
|
},
|
|
81
84
|
},
|
|
82
85
|
site: {
|
|
@@ -131,6 +134,27 @@ export default defineNuxtConfig({
|
|
|
131
134
|
|
|
132
135
|
css: ["~/assets/css/main.css"],
|
|
133
136
|
|
|
137
|
+
fonts: {
|
|
138
|
+
defaults: {
|
|
139
|
+
// Metric fallback faces for the font swap period: only the system
|
|
140
|
+
// fonts of phones (Roboto on Android, Helvetica Neue on iOS). Every
|
|
141
|
+
// family in the font stack costs a system font lookup per text style
|
|
142
|
+
// during the first layout; the five module defaults were ~0.4 s of
|
|
143
|
+
// Style & Layout in Lighthouse mobile (#319).
|
|
144
|
+
fallbacks: {
|
|
145
|
+
"sans-serif": ["Roboto", "Helvetica Neue"],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
ui: {
|
|
151
|
+
experimental: {
|
|
152
|
+
// Only the theme files of the Nuxt UI components the layers render
|
|
153
|
+
// become Tailwind sources (instead of all 120 components), see #319.
|
|
154
|
+
componentDetection: true,
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
|
|
134
158
|
shopware: {
|
|
135
159
|
endpoint: "",
|
|
136
160
|
accessToken: "",
|