Adds the first unit's code summary and updates the shared docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
## Build System
|
||||
- **Type**: pnpm (`packageManager: pnpm@12.11.2`, lockfile `web/pnpm-lock.yaml`)
|
||||
- **Configuration**:
|
||||
- `web/package.json` — scripts `dev`, `build` (`tsc && vite build`), `preview`, `test` (vitest + coverage), `lint`, `format:check`, `audit:deps`, `audit:dev`, `lighthouse`, `server-config`, and `check` (all of them in sequence)
|
||||
- `web/vite.config.ts` — TanStack Router plugin (`autoCodeSplitting`) before React plugin, sitemap plugin, security headers on dev/preview, Vitest config (jsdom, 20 s timeout, 100% coverage threshold for `src/lib/**`, `seo.ts`, `sitemap.ts`)
|
||||
- `web/package.json` — scripts `dev`, `build` (`tsc && vite build` and the script step `config/externalizeInlineScripts.ts`; prerendering), `preview` (`config/previewServer.ts`), `e2e` (browser tests), `test` (vitest + coverage), `lint`, `format:check`, `audit:deps`, `audit:dev`, `lighthouse`, `server-config`, and `check` (all of them in sequence, `e2e` added by prerendering)
|
||||
- `web/vite.config.ts` — TanStack Start plugin with prerendering (prerendering; replaces the router plugin, code splitting included) before React plugin, sitemap plugin, security headers on dev/preview, Vitest config (jsdom, 20 s timeout, 100% coverage threshold for `src/lib/**`, `seo.ts`, `sitemap.ts`)
|
||||
- `web/tsconfig.json` — bundler mode, `@/*` → `src/*`
|
||||
- `web/eslint.config.js` — JS + typescript-eslint + react-hooks + jsx-a11y recommended
|
||||
- `web/.prettierrc` — 4 spaces, single quotes, semicolons
|
||||
@@ -53,8 +53,8 @@ Text alternative: the root route renders AppShell (NavigationBar, Footer, BackTo
|
||||
|
||||
### Existing Files Inventory
|
||||
Candidates for modification are marked with ★ for the over-mij-page feature.
|
||||
- `web/index.html` — HTML entry; static fallback head for non-JS crawlers
|
||||
- `web/src/main.tsx` — bootstrap
|
||||
- `web/index.html` and `web/src/main.tsx` — removed by prerendering; replaced by `src/client.tsx` (hydration entry, Sentry start), `src/router.tsx` (`getRouter`) and the document shell in `routes/__root.tsx`
|
||||
- `web/src/routes/$.tsx` — catch-all route, renders `NotFound` (prerendered as `404.html`; prerendering)
|
||||
- `web/src/routeTree.gen.ts` — generated (do not edit)
|
||||
- `web/src/routes/__root.tsx` — root layout, site head, 404/error
|
||||
- `web/src/routes/index.tsx` — home (`/`): Hero + six sections, `?pakket=` search param
|
||||
@@ -76,7 +76,7 @@ Candidates for modification are marked with ★ for the over-mij-page feature.
|
||||
- `web/src/content/aboutContent.ts` — about page content; `web/src/assets/about/*` — portrait and duo photos; `web/public/og-over-mij.jpg` — preview image
|
||||
- `web/src/routes/soorten-fotoshoots/index.tsx` — the shoot types page (moved from `routes/soorten-fotoshoots.tsx`); `newborn.tsx`, `zwangerschap.tsx`, `gezin.tsx`, `loveshoot.tsx`, `portret.tsx` — one route per shoot page (`/soorten-fotoshoots/<id>`); `-shootPageSources.ts` — the sources the shoot routes share
|
||||
- `web/src/content/shootPageShared.ts` — shared shoot page content (breadcrumb, process, deposit, shared FAQ items, offer texts); `web/src/content/shootPages/*.ts` — one content module per shoot page, plus `shootPages.test.ts` (content consistency)
|
||||
- `web/src/test/renderApp.tsx` — `renderApp(path)` and `expectShell()` for the route tests
|
||||
- `web/src/test/renderApp.tsx` — `renderApp(path)` and `expectShell()` for the route tests (prerendering: with a test shell instead of the document shell); `web/src/test/hydrate.tsx` — hydration helpers incl. `hydrateAppAsStart`
|
||||
- `web/src/shootPages.test.tsx` — route tests for the five shoot pages (unit 2): outline, sections, breadcrumb, `aria-current` (main and menus), package variants, OG registry, axe; the overview's "Lees meer" links
|
||||
- `web/src/routes/portfolio.tsx` — the portfolio (indexed; `?shoot=` filter; `ImageGallery` JSON-LD); `web/src/components/portfolio/PortfolioGallery/`, `web/src/content/portfolioContent.ts`, `web/src/lib/portfolioFilters.ts`, `web/src/assets/portfolio/*` (10 photos × 2 sizes), `web/public/og-portfolio.jpg`
|
||||
- `web/src/routes/{contact,privacyverklaring}.tsx` — placeholders with `PageIntro`
|
||||
@@ -99,7 +99,7 @@ Candidates for modification are marked with ★ for the over-mij-page feature.
|
||||
- ★ `web/src/content/types.ts` — content interfaces (API shape)
|
||||
- ★ `web/src/content/*.ts` — static content (`siteContent`, `heroContent`, `homeContent` (exports `introPhotos`), `instagramContent`, `packages`, `testimonials`, `socialPlatforms`)
|
||||
- `web/src/contact/*` — contact form types and placeholder submit
|
||||
- `web/src/hooks/*` — `useRouteFocus`, `useScrolledPast`, `useInView`, `usePageLoaded`, `useReveal`, `useSwipe` (shared by the hero and the lightbox)
|
||||
- `web/src/hooks/*` — `useRouteFocus`, `useScrolledPast`, `useInView`, `usePageLoaded`, `useReveal`, `useSwipe` (shared by the hero and the lightbox), `useHydrated`, `useEmailAddress` (prerendering: first render equals the prerendered HTML)
|
||||
- `web/src/hooks/useDismiss.ts` — Escape and outside pointer down while active (`useDismiss(ref, active, onDismiss)`), used by NavSubmenu and MobileNav (unit 3)
|
||||
- `web/src/components/{PortfolioGrid,Lightbox,FilterBar}/` — gallery building blocks (portfolio-page unit 2): masonry grid in reading order (CSS only), lightbox on Chakra `Dialog` (lazy-loadable default export), single-choice toggle buttons; generic over `GalleryItem` / `FilterOption`
|
||||
- `web/src/lib/*.ts` — pure helpers with tests
|
||||
@@ -113,6 +113,7 @@ Candidates for modification are marked with ★ for the over-mij-page feature.
|
||||
- `web/src/assets/*` — hero photos (8), `home/` (intro 1–4, andrea, deco 1–2, two review photos), light/dark logos
|
||||
- `web/config/securityHeaders.ts` — CSP
|
||||
- `web/config/serverConfig.ts`, `writeServerConfig.ts`, `sitemapPlugin.ts`, `testSeed.ts`
|
||||
- `web/config/{pageFiles,inlineScripts,externalizeInlineScripts,previewServer}.ts` — prerendering: page file names, moving inline scripts to files after the build, preview server with the real server rules; `web/e2e/` and `web/vitest.e2e.config.ts` — browser tests on `dist/client`
|
||||
- `web/deploy/iis/web.config`, `web/deploy/nginx/*.conf` — generated server configs
|
||||
- `web/public/*` — favicon, logo, og-image, robots.txt, icons.svg; `og-{newborn,zwangerschap,gezin,loveshoot,portret}.jpg` (unit 2: 1200 × 630, the shoot pages' `ogImage`)
|
||||
|
||||
@@ -156,8 +157,8 @@ Candidates for modification are marked with ★ for the over-mij-page feature.
|
||||
## Critical Dependencies
|
||||
### @chakra-ui/react ^3.37.0
|
||||
- **Usage**: All layout and styling; typegen from `theme.ts` on install
|
||||
### @tanstack/react-router ^1.170.39 (+ router-plugin ^1.168.40)
|
||||
- **Usage**: File-based routes, `Link`, `Outlet`, `HeadContent`, typed `RoutePath`
|
||||
### @tanstack/react-router 1.170.46 (+ @tanstack/react-start 1.169.4; prerendering)
|
||||
- **Usage**: File-based routes, static prerendering (Start), `Link`, `Outlet`, `HeadContent`, typed `RoutePath`
|
||||
### @sentry/react ^11.8.0
|
||||
- **Usage**: Error reporting, lazy-loaded after the load event
|
||||
### @iconify/react ^6.0.2 + @iconify-icons/ant-design 2.0.1
|
||||
|
||||
Reference in New Issue
Block a user