feat: responsive preview HTML sidecar alongside XML export - #157
Open
samuelpatak-png wants to merge 1 commit into
Open
feat: responsive preview HTML sidecar alongside XML export#157samuelpatak-png wants to merge 1 commit into
samuelpatak-png wants to merge 1 commit into
Conversation
Write theme.preview.html next to generated XML with Mobile/Tablet/Desktop frames so themes can be checked locally in a browser before Blogger import. Fixes mergeos-bounties#78 Co-authored-by: Cursor <cursoragent@cursor.com>
QA Verification — BloggerEasy#157PR: feat: responsive preview HTML sidecar alongside XML export CI: no checks
Tests✅ no tests Evidence| Screenshots | ❌ | Verdict:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
*.preview.htmlsidecar next to every SDK/CLI XML export for local browser checks@mediasimulationwrite_theme_with_preview,write_preview_sidecar) plus regression tests and screenshot evidence underdocs/screenshots/Fixes #78
Screenshots / evidence
docs/screenshots/issue-78-preview-sidecar.html— review wrapperdocs/screenshots/portfolio-issue78.preview.html— generated sidecardocs/screenshots/portfolio-issue78.xml— companion XMLdocs/screenshots/README-issue-78.md— how to reproduceOpen the HTML files in any browser to view the breakpoint frames.
Test plan
pytest -q→ 113 passed, 3 skippedruff checkon new/changed export + sdk modulesgen htmlprints Preview path and writes*.preview.html3-pass QA results
Pass 1: Found iframe display widths ≠ breakpoint widths (media queries wrong on tablet/desktop). Fixed with transform-scaled iframes at true 375/768/1100 layout widths.
Pass 2: Hardened CSS color/font injection (
red;body{display:none}etc. rejected). XSS escaping for title/nav/paragraphs verified. Nested output dirs OK.Pass 3: Full suite green; Typer CLI smoke confirms Preview line + sidecar file; portfolio colors flow through; sidebar layout precedence correct. No remaining issues.
Made with Cursor