Commit graph

4 commits

Author SHA1 Message Date
7235d8b910 fix: navigation migration to payload-contracts
- Fix getNavigation() to use contracts API (no broken type filter)
- Single nav fetch in layout, pass mainMenu/footerMenu to components
- Header, Navigation, MobileMenu use CMS mainMenu schema
- Footer uses CMS footerMenu schema with linkType field
- Add pnpm-workspace.yaml for onlyBuiltDependencies allowlist
- Update payload-contracts to latest (navigation fix a0eea96)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:43:05 +00:00
12c8461108 fix: resolve lint errors (server.js ignore, unused vars)
- Add server.js to ESLint globalIgnores (CJS file for Passenger)
- Prefix unused destructured vars with underscore
- Comment out unused PAYLOAD_URL constant
- Configure underscore-prefix pattern for unused vars

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 21:49:23 +00:00
2500b8b16f feat: migrate API layer to @c2s/payload-contracts
- Add @c2s/payload-contracts as shared API client dependency
- Create src/lib/cms.ts with tenant-configured PayloadClient instance
- Replace manual fetch logic in api.ts with contracts client calls
- Add transpilePackages config for TypeScript source imports
- Local types preserved for component compatibility (bridge pattern)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 00:44:21 +00:00
ba54d7a85d Aktualisierung der Codebase 2026-02-07 21:34:14 +00:00