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>
This commit is contained in:
2026-10-27 19:05:13 +01:00
co-authored by Claude Opus 5.5
parent 18bf0311ef
commit 9efa7fc596
58 changed files with 1492 additions and 48 deletions
@@ -268,3 +268,51 @@ Feature "portfolio-page" may affect components also touched by active feature "o
**Context**: CONSTRUCTION - Code Generation Unit 2 (generated, awaiting approval)
---
## Code Generation — Unit 2 — Approval; SSH agent; Functional Design Unit 3 start
**Timestamp**: 2026-10-27T08:00:00Z
**User Input**: "start de ssh agent, want de pc is tussendoor uit geweest. Dan kan je pushen zodra ik wil dta je dta doet. Ga daarna verder naar de volgende stage"
**AI Response**: "Unit 2 approved (18bf031). No agent was running; started one without -t (ssh-agent -s > ~/.ssh/agent.env, PID 1170); it has no identities yet — asked the user to run ssh-add themselves (passphrase). Push only on the user's request. Started Functional Design for unit 3: downloaded the 10 live portfolio photos into a scratch folder (sizes 1067×1600 / 1600×1067, one 2560×1707), viewed them, and created construction/plans/portfolio-page-functional-design-plan.md and portfolio-page-fd-questions.md with a proposal of shoot type and alt text per photo (Newborn 6, Zwangerschap 2, Gezin 2; no Loveshoot or Portret) and 4 questions (approve proposal, photos 2/4 newborn or gezin, OG photo, Soorten links follow-up)."
**Context**: CONSTRUCTION - Functional Design Unit 3 (awaiting answers)
---
## Functional Design — Unit 3 — Answers and Artifacts
**Timestamp**: 2026-10-27T08:30:00Z
**User Input**: "ik heb de vragen beantwoord"
**AI Response**: "Answers: Q1 A (shoot types and alt texts as proposed), Q2 A (photos 2 and 4 stay Newborn), Q3 A (preview image from photo 7), Q4 A (wire the 'types with photos' helper into Soorten fotoshoots in this unit; 3 links instead of 5). No ambiguities. Generated construction/portfolio-page/functional-design/{domain-entities, business-rules, business-logic-model, frontend-components}.md: the 10 photos with ids, types, sizes and alt texts; filter, ?shoot=, caption, SEO (ImageGallery with ImageObjects, og-portfolio.jpg, /portfolio indexed but not in photoPagePaths unless measured below 0.9 and the user agrees) and Soorten link rules; new pure helpers with properties; PortfolioGallery and the route; ShootList/ShootBlock prop portfolioLive → portfolioShoots."
**Context**: CONSTRUCTION - Functional Design Unit 3 (awaiting approval)
---
## Functional Design — Unit 3 — Approval
**Timestamp**: 2026-10-27T08:45:00Z
**User Input**: "approved, ga door. ssh key is ook geladen"
**AI Response**: "Functional design of unit 3 approved. Verified the ED25519 key is loaded in the agent (push still only on request). Created construction/plans/portfolio-page-code-generation-plan.md (15 steps: photo processing with a one-off System.Drawing script, content and types, portfolioFilters helpers with PBT, galleryImages, PortfolioGallery, route, sitePages/lighthouserc/sitemap, app tests, Soorten links prop change, LAYOUT.md, RE lines, pnpm check with a stop-and-ask if /portfolio mobile < 0.9, visual check offered via deploy_test on request, summary, commit)."
**Context**: CONSTRUCTION - Code Generation Unit 3 (plan awaiting approval)
---
## Code Generation — Unit 3 — Plan Approval, Generation and Loading Decision
**Timestamp**: 2026-10-27T18:10:00Z
**User Input**: "Approve plan" — later "Ga verder waar je gebleven was" — and, asked in chat (AskUserQuestion) how the first portfolio photos load: "Geen foto direct laden (Recommended)"
**AI Response**: "Executed portfolio-page-code-generation-plan.md. Photos processed with a one-off System.Drawing script (first run failed: in PowerShell argument mode `[long]80` was passed as a string; fixed with `EncoderParameter]::new`). Content, portfolioFilters with PBT, galleryImages, PortfolioGallery (closes the lightbox on any filter change, detected during render), route, sitePages/lighthouserc/sitemap, app tests, Soorten links prop change, LAYOUT.md, RE lines. First pnpm check: /portfolio mobile 0.77. Diagnosed with dedicated Lighthouse runs: LCP was the intro text at 4.5 s because the 3 eager (but Reveal-hidden) photos competed with the fonts; CLS 0.119 came from the filter bar re-wrapping when the web font loaded (measured: without the bar CLS 0). Fixed the filter bar at the cause (single non-wrapping row; CLS 0.001) and asked the user about eager loading (0.80 with vs 0.91 without, two runs each); user chose no eager photos; requirements FR-PF-07 and BR-LD-01 updated. Final pnpm check: tests 82/460 green, /portfolio passes; remaining mobile failures (/, /soorten-fotoshoots, /contact) measured equally on master (pre-existing). Desktop green after one transient connection-refused rerun. Committed locally (no push)."
**Context**: CONSTRUCTION - Code Generation Unit 3 (generated, awaiting approval)
---