Commit Graph
30 Commits
Author SHA1 Message Date
austin ca4c22aa24 Remove the temporary gate probe
Confirmed: the run failed at the Test step and the registry digest was unchanged, so a
failing test now stops the image being published.
2026-07-23 12:20:14 -05:00
austin 01e68638f9 TEMPORARY: prove a failing test blocks the image
Will be reverted in the next commit. Verifying the gate rather than assuming it — the last
assumption of this kind was wrong for months.
2026-07-23 12:18:54 -05:00
austin d2c62f35ed Admin for the menu and enquiries, plus gallery fixes
Admin
- /api/admin: products CRUD, the enquiry inbox, and presigned photo upload straight to the
  bucket so images never pass through the app. Gated by platform.security.authenticated-paths
  = /api/admin/**, so any signed-in Authentik user is staff — the alternative is a role model
  a two-person bakery would never maintain.
- /api/me is deliberately PUBLIC. The SPA asks on every page load, and requiring a login
  would bounce every anonymous visitor to Authentik just to read the menu.
- /admin screens: product list with edit and remove, an editor with drag-free photo
  reordering and upload, and an enquiry inbox that flags anything the relay refused.

Gallery
- swipe on touch devices, which the react-awesome-slider it replaced had and this did not,
  plus arrow keys and position dots — with swipe there is otherwise nothing to say a card
  holds more than one photo. Vertical drags are ignored so page scrolling still works.
- @BatchSize on the photo collection: the products page loaded the whole catalogue and
  Hibernate issued a query per product for its images, forty-odd round trips for a page
  that needs two.

Three things the tests caught, none of which are obvious:
- Adding the storage starter broke every existing test. It activates on a default endpoint,
  so an S3 client is built even in tests and dies on blank keys.
- MockMvc's webAppContextSetup leaves the security filter chain OUT, so the first version of
  the security test passed 200s and proved the opposite of what it claimed. It needs
  .apply(springSecurity()).
- Turning on the security starter turns on CSRF — for the PUBLIC contact form too, which
  then 403s. The SPA now reads the XSRF-TOKEN cookie and sends X-XSRF-TOKEN, and there is a
  test asserting the form is rejected without it.
2026-07-23 11:58:21 -05:00
austin 27821cdb90 Inherit the platform contract tests, and extend the shared Renovate preset
PlatformWebContract asserts what this app must do because it is on the platform: an /api
path matching no controller 404s rather than returning the SPA, health is UP, the liveness
and readiness probes exist, and a client-side route forwards to the shell. That first one
shipped broken to six live sites and was found by typing a URL by hand; now it fails a
build instead.

renovate.json is three lines pointing at austin/renovate-config. The rules were copied per
repo, so they matched only by luck and a change was six edits.

Platform 0.1.9.
2026-07-23 09:46:53 -05:00
austin f471462d05 Rewrite on the Bennett platform: Spring Boot + Vite/React SPA
Replaces the Next.js app. Same site, same look; the parts that were decisions rather
than markup now live in Java.

- catalogue, curated order, category filter and image URLs move from a TypeScript array
  into Postgres behind /api/products and /api/categories
- contact form uses the shared platform-starter-contact: validate, RECORD, send, then
  fan out to n8n. Recording first means a relay outage costs a notification, not an enquiry
- PageMetaController rewrites title/description/OG per route, replacing what Next's SSR
  gave crawlers and link-preview scrapers
- 50MB of photos leave the repo for the MinIO bucket, re-encoded to webp (14MB) with EXIF
  (including phone GPS) stripped
- fixes a catalogue typo: 'Strawberry Pie' was category 'Pies', which no filter matched, so
  it was unreachable unless browsing All
2026-07-22 22:09:51 -05:00
austin 7eefc5d008 contact: fan out enquiries to n8n hub (fire-and-forget)
Keeps the direct SMTP email as the reliable delivery path; when CONTACT_HUB_URL
is set, also POSTs the enquiry to the n8n webhook so the hub sends the customer
auto-reply and (later) creates CRM/task records. Best-effort with a 4s timeout,
so a slow or down hub never blocks or fails the form.
2026-07-22 18:12:45 -05:00
austin eb8cc01a59 contact route: optional SMTP auth + trust local self-signed relay/bridge 2026-07-22 15:17:06 -05:00
Austin 5c81b65e51 Rebrand to Sage & Cream identity, working contact form, drop Firebase
- New sage/cream palette and stacked logo lockup (The Vine over Coffeehouse
  + Bakery) driven by currentColor; logo SVGs now colorable
- Reuse the logo component for the hero and section marks
- Rewrite site copy: real founding (Morissa Bennett, 2024), real story from
  the product range, remove invented claims and AI phrasing
- Contact form now sends over SMTP via /api/contact (nodemailer) with real
  send/error states, server-side validation, and reply-to the customer;
  delivers to CONTACT_TO. Add .env.example and a test-email script
- Fix mobile: unmount the off-screen menu (killed sideways scroll), cap logo
  width, responsive heroes and type
- Remove Firebase (config, tracked build output, placeholder pages, nix
  firebase-tools) now that hosting has moved
- Delete dead code: LoyaltyCardForm, ProductModal, LoadingSpinner, card-flip
  CSS, unused Playfair font
- Serve dev/start on port 2024
2026-07-14 17:48:00 -05:00
Austin 34a81ffc09 updated hours 2026-03-14 11:29:08 -05:00
austin fae1be2b39 added a dynamic favicon 2025-02-25 16:54:58 -08:00
Austin Bennett 504642df8d fixed hours & location 2025-02-21 18:27:37 -06:00
Austin Bennett 150e85b3a3 fixed categories 2025-02-21 15:10:13 -06:00
Austin Bennett 3deb8a4aec disabled contact page & fixed images 2025-02-21 15:07:16 -06:00
Austin Bennett d27c355198 fixed eslint issues 2025-02-21 14:51:41 -06:00
austin df5cc5f022 removed history page 2025-02-11 10:45:19 -06:00
austin 769e99d4c3 2.0 2025-02-08 14:24:51 -06:00
Paul Fresnel d643be301f redirect fix 2024-11-09 17:40:08 +01:00
Paul Fresnel 46734345c6 products modal added 2024-11-09 17:39:17 +01:00
Paul Fresnel fb1c4406f2 products images added 2024-11-09 17:22:56 +01:00
Paul Fresnel d391dcf24e card form added 2024-11-09 16:46:49 +01:00
Paul Fresnel df3268f494 form added 2024-11-09 15:15:50 +01:00
Paul Fresnel b0acd90035 fixed images path 2024-11-07 14:52:32 +01:00
Paul Fresnel 3d7403845e card finished 2024-11-07 14:40:25 +01:00
Paul Fresnel 5991015b26 card css flip effect 2024-11-07 14:17:37 +01:00
Paul Fresnel 14976b14bf loaylty card css 2024-11-07 14:13:37 +01:00
Paul Fresnel 4f8103e1dc added branding 2024-11-07 10:08:49 +01:00
Paul Fresnel e9185e2c9e fixes deploy 2024-11-07 03:24:33 +01:00
Paul Fresnel f3ddc0d81e added medias 2024-11-07 03:20:04 +01:00
Paul Fresnel 0060fb2402 init 2024-11-07 02:59:39 +01:00
Paul Fresnel 69e41bfef5 Initial commit from Create Next App 2024-11-07 02:46:29 +01:00