Files
kandev/docs/plans/native-html-preview/task-02-responsive-html-preview.md
T
2026-09-07 13:45:28 +01:00

2.1 KiB

id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
id title status wave depends_on plan requirements acceptance_criteria system_design
02-responsive-html-preview Add responsive HTML preview surfaces cancelled 2
01-preview-state-and-sandbox
plan.md
REQ-UI-NATIVE-HTML-PREVIEW-001
AC-UI-NATIVE-HTML-PREVIEW-001.1
AC-UI-NATIVE-HTML-PREVIEW-001.2
AC-UI-NATIVE-HTML-PREVIEW-001.3
AC-UI-NATIVE-HTML-PREVIEW-001.4
AC-UI-NATIVE-HTML-PREVIEW-001.5
AC-UI-NATIVE-HTML-PREVIEW-001.6
AC-UI-NATIVE-HTML-PREVIEW-001.8
AC-UI-NATIVE-HTML-PREVIEW-001.10
../../specs/ui/system-design/native-html-preview.md

Task 02: Add responsive HTML preview surfaces

Summary

This work order wired the HTML preview to a static srcDoc iframe. The owner selected script-capable execution, so the implementation is superseded by the runtime-backed renderer work in Tasks 06 and 07.

In scope

  • Existing toolbar, file-state, localization, desktop, and mobile wiring may be reused after the runtime-backed renderer contract is implemented.

Out of scope

  • Shipping HtmlPreviewContent with sandbox="" and inert scripts as the final behavior.
  • Treating component tests for iframe attributes as proof of script isolation.

Acceptance

  • Cancelled. The original acceptance conditions describe the static-only renderer and do not satisfy inline JavaScript execution.

Verification

Not applicable. Use Task 06 and Task 07 for the replacement work.

Files likely touched

  • apps/web/components/task/html-preview-content.tsx
  • apps/web/components/task/file-editor-content.tsx
  • apps/web/components/task/mobile/mobile-file-viewer-panel.tsx

Dependencies

Replaced by Tasks 06 and 07.

Risks

Keeping the old iframe contract in a passing component test can hide a missing runtime boundary.

Parallelism

sequential

Inputs

  • The superseded static prototype and existing Markdown preview surfaces.
  • The revised runtime and renderer system design.

Results

Cancelled after review. Existing UI changes remain non-ready until the script-capable renderer is implemented.