diff --git a/aidlc-docs/features/redesign-modern-timetravel/aidlc-state.md b/aidlc-docs/features/redesign-modern-timetravel/aidlc-state.md index a7f6d6c..e533871 100644 --- a/aidlc-docs/features/redesign-modern-timetravel/aidlc-state.md +++ b/aidlc-docs/features/redesign-modern-timetravel/aidlc-state.md @@ -5,7 +5,7 @@ - **Feature Slug**: redesign-modern-timetravel - **Project Type**: Brownfield - **Start Date**: 2026-11-09T13:00:00Z -- **Current Stage**: CONSTRUCTION - U4 contact-form Code Generation plan (awaiting approval) +- **Current Stage**: CONSTRUCTION - U4 contact-form Code Generation (awaiting approval) - **Branch**: feature/redesign-modern-timetravel ## Workspace State diff --git a/aidlc-docs/features/redesign-modern-timetravel/audit.md b/aidlc-docs/features/redesign-modern-timetravel/audit.md index a703878..97feb2a 100644 --- a/aidlc-docs/features/redesign-modern-timetravel/audit.md +++ b/aidlc-docs/features/redesign-modern-timetravel/audit.md @@ -718,3 +718,39 @@ **Context**: Code Generation Part 1 for U4. --- + +## U4 Code Generation Complete + +**Timestamp**: 2026-11-10T21:00:00Z + +**User Input**: "Approve plan" + +**AI Response**: "Executed all 9 steps of contact-form-code-generation-plan.md. Tests 14 files/154 before, 19 files/239 after, all passed; lint 0 errors (2 pre-existing warnings, boundary rule active); build OK. Two real defects found and fixed by tests (errors inside labels, focus while inputs disabled). Committed on feature/redesign-modern-timetravel, no push. Summary at construction/contact-form/code/summary.md. Deviation: mail address not assembled after mount. Builder released to rebase on master e671078 (PR 11 merged by CMS and API)." + +**Context**: Code Generation U4 complete; awaiting approval before U5. + +--- + +## Builder Rebase Accepted; CMS-U5, U6, U7 Plans Approved + +**Timestamp**: 2026-11-10T22:00:00Z + +**User Input**: "(cross-session message from SLS Software - CMS: rebase done, plans CMS-U5/U6/U7; all three plan files read in full)" + +**AI Response**: "Accepted the rebase on origin/master e671078 (15 commits ahead; follow-up commits: ClientPartitionKey in KeyFor, System/capabilities public marker, test repairs for ActiveUserTokenValidation, OpenAPI regenerated; tests Api.Andrea 11, Api 4, Core 625, Availability 154, Contact 225, Identity 145, Master 61, Offerings 86 green). Approved CMS-U5 (mail via new MailKind, additive changes in shared mail code with unchanged existing tests, recipient from environment only, backoff 5m/15m/1h/6h/24h, max 6), CMS-U6 (Berichten UI; opening marks as read; chips; no sidebar badge now), CMS-U7 (PUT /availability/status without alias; GET/HEAD-only bypass; one release with the admin app). Order U7, U5, U6. ASF session informed about the additive shared mail changes." + +**Context**: Leading the builder; CMS phase 2 started. + +--- + +## Interim Test Deploy, Runner-label PR, CMS-U8 Request + +**Timestamp**: 2026-11-11T09:00:00Z + +**User Input**: "kan ik een tussentijdse build zien? Kan je bijvoorbeeld deployen naar test met de nieuwe website?" / "Akkoord, ga verder. Ik zie trouwens dat de Aanbieding toevoegen-knop in het CMS op mobiel te breed is. Misschien dat we die naar icon-only kunnen veranderen of misschien beter een FAB? Dat kunnen we dan meteen mee laten nemen door de CMS-sessie" + +**AI Response**: "Pushed feature/redesign-modern-timetravel (no PR) and dispatched the CI workflow on it with deploy_test only: run 640 succeeded (deploy-test success, production skipped). Runner-label change for slp-modular-cms: ASF CMS session prepared branch ci/linux-runner-independent-jobs (fac6d30); with the user approval PR 12 was created (not merged); baseline run 634 durations recorded (backend-build 311s, backend-test 462s, vulnerability-scan 264s, frontend-prepare 93s, build 122s, test 373s, lint 112s, publish-test 367s). Builder asked for CMS-U8: Aanbieding toevoegen as FAB on mobile and Categorieen beheren icon-only, after CMS-U6." + +**Context**: Interim test build; CMS pipeline coordination. + +--- diff --git a/src/components/layout/Nav.tsx b/src/components/layout/Nav.tsx index 7707bb9..4174c2f 100644 --- a/src/components/layout/Nav.tsx +++ b/src/components/layout/Nav.tsx @@ -1,4 +1,4 @@ -import { useState } from 'react'; +import { useEffect, useState } from 'react'; import { navLinks } from '../../features/landing/data/content'; import { ModeToggle } from '../ui/ModeToggle'; import { VariantToggle } from '../ui/VariantToggle'; @@ -11,13 +11,23 @@ import { handleAnchorClick } from '../../utils/scrollToHash'; export function Nav() { const [isMenuOpen, setIsMenuOpen] = useState(false); + // Escape closes the mobile menu (keyboard users). + useEffect(() => { + if (!isMenuOpen) return; + const onKey = (event: KeyboardEvent) => { + if (event.key === 'Escape') setIsMenuOpen(false); + }; + document.addEventListener('keydown', onKey); + return () => document.removeEventListener('keydown', onKey); + }, [isMenuOpen]); + function handleMobileLinkClick(event: React.MouseEvent, href: string) { handleAnchorClick(event, href); setIsMenuOpen(false); } return ( -