Studio: Refresh the CTA for users without sites - #2038
Conversation
📊 Performance Test ResultsComparing 4c74834 vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change |
|
@sejas I am leaving this as draft for now, just wanted to get your thoughts on design and copy for now. What do you think? |
|
Sounds good! Thanks for working in this issue. I'll give it an early review. |
|
@sejas One more question - I guess with the new design, we should now display this modal when the user clicks on either of those buttons, right?
|
|
Yes! both buttons will trigger the same modal if the user doesn't have any WPcom site. |
sejas
left a comment
There was a problem hiding this comment.
firstly, we should not really use the logo in the title, it does not work well as it is too large to use with the default title size and it does not work with that type
@katinthehatsite , I think the default title is fine without any customizations, and we can move the WPcom logo to the description. 👍
Could you rebase the branch and move it to ready for review?
Awesome, on it 👍 |
|
@sejas Feel free to review, I will test closer tomorrow once again before opening it for the team testing. |
…or-when-no-sites-are-found
| tooltipText={ | ||
| isAnySiteSyncing | ||
| pendingModalMode === 'pull' | ||
| ? __( 'Please wait for the current operation to finish.' ) |
There was a problem hiding this comment.
Technically, we don't need this tooltip here but I added it in case it is not clear for the user. We can remove it if not needed
| <div className="flex justify-center items-center h-full"> | ||
| { searchQuery | ||
| ? sprintf( __( 'No sites found for "%s"' ), searchQuery ) | ||
| : __( 'No sites found' ) } |
There was a problem hiding this comment.
I removed this fallback since if there are no sites found without searchQuery, we should always get the modal with NoWpcomSitesModal
…or-when-no-sites-are-found


Related issues
Closes STU-912
Proposed Changes
This PR adds a modal with call to action for users that don't have any WP.com sites:
Original design: RToz6tIuQ7nlZrikBte4GU-fi-10114_134320 (minus the image on the top as we are not supposed to have the image there.
I made a small change to the design with the modal title:
Testing Instructions
SynctabPublish siteorPull siteConnect another sitebuttonPre-merge Checklist