Skip to content

Add Publish banner on Overview tab for non-connected sites - #2025

Merged
epeicher merged 32 commits into
trunkfrom
stu-911-studio-add-launch-your-site-in-the-main-navigation
Nov 20, 2025
Merged

Add Publish banner on Overview tab for non-connected sites#2025
epeicher merged 32 commits into
trunkfrom
stu-911-studio-add-launch-your-site-in-the-main-navigation

Conversation

@epeicher

@epeicher epeicher commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

Related issues

Designs here with multiple options RToz6tIuQ7nlZrikBte4GU-fi-10114_136499 The implemented option is F in the designs with the button on the left as suggested here

These changes are based on the changes from PR #2002

Before After with non-connected site After with a site already connected
CleanShot 2025-11-07 at 18 36 54@2x CleanShot 2025-11-07 at 19 00 30@2x CleanShot 2025-11-07 at 18 36 21@2x

Video with demo of changes

CleanShot.2025-11-07.at.18.37.39.mp4

Proposed Changes

  • Added a "Publish site" on the header that displays when a site has no connected WordPress.com sites
  • Clicking the button navigates to the Sync tab and opens the push modal

Testing Instructions

  1. Start Studio and create or open a local WordPress site

  2. Enable the streamlineOnboarding feature flag by navigating to the menu: Electron > Feature Flag, and enabling Streamline Onboarding CleanShot 2025-11-20 at 12 00 48@2x

  3. Ensure the site has no connected WordPress.com sites (disconnect any if needed)

  4. Verify a button with Publish site appears on the header

  5. Click the "Publish site" button

  6. Verify it navigates to the Sync tab and opens the push modal

  7. Connect a WordPress.com site

  8. Verify the button no longer appears

Regression testing

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@epeicher epeicher self-assigned this Nov 6, 2025
@github-actions

github-actions Bot commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

📊 Performance Test Results

Comparing 7bbf443 vs trunk

site-editor

Metric trunk 7bbf443 Diff Change
load 10803.00 ms 12330.00 ms +1527.00 ms 🔴 14.1%

site-startup

Metric trunk 7bbf443 Diff Change
siteCreation 27249.00 ms 25409.00 ms -1840.00 ms 🟢 -6.8%
siteStartup 12097.00 ms 11057.00 ms -1040.00 ms 🟢 -8.6%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change

@epeicher
epeicher force-pushed the stu-911-studio-add-launch-your-site-in-the-main-navigation branch from 0c388a1 to 706b4f7 Compare November 6, 2025 13:09
@epeicher epeicher changed the title Studio: Add Publish banner on Overview tab for non-connected sites Nov 6, 2025
@epeicher
epeicher requested a review from a team November 6, 2025 17:10
@epeicher
epeicher marked this pull request as ready for review November 6, 2025 17:11

@sejas sejas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for implementing the Option A! ✨
It's great we can test the banner in the app.

I found a small issue. When I run npm start (or click cmd+R) and directly click on Publish site the tab doesn't change and therefore the modal is not present. Once I change to the Sync tab the modal appears successfully and then the Publish button starts working as expected.

publish-site-in-overview.mp4
Comment thread src/components/content-tab-overview.tsx Outdated
Comment thread src/components/content-tab-overview.tsx Outdated
Comment thread src/components/content-tab-overview.tsx Outdated
@katinthehatsite

Copy link
Copy Markdown
Contributor

I found a small issue. When I run npm start (or click cmd+R) and directly click on Publish site the tab doesn't change and therefore the modal is not present. Once I change to the Sync tab the modal appears successfully and then the Publish button starts working as expected.

I saw this as well in my testing. I also noticed a different variation of this issue:

  • Start the app with npm start
  • Click on the Publish button from Overview and observe that it does nothing
  • Switch to a different site that already has sites connected
  • Observe the modal gets immediately triggered for that site

Once I change to the Sync tab the modal appears successfully and then the Publish button starts working as expected

I noticed that it happens when you switch to any tab e.g. Settings and the modal gets triggered as well.

Comment thread src/components/content-tab-overview.tsx Outdated
Comment thread src/components/publish-site-button.tsx Outdated
Comment thread src/components/publish-site-button.tsx
Comment thread src/components/site-content-tabs.tsx
Comment thread src/components/site-management-actions.tsx
Comment thread src/components/publish-site-button.tsx Outdated
Comment thread src/components/publish-site-button.tsx
Comment thread src/components/site-management-actions.tsx
@claude

This comment was marked as resolved.

@claude

claude Bot commented Nov 7, 2025

Copy link
Copy Markdown

Claude Code is working…

I'll analyze this and get back to you.

View job run

@epeicher

epeicher commented Nov 7, 2025

Copy link
Copy Markdown
Contributor Author

Thanks @katinthehatsite, @sejas, and @wojtekn for your reviews and suggestions! I have implemented option F as suggested. Could you please give another review if possible? 🙏

@epeicher
epeicher requested a review from sejas November 17, 2025 14:46
…dio-add-launch-your-site-in-the-main-navigation
…dio-add-launch-your-site-in-the-main-navigation

@katinthehatsite katinthehatsite left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the changes @epeicher !

I don't mind the button itself as much as it seems now that we have two very similar buttons:

Image

I think it is a bit of confusing UI if we present both of these buttons.

@epeicher

epeicher commented Nov 18, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for making the changes @epeicher !

I don't mind the button itself as much as it seems now that we have two very similar buttons:

Image I think it is a bit of confusing UI if we present both of these buttons.

That option was suggested in p58i-ofU-p2#comment-71383 and in #2025 (comment) but maybe this double button was not considered, @sejas, @wojtekn , what do you think about the above? Also, please note that there are new opinions about it p58i-ofU-p2#comment-71457

…dio-add-launch-your-site-in-the-main-navigation
@wojtekn

wojtekn commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

@epeicher, it doesn't look like a huge problem - other UI elements are also repeated, e.g., a button that allows starting the site. However, we can still improve it.

There is a proposal to remove the Sync tab completely in this case, see p58i-ofU-p2#comment-71436. What if we tried that approach? With that, we would simply:

  • hide Sync tab if there are no connected sites
  • show the tab if there is any connected site

sejas commented Nov 19, 2025

Copy link
Copy Markdown
Member

The only downside of that approach is that if we remove the sync tab, it would be a bit harder to pull a site. Users will need to create a new Studio site using the new "Create site and pull remote flow".
Also, if a user pushes a few times and then disconnects, the tab should still be visible even if there are no connected sites.

sejas commented Nov 19, 2025

Copy link
Copy Markdown
Member

don't mind the button itself as much as it seems now that we have two very similar buttons:

It's a good observation, but I think it's ok to have the "same" button twice in that case.
I think we should add the icon in each button inside the tab (⬆️, ⬇️), so it's consistent with the button in the top.

@katinthehatsite katinthehatsite left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feature flag works correctly and the button is hidden when it is not enabled 👍

I still dislike that button duplicate but I guess I will have to live with that design choice 😆

@epeicher
epeicher merged commit 6592b0b into trunk Nov 20, 2025
10 checks passed
@epeicher
epeicher deleted the stu-911-studio-add-launch-your-site-in-the-main-navigation branch November 20, 2025 11:43

@nightnei nightnei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and works as expected 👍
Screenshot 2025-11-20 at 11 47 45

@sejas sejas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for implementing the button and adding it behind the feature flag.
I tested it on trunk and in general works great. I just noticed that it takes a while before switching to the Sync tab, maybe some conflicts with the upsell modal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants