feat(pages): Custom HTML block and hide-header switch in the page editor

The iframe guard allow-lists HtmlFrame.tsx for the named FRAME_SANDBOX
only, and asserts it never grants same-origin, forms, top navigation
or modals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-02 18:05:00 +08:00
1 parent 6a0a6613c1
commit cfc817082d
12 files changed
+148 -7

No files matched your search

@@ -20,11 +20,11 @@ Design: `design.md` and `docs/superpowers/specs/2026-12-02-custom-html-block-des
- [x] 2.2 `CmsBlocks`:
- the sandboxed iframe with height messages from its own frame only;
- `hideHeader` hides the header and the title.
- [ ] 2.3 Editor:
- [x] 2.3 Editor:
- "Add Custom HTML", with a monospace text box, a counter and the forms note;
- the "Hide page header" switch;
- field errors at the HTML field.
- [ ] 2.4 Labels in `defaultMessages.ts` with Chinese in `zh_CN.seed.json`, then `npm run i18n:sql`. `sql/02-html-block-labels.sql` holds only the new labels.
- [x] 2.4 Labels in `defaultMessages.ts` with Chinese in `zh_CN.seed.json`, then `npm run i18n:sql`. `sql/02-html-block-labels.sql` holds only the new labels.
- Verify (2.1 to 2.4): `cd solvway-admin-portal && npx vitest run; echo VITEST=$? && npx tsc --noEmit && npm run lint`
## 3. Release