@shopbite-de/storefront 1.31.3 → 2.0.1

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 (187) hide show
  1. package/.github/workflows/ci.yaml +87 -0
  2. package/.gitignore +5 -0
  3. package/CLAUDE.md +27 -8
  4. package/app/app.vue +10 -6
  5. package/app/assets/css/main.css +103 -61
  6. package/app/components/AddToWishlist.vue +15 -25
  7. package/app/components/Address/Card.vue +6 -11
  8. package/app/components/Address/Detail.vue +23 -23
  9. package/app/components/Address/Fields.vue +175 -73
  10. package/app/components/Address/Form.vue +107 -106
  11. package/app/components/Cart/Bar.vue +6 -9
  12. package/app/components/Cart/Item.vue +48 -63
  13. package/app/components/Cart/QuickView.vue +38 -25
  14. package/app/components/Cart/Upsell.vue +24 -62
  15. package/app/components/Category/Breadcrumb.vue +29 -3
  16. package/app/components/Category/FilterGroup.vue +20 -41
  17. package/app/components/Category/Listing.vue +100 -130
  18. package/app/components/Category/SearchInput.vue +22 -19
  19. package/app/components/Checkout/DeliveryTimeSelect.vue +55 -77
  20. package/app/components/Checkout/LoginOrRegister.vue +28 -29
  21. package/app/components/Checkout/PaymentAndDelivery.vue +114 -86
  22. package/app/components/Checkout/Summary.vue +90 -60
  23. package/app/components/Checkout/VoucherInput.vue +40 -27
  24. package/app/components/Contact/Form.vue +164 -192
  25. package/app/components/DemoBanner.vue +5 -5
  26. package/app/components/Footer/StoreStatus.vue +2 -2
  27. package/app/components/Footer.vue +125 -57
  28. package/app/components/Header.vue +283 -18
  29. package/app/components/Home/Categories.vue +116 -0
  30. package/app/components/Home/Facts.vue +71 -0
  31. package/app/components/Home/Faq.vue +34 -16
  32. package/app/components/Home/Hero.vue +172 -0
  33. package/app/components/Home/Highlights.vue +29 -37
  34. package/app/components/Home/Restaurant.vue +102 -0
  35. package/app/components/Menu/BonCard.vue +180 -0
  36. package/app/components/Menu/CartPanel.vue +24 -0
  37. package/app/components/Menu/CategoryIndex.vue +54 -0
  38. package/app/components/Menu/OrderMode.vue +20 -0
  39. package/app/components/Menu/SectionHeader.vue +38 -0
  40. package/app/components/Navigation/MobileTop.vue +23 -15
  41. package/app/components/Order/Confirmation.vue +119 -0
  42. package/app/components/Order/Detail.vue +80 -88
  43. package/app/components/Product/CardSkeleton.vue +8 -12
  44. package/app/components/Product/Configurator.vue +8 -16
  45. package/app/components/Product/CrossSelling.vue +75 -83
  46. package/app/components/Product/DeselectIngredient.vue +17 -22
  47. package/app/components/Product/Detail.vue +35 -27
  48. package/app/components/Product/QuickView.vue +80 -51
  49. package/app/components/SalesChannelSwitch.vue +14 -28
  50. package/app/components/Sb/Button.vue +70 -0
  51. package/app/components/Sb/Checkbox.vue +73 -0
  52. package/app/components/Sb/Chip.vue +51 -0
  53. package/app/components/Sb/ChoiceGroup.vue +82 -0
  54. package/app/components/Sb/ConfirmDialog.vue +60 -0
  55. package/app/components/Sb/Field.vue +77 -0
  56. package/app/components/Sb/Icon.vue +66 -0
  57. package/app/components/Sb/IconButton.vue +55 -0
  58. package/app/components/Sb/Input.vue +23 -0
  59. package/app/components/Sb/SegmentedControl.vue +34 -0
  60. package/app/components/Sb/Select.vue +49 -0
  61. package/app/components/Sb/Sheet.vue +83 -0
  62. package/app/components/Sb/Stars.vue +60 -0
  63. package/app/components/Sb/StatusPill.vue +38 -0
  64. package/app/components/Sb/Stepper.vue +72 -0
  65. package/app/components/User/AccountHeader.vue +16 -0
  66. package/app/components/User/AuthPanel.vue +41 -0
  67. package/app/components/User/Detail.vue +32 -29
  68. package/app/components/User/LoginForm.vue +92 -98
  69. package/app/components/User/RegistrationForm.vue +285 -249
  70. package/app/components/Wishlist.vue +55 -155
  71. package/app/composables/useCartMutations.ts +9 -27
  72. package/app/composables/useCheckoutMethodGuard.ts +2 -24
  73. package/app/composables/useContactForm.ts +66 -0
  74. package/app/composables/useHomeMenuCategories.ts +41 -0
  75. package/app/composables/useNavigation.ts +10 -2
  76. package/app/composables/useOrderMode.ts +65 -0
  77. package/app/composables/useRegistrationForm.ts +161 -0
  78. package/app/composables/useRestaurantSchema.ts +1 -1
  79. package/app/composables/useShareLink.ts +3 -13
  80. package/app/composables/useSortingSelection.ts +13 -0
  81. package/app/composables/useThemePreset.ts +24 -0
  82. package/app/composables/useVoucherCode.ts +7 -16
  83. package/app/composables/useWishlistActions.ts +0 -51
  84. package/app/error.vue +31 -9
  85. package/app/layouts/account.vue +45 -50
  86. package/app/layouts/default.vue +2 -3
  87. package/app/layouts/listing.vue +3 -5
  88. package/app/pages/[...all].vue +8 -4
  89. package/app/pages/account/recover/password/index.vue +113 -80
  90. package/app/pages/anmelden.vue +11 -10
  91. package/app/pages/bestellung/[id]/erfolg.vue +1 -15
  92. package/app/pages/bestellung/[id]/fehler.vue +63 -51
  93. package/app/pages/bestellung/[id]/index.vue +3 -85
  94. package/app/pages/bestellung/kasse.vue +29 -0
  95. package/app/pages/bestellung.vue +8 -60
  96. package/app/pages/index.vue +12 -52
  97. package/app/pages/kontakt.vue +27 -7
  98. package/app/pages/konto/adressen.vue +106 -102
  99. package/app/pages/konto/bestellung/[id].vue +9 -43
  100. package/app/pages/konto/bestellungen.vue +55 -33
  101. package/app/pages/konto/index.vue +47 -62
  102. package/app/pages/konto/profil.vue +162 -100
  103. package/app/pages/maintenance.vue +8 -6
  104. package/app/pages/merkliste.vue +7 -8
  105. package/app/pages/passwort-vergessen.vue +92 -75
  106. package/app/pages/registrierung/bestaetigen.vue +20 -48
  107. package/app/pages/registrierung/index.vue +16 -7
  108. package/app/pages/suche.vue +94 -95
  109. package/app/plugins/theme-preset.ts +9 -0
  110. package/app/utils/highlight.ts +25 -0
  111. package/app/utils/product.ts +9 -0
  112. package/app/validation/registrationSchema.ts +1 -1
  113. package/modules/theme.ts +123 -0
  114. package/nuxt.config.ts +30 -16
  115. package/package.json +6 -8
  116. package/playwright.config.ts +11 -0
  117. package/server/api/listing/[categoryId].get.ts +3 -0
  118. package/shared/theme/presets.ts +303 -0
  119. package/test/a11y/presets.test.ts +225 -0
  120. package/test/layer/nuxt.config.ts +8 -0
  121. package/test/nuxt/AccountPagesPreset.test.ts +191 -0
  122. package/test/nuxt/AuthPagesPreset.test.ts +87 -0
  123. package/test/nuxt/CartCheckoutPreset.test.ts +154 -0
  124. package/test/nuxt/CartItem.test.ts +18 -3
  125. package/test/nuxt/CartUpsell.test.ts +1 -2
  126. package/test/nuxt/CheckoutFormsPreset.test.ts +120 -0
  127. package/test/nuxt/CheckoutOnePage.test.ts +115 -0
  128. package/test/nuxt/CheckoutSummary.test.ts +6 -6
  129. package/test/nuxt/CheckoutVoucherInput.test.ts +20 -32
  130. package/test/nuxt/ContactFormPreset.test.ts +115 -0
  131. package/test/nuxt/FooterStoreStatus.test.ts +2 -2
  132. package/test/nuxt/HeaderFooterPreset.test.ts +134 -0
  133. package/test/nuxt/HomeFaq.test.ts +3 -2
  134. package/test/nuxt/MenuBonCard.test.ts +122 -0
  135. package/test/nuxt/OrderPagesPreset.test.ts +132 -0
  136. package/test/nuxt/PaymentAndDelivery.test.ts +0 -4
  137. package/test/nuxt/ProductCrossSelling.test.ts +2 -1
  138. package/test/nuxt/ProductDeselectIngredient.test.ts +5 -3
  139. package/test/nuxt/ProductSheetPreset.test.ts +105 -0
  140. package/test/nuxt/RegisterConfirmPage.test.ts +0 -8
  141. package/test/nuxt/RegistrationForm.test.ts +89 -270
  142. package/test/nuxt/SbBaseComponents.test.ts +170 -0
  143. package/test/nuxt/SbStars.test.ts +25 -0
  144. package/test/nuxt/useCartMutations.test.ts +3 -17
  145. package/test/nuxt/useCartUpsell.test.ts +1 -1
  146. package/test/nuxt/useCheckoutMethodGuard.test.ts +0 -27
  147. package/test/nuxt/useShareLink.test.ts +1 -9
  148. package/test/nuxt/useWishlistActions.test.ts +3 -26
  149. package/test/unit/highlight.spec.ts +31 -0
  150. package/test/unit/product.spec.ts +12 -0
  151. package/test/unit/themePresets.spec.ts +61 -0
  152. package/app/app.config.ts +0 -19
  153. package/app/components/AnimatedSection.vue +0 -74
  154. package/app/components/BottomNavi.vue +0 -70
  155. package/app/components/Category/Header.vue +0 -48
  156. package/app/components/Checkout/PaymentMethod.vue +0 -30
  157. package/app/components/Checkout/ShippingMethod.vue +0 -30
  158. package/app/components/Cta.vue +0 -30
  159. package/app/components/Feature/Card.vue +0 -121
  160. package/app/components/Features.vue +0 -42
  161. package/app/components/Footer/Contact.vue +0 -82
  162. package/app/components/Header/Body.vue +0 -82
  163. package/app/components/Header/Right.vue +0 -187
  164. package/app/components/Header/Title.vue +0 -10
  165. package/app/components/Hero.vue +0 -233
  166. package/app/components/Home/MenuCategories.vue +0 -148
  167. package/app/components/ImageGallery.vue +0 -63
  168. package/app/components/Loading.vue +0 -29
  169. package/app/components/Navigation/DesktopLeft.vue +0 -39
  170. package/app/components/Product/Card.vue +0 -177
  171. package/app/components/Product/CardCompact.vue +0 -72
  172. package/app/components/Product/CardDietBadges.vue +0 -43
  173. package/app/components/Product/CardIngredients.vue +0 -35
  174. package/app/components/Product/CardKitchen.vue +0 -34
  175. package/app/components/Product/SearchBar.vue +0 -95
  176. package/app/components/PublicAnnouncement.vue +0 -17
  177. package/app/pages/bestellung/bestaetigen.vue +0 -16
  178. package/app/pages/bestellung/warenkorb.vue +0 -49
  179. package/app/pages/bestellung/zahlung-versand.vue +0 -25
  180. package/test/nuxt/AddressFields.test.ts +0 -222
  181. package/test/nuxt/AnimatedSection.test.ts +0 -67
  182. package/test/nuxt/ContactForm.test.ts +0 -207
  183. package/test/nuxt/FooterContact.test.ts +0 -102
  184. package/test/nuxt/HeaderRight.test.ts +0 -142
  185. package/test/nuxt/Hero.test.ts +0 -126
  186. package/test/nuxt/HomeMenuCategories.test.ts +0 -94
  187. package/test/nuxt/LoginForm.test.ts +0 -159
@@ -124,6 +124,93 @@ jobs:
124
124
  - name: Unit tests
125
125
  run: pnpm test:unit
126
126
 
127
+ layer-build:
128
+ name: Build as a layer
129
+ needs: [setup]
130
+ timeout-minutes: 10
131
+ runs-on: ubuntu-latest
132
+ steps:
133
+ - uses: actions/checkout@v7
134
+
135
+ - uses: pnpm/action-setup@v6
136
+ with:
137
+ version: 12.9.1
138
+
139
+ - uses: actions/setup-node@v7
140
+ with:
141
+ node-version: '24'
142
+
143
+ - name: Restore workspace from cache
144
+ uses: actions/cache/restore@v6
145
+ with:
146
+ path: |
147
+ ~/.local/share/pnpm/store
148
+ node_modules
149
+ .nuxt
150
+ .output
151
+ key: workspace-${{ runner.os }}-${{ github.sha }}
152
+
153
+ # test/layer extends the storefront like a shop does; imports that only
154
+ # resolve inside the storefront itself break here (2.0.1)
155
+ - name: Build test/layer
156
+ env:
157
+ NODE_OPTIONS: "--max_old_space_size=4096"
158
+ run: pnpm nuxt build test/layer
159
+
160
+ a11y:
161
+ name: Accessibility (${{ matrix.preset }})
162
+ # no test customer needed: the repository secrets (Store API key) suffice
163
+ needs: [setup]
164
+ timeout-minutes: 15
165
+ runs-on: ubuntu-latest
166
+ strategy:
167
+ fail-fast: false
168
+ matrix:
169
+ preset: [trattoria, grill, asia]
170
+ steps:
171
+ - uses: actions/checkout@v7
172
+
173
+ - uses: pnpm/action-setup@v6
174
+ with:
175
+ version: 12.9.1
176
+
177
+ - uses: actions/setup-node@v7
178
+ with:
179
+ node-version: '24'
180
+
181
+ - name: Restore workspace from cache
182
+ uses: actions/cache/restore@v6
183
+ with:
184
+ path: |
185
+ ~/.local/share/pnpm/store
186
+ node_modules
187
+ .nuxt
188
+ .output
189
+ key: workspace-${{ runner.os }}-${{ github.sha }}
190
+
191
+ - name: Cache Playwright browsers
192
+ uses: actions/cache@v6
193
+ with:
194
+ path: ~/.cache/ms-playwright
195
+ key: playwright-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
196
+
197
+ - name: Install Playwright browsers
198
+ run: pnpm exec playwright install --with-deps chromium
199
+
200
+ # playwright.config.ts starts .output/server/index.mjs (webServer)
201
+ # one build serves every preset, chosen at runtime
202
+ - name: axe checks
203
+ env:
204
+ NUXT_PUBLIC_SHOP_BITE_THEME_PRESET: ${{ matrix.preset }}
205
+ run: pnpm test:a11y --reporter=list,html
206
+
207
+ - uses: actions/upload-artifact@v7
208
+ if: ${{ !cancelled() }}
209
+ with:
210
+ name: a11y-report-${{ matrix.preset }}
211
+ path: playwright-report/
212
+ retention-days: 14
213
+
127
214
  # e2e-test:
128
215
  # name: E2E tests
129
216
  # environment: test
package/.gitignore CHANGED
@@ -38,3 +38,8 @@ scripts/perf/exp
38
38
  scripts/perf/*.pem
39
39
  test/visual/__snapshots__
40
40
  test/visual/results
41
+
42
+ # build output of the layer fixture (CI job layer-build)
43
+ test/layer/.nuxt
44
+ test/layer/.output
45
+ test/layer/.data
package/CLAUDE.md CHANGED
@@ -61,7 +61,7 @@ Do not name a project composable like one from the `@shopware/composables` layer
61
61
 
62
62
  - **Nuxt 4** with `app/` directory convention (not `src/`)
63
63
  - **Shopware 6** headless commerce backend via `@shopware/nuxt-module`, `@shopware/composables` (extended as a Nuxt layer), and `@shopware/api-client`
64
- - **Tailwind CSS v4** + **Nuxt UI** component library
64
+ - **Tailwind CSS v4** (`@tailwindcss/vite`) + own base components on **Reka UI** (`app/components/Sb/`); Nuxt UI was removed in 2.0 (#445)
65
65
  - **Zod** for form validation schemas (`app/validation/`)
66
66
  - **PWA** via `@vite-pwa/nuxt` (strategy configurable via `SW` env var)
67
67
  - German-language URL routes (`/konto/`, `/warenkorb/`, etc.)
@@ -99,7 +99,7 @@ The storefront reads plain Shopware entities with fixed names; seed data must ma
99
99
 
100
100
  - **Navigation:** menu sections are the children of the sales channel navigation root (`readNavigation main-navigation`), optionally scoped by `runtimeConfig.public.shopBite.menuCategoryId`. Category icon comes from the custom field `shopbite_category_icon` (icones.js.org name such as `i-lucide-pizza`), set by the ShopBite plugin.
101
101
  - **Property groups:** `Hauptzutaten` (ingredients on the card, deselectable on the detail page, removed ones are appended to the cart label with "-"), `Vegetarisch` and `Vegan` with the option `Ja` (diet badges), `Küche` (kitchen badge). Filterable groups appear as listing filters.
102
- - **Extras:** product cross-sellings of type `productList`; the cross-selling name is the label ("Extras", "Beilagen"), the assigned products need a price and sales-channel visibility but no category. In the quick view each cross-selling is a collapsible checkbox list that shows 6 entries of a long list and a search field above 15 entries (`Product/CrossSelling.vue`). Selected extras are sent as children of a `container` line item (`useAddToCart.ts`, handled by the ShopBite plugin). The product card has no buttons: the card opens the quick view drawer (`Product/QuickView.vue`), whose state is the `produkt` query parameter (product number) via `useProductQuickView` (#325). That deep link is the product URL (#289, no product pages): `productDeepLink()` (`app/utils/productUrl.ts`) takes the product SEO URL when it carries `?produkt=` (the ShopBite plugin sets the template, shopware-plugin#28; the number must be `|url_encode|raw` in the template, the SEO escaper slugifies `ß`) and otherwise builds it from the category SEO URL. The card name is a stretched link to it (a plain click stays in place); a number not in the list (a variant) is loaded and opens with its options selected. The quick view keeps its configuration in the URL (#411): `ohne` (deselected ingredients by name) and `extras` (extras by product number), written live with `router.replace` by `useQuickViewConfiguration`; a variant switch updates `produkt` without swapping the drawer's product (numbers the drawer switched to itself are pinned). The share button (`useShareLink`) uses the Web Share API, else copies the link.
102
+ - **Extras:** product cross-sellings of type `productList`; the cross-selling name is the label ("Extras", "Beilagen"), the assigned products need a price and sales-channel visibility but no category. In the quick view each cross-selling is a collapsible checkbox list that shows 6 entries of a long list and a search field above 15 entries (`Product/CrossSelling.vue`). Selected extras are sent as children of a `container` line item (`useAddToCart.ts`, handled by the ShopBite plugin). The bon card opens the quick view sheet (`Product/QuickView.vue`), whose state is the `produkt` query parameter (product number) via `useProductQuickView` (#325). That deep link is the product URL (#289, no product pages): `productDeepLink()` (`app/utils/productUrl.ts`) takes the product SEO URL when it carries `?produkt=` (the ShopBite plugin sets the template, shopware-plugin#28; the number must be `|url_encode|raw` in the template, the SEO escaper slugifies `ß`) and otherwise builds it from the category SEO URL. The card name is a stretched link to it (a plain click stays in place); a number not in the list (a variant) is loaded and opens with its options selected. The quick view keeps its configuration in the URL (#411): `ohne` (deselected ingredients by name) and `extras` (extras by product number), written live with `router.replace` by `useQuickViewConfiguration`; a variant switch updates `produkt` without swapping the sheet's product (numbers the sheet switched to itself are pinned). The share button (`useShareLink`) uses the Web Share API, else copies the link.
103
103
  - **Custom fields on products:** `shopbite_receipt_print_type` (`number` prints the menu number on the receipt, `label` prints the name) and `shopbite_delivery_time_factor` (int) and `shopbite_cart_upsell` (bool, suggests the product on the order confirmation step `/bestellung/bestaetigen` via `useCartUpsell`; variant parents are never suggested, a flag on a parent applies to its variants), all from the ShopBite plugin.
104
104
  - **Variants:** standard configurator settings (`Product/Configurator.vue`); `server/api/product/variant.get.ts` resolves a variant by option ids.
105
105
 
@@ -118,15 +118,28 @@ Pages without content throw `createNotFoundError()` (`app/utils/notFound.ts`): f
118
118
  ### Client-side JavaScript budget (#314)
119
119
 
120
120
  - Nothing that the first paint does not need belongs in the entry chunk. Components that only some shops use go behind `Lazy…` + `v-if` (`SalesChannelSwitch`); the Matomo registry is imported in `plugins/matomo.ts` after `onNuxtReady`, tracking pushes to `_paq` via `useTrackEvent`.
121
- - Overlays (vaul drawers, collapsibles) are created on first use (`v-if` + `nextTick()` before opening), not mounted with the page — mounting forces a layout of the whole page.
122
- - Long lists render on the server and hydrate on scroll: `hydrateWhenVisible(Component)` (`app/utils`) keeps the markup and the chunk, `AnimatedSection` still animates. Used for product cards and the footer.
121
+ - Overlays (`SbSheet`, collapsibles) are created on first use (`v-if` + `nextTick()` before opening), not mounted with the page — mounting forces a layout of the whole page.
122
+ - Long lists render on the server and hydrate on scroll: `hydrateWhenVisible(Component)` (`app/utils`) keeps the markup and the chunk, Used for the bon cards and the footer.
123
123
  - `NuxtLink` prefetches on interaction only (`experimental.defaults.nuxtLink`), and Rolldown groups shared framework/UI modules into two chunks (`vite.build.rollupOptions.output.codeSplitting`). Measure with Lighthouse behind the h2 proxy (see `docs/notes/2026-09-10-issue-314-mobile-js-cost.md`) before changing either.
124
124
 
125
125
  ### Stylesheet (#319)
126
126
 
127
- - Nuxt UI runs with `ui.experimental.componentDetection`, so only the theme files of the `<U…>` components found in the layers become Tailwind sources; a component rendered dynamically by name must be listed in the option's array form or its theme is empty.
128
127
  - Every family in the `--font-sans` stack costs a system font lookup per text style during the first layout. `fonts.defaults.fallbacks["sans-serif"]` is therefore limited to the phone system fonts (Roboto, Helvetica Neue); do not add desktop families back without measuring Style & Layout (`docs/notes/2026-09-12-issue-319-stylesheet-cost.md`).
129
- - `ui.colors.primary` in `app.config.ts` must be a colour alias defined in `main.css` (`brand`), not a hex value.
128
+ - `main.css` keeps `--text-sm: 16px` (iOS zooms into smaller inputs), maps the tokens onto `sb-*` utilities (`@theme inline`) and styles the Markdown content pages (`.content-preset`, plain HTML since #445).
129
+
130
+ ### Style presets and base components (#439–#446)
131
+
132
+ - Every shop has a style preset: `trattoria` (default), `grill` (dark) or `asia`. `shopBite.preset` in nuxt.config.ts (or `NUXT_SHOPBITE_PRESET` at build time) sets the default, `shopBite.colors` overrides tokens of that preset (the build warns when a pair misses WCAG AA). `modules/theme.ts` writes the stylesheets of all presets into the build (`.nuxt/shopbite-theme.css`, each scoped to `:root[data-preset=…]`) and registers their fonts (listed before `@nuxt/fonts`; browsers fetch only the faces in use). The active preset is runtime config `shopBite.themePreset` (`NUXT_PUBLIC_SHOP_BITE_THEME_PRESET`): `useThemePreset()` returns `preset`, `menuView` and `colorMode` (from `THEME_PRESETS`), `plugins/theme-preset.ts` sets `data-preset` on `<html>`. One build serves every preset; the lead demos rely on it. `shopBite.logoUrl` (`NUXT_PUBLIC_SHOP_BITE_LOGO_URL`) replaces the header logo files (`public/light|dark/Logo.png`, chosen by the preset's colour mode).
133
+ - Components style only with the `--sb-*` colour tokens and `--font-sb-display`/`--font-sb-body` (the `--font` prefix makes @nuxt/fonts resolve the family and add metric fallbacks) through the `sb-*` utilities (`bg-sb-surface`, `text-sb-ink-muted`, `font-display`, `rounded-sb-control`). No colour mode switch: the preset fixes light or dark.
134
+ - Base components live in `app/components/Sb/` (`SbButton`, `SbIconButton`, `SbSegmentedControl`, `SbSheet`, `SbChoiceGroup`, `SbCheckbox`, `SbField` + `SbInput`, `SbSelect` (native), `SbStepper`, `SbChip`, `SbStatusPill`, `SbStars`, `SbConfirmDialog`, `SbIcon` with inline stroke icons). Behaviour and accessibility come from Reka UI (radio groups, checkbox, dialog and alert dialog with focus trap). Every control is at least 44 px and has a visible focus ring; icon-only buttons need a `label`; toggles use `aria-pressed` with a stable name. Hide a base component responsively with a wrapper (`<span class="hidden sm:block">`): its own `inline-flex` wins over a `hidden` passed as class. Elements focused only by script (`tabindex="-1"`) get no focus ring. Entry animations go behind `motion-safe:` (a `motion-reduce:animate-none` loses against `data-[state=open]:animate-…`).
135
+ - No toasts (removed in #445, other responses to be designed): results and errors show where they happen, e.g. `role="alert"` boxes in forms and the checkout, `role="status"` regions, the voucher error at its field.
136
+ - Menu (#441): `Category/Listing.vue` has three columns from `lg` (`MenuCategoryIndex` word list, the list, `MenuCartPanel`), `NavigationMobileTop` below `lg`; `MenuSectionHeader` and `MenuBonCard` (one column, number strip, `photo` for the `bonPhoto` view). The card's button adds a product straight to the cart unless `productNeedsChoice()` (a parent with variants, `childCount` in the listing projection), which opens the quick view; extras stay optional. Cards hydrate on approach (`hydrateWhenVisible`), so a click on a card that has not hydrated yet is lost. Filters live in an `SbSheet`, sorting is an `SbSelect` (`toSortingOptions()`).
137
+ - Product sheet (#442): `SbSheet` with a bon header (number strip, name as `DialogTitle`, diet and description as `DialogDescription`); `Configurator` shows variants as `SbChoiceGroup` (required), `DeselectIngredient` as `SbChip` ingredient chips (pressed = included), `CrossSelling` as `SbCheckbox` rows with a search, `Detail` a sticky footer with `SbStepper` and the add button.
138
+ - Cart and checkout (#443): `MenuOrderMode` (`useOrderMode`) shows the shipping methods as an `SbSegmentedControl` only when there are two to four. The header cart opens an `SbSheet`; `Cart/Item` uses `SbStepper` (remove at 1). The checkout is one page, `/bestellung/kasse` (the old step routes 301 there, `routeRules`): numbered sections Lieferung oder Abholung (`CheckoutPaymentAndDelivery part="shipping"`), Wann, Ihre Angaben (`CheckoutLoginOrRegister` with Reka tabs, `UserRegistrationForm` (logic in `useRegistrationForm`) / `UserLoginForm`, or `UserDetail`), Bezahlung (`part="payment"`) and the order card in `Checkout/Summary.vue`; the order button says "Zahlungspflichtig bestellen" (§ 312j BGB). Forms validate with Zod on submit and show errors at the fields plus a focused summary in form order; `AddressFields` sets `autocomplete`.
139
+ - Order and account (#445): `/bestellung/<id>/erfolg` and `/bestellung/<id>` render `OrderConfirmation` (`OrderDetail`: facts incl. the wished time from the `customerComment`, receipt lines, totals; call card), `/bestellung/<id>/fehler` a payment retry. Login, registration, password pages and the registration confirmation render in `UserAuthPanel`; the account pages in `layouts/account.vue` (link navigation with `aria-current`) with `UserAccountHeader`; `AddressForm` (also used when an address is edited in the checkout). Irreversible actions confirm with `SbConfirmDialog` (focus starts on "Abbrechen"). Search, contact (`useContactForm`), wishlist (`AddToWishlist`), content pages and `error.vue` (with its own `Header`/`Footer`, because the error page replaces `app.vue`) use the same pieces.
140
+ - Home page (#444): `pages/index.vue` renders `HomeHero` (kicker, `[highlight]{.text-primary}` part in the accent colour via `splitHighlight()`, buttons from `hero.links`, live status, rating card from the Google `usp`; the poster sits in a `<picture>` with a `min-width: 640px` source, so phones load a 1 px GIF), `HomeFacts` (`features`), `HomeCategories` (word list, `useHomeMenuCategories`), `HomeHighlights` (top sellers as bon cards), `HomeRestaurant` (`gallery` + opening hours in the SSR HTML) and the two-column `HomeFaq`; `cta` and `mittagstisch` in `content/index.yml` are not shown.
141
+ - Header and footer (#455): `Header.vue` (logo, main nav, status pill, phone, account, wishlist, cart button opening the cart `SbSheet`, menu `SbSheet` on phones), `Footer.vue` (address, hours, footer navigation columns). `app.vue` has the skip link to `main#inhalt`.
142
+ - Every colour pair a component renders must be in `CONTRAST_PAIRS`; `test/unit/themePresets.spec.ts` fails if a preset misses WCAG AA. Accent red is for headlines only, never on controls (reads as negative).
130
143
 
131
144
  ### SEO
132
145
 
@@ -136,10 +149,14 @@ Pages without content throw `createNotFoundError()` (`app/utils/notFound.ts`): f
136
149
  - Shopware category SEO URLs end in `/` and 404 without it, but the sitemap module strips trailing slashes from every URL. Sitemap entries that need the slash carry `_trailingSlash: true`; `server/plugins/sitemap-trailing-slash.ts` restores it in the XML. Never normalise trailing slashes of backend SEO URLs.
137
150
  - There are no category page routes: the catch-all `pages/[...all].vue` serves Markdown content pages first and otherwise the category SEO URL of the path, whatever prefix the Shopware template gives it (`/c/Pizza/`, `/speisekarte/pizza/`); paths with a file extension 404 without a backend request. It resolves the path with `useSeoUrlRoute` (category SEO URLs only, product SEO URLs 404, #289), which redirects (301) aliases to the SEO URL: other casing, toggled trailing slash, and old SEO URLs that Shopware keeps after a template or name change (`isCanonical: null`). The Store API hides old SEO URLs unless the criteria filter on `isCanonical` explicitly, so `resolvePath` never finds them; `resolveOldPath` looks them up separately, only for unknown paths.
138
151
  - `@nuxtjs/sitemap` must stay before `@nuxt/content` in `modules`; content collections need the `sitemap` schema field to appear in the sitemap.
139
- - The home page FAQ (`faq` in `content/index.yml`, `Home/Faq.vue`, #404) uses native `<details>`, not `UAccordion`: Reka unmounts closed panels, and the answers must be in the SSR HTML. The same items feed the `FAQPage` JSON-LD and `/llms.txt`.
152
+ - The home page FAQ (`faq` in `content/index.yml`, `Home/Faq.vue`, #404) uses native `<details>`, not a Reka accordion, which unmounts closed panels, and the answers must be in the SSR HTML. The same items feed the `FAQPage` JSON-LD and `/llms.txt`.
140
153
  - `server/plugins/ai-crawlers.ts` adds two named robots.txt groups via the `robots:config` hook (#403): AI search/assistant bots and AI training bots (lists with sources in `server/utils/aiCrawlers.ts`), toggled by `runtimeConfig.aiCrawlers.search`/`.training`. A crawler matching a named group ignores `*`, so allowed groups repeat the `robots.disallow` paths.
141
154
  - Shop contact data (NAP) lives in `runtimeConfig.public.site` (`address.*`, `telephone`, `googleBusinessProfileUrl`; `alternateNames` lists other names the shop is listed under, for the Restaurant schema `alternateName` and `/llms.txt`) and is rendered by `components/Footer/Contact.vue`. `useBusinessHours`/`useHolidays` use `immediate: false` (app.vue loads them on mount); a component that needs them in the SSR HTML calls `onServerPrefetch(() => refresh())`. In the browser both requests are retried twice (`withRetries`); `useOpeningHoursData` gives components the combined loading/failed state and `retry()`, and reports a failure only after mounting (a failed server prefetch would otherwise break hydration, #355). Anything that depends on the current time (open/closed status, "today") is computed after mounting: `useStoreStatus` starts its clock in `onMounted`, because the home page prefetches the hours on the server and the server's clock and time zone differ from the visitor's (hydration mismatch, #365).
142
155
 
156
+ ### Layer imports
157
+
158
+ Shops extend the storefront as a Nuxt layer, so paths must resolve from the storefront itself: `~`, `@` and `#shared` point to the shop's folders there. App code imports nothing from `shared/` (only types; a relative import breaks the Nitro server bundle), so `modules/theme.ts` passes what the app needs through runtime config (`shopBite.themePresets`). Files in `nuxt.config.ts` use `fileURLToPath(new URL("./…", import.meta.url))` (`css`, local modules). `main.css` lists `@source "../.."`, because Tailwind's automatic detection only scans the shop. `test/layer/` is a minimal shop (`extends: ["../.."]`) that the CI job `layer-build` builds (`pnpm nuxt build test/layer`); 2.0.0 broke every shop because only the storefront itself was built.
159
+
143
160
  ### Testing setup
144
161
 
145
162
  Two Vitest projects in `vitest.config.ts`:
@@ -147,7 +164,9 @@ Two Vitest projects in `vitest.config.ts`:
147
164
  - **`unit`** – `test/unit/`, Node environment, pure function tests
148
165
  - **`nuxt`** – `test/nuxt/`, Nuxt environment via `@nuxt/test-utils`, for composables and components
149
166
 
150
- In `test/nuxt/`, a `mockNuxtImport("useRuntimeConfig")` without `app.baseURL` breaks the router setup of the test environment (`useRouter()` is undefined, see `HeaderRight.test.ts` for a working mock). For config values, prefer setting them on the real config, e.g. `Object.assign(useRuntimeConfig().public.site, { … })`.
167
+ In `test/nuxt/`, a `mockNuxtImport("useRuntimeConfig")` without `app.baseURL` breaks the router setup of the test environment (`useRouter()` is undefined, see `useAddressAutocomplete.test.ts` for a working mock). For config values, prefer setting them on the real config, e.g. `Object.assign(useRuntimeConfig().public.site, { … })`.
168
+
169
+ Accessibility checks (#446) in `test/a11y/` run axe (WCAG 2.1 AA) on home, menu, product sheet, cart, checkout, order confirmation and payment failure (the order is a mocked Store API response), login, registration and the password pages, search, contact, wishlist, a content page and the 404 page, desktop and phone (`pnpm test:a11y`, Playwright projects `a11y` and `a11y-mobile`); serious and critical violations fail. They need no login and only add a product to a guest cart. They test the running build (Playwright starts `.output/server/index.mjs`); the preset is runtime config, so CI runs the `a11y` matrix job per preset on one build with `NUXT_PUBLIC_SHOP_BITE_THEME_PRESET`. Locally: `pnpm build`, then `NUXT_PUBLIC_SHOP_BITE_THEME_PRESET=grill NUXT_PUBLIC_STORE_URL=http://localhost:<port> pnpm test:a11y`.
151
170
 
152
171
  E2E tests in `test/e2e/` use Playwright (Chromium only) and require `TEST_USER` / `TEST_USER_PASS` env vars. A local dev server must be running before the suite executes.
153
172
 
package/app/app.vue CHANGED
@@ -2,7 +2,6 @@
2
2
  import Footer from "~/components/Footer.vue";
3
3
 
4
4
  const { apiClient } = useShopwareContext();
5
- const appConfig = useAppConfig();
6
5
  const router = useRouter();
7
6
 
8
7
  // The footer is below the fold on every page; its hydration waits until it
@@ -103,16 +102,21 @@ useSeoMeta({
103
102
  <VitePwaManifest />
104
103
  <NuxtLoadingIndicator />
105
104
 
106
- <UApp :toaster="appConfig.toaster">
107
- <!-- Lazy keeps UBanner out of the entry chunk of real shops (#314). -->
105
+ <div>
106
+ <!-- First focusable element: skips header and navigation (#455). -->
107
+ <a
108
+ href="#inhalt"
109
+ class="sr-only z-[60] rounded-md bg-neutral-950 px-4 py-3 font-semibold text-white focus:not-sr-only focus:fixed focus:top-3 focus:left-3"
110
+ >Zum Inhalt springen</a
111
+ >
108
112
  <LazyDemoBanner v-if="shopBite.feature.demoBanner" />
109
113
  <Header />
110
- <UMain>
114
+ <main id="inhalt" tabindex="-1" class="min-h-[60vh] focus:outline-none">
111
115
  <NuxtLayout>
112
116
  <NuxtPage />
113
117
  </NuxtLayout>
114
- </UMain>
118
+ </main>
115
119
  <FooterWhenVisible />
116
120
  <CartBar />
117
- </UApp>
121
+ </div>
118
122
  </template>
@@ -1,30 +1,16 @@
1
1
  @import "tailwindcss";
2
- @import "@nuxt/ui";
3
2
 
4
3
  @source "../../../content/**/*";
4
+ /* the storefront's own components: Tailwind's automatic detection only
5
+ scans the shop that extends this layer (2.0.1) */
6
+ @source "../..";
5
7
 
6
8
  @theme {
7
- --font-sans: "Public Sans", sans-serif;
8
- --color-brand-50: #fff4ed;
9
- --color-brand-100: #ffe4d1;
10
- --color-brand-200: #ffc8a3;
11
- --color-brand-300: #ffa169;
12
- --color-brand-400: #ff7a2d;
13
- --color-brand-500: #ff5b00;
14
- /* primary colour of the light mode: 5.3:1 on white, 4.6:1 on its own
15
- 10 % tint (subtle buttons and badges), see #275 */
16
- --color-brand-600: #c23d00;
17
- --color-brand-700: #a83500;
18
- --color-brand-800: #9a3200;
19
- --color-brand-900: #7a2800;
20
- --color-brand-950: #471500;
21
- --color-neutral-950: #171717;
22
-
23
9
  /* This is important because apple devices will zoom in when the font size is below 16px */
24
10
  --text-sm: 16px;
25
11
 
26
12
  /* Feedback after adding to the cart: the cart bar and the header badge
27
- pop instead of a toast (#325). */
13
+ pop (#325). */
28
14
  --animate-cart-pop: cart-pop 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
29
15
 
30
16
  @keyframes cart-pop {
@@ -40,56 +26,112 @@
40
26
  }
41
27
  }
42
28
 
29
+ html {
30
+ scroll-behavior: smooth;
31
+ }
32
+
43
33
  /*
44
- * Primary and success colours per colour mode, the Nuxt UI convention: a
45
- * dark step on light backgrounds, the 400 step on dark ones. Text in these
46
- * colours and text on solid buttons need a contrast of at least 4.5:1
47
- * (WCAG AA), which the 500 step of most scales misses (#275). Subtle
48
- * buttons and badges put the colour on a 10 % tint of itself, so aim for
49
- * 5:1 on white. A brand scale must keep 600 >= 5:1 on white and
50
- * 400 >= 4.5:1 on #171717.
34
+ * Design tokens of the base components (#439, #440). The shop's style
35
+ * preset (shared/theme/presets.ts, `trattoria` by default) sets every
36
+ * --sb-* value on :root[data-preset=…].
51
37
  */
52
38
  :root {
53
- --ui-primary: var(--color-brand-600);
54
- --ui-success: var(--color-green-800);
55
-
56
- --ui-bg: #fff;
57
- --ui-bg-muted: #f5f5f5;
58
- --ui-bg-elevated: var(--color-brand-50);
59
- --ui-bg-accented: var(--color-brand-200);
60
- --ui-bg-inverted: #171717;
61
-
62
- --ui-border-accented: var(--color-brand-200);
63
- --ui-border: #e5e5e5;
64
-
65
- --ui-text-accented: #171717;
66
- --ui-text-default: #404040;
67
- /* 4.9:1 on --ui-bg-elevated (#737373 was 4.38, #275) */
68
- --ui-text-muted: #6b6b6b;
69
- --ui-text-dimmed: #a3a3a3;
70
- --ui-text-inverted: #fff;
39
+ /* content width of the pages */
40
+ --sb-container: 80rem;
71
41
  }
72
42
 
73
- :root.dark {
74
- --ui-primary: var(--color-brand-400);
75
- --ui-success: var(--color-green-400);
76
-
77
- --ui-bg: #171717;
78
- --ui-bg-muted: #1f1f1f;
79
- --ui-bg-elevated: #2a2a2a;
80
- --ui-bg-accented: #333333;
81
- --ui-bg-inverted: #fff;
43
+ /* Tailwind utilities for the tokens: bg-sb-surface, text-sb-ink-muted,
44
+ font-display, rounded-sb-card, … */
45
+ @theme inline {
46
+ --color-sb-bg: var(--sb-bg);
47
+ --color-sb-surface: var(--sb-surface);
48
+ --color-sb-muted: var(--sb-muted);
49
+ --color-sb-line: var(--sb-line);
50
+ --color-sb-control: var(--sb-control);
51
+ --color-sb-ink: var(--sb-ink);
52
+ --color-sb-ink-muted: var(--sb-ink-muted);
53
+ --color-sb-primary: var(--sb-primary);
54
+ --color-sb-primary-hover: var(--sb-primary-hover);
55
+ --color-sb-on-primary: var(--sb-on-primary);
56
+ --color-sb-primary-tint: var(--sb-primary-tint);
57
+ --color-sb-primary-ink: var(--sb-primary-ink);
58
+ --color-sb-accent: var(--sb-accent);
59
+ --color-sb-focus: var(--sb-focus);
60
+ --color-sb-danger: var(--sb-danger);
61
+ --color-sb-star: var(--sb-star);
62
+ --color-sb-band: var(--sb-band);
63
+ --color-sb-on-band: var(--sb-on-band);
64
+ --font-display: var(--font-sb-display);
65
+ --font-body: var(--font-sb-body);
66
+ --radius-sb-card: var(--sb-radius-card);
67
+ --radius-sb-control: var(--sb-radius-control);
68
+ }
82
69
 
83
- --ui-border-accented: #333333;
84
- --ui-border: #333333;
70
+ /* Sheet and overlay entry (SbSheet); skipped with prefers-reduced-motion. */
71
+ @keyframes sb-fade-in {
72
+ from {
73
+ opacity: 0;
74
+ }
75
+ }
85
76
 
86
- --ui-text-accented: #ffffff;
87
- --ui-text-default: #cccccc;
88
- --ui-text-muted: #999999;
89
- --ui-text-dimmed: #666666;
90
- --ui-text-inverted: #171717;
77
+ @keyframes sb-sheet-in {
78
+ from {
79
+ opacity: 0;
80
+ transform: translateY(24px);
81
+ }
91
82
  }
92
83
 
93
- html {
94
- scroll-behavior: smooth;
84
+ /* Markdown content pages (Impressum, AGB, …), rendered as plain HTML by
85
+ @nuxt/content since #445. */
86
+ .content-preset {
87
+ line-height: 1.75;
88
+ }
89
+ .content-preset :where(h1) {
90
+ margin-bottom: 1.5rem;
91
+ font-size: 2.5rem;
92
+ line-height: 1.1;
93
+ }
94
+ .content-preset :where(h2) {
95
+ margin: 2.5rem 0 1rem;
96
+ font-size: 1.75rem;
97
+ line-height: 1.2;
98
+ }
99
+ .content-preset :where(h3) {
100
+ margin: 2rem 0 0.75rem;
101
+ font-size: 1.375rem;
102
+ line-height: 1.25;
103
+ }
104
+ .content-preset :where(p, ul, ol, table, blockquote) {
105
+ margin-bottom: 1rem;
106
+ }
107
+ .content-preset :where(ul) {
108
+ padding-inline-start: 1.25rem;
109
+ list-style: disc;
110
+ }
111
+ .content-preset :where(ol) {
112
+ padding-inline-start: 1.25rem;
113
+ list-style: decimal;
114
+ }
115
+ .content-preset :where(a) {
116
+ color: var(--sb-primary-ink);
117
+ font-weight: 600;
118
+ text-decoration: underline;
119
+ text-underline-offset: 4px;
120
+ }
121
+ .content-preset :where(strong) {
122
+ font-weight: 700;
123
+ }
124
+ .content-preset :where(table) {
125
+ width: 100%;
126
+ border-collapse: collapse;
127
+ }
128
+ .content-preset :where(th, td) {
129
+ padding: 0.5rem;
130
+ border-bottom: 1px solid var(--sb-line);
131
+ text-align: start;
132
+ }
133
+ .content-preset :where(h1, h2, h3) a {
134
+ color: inherit;
135
+ font-weight: inherit;
136
+ text-decoration: none;
95
137
  }
@@ -1,20 +1,18 @@
1
1
  <script setup lang="ts">
2
2
  import type { Schemas } from "#shopware";
3
- import type { ButtonProps } from "@nuxt/ui";
4
3
 
5
- const props = withDefaults(
6
- defineProps<{
7
- product: Schemas["Product"];
8
- size?: ButtonProps["size"];
9
- variant?: ButtonProps["variant"];
10
- }>(),
11
- { size: "md", variant: "ghost" },
12
- );
4
+ /** Wishlist toggle for a dish (`aria-pressed`, #445). */
5
+ const props = defineProps<{
6
+ product: Schemas["Product"];
7
+ }>();
13
8
 
14
9
  const { addToWishlist, isInWishlist, removeFromWishlist } = useProductWishlist(
15
10
  props.product.id,
16
11
  );
17
12
  const { trackAddToWishlist } = useTrackEvent();
13
+ const productName = computed(
14
+ () => props.product.translated?.name ?? props.product.name ?? "Gericht",
15
+ );
18
16
 
19
17
  const toggleWishlistProduct = async () => {
20
18
  try {
@@ -28,23 +26,15 @@ const toggleWishlistProduct = async () => {
28
26
  console.error("[wishlist][handleWishlistError]", error);
29
27
  }
30
28
  };
31
-
32
- const tooltipText = computed(() =>
33
- isInWishlist.value
34
- ? "Von der Merkliste entfernen"
35
- : "Auf die Merkliste setzen",
36
- );
37
29
  </script>
38
30
 
39
31
  <template>
40
- <UTooltip :text="tooltipText">
41
- <UButton
42
- icon="i-lucide-heart"
43
- :size="size"
44
- :variant="variant"
45
- :color="isInWishlist ? 'error' : 'neutral'"
46
- :aria-label="tooltipText"
47
- @click="toggleWishlistProduct"
48
- />
49
- </UTooltip>
32
+ <SbIconButton
33
+ :label="`${productName} merken`"
34
+ :pressed="isInWishlist"
35
+ variant="ghost"
36
+ @click="toggleWishlistProduct"
37
+ >
38
+ <SbIcon name="heart" :filled="isInWishlist" />
39
+ </SbIconButton>
50
40
  </template>
@@ -5,28 +5,23 @@ const props = withDefaults(
5
5
  defineProps<{
6
6
  address?: Schemas["CustomerAddress"] | null;
7
7
  title?: string;
8
- icon?: string;
9
8
  }>(),
10
9
  {
11
10
  address: null,
12
11
  title: "",
13
- icon: "",
14
12
  },
15
13
  );
16
14
 
17
- const { address, title, icon } = toRefs(props);
15
+ const { address, title } = toRefs(props);
18
16
  </script>
19
17
 
20
18
  <template>
21
- <UPageCard
19
+ <section
22
20
  v-if="address"
23
- :icon="icon"
24
- :title="title"
25
- :ui="{
26
- root: 'shadow-md rounded-md ',
27
- footer: 'w-full',
28
- }"
21
+ class="flex flex-col gap-3 rounded-sb-card border border-sb-line bg-sb-surface p-5 font-body text-sb-ink"
29
22
  >
23
+ <h2 v-if="title" class="font-display text-xl">{{ title }}</h2>
30
24
  <AddressDetail :address="address" />
31
- </UPageCard>
25
+ <slot />
26
+ </section>
32
27
  </template>
@@ -21,31 +21,31 @@ function onSubmit(updatedAddress: Schemas["CustomerAddress"] | undefined) {
21
21
  </script>
22
22
 
23
23
  <template>
24
- <div v-if="address" class="flex flex-col gap-2">
25
- <div v-if="!editMode" class="flex flex-col gap-2">
26
- <div>{{ address.firstName }} {{ address.lastName }}</div>
27
- <div>{{ address.phoneNumber }}</div>
28
- <div v-if="address.company">{{ address.company }}</div>
29
- <div v-if="address.department">{{ address.department }}</div>
30
- <div v-if="address.additionalAddressLine1">
31
- {{ address.additionalAddressLine1 }}
32
- </div>
33
- <div v-if="address.additionalAddressLine2">
34
- {{ address.additionalAddressLine2 }}
35
- </div>
36
- <div>{{ address.street }}</div>
37
- <div>{{ address.zipcode }} {{ address.city }}</div>
38
- <UButton
24
+ <div v-if="address" class="font-body text-sb-ink">
25
+ <div v-if="!editMode" class="flex flex-col items-start gap-3">
26
+ <address class="flex flex-col not-italic">
27
+ <span>{{ address.firstName }} {{ address.lastName }}</span>
28
+ <span v-if="address.company">{{ address.company }}</span>
29
+ <span v-if="address.department">{{ address.department }}</span>
30
+ <span>{{ address.street }}</span>
31
+ <span v-if="address.additionalAddressLine1">{{
32
+ address.additionalAddressLine1
33
+ }}</span>
34
+ <span v-if="address.additionalAddressLine2">{{
35
+ address.additionalAddressLine2
36
+ }}</span>
37
+ <span>{{ address.zipcode }} {{ address.city }}</span>
38
+ <span v-if="address.phoneNumber" class="text-sb-ink-muted"
39
+ >Tel. {{ address.phoneNumber }}</span
40
+ >
41
+ </address>
42
+ <SbButton
39
43
  v-if="withEditButton"
40
- variant="subtle"
41
- icon="i-lucide-pen"
42
- label="Bearbeiten"
43
- block
44
+ variant="secondary"
44
45
  @click="editMode = true"
45
- />
46
- </div>
47
- <div v-else>
48
- <AddressForm :address="address" @submit-success="onSubmit" />
46
+ >Adresse bearbeiten</SbButton
47
+ >
49
48
  </div>
49
+ <AddressForm v-else :address="address" @submit-success="onSubmit" />
50
50
  </div>
51
51
  </template>