Bring back preview links as a Share dialog in the header - #4448
Draft
shaunandrews wants to merge 1 commit into
Draft
Bring back preview links as a Share dialog in the header#4448shaunandrews wants to merge 1 commit into
shaunandrews wants to merge 1 commit into
Conversation
This was referenced Aug 4, 2026
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
shaunandrews
force-pushed
the
stu-2162-share-dialog
branch
from
August 4, 2026 23:26
dbd285f to
57e1fb5
Compare
3 tasks
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
Claude Code built this on top of the header stack and iterated on it live in the running app; verified with typecheck and unit tests (the Share dialog's own test passes as-is).
Proposed Changes
Preview links — dropped from the header in the first PR of this stack — come back as a Share button in the header, opening a dedicated dialog. Sharing a site isn't a sync (it publishes a throwaway copy on WordPress.com), so it sits beside the primary action rather than inside the sync flow.
The dialog has two divided sections:
Rows are flat and divided by a hairline rather than boxed, so the list reads as a list. The Sync dialog is also pinned to the same 480px width as this one, so the two header dialogs match.
Delete needed a small addition: a
deletePreviewSite(hostname)connector method (wired to the existing snapshot-delete IPC / local route) and auseDeletePreviewSitemutation, plus anaboveOverlaysoption on the menu so an overflow opened inside the dialog isn't trapped behind its scrim.Testing Instructions
Pre-merge Checklist
RELEASE-NOTES.txtif necessary.