From b5fd83256dc2e16397e93ca4a5333f1a60ef2433 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Sun, 1 Nov 2026 01:56:13 +0100 Subject: [PATCH] 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 --- .../reverse-engineering/api-documentation.md | 7 +- .../reverse-engineering/architecture.md | 4 +- .../code-quality-assessment.md | 2 +- .../reverse-engineering/code-structure.md | 6 +- .../features/prerendering/aidlc-state.md | 4 +- .../display-fallbacks/code/code-summary.md | 64 ++++++++++++++++ .../code/measurement-display.md | 6 +- .../code/verification-log.md | 2 +- .../functional-design/business-rules.md | 2 +- .../functional-design/frontend-components.md | 4 +- .../display-fallbacks-code-generation-plan.md | 5 +- web/e2e/images.e2e.ts | 75 +++++++++++++++---- .../NavigationBar/NavigationBar.test.tsx | 21 +++++- .../NavigationBar/NavigationBar.tsx | 11 ++- 14 files changed, 176 insertions(+), 37 deletions(-) create mode 100644 aidlc-docs/features/prerendering/construction/display-fallbacks/code/code-summary.md diff --git a/aidlc-docs/_shared/reverse-engineering/api-documentation.md b/aidlc-docs/_shared/reverse-engineering/api-documentation.md index b8c78c6..d2f0916 100644 --- a/aidlc-docs/_shared/reverse-engineering/api-documentation.md +++ b/aidlc-docs/_shared/reverse-engineering/api-documentation.md @@ -23,6 +23,7 @@ None. There is no back-end yet (`api/` is empty). The static design README antic ### seo.ts / sitePages.ts / sitemap.ts - `pageHead(path: RoutePath)` → `{ meta, links }` (title, description, robots noindex if not indexed, OG tags, canonical) - `siteHead(content: SiteContent)` → `{ meta, scripts }` (OG basics, JSON-LD ProfessionalService) +- `preloadImage(image, { media? })` → `HeadLink` (high-priority image preload link; prerendering display fallbacks) - `canonicalUrl(path, base?)`, `jsonLdScript(data)`, `structuredDataScript(data)`, `professionalService(content)` (with `@id` `businessId` and `founder` → `personId`), `person(content, site, image)`, `aboutPage(path, content, site)` - `sitePages: Record`, `pageList(pages)` - `sitemapXml(...)` — used by `config/sitemapPlugin.ts` @@ -40,11 +41,11 @@ None. There is no back-end yet (`api/` is empty). The static design README antic - `RichParagraph({ paragraph: RichText })` — paragraph with inline links (moved from `about/`) - `Eyebrow(TextProps & { as?: 'p' | 'span' | 'h2' | 'h3' | 'h4' })` — accent label, optionally a heading - `SectionHeading({ id, title, eyebrow?, lead?, align?: 'center' | 'start', spacing?: 'default' | 'compact', focusable? })` — renders an h2 -- `FramedImage({ image: ContentImage, aspectRatio })`, `DeferredImage(ImageProps & { image, near? })`, `Reveal(BoxProps & { delay? })` +- `FramedImage({ image: ContentImage, aspectRatio })`, `DeferredImage(ImageProps & { image, near? })` (also renders a `