Adds the Prijzen section to the homepage
Shows the three live packages as cards with their price and what is included. Each card links to the contact section with ?pakket=<id>, so the contact form can preselect it. Invalid packages from the CMS are skipped and the pakket value is only accepted when it names a package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -305,3 +305,103 @@ Nou is het nog een statische site zonder back-end dus het contactformulier kan n
|
||||
**Context**: CONSTRUCTION - Unit 2 Code Generation (complete, awaiting approval)
|
||||
|
||||
---
|
||||
|
||||
## Unit 2 Over mij — Approval
|
||||
|
||||
**Timestamp**: 2026-10-20T01:25:00Z
|
||||
|
||||
**User Input**: "Op mobiel ziet het er goed uit. Op desktop kan ik nu niet goed zien. Dus als ik daar issues mee heb zal ik het later via bugfixes oppakken.. ga verder"
|
||||
|
||||
**AI Response**: "Unit 2 approved (desktop review deferred by the user; issues will come in as bug fixes). Proceeding to Unit 3 Prijzen — Functional Design."
|
||||
|
||||
**Context**: CONSTRUCTION - Unit 2 complete; Unit 3 start
|
||||
|
||||
---
|
||||
|
||||
## Unit 3 Prijzen — Functional Design Plan and Questions
|
||||
|
||||
**Timestamp**: 2026-10-20T01:30:00Z
|
||||
|
||||
**User Input**: (none — AI-initiated)
|
||||
|
||||
**AI Response**: "Created construction/plans/prijzen-functional-design-plan.md (7 steps) and prijzen-fd-questions.md with 5 questions: VAT note, accessible names for the three 'Boek je shoot' links, second click behaviour, keeping ?pakket in the URL, package without a price."
|
||||
|
||||
**Context**: CONSTRUCTION - Unit 3 Functional Design (awaiting answers)
|
||||
|
||||
---
|
||||
|
||||
## Unit 3 Prijzen — Functional Design Answers
|
||||
|
||||
**Timestamp**: 2026-10-20T01:40:00Z
|
||||
|
||||
**User Input**: "1C
|
||||
2b, mits dat past anders 2a. De knop moet 1 regel blijven. In ieder geval op desktop
|
||||
3a
|
||||
4b
|
||||
5a"
|
||||
|
||||
**AI Response**: "Recorded answers in prijzen-fd-questions.md. Interpretation: Q1 C — Andrea uses the KOR, no VAT note. Q2 — deterministic rule: visible 'Boek {name}' when the name is short enough to stay on one line down to a 320px phone (≤ 14 characters), otherwise 'Boek je shoot' with the package name as visually hidden text; button never wraps. Q3 A — last click wins. Q4 B — ?pakket is removed from the URL (history replace, keeping #contact) as soon as the form has taken over the value; a reload no longer keeps the choice. Q5 A — price required. Generating functional design artifacts."
|
||||
|
||||
**Context**: CONSTRUCTION - Unit 3 Functional Design (answers received)
|
||||
|
||||
---
|
||||
|
||||
## Unit 3 Prijzen — Functional Design Complete
|
||||
|
||||
**Timestamp**: 2026-10-20T01:55:00Z
|
||||
|
||||
**User Input**: (none — generation)
|
||||
|
||||
**AI Response**: "Generated construction/prijzen/functional-design/: domain-entities.md (PricingPackage invariants, initial live data, KOR note), business-rules.md (BR-PRICE-01..03, BR-BOOK-01..03 with the 14-character label rule, BR-PARAM-01..04, two decision flowcharts, misuse notes), business-logic-model.md (booking sequence, four pure functions incl. new visiblePackages and bookLabel, 11 PBT properties, generators), frontend-components.md (Pricing, PriceCard, route validateSearch, accessibility). Prompt: Request Changes or Continue to Code Generation."
|
||||
|
||||
**Context**: CONSTRUCTION - Unit 3 Functional Design (awaiting approval)
|
||||
|
||||
---
|
||||
|
||||
## Unit 3 Prijzen — Functional Design Approval
|
||||
|
||||
**Timestamp**: 2026-10-20T02:00:00Z
|
||||
|
||||
**User Input**: "Ga verder"
|
||||
|
||||
**AI Response**: "Functional design approved. Proceeding to Code Generation Part 1 (planning) for unit 3."
|
||||
|
||||
**Context**: CONSTRUCTION - Unit 3 Functional Design approved
|
||||
|
||||
---
|
||||
|
||||
## Unit 3 Prijzen — Code Generation Plan
|
||||
|
||||
**Timestamp**: 2026-10-20T02:05:00Z
|
||||
|
||||
**User Input**: (none — AI-initiated)
|
||||
|
||||
**AI Response**: "Created construction/plans/prijzen-code-generation-plan.md (17 steps): decorations copied, content types and data, four pure helpers with PBT, arbitraries, linkButton 'fit' size (nowrap, smaller phone padding), PriceCard, Pricing, route validateSearch, app tests, pnpm check with visual check at 1440/390/320, summary, commit. Prompt: approve plan or request changes."
|
||||
|
||||
**Context**: CONSTRUCTION - Unit 3 Code Generation Part 1 (awaiting plan approval)
|
||||
|
||||
---
|
||||
|
||||
## Unit 3 Prijzen — Plan Approval
|
||||
|
||||
**Timestamp**: 2026-10-20T02:08:00Z
|
||||
|
||||
**User Input**: "Approve plan"
|
||||
|
||||
**AI Response**: "Plan approved. Starting Code Generation Part 2."
|
||||
|
||||
**Context**: CONSTRUCTION - Unit 3 Code Generation Part 2 (start)
|
||||
|
||||
---
|
||||
|
||||
## Unit 3 Prijzen — Code Generation Complete
|
||||
|
||||
**Timestamp**: 2026-10-20T03:05:00Z
|
||||
|
||||
**User Input**: (none — generation)
|
||||
|
||||
**AI Response**: "Executed all 17 steps. Step 13.5: tsc rejected search on chakra(Link) (route generics lost) — switched the card link to TanStack's typed Link with the linkButton recipe via asChild; two test assertions corrected (NBSP normalisation, alt='' role); ESLint no-irregular-whitespace from escapes written as literal characters — rewritten as escapes, src scanned. Visual check found the second decoration covered by the last card — moved into the section's bottom padding. Final pnpm check green: 170 tests, 100% coverage on new lib files, Lighthouse home mobile 0.83–0.89, desktop 1.0, a11y/BP/SEO 1.0. Committed locally (not pushed)."
|
||||
|
||||
**Context**: CONSTRUCTION - Unit 3 Code Generation (complete, awaiting approval)
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user