cf56f2a38841ef7b6d31dc3e75df7c2aa9167eba
PageData.headCode was never populated from anything but '' and never read anywhere -- the real, live concept is SiteDesign.headCode (set via the Code modal, wired into Preview/export in D8). Remove the dead field from the PageData interface and its ~7 hardcoded headCode: '' seeds/discards in PageContext.tsx (DEFAULT_PAGE, DEFAULT_HEADER, DEFAULT_FOOTER, the context default value, addPage, setPagesCraftState, replaceAllPages). Update the PageData literals in useWhpApi.save.test.ts to match the trimmed interface. Verified via grep that nothing reads page.headCode, and `npm run build` (strict tsc) is clean -- no live reader broke. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Description
Visual drag-and-drop website builder using GrapesJS
Languages
TypeScript
61.2%
HTML
17.1%
JavaScript
17%
CSS
3.6%
PHP
0.8%
Other
0.3%