feat(pages): canvas frame spike passes; Custom HTML frames listen on their own window
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
1 parent
55d9535ef2
commit
5f4f3bc1ee
5 files changed
+74
-8
No files matched your search
@@ -6,7 +6,7 @@ Design: `design.md`. Every task is TDD. Work is serial in the main session, with
|
||||
|
||||
## 1. Foundations
|
||||
|
||||
- [ ] 1.1 **Spike, kept only if it passes:** render `LandingPage` into a blank frame by portal, with copied styles and theme. It passes when all of these work, in `next dev` and in one `next build` + `next start`:
|
||||
- [x] 1.1 **Spike, kept only if it passes:** render `LandingPage` into a blank frame by portal, with copied styles and theme. It passes when all of these work, in `next dev` and in one `next build` + `next start`:
|
||||
- Tailwind breakpoints follow the frame width (390 vs 1280).
|
||||
- Fonts and dark mode look right.
|
||||
- A Tiptap editor inside the frame types, selects and applies bold.
|
||||
@@ -15,7 +15,8 @@ Design: `design.md`. Every task is TDD. Work is serial in the main session, with
|
||||
- A Custom HTML frame inside it reports its height.
|
||||
|
||||
On failure, stop and switch to the canvas-route fallback (design Decision 1), noting why.
|
||||
- [ ] 1.2 `HtmlFrame` listens on its own document's window (test: a frame inside another document still resizes).
|
||||
Passed 2026-12-03 in `next dev` and `next build` + `next start`: 390 px stacks the cards and 1280 px shows three columns; Inter and dark mode follow the editor live; Tiptap typed and applied bold; a plain field kept its caret; dragstart and drop fired inside the scaled frame; a Custom HTML frame grew to 4419 px after 1.2. The frame scrolls inside rather than growing (design Decision 2).
|
||||
- [x] 1.2 `HtmlFrame` listens on its own document's window (test: a frame inside another document still resizes).
|
||||
- [ ] 1.3 Move `PageEditor` state and actions into `usePageDraft`, with no behaviour change. All existing `PageEditor*.test.tsx` stay green and unchanged.
|
||||
- [ ] 1.4 Leave guard for in-app links in the form editor (test: an in-app link click with unsaved edits asks; Cancel stays, Leave navigates).
|
||||
|
||||
|
||||
Reference in new issue
Block a user