Commit Graph
83 Commits
Author SHA1 Message Date
elvira efc2576c9e Merge branch 'master' into caching-transition 2026-11-03 21:26:34 +02:00
elviraandClaude Opus 5.5 4e4a02c4ed Checkout: theme cart and checkout to the v2 design
Restyles the boboko-core cart drawer, checkout and confirmation pages to
match the "cart - checkout v2" Pencil design (round radios, brand-green
selection, borders removed, larger notes and meta labels). strip-accents
now covers the module's uppercased buttons; vite.config.js comment fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:26:28 +02:00
elviraandClaude Opus 5.5 6d88d53882 Infra: Caddy instead of nginx (plain swap, TLS stays in front)
Caddy 2.11.7 built with xcaddy, with caddy-ratelimit pinned to commit
5625512f (for M3/F7 later; its only tag is years old). Prod bakes
public/ and the config into the image (target caddy); dev uses the
caddy-base stage with docker/caddy and public/ bind-mounted.

It's a 1:1 swap for the host's TLS proxy: plain HTTP on
127.0.0.1:${APP_PORT:-8090}, auto_https off, and
trusted_proxies private_ranges so the proxy's X-Forwarded-* headers
still reach Laravel (checked: https + forwarded host in redirects, as
before). Narrow that range once it's known where TLS ends.

Carried over from nginx:
- php_fastcgi to app:9000, 300s read timeout, try_files to index.php
- /build, /static, /packages and /storage (from the storage volume)
  with Cache-Control "public, max-age=31536000, immutable"
- /sitemap.xml from storage/app, max-age=3600, application/xml
- X-Frame-Options SAMEORIGIN + X-Content-Type-Options nosniff
- 100 MiB upload limit (413 above, as before)
- dotfiles denied except /.well-known/
- /stoic/ proxied to stoic:2727, prefix stripped, cookie paths
  rewritten to /stoic/
- access log to stdout, favicon/robots not logged

Changed on purpose:
- FastCGI page cache dropped (and X-Cache-Status with it). The static
  page cache comes later (P2). It also replayed the first visitor's
  Set-Cookie (session + XSRF) to other guests, since it ignored
  Set-Cookie and keyed on URL only.
- New: zstd/gzip compression for text responses (nginx had none).
- Security headers now on every response; prod nginx dropped them on
  PHP responses and on 4xx/5xx.
- A missing file under the static paths is a plain 404 instead of
  Laravel's page with a 404 status.
- No Via or CGI Status header; one Content-Type on the sitemap (nginx
  sent two).
- Dropped as unneeded: open_file_cache, fastcgi buffers/keepalive,
  `charset utf-8` (Caddy's MIME types carry it where it matters).

Stoic's dev config called the app at http://nginx/validate; it's now
http://caddy/validate. bootstrap/app.php and .env.example comments
updated. docker/nginx/ is removed.

Not in this repo, not changed: boboko-test and the boboko starter
still use nginx.

Deploy note: the service is renamed nginx -> caddy; Envoy's
`up -d --remove-orphans` removes the old nginx container. Expect a few
seconds without a listener on 8090 while it swaps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 01:01:13 +02:00
elviraandClaude Opus 5.5 f0a1b928dd Reviews: submit without a redirect, answered with Turbo Streams
The review form now submits through Turbo (data-turbo="true"; Drive
stays off) and storeReview answers with Turbo Streams instead of a
redirect with flashed data:
- success: the new review is prepended to the list (same Blade partial
  as the existing ones), the empty message is removed, the stars/count
  under the title and the tab label are updated (count and average from
  the DB, which is what the index builds them from), the form is removed
  and the thank-you goes into a live region and gets focus
- validation error: 422 + a stream that replaces the form with inline
  errors (aria-invalid/aria-describedby) and the entered values, focus on
  the first invalid field

Nothing on the product page reads the session any more: no
session('reviewSubmitted'), old() or $errors, and
mergeJustSubmittedReview and the justSubmittedReview flash are gone.
searchableSync() stays.

Without JS it's a plain POST that redirects back to ?tab=reviews,
without inline errors or the thank-you, and the new review shows once
Meilisearch catches up. The ?tab=reviews query parameter is noted in
the controller as a variant to handle once product pages are cached.

New: product/partials/review, product/partials/rating-summary,
product/streams/review-stored|review-invalid, and a small
focus-on-connect Stimulus controller that only appears on streamed
markup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:09:58 +02:00
elviraandClaude Opus 5.5 c1acc0067c Layout: Speculation Rules, prerender on hover
A <script type="speculationrules"> in the layout prerenders same-origin
links with eagerness "moderate" (hover or press). Excluded:
- cart, checkout, account, login, logout, wishlist, contact and the
  future /islands, plus the admin (/boboko) and /stoic
- rel~=nofollow and [data-no-prerender]
- listing controls that load into a Turbo Frame (sort, filters,
  pagination): links inside a <turbo-frame> or pointing at one, unless
  they break out with data-turbo-frame="_top" like the product cards

Contact is excluded too, though the task didn't list it: it's a session
page with hCaptcha.

GA4 and a consent banner aren't in this repo, so no page-view delay on
document.prerendering is needed yet. Add one when they're added.

Watch production FPM after this deploy: until pages are cached, every
prerender is a full PHP render, and there are only 8 FPM workers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:05:50 +02:00
elviraandClaude Opus 5.5 bad5a7db69 CSS: cross-document View Transitions
@view-transition { navigation: auto } inside prefers-reduced-motion:
no-preference, so page changes cross-fade in supporting browsers and
stay instant for visitors who ask for less motion. Turbo Frame listing
updates aren't document navigations and are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:03:32 +02:00
elviraandClaude Opus 5.5 702609da1e Header: account and wishlist links no longer depend on login
Both links are now the same for every visitor, so the header can be
cached:
- Account always goes to route('account'); the auth middleware sends
  guests to login, and after login they land back on the account page
  (url.intended) instead of home.
- Wishlist always goes to route('wishlist'); WishlistController::guest
  already redirects logged-in users to account.wishlist.
- One neutral label, storefront.nav.account, on desktop and mobile.

header.blade.php no longer calls auth().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:02:34 +02:00
elviraandClaude Opus 5.5 4fc7880187 Markup: stable island targets for wishlist, account link and CSRF meta
- x-wishlist-button gets data-wishlist-product on its form root; the
  server-rendered aria-pressed stays for now.
- Both header account links (desktop and mobile menu) share
  [data-account-link].
- The CSRF meta tag gets id="csrf-token".

No visible change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:01:42 +02:00
elviraandClaude Opus 5.5 6948c134e3 Header: give the cart badge a stable id for islands
The badge is absolute inside the fixed-size cart button, so showing it
or growing from 1 to 2 digits doesn't move the header. Adds #cart-badge
as a Turbo Stream target and records the rule that no island may change
the size of its container. cart-count-controller is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:01:21 +02:00
elviraandClaude Opus 5.5 e4dccd0205 Contact: add privacy notice above the captcha
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 12:19:29 +02:00
elviraandClaude Opus 5.5 d31b423f2a Nav: move FAQ before Contact
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 12:19:29 +02:00
elviraandClaude Opus 5.5 87ff1c477f FAQ: animate answers open and closed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 12:19:29 +02:00
elviraandClaude Opus 5.5 fb239a97cb Breadcrumbs: always start at Home, full category trail, BreadcrumbList JSON-LD
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 12:19:29 +02:00
elvira b2f53ea952 improvements on faq page 2026-10-26 16:24:34 +02:00
elvira 1e4da2c8cc faq page 2026-10-26 16:06:55 +02:00
elvira 50ec0eebf2 temporary image handling and some responsive 2026-10-24 00:51:38 +03:00
elvira 0ae5f49bcf responsive design 2026-10-24 00:20:57 +03:00
elvira 9217960de0 Feat: Live search accessibility, no-results message and View all styling 2026-10-23 20:59:23 +03:00
arvanitakis 4f56edc4fc Feat: Adding Search prefixes to homepage search 2026-10-19 17:32:35 +03:00
arvanitakis a7cdfbd1cb Feat: Order Controller updates 2026-09-30 19:50:03 +03:00
elvira 72ff4e5c76 checkout css updates but still wip 2026-09-29 21:38:44 +03:00
elvira 5482ac07c6 removed repeated product text from view and added styling to trace it within product description 2026-09-29 19:23:40 +03:00
elvira 7e38f05650 product page: only show up down arrows when not all thumbnails are visible 2026-09-29 19:16:07 +03:00
elvira 47f250d27f Merge branch 'cart-temp' 2026-09-29 16:12:20 +03:00
arvanitakis 70787ace44 Feat: Updating entrypoint and missing lunar translations! 2026-09-29 00:03:37 +03:00
elvira b522d60954 multilingual content, change in how we show header categories and homepage hero products 2026-09-28 19:42:35 +03:00
elvira aa051525a1 stoic multilingual 2026-09-28 18:17:33 +03:00
elvira 88d8ae0954 stoic settings and site meta and legal 2026-09-28 17:32:22 +03:00
elvira ca362f81c8 setup for stoic settings, changes in legal pages to use core's store details and contact page to show contact info next to form 2026-09-28 17:09:08 +03:00
arvanitakis 69486f65ee Feat: Adding Order reference to views 2026-09-28 13:31:29 +03:00
arvanitakis 060b6c647e Merge branch 'box-now-test-' into cart-temp 2026-09-28 10:11:26 +03:00
arvanitakis 36806cac5b Chore: Moving Wishlist from 3dealer to Core 2026-09-28 10:10:50 +03:00
arvanitakis 8b362c9436 Feat: Correctly extracting boboko/core's js 2026-09-28 08:46:14 +03:00
arvanitakis cd45d8f578 Feat: Removing Controllers and Movong to core 2026-09-27 20:49:07 +03:00
elvira 8e186fc231 minor improvement in showing custom fields in product page and boboko-core sourced locally 2026-09-25 22:39:14 +03:00
arvanitakis a51ce78538 Merge branch 'cart-temp' into box-now-test- 2026-09-25 21:49:30 +03:00
elvira ab7e560a3d add to cart button disabled when 0 stock and newsletter form theming 2026-09-25 20:23:22 +03:00
arvanitakis 081893ef57 Feat: Removing Cart and Checkout from core 2026-09-25 20:22:38 +03:00
elvira e2d7bbb043 order emails theming, sold out product card, contact page hcaptcha 2026-09-25 17:44:42 +03:00
elvira 3347febb3c login hcaptcha 2026-09-25 16:19:56 +03:00
arvanitakis d43b615297 Feat: Moving Email Updates to Core 2026-09-25 15:37:34 +03:00
arvanitakis fa172860db Chore: Claiming Guest Orders Moved to Core 2026-09-25 13:58:13 +03:00
arvanitakis a51e9456d6 Feat: Moving File Handling To Core 2026-09-25 13:47:58 +03:00
elvira 540da1af24 reviews photos clickable and contact form functionality 2026-09-24 21:03:59 +03:00
elvira e28faea546 3dealer favicon 2026-09-24 19:31:36 +03:00
elvira 8055c003ac reverted a migration and some 3dealer functionality that should be in core 2026-09-24 19:22:40 +03:00
elvira 94803bfb67 terms acceptance during login, checkout connection to user account and login process 2026-09-24 19:08:13 +03:00
elvira cf3681260b account pages: login, order history, order details, account details, wishlist 2026-09-24 17:27:58 +03:00
elvira 580adac33a product custom fields 2026-09-23 17:53:23 +03:00
elvira e3a6267059 fix in product page links and tabs, fixes in email template, minor change in reviews theming 2026-09-22 19:18:55 +03:00