Host the site preview at the dashboard layout so it persists across routes#3822
Open
youknowriad wants to merge 1 commit into
Open
Host the site preview at the dashboard layout so it persists across routes#3822youknowriad wants to merge 1 commit into
youknowriad wants to merge 1 commit into
Conversation
…outes Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Collaborator
📊 Performance Test ResultsComparing 3e24200 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
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.
Related issues
How AI was used in this PR
Implemented with Claude Code in a pair session: it ported and adapted the preview-persistence architecture from #3646 onto the split-preview implementation that landed in #3817, with human review of the approach, scope trims, and manual testing of the result.
Proposed Changes
Today the site preview is owned by the session view, so any navigation — switching sessions, opening Settings — unmounts the webview and the next visit pays a full reload (white flash, lost scroll position, cold page). This PR moves preview ownership up to the dashboard layout, as in the agentic UI redesign:
The split/animation/resize mechanics from #3817 are unchanged — they moved into a reusable
PreviewSplitFramecomponent so the layout and the session view share them.Testing Instructions
/wp-admin/).Pre-merge Checklist
🤖 Generated with Claude Code