From 81e70de70fbc8560e07fcacdb681321c38accb6d Mon Sep 17 00:00:00 2001 From: lexx Date: Fri, 6 Nov 2026 18:49:52 +0200 Subject: [PATCH] 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 --- CACHING-TRANSITION.md | 95 +++++++++++++++++++++++++++++++------------ CLAUDE.md | 71 ++++++++++++-------------------- README.md | 18 ++++++++ 3 files changed, 114 insertions(+), 70 deletions(-) diff --git a/CACHING-TRANSITION.md b/CACHING-TRANSITION.md index 1958098..47317e0 100644 --- a/CACHING-TRANSITION.md +++ b/CACHING-TRANSITION.md @@ -9,10 +9,17 @@ # Caching transition: context and first tasks (for Claude) file wins on style, Greek register, localization and performance rules. Source documents (outside this repo, read-only for context): -- `/Users/farenoubi/Projects/boboko-research/caching-islands.md`: the target design -- `/Users/farenoubi/Projects/boboko-research/tech-platform.md`: the platform plan -- `/Users/farenoubi/Projects/boboko-research/tasks.md`: the full task list (3dealer, boboko-core, infra, parked). **The source of truth for task ids** -- `/Users/farenoubi/Projects/boboko-research/team-discussion.md`: decisions, and the open items (D7, D10) +- The research repo (`lexx/research` on code.radical-elements.com), `products/boboko/`: + - `caching-islands.md`: the target design (partly superseded, see "Changed on 2026-11-06") + - `tech-platform.md`: the platform plan + - `manifesto.md`: the principles decisions are checked against +- `tasks.md` (the full task list and **source of truth for task ids**) and `team-discussion.md` + (open items D7, D10) were written in the same planning session but aren't in the research + repo. Ask the team for them. + +The rules that come out of this work are written up as skills in the **`boboko` Claude Code +plugin** (re-skills marketplace): `cacheable-pages` above all, plus `storefront-frontend`, +`storefront-performance` and `storefront-translations`. Every task is also a card on the Planka board (3dealer.gr → Development, label **Transition**). The task id (A1, W1…) is in each card's description. @@ -26,23 +33,38 @@ ## Where we're going (probably as static files Caddy serves without PHP). Anything personal (cart, login state, wishlist, CSRF token) comes from **one small "islands" request** that runs only when the visitor has a state cookie, and is answered with -**Turbo Streams** rendered from Blade. +**JSON** that Stimulus applies to elements already in the page. - Cacheable routes (home, category, product, `/products`, FAQ, legal pages) will run **without a session**: no cookies, no CSRF token, no `auth()`, no flash, no `old()`, no `$errors`. - Session routes (cart, checkout, account, login, contact, islands, writes) stay in `web`. -- Writes (add to cart, wishlist toggle, review) answer with Turbo Streams that - update every affected place at once. +- Writes (add to cart, wishlist toggle, review) are normal forms enhanced with + `fetch`, answered with JSON. New markup (e.g. a new review) is cloned from a + Blade-rendered `