Skip to content

Agentic UI: Add responsive preview modes and the More options menu - #4368

Open
bcotrim wants to merge 12 commits into
stu-2086-add-open-in-split-buttonfrom
stu-2089-add-responsive-preview-modes-and-the-view-menu
Open

Agentic UI: Add responsive preview modes and the More options menu#4368
bcotrim wants to merge 12 commits into
stu-2086-add-open-in-split-buttonfrom
stu-2089-add-responsive-preview-modes-and-the-view-menu

Conversation

@bcotrim

@bcotrim bcotrim commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Related issues

How AI was used in this PR

Implemented with Claude Code, ported from the Design Preview exploration (#3975). I reviewed the code and verified manually in the app.

Proposed Changes

  • New More options (⋮) menu in the preview toolbar with a Responsive mode group: Fit pane (default), Mobile · 390×844, Tablet · 768×1024, Desktop · 1440×900, and Desktop + Mobile. Mobile and the split view add a Mobile orientation group (Portrait / Landscape).
  • Presets render as fixed-size device frames on a dot-grid letterbox, scaled to fit the pane — browser responsive-design-mode style. Mobile uses real device emulation (CDP), so responsive themes behave like on-device.
  • Desktop + Mobile shows both frames side by side on the same path, staying in sync on navigation.
  • The menu is modal, so clicking anywhere outside — including the preview page — closes it.
Fit Mobile Tablet Desktop Desktop + Mobile
image image image image image
image image image image image

Testing Instructions

Full app restart (new main-process IPC handler), agentic UI, a running site.

  1. Preview → → try each mode; resize the panel — frames re-fit live.
  2. Mobile: orientation group appears, Landscape flips to 844×390, and a responsive theme shows its phone layout.
  3. Desktop + Mobile: same page in both panes; navigating one follows in the other.
  4. With the menu open, click the preview page → it closes. ⋮ is hidden while the site is stopped.
  5. Check light + dark.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

🤖 Generated with Claude Code

@wpmobilebot

wpmobilebot commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 68a2066 vs trunk

app-size

Metric trunk 68a2066 Diff Change
App Size (Mac) 1375.36 MB 1375.50 MB +0.14 MB ⚪ 0.0%

site-editor

Metric trunk 68a2066 Diff Change
load 768 ms 745 ms 23 ms ⚪ 0.0%

site-startup

Metric trunk 68a2066 Diff Change
siteCreation 6479 ms 6514 ms +35 ms ⚪ 0.0%
siteStartup 2374 ms 2381 ms +7 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@bcotrim
bcotrim changed the base branch from trunk to stu-2086-add-open-in-split-button July 28, 2026 11:30
@bcotrim
bcotrim force-pushed the stu-2089-add-responsive-preview-modes-and-the-view-menu branch from 68a2066 to 13ba2a7 Compare July 28, 2026 16:22
@bcotrim
bcotrim marked this pull request as draft July 28, 2026 16:48
bcotrim added 10 commits July 28, 2026 17:57
…sponsive-preview-modes-and-the-view-menu

# Conflicts:
#	apps/ui/src/components/site-preview/index.tsx
@bcotrim
bcotrim marked this pull request as ready for review July 31, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants