Commit Graph
90 Commits
Author SHA1 Message Date
SluijsensandClaude Sonnet 5.5 db86332c1f Opens the contact form through a build switch instead of the TEST ONLY commit; closes the AI-DLC records
Continuous Integration / check (pull_request) Successful in 2m25s
Continuous Integration / build-test (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 9m2s
Continuous Integration / deploy-production (pull_request) Skipped
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>
2026-11-16 12:01:29 +01:00
SluijsensandClaude Sonnet 5.5 e7bae5edd7 Translation files: the form messages of the cms-client package come from nl.json
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>
2026-11-16 00:30:01 +01:00
SluijsensandClaude Sonnet 5.5 85370351d0 Translation files: one file per language (src/i18n/nl.json)
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>
2026-11-15 21:20:47 +01:00
SluijsensandClaude Sonnet 5.5 c839b255eb Translation files, steps 6 and 7: portfolio, instagram, testimonials and the SEO titles in language files
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 20:51:09 +01:00
SluijsensandClaude Sonnet 5.5 776cd9861d Translation files, step 5: shoot types and shoot pages in shoots.json
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 20:51:09 +01:00
SluijsensandClaude Sonnet 5.5 96319340eb Translation files, step 4: about and contact pages in about.json and contact.json
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 20:51:08 +01:00
SluijsensandClaude Sonnet 5.5 8df4e5d2f2 Translation files, step 3: the home page sections in home.json
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 20:51:08 +01:00
SluijsensandClaude Sonnet 5.5 034ba902d2 Translation files, step 2: navigation, footer and contact details in site.json
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 20:51:07 +01:00
SluijsensandClaude Sonnet 5.5 9405e2d4f9 Translation files, step 1: common texts (forms, status pages, lightbox, labels) in common.json
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 20:51:07 +01:00
SluijsensandClaude Sonnet 5.5 458913fd9d Translation files: read the language files in node too and enforce the lint rules
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 20:51:07 +01:00
SluijsensandClaude Sonnet 5.5 ab33e1fc83 Translation files: area files in place and the common texts for shared labels
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 17:36:38 +01:00
SluijsensandClaude Sonnet 5.5 246ebe5fd6 Translation files, step 0: typed text helper, checks and the baseline of the pages
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>
2026-11-15 17:34:18 +01:00
SluijsensandClaude Sonnet 5.5 107647f7a5 Local only: Cormorant Garamond and Mulish instead of Marcellus and Jost
Not pushed: Bryan compares it with the current test version first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 17:15:04 +01:00
SluijsensandClaude Sonnet 5.5 b2cb6351e1 Leaves the theme twigs out of the site and the repo
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>
2026-11-15 16:57:29 +01:00
SluijsensandClaude Sonnet 5.5 2771661a1d Makes the outline buttons heidegroen and records where the assets come from
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>
2026-11-15 16:50:49 +01:00
SluijsensandClaude Sonnet 5.5 bf21b6f690 Builds the markers, data block and stand-in host for the CMS host injection
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>
2026-11-15 16:21:08 +01:00
SluijsensandClaude Sonnet 5.5 16027f5688 Adds the neutral HTML, the data block helpers and the golden files of the host injection
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>
2026-11-15 16:05:42 +01:00
SluijsensandClaude Sonnet 5.5 ba7288526b Gives a featured package a quiet highlight and makes the optional CMS fields explicit
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>
2026-11-15 14:15:23 +01:00
SluijsensandClaude Sonnet 5.5 9eeb05f8fa Lets the test build present itself under its own address
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>
2026-11-15 11:50:11 +01:00
SluijsensandClaude Sonnet 5.5 6f1be2f7f5 Adds a slim top bar above the packages and centres the last row of cards
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>
2026-11-14 12:42:07 +01:00
SluijsensandClaude Sonnet 5.5 e28188c997 Makes the price banner lighter and richer in the ASF style
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>
2026-11-13 08:41:15 +01:00
SluijsensandClaude Sonnet 5.5 fd77a39843 Gives the price banner the ASF look instead of a dark block
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>
2026-11-12 13:02:45 +01:00
SluijsensandClaude Sonnet 5.5 915c41b92e Covers the featured flag of an offering in the mapping tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:26:18 +01:00
SluijsensandClaude Sonnet 5.5 12319bb841 Updates the packages and the banner live in the browser
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>
2026-11-12 11:19:50 +01:00
SluijsensandClaude Sonnet 5.5 f9180f231f Lets the price banner work with empty fields
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>
2026-11-12 09:42:35 +01:00
SluijsensandClaude Sonnet 5.5 5bfbde1881 Reads the shoot packages and an optional banner from the CMS at build time
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>
2026-11-12 08:13:01 +01:00
SluijsensandClaude Sonnet 5.5 d449e7668e TEST ONLY: enable the contact form for the ASF test deploy
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>
2026-11-11 13:18:50 +01:00
SluijsensandClaude Sonnet 5.5 a1444b7b2a Adds the captcha frame hosts to the CSP and handles a widget that cannot load
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>
2026-11-10 23:27:29 +01:00
SluijsensandClaude Sonnet 5.5 e09459423f Connects the contact form to the CMS API through the cms-client package
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>
2026-11-10 23:21:02 +01:00
SluijsensandClaude Sonnet 5.5 b03b18f58e Redesigns the testimonials section
A landscape photo overlaps a card with the shoot type, quote and names. The controls are two arrows with an X / Y counter; the dots are gone and nothing moves by itself. A change slides the whole slide horizontally, also on a swipe. Reviews get an optional imagePosition for the crop, normalised by normalizeImagePosition; slideCounter writes the counter. Both helpers have property tests next to example tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 01:24:14 +01:00
SluijsensandClaude Sonnet 5.5 9a2e84e4b2 Shows section headings in letter-spaced capitals
SectionHeading gets the new sectionHeading text style: uppercase, the shared caps letter-spacing, 26px on phones and 30px from md. The text in the DOM does not change, so accessible names stay as they are. The plain sectionTitle style stays for the headings that do not use SectionHeading.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 01:24:14 +01:00
SluijsensandClaude Opus 5.5 b6d5a85e41 Applies the owner's Lighthouse targets
Three pages no longer need an exception and the homepage target rises to its
measured score, so the gain cannot slip away unnoticed. Also adds the third
unit's code summary and updates the shared docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 20:07:24 +01:00
SluijsensandClaude Opus 5.5 6d4d01238a Hardens the upload path check and the deploy verification
A remote of . or .. could have made the cleanup pass delete the wrong folder, so
such paths are refused before anything runs. A connection error now ends in the
normal summary instead of aborting the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 19:31:21 +01:00
SluijsensandClaude Opus 5.5 e4e7f8c82c Adds the URL rules to the preview server, IIS config and deploy
The preview server and web.config now follow the same URLs as nginx, without
the SPA fallback. Lighthouse exceptions need a recorded reason and the 404 page
is audited through an opt-in route. The deploy checks the build first and the
served result afterwards. The IIS rules stay unverified until a host exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 18:13:21 +01:00
SluijsensandClaude Opus 5.5 95e3c61281 Fixes a race in the hydration tests of the 404 page
The router swaps its pending copy for the real page after 500 ms, so a heading
found before that can leave the document before the assertion. CI on the Pi
caught this. The page itself shows identical content during the swap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 03:36:05 +01:00
SluijsensandClaude Opus 5.5 33334b889d Generates the nginx rules for prerendered pages
Pages now map to their html file, other forms get one redirect, unknown URLs
get a real 404 and responses are compressed. A browser-free test suite runs the
rules against a real nginx, in CI only so far.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 03:00:07 +01:00
SluijsensandClaude Opus 5.5 b5fd83256d Loads the light logo after the page load
Lazy loading saved its bytes during page load, but left the logo empty for a
moment when navigating to the homepage on a wide screen. Also adds the second
unit's code summary and the shared docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 01:56:13 +01:00
SluijsensandClaude Opus 5.5 2754890370 Adds browser tests for the page without JavaScript
The tests cover every page without JavaScript, the menu by keyboard and pointer,
the fade-in at load and on scroll, and image requests per width. They found that
the closed menu's shoot links could take focus, which is fixed here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:50:17 +01:00
SluijsensandClaude Opus 5.5 01fcfeefea Adds the fallbacks for visitors without JavaScript
The mobile menu works through CSS, and controls that need JavaScript are hidden
without it. The contact photo gets its own preload, and the tests cover the new
Reveal behaviour, the first row and the noscript markup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:09:33 +01:00
SluijsensandClaude Opus 5.5 44125155bc Makes Reveal, deferred images and the first row work from the HTML
Reveal content is visible in the HTML and only content below the viewport hides
after hydration. Deferred photos get a noscript twin, and the first row of the
portfolio loads eagerly per column count. Some old tests still expect the former
behaviour; they are rewritten next, so this commit's test run is not fully green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 22:57:05 +01:00
SluijsensandClaude Opus 5.5 d6f8eb6c8e Moves the hydration test out of the routes folder
The route generator scans that folder and warned about the test file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 20:25:58 +01:00
SluijsensandClaude Opus 5.5 8bf0000531 Adds browser tests and fixes hydration of the 404 page
The prerendered 404 page is served for other URLs, so its dehydrated match id
differs and the router renders the catch-all's pending component first. Without
one that render was empty, which gave React error 418 and duplicate head tags.
The tests run the built output in a real browser under the production CSP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 19:03:07 +01:00
SluijsensandClaude Opus 5.5 fe1ec5db3d Wires the script step and preview server into the build
The build now moves inline scripts and fails on a violation. Lighthouse audits
/404.html, because it refuses a page with a real 404 status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 18:25:41 +01:00
SluijsensandClaude Opus 5.5 0b964b5466 Adds a preview server that follows the real server rules
Lighthouse and the browser tests need a real 404 status, the .html mapping and
the production headers, which vite preview does not give. It is not wired into
the scripts yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 18:20:22 +01:00
SluijsensandClaude Opus 5.5 2c2e27e337 Makes the first render match the prerendered HTML
Search values, the 404 buttons and the footer year now apply after hydration.
The e-mail address stays out of the HTML behind a placeholder, and all review
texts are in the page, so crawlers can read them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 18:17:26 +01:00
SluijsensandClaude Opus 5.5 1574726c1d Adds the step that moves inline scripts to files
TanStack Start writes inline scripts into each page, which the strict CSP
blocks. This step moves them to hashed files and checks the output: every page
is present, no executable inline script remains and the e-mail address appears
nowhere. It is not part of the build yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 18:12:42 +01:00
SluijsensandClaude Opus 5.5 c1e90f0768 Moves the app to TanStack Start with prerendering
Every page is now built as HTML from sitePages.ts, with a catch-all route for
404.html. Hooks that read the browser during render are safe for prerendering.
The script step that keeps the CSP intact follows, so this build still has
inline scripts and is not deployable yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:58:54 +01:00
SluijsensandClaude Opus 5.5 7af2069959 Adds the shoot page layout and the shoot-type submenu
Shoot pages follow design E: breadcrumb, story blocks, process
timeline with icons, photo mosaic, FAQ, package block and booking
call to action, with per-shoot OG images. The navigation gets a
"Soorten fotoshoots" submenu (desktop panel, mobile group) built from
shootTypes, with exact current-page matching in menu, footer and
breadcrumb. A 404 under /soorten-fotoshoots/ also offers a link back
to the overview.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 14:43:43 +01:00
SluijsensandClaude Opus 5.5 e5f4348178 Adds the shoot-type pages content and SEO foundation
Five pages under /soorten-fotoshoots/<id> with draft copy awaiting
Andrea's approval (DRAFT markers), structured data (Service,
BreadcrumbList, FAQPage), sitemap and Lighthouse entries. The overview
route moves to soorten-fotoshoots/index.tsx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 13:31:46 +01:00
SluijsensandClaude Opus 5.5 9efa7fc596 Adds the portfolio page
The ten live photos in a filterable masonry grid with an accessible
lightbox, filters per shoot type kept in the URL (?shoot=), the shared
Instagram block, and an indexed page with image gallery structured data
and its own preview image. Soorten fotoshoots now only links to the
portfolio for shoot types that have photos there.

The filter bar stays on one row, so the web font loading no longer
shifts the photos below it, and no photo loads before the page has: the
grid fades in, so loading its photos early only delayed the fonts and the
intro text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 19:05:13 +01:00