diff --git a/.planning/STATE.md b/.planning/STATE.md index 07e88d9..cc08259 100644 --- a/.planning/STATE.md +++ b/.planning/STATE.md @@ -32,7 +32,7 @@ See: .planning/PROJECT.md (updated 2026-09-16) Phase: 16.2 (Plugin-provided field types and the Blog Editor formwidget) — EXECUTING Plan: 6 of 6 Status: Ready to execute -Last activity: 2026-10-10 — Phase 16.2 execution started +Last activity: 2026-10-10 - Completed quick task 261010-iwu: Blog Editor live preview pane Progress: [██████████] 100% @@ -734,6 +734,7 @@ Recent decisions affecting current work: | 261009-i6e | add the anonymous author endpoint to sm-journal-plugin (D-20) | 2026-10-09 | sm-journal-plugin 908ade9, 57a347c | [261009-i6e-add-the-anonymous-author-endpoint-to-sm-](./quick/261009-i6e-add-the-anonymous-author-endpoint-to-sm-/) | | 261009-mgk | add the category content field to sm-journal-plugin (D-21) | 2026-10-09 | sm-journal-plugin 740dcd0, f22d089, 3d533d4 | [261009-mgk-add-the-category-content-field-to-sm-jou](./quick/261009-mgk-add-the-category-content-field-to-sm-jou/) | | 261009-mys | Add subtitle and avatar to backend users and a My account page (avatar menu, like WinterCMS) | 2026-10-09 | 143eca5, 64d21c8, 4f1cda3, 89611ea | [261009-mys-add-subtitle-and-avatar-to-backend-users](./quick/261009-mys-add-subtitle-and-avatar-to-backend-users/) | +| 261010-iwu | Blog Editor live preview pane: toggleable, sandboxed iframe, embed thumbnail cards (16.2 follow-up) | 2026-10-10 | sm-journal-plugin df67939, c1f6a83, 2c78211 | [261010-iwu-blog-editor-live-preview-pane-toggleable](./quick/261010-iwu-blog-editor-live-preview-pane-toggleable/) | ## Deferred Items diff --git a/.planning/quick/261010-iwu-blog-editor-live-preview-pane-toggleable/261010-iwu-PLAN.md b/.planning/quick/261010-iwu-blog-editor-live-preview-pane-toggleable/261010-iwu-PLAN.md new file mode 100644 index 0000000..9b1c054 --- /dev/null +++ b/.planning/quick/261010-iwu-blog-editor-live-preview-pane-toggleable/261010-iwu-PLAN.md @@ -0,0 +1,371 @@ +--- +phase: quick-261010-iwu +plan: 01 +type: execute +wave: 1 +depends_on: [] +files_modified: + - ../sm-journal-plugin/assets/src/blogeditor/preview.ts + - ../sm-journal-plugin/assets/src/blogeditor/element.ts + - ../sm-journal-plugin/assets/src/blogeditor/toolbar.ts + - ../sm-journal-plugin/assets/src/blogeditor/labels.ts + - ../sm-journal-plugin/assets/src/blogeditor/blogeditor.css + - ../sm-journal-plugin/assets/dist/blogeditor.js + - ../sm-journal-plugin/assets/dist/blogeditor.css + - ../sm-journal-plugin/tests/blogeditor/preview.test.ts + - ../sm-journal-plugin/README.md +autonomous: true +requirements: [QUICK-261010-iwu] + +estimate: + tokens: 70000 + raw_tokens: 70000 + tasks: 3 + confidence: low + +must_haves: + truths: + - "The Blog Editor toolbar has a Preview toggle button (data-command preview) labelled 'Preview' for ui-locale en and 'Podgląd' for ui-locale pl through labelsFor. It is off by default with aria-pressed 'false', and each element instance has its own state. Pressing it sets aria-pressed 'true' and shows a preview pane that splits the editor 50/50, a grid with repeat(auto-fit, minmax(min(100%, 360px), 1fr)) columns. When the element is narrower than about 720px, the pane wraps below the editor. Pressing it again hides the pane. The button stays usable in the Source tab and when the element is disabled." + - "The pane is an '. The srcdoc matches none of /