The form is closed unless the build sets VITE_CONTACT_FORM_ENABLED=true (only
the test build does), so d449e76 no longer has to be undone before the merge.
Status files of contact-form-cms, asf-packages-cms, asf-cms-host-injection and
asf-translation-files are closed; Build and Test summary added.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Block cmsClient.contact holds the field errors, fallback, waiting time (one
and other), too-large, captcha-required, failure and sending label.
src/i18n/cmsClientMessages.ts builds the ContactMessages object for
useContactForm; a test checks that it says the same as the package's own
Dutch defaults, which stay as the fallback.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The ten area files are merged into nl.json with the blocks common, site,
home, about, contact, shoots, portfolio, instagram, testimonials and seo,
same key paths as before. A second language becomes en.json.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds src/i18n (t, tList, tPlural over typed Dutch JSON, key and parameter
checks), the first text (back to top) as proof, a baseline tool for the
prerendered pages (pnpm baseline:save and baseline:check), a lint warning for
text typed straight into JSX, and docs/translations.md.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The check after a deploy compared the server's answer with dist byte for byte,
which fails once the host writes current data into the markers. Both sides are
now normalised first (regions, data block, offers, inline prices, site
address); everything else still has to match. The stand-in host no longer
injects the 404 page, like the real one.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The two decorative PNGs came from the paid WordPress theme and fall under
its licence, not the GPL. They are removed from the Pricing section, the
banner under the cards, web/src/assets and the design copy. Own SVG twigs
are kept in design/own-assets for later; the assets overview records why.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The outline link button (package buttons, 404 and error page, CTAs) is now
heidegroen with a filled hover and focus state (contrast 5.7:1 on white, 5.3:1
on paper); the dark ink colour stays only in the back-to-top button. Adds
docs/assets-and-licenses.md with the source and licence status per asset.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The pages carry the CMS markers (data block, list regions, JSON-LD price,
inline price); PackagesProvider reads the host's data block after hydration
and asks the API only when there is none; the site address comes from the
block. A stand-in for the host (config/hostInjector.ts, --cms-data in the
preview server) and browser tests check the behaviour with different data.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
cmsHtml.ts writes the plain list and banner HTML that sits between the CMS
markers; contract/host-injection holds the inputs, the expected HTML and the
rules the CMS host's C# template must follow. cmsData.ts reads, validates and
writes the cms-data block.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A featured card gets a heidegroen top rule, border and a small "Uitgelicht"
tab on its top edge; the tab sits on the border so the row keeps its layout.
Tests and docs state that the site does not depend on description, price note
or button label.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
VITE_SITE_URL sets the origin used for canonical, og:url, og:image, JSON-LD
and the sitemap. Only the test build sets it (https://test.andreaslop.nl);
the production artifact keeps https://andreaslop.nl. Only a clean https
origin (or http on localhost) is accepted, anything else falls back to
production.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds docs/cms-integration.md, docs/deploy-and-ci.md and
docs/go-live-checklist.md, fills in the README (set-up and commands) and
points AGENTS.md at the docs so they are kept up to date.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The CMS serves a second banner at /api/v1/offerings/banner?position=top. The
site bakes it into the HTML at build time and replaces it live after
hydration, like the banner under the cards, and both may show at once.
The cards now sit in a wrapping flex row so an incomplete last row is centred
for any number of cards on desktop; phone and tablet stay one column.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
White band like the price cards (a light green tone stays available), a thin
heidegroen rule, the section-heading type in spaced capitals, a small
ornament, the eucalyptus sprig in a corner and more space.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Soft alternate paper tone with a hairline and a thin heidegroen rule on top,
centred heading font and the deep-green button of the cards. Same function:
title, optional text and button, empty fields left out.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The build still bakes the current packages and the active banner into the HTML.
After hydration the page asks /api/v1/offerings and /api/v1/offerings/banner
once and replaces what differs; errors and time-outs keep what was baked, and
a 204 from the banner route hides the banner. The banner is now the
OfferingBanner contract (title, text, optional link) instead of layout=banner.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Only the banner title is required; description, price, price note, features
and the button label are left out when empty (the button then says Neem contact
op).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The check job builds dist without a CMS address, so what goes to production
keeps the committed package list. A new build-test job builds with
OFFERINGS_URL from ASF_OFFERINGS_URL_TEST and feeds only deploy-test. A nightly
schedule (03:15 UTC) deploys the test site; Lighthouse is skipped for it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The build asks GET /api/v1/offerings and bakes the packages into the pages,
with a committed snapshot as fallback so a CMS outage never breaks the build
or shows an empty price. The form choices and ?pakket= use the same list. An
offering with layout=banner becomes an optional band under the price cards.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
With contactForm.enabled=true the e2e and Lighthouse runs asked a token route
that CI does not have (404, console error, run 666). The preview server gets an
opt-in --contact-stub (token 200 without captcha, submit 202); the e2e server
helper and the Lighthouse start command switch it on. Tests that need another
answer still replace it per page with page.route.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sets siteContent.contactForm.enabled to true so the test site opens the form.
Must not be merged to master; revert before the merge. Go-live needs
Bryan's explicit go (production readiness checklist).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds the build and test summary and instructions, the deployment and
monitoring plans, the production readiness checklist with the go-live
conditions, and the approved privacy draft (retention, controller).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
frame-src gets the three exact Friendly Captcha global hosts (no wildcard).
When the widget errors, is blocked or shows no sign of life, the form says so
and offers the mail button instead of blocking silently. Adds an e2e for the
form with a mocked API, a draft privacy text for approval, and label tests.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copies the headless cms-client package (SlpSoftware 93fa729) and builds the
form on useContactForm: availability check when the form is in view (no
request while switched off), the readable shoot label as subject, the Friendly
Captcha widget as its own lazy chunk, trackEvent for contact-sent and
contact-failed. Removes the old reducer, validation and submit stub.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds the contact-form-cms feature docs (requirements, execution plan,
functional and infrastructure design, code generation plan) and an optional
Vite dev proxy for /api through API_PROXY_TARGET.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>