Optional basket page; Button blocks follow the site colour; Site design tidy-up #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "booking-basket-pages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two changes: an optional basket page, and a fix for Button blocks ignoring the site's primary colour.
Optional basket page
Site design → Header gets an optional Basket page text box, where you type the page's slug (e.g.
basket). Booking and paying can now be separate pages.Before this, all of these links pointed at a hard-coded
/book. They now come fromshopLinks(header)inpackages/shared/src/types.ts. No migration is needed, since the setting lives in theheaderglobal's JSON.Site design tidy-up
/bookis checked like the basket slug: Site design warns when no page has that slug or the page isn't published./and external links aren't checked.Button block colour
ButtonBlockbuilt its class asbtn-${variant}. Tailwind only generates classes written out in the source, and the public app never spells outbtn-primary. So primary Button blocks were plain grey on the live site. The admin preview looked right, because the admin usesbtn-primaryelsewhere. The block now maps each variant to a whole class name, and AGENTS.md notes the rule.Tested
svelte-check: 0 errors in both apps; no new warnings.In a browser on a test stack with the primary colour set to blue:
oklch(0.98 0 0)).rgb(29, 78, 216)), and the secondary variant still follows the accent colour.Links, after saving each of these settings in Site design:
/bookbasket/book/basket/book/book/book/book/book/all/all/all/allWith the
/allsetting, Site design warned that "All blocks" has no Checkout block.Basket slug typed as
/basket/: links went to/basket. Typed asnope: Site design warned "There is no page with the slug “nope”".Site design:
/nopeas the CTA address warns. "Saved." is still shown at 2 s and gone at 3.5 s, while a failed save's error is still shown after 4 s. The tooltips fit at 1500 px and 390 px widths and open on keyboard focus.I didn't rerun the PocketBase hook suites: no hook or schema changed.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
The variant class was built as `btn-${variant}`. Tailwind only generates classes written out in the source, and nothing in the public app spells out `btn-primary`, so primary Button blocks rendered as plain grey buttons on the live site (the admin preview, which uses btn-primary elsewhere, looked right). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxWSite design: separate booking page and basket pageto Optional basket page; Button blocks follow the site colourOptional basket page; Button blocks follow the site colourto Optional basket page; Button blocks follow the site colour; Site design tidy-up