Issue 617
Move the site header off generated Payload types (mapper to plain props)
Back to our planOpen
frontendcmstech-debtpriority: low
In plain words: the header, shown on every page, still takes Payload's generated type instead of plain props (decision 0013).
Details: SiteHeaderBar.client.tsx and HeaderNav.client.tsx import Header from payload-types; also getPageBySlug, findEventsThisWeek, findArchivePosts and the contact form block use plugin or generated types. Start with the header (every page uses it); one PR per module after. Check that platform/payload/resolveLink is client-safe.
Acceptance criteria
- Header ui/ takes plain props from a mapper in the module's data/, with a mapper test
- No behaviour change
Generated by Claude Code, opens in a new tab