Skip to content

Add interactive DisplayList preview - #5

Merged
Kyle-Ye merged 3 commits into
mainfrom
codex/display-list-preview
Aug 5, 2026
Merged

Add interactive DisplayList preview#5
Kyle-Ye merged 3 commits into
mainfrom
codex/display-list-preview

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Aug 5, 2026

Copy link
Copy Markdown
Member

Summary

  • parse full DisplayList descriptions into a renderable preview model, including colors, text, paths, effects, and approximation fallbacks
  • render previews in Canvas with iPhone device frames or a custom Window size
  • add fit, editable zoom, a scale ruler, drag-to-pan, trackpad pinch, and touch pinch gestures
  • refresh the preview controls, device picker, default iPhone 17 Pro sample, and tab icons
  • document the required local SwiftWasm preview workflow

Why

The explorer previously showed only the encoded minimal description and metadata, which made it difficult to understand the visual result of a captured DisplayList. The first interaction pass also handled only a single pointer, so browser trackpad and two-touch pinch gestures could not update the preview scale.

User impact

Users can now inspect an approximate visual rendering inside realistic device or window frames, move and scale the canvas directly, enter an exact zoom percentage, and understand which nodes required approximation.

Validation

  • swift test — 15 tests passed
  • SwiftWasm release build with the repository's Swift 6.2.3 toolchain
  • production Vite preview build
  • local preview endpoint returned HTTP 200

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Cloudflare Pages preview

Latest PR preview: https://pr-5.display-list-explorer.pages.dev

Commit Immutable snapshot
722c729 Open snapshot

The PR URL always points to the latest deployment. Each commit snapshot is immutable.

@Kyle-Ye
Kyle-Ye marked this pull request as ready for review August 5, 2026 16:43
@Kyle-Ye
Kyle-Ye merged commit 675534f into main Aug 5, 2026
1 check passed
@Kyle-Ye
Kyle-Ye deleted the codex/display-list-preview branch August 5, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant