Docs: bring CLAUDE.md, the transition roadmap and the README up to date

CLAUDE.md: localization now describes core's locale middleware,
$currentLocale/$altLocales and storefront.* Language Lines (there are
no lang/ files or SetLocale); the stack is Lunar 1.5, Postgres,
Meilisearch, Caddy, no Turbo; the design-reference section pointed at
files nobody has, and the component checklist was out of date.

CACHING-TRANSITION.md: records the 2026-11-06 changes (no Turbo, JSON
islands and writes, one bb_state cookie, prefetch instead of prerender),
a status table per task, the A4/A9 rework, and sources that the team
can actually reach.

README: known issues found while writing the boboko plugin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
lexxandClaude Opus 5.5 committed 2026-11-06 18:49:52 +02:00
1 parent f9b2756456
commit 81e70de70f
3 files changed
+114 -70

No files matched your search

+18
View File
@@ -27,3 +27,21 @@ ## Product custom fields
- **Photos are cleaned up automatically.** Photos never added to a cart are deleted by `custom-fields:prune-uploads` (see above). A photo on a cart line is kept as long as that cart line exists, and a photo on an order is kept indefinitely.
- **Products with custom fields can't be quick-added.** On product cards, the "add to cart" button becomes a link to the product page.
- Field labels are entered once in the admin and aren't translated, so they appear as entered in both `/el` and `/en`.
## Known issues
Found 2026-11-06 while setting up the `boboko` Claude Code plugin. Remove an entry once it's fixed.
- **Storefront labels aren't seeded on boot.** `docker/entrypoint.sh` runs the `checkout` and
`validation` translation seeders, but not `StorefrontTranslationsSeeder`, so new
`storefront.*` keys released in core never reach an environment by themselves. Fix: add it
next to the other two.
- **About 20 `storefront.*` keys exist only in this shop's database**, not in core's seeder:
all `footer.*` and `errors.*`, `nav.faq`, `nav.menu`, `search.no_results`,
`search.results_count`, `shop.filters`, `contact.privacy_notice`. A fresh environment shows
them as raw keys. Fix: `bin/core-mode local`, then
`bin/dc-core.sh exec app php artisan boboko:translations:pull`, then commit and release core.
- **Home hero carousel images (LCP).** In `resources/views/home.blade.php`, every slide gets
`loading="eager"` and `fetchpriority="high"` (only the first visible one should), the
`preload="…"` attribute on `<img>` does nothing (preloading is a `<link>` in `<head>`), and
there's no `srcset`/`sizes` or `<head>` image preload.