Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'stu-2086-add-open-in-split-button' into stu-2089-add-re…
…sponsive-preview-modes-and-the-view-menu

# Conflicts:
#	apps/ui/src/components/site-preview/index.tsx
  • Loading branch information
bcotrim committed Jul 31, 2026
commit 68d03eefcf564adfd1f329cd09d2fef00d706842
54 changes: 39 additions & 15 deletions apps/ui/src/components/site-preview/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useQuery } from '@tanstack/react-query';
import { __, sprintf } from '@wordpress/i18n';
import { chevronLeft, chevronRight, moreVertical, pencil } from '@wordpress/icons';
import { ariaKeyShortcut, displayShortcut, isAppleOS, isKeyboardEvent } from '@wordpress/keycodes';
Expand Down Expand Up @@ -939,21 +940,44 @@ export function SitePreview( {
</>
) : (
<div className={ styles.empty }>
<p className={ styles.emptyText }>
{ __( 'Start the site to see a live preview.' ) }
</p>
<Button
variant="solid"
tone="brand"
loading={ isStarting }
loadingAnnouncement={ __( 'Starting site' ) }
onClick={ () => startSite.mutate( site.id ) }
>
<span className={ styles.startIcon } aria-hidden="true">
{ playIcon }
</span>
{ __( 'Start site' ) }
</Button>
<div className={ styles.emptyGrid } aria-hidden="true">
<DotGrid
spacing={ 32 }
crossSize={ 5 }
crossThickness={ 0.75 }
opacity={ 0.16 }
intro={ false }
/>
</div>
<div className={ styles.emptyContent }>
{ siteThumbnail.data ? (
<div className={ styles.emptyThumbnail }>
<img
src={ siteThumbnail.data }
alt={ sprintf(
/* translators: %s: site name */
__( 'Screenshot of %s' ),
site.name
) }
/>
</div>
) : null }
<p className={ styles.emptyText }>
{ __( 'Start the site to see a live preview.' ) }
</p>
<Button
variant="solid"
tone="brand"
loading={ isStarting }
loadingAnnouncement={ __( 'Starting site' ) }
onClick={ () => startSite.mutate( site.id ) }
>
<span className={ styles.startIcon } aria-hidden="true">
{ playIcon }
</span>
{ __( 'Start site' ) }
</Button>
</div>
</div>
) }
</div>
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.