Skip to content

Conversation

ndiego
Copy link
Contributor

@ndiego ndiego commented Sep 19, 2025

Proposed Changes

This PR adds a context menu to sites in the sidebar, and was originally designed last year:

image

While a relatively low-priority feature, the context menu is a significant QOL improvement, especially for Studio power users. Simple actions like deleting a site now take three clicks rather than up to five clicks.

This PR does not add new functionality to Studio, such as the "Duplicate site..." option shown in the design mockup above. It simply adds easy access to all the existing functionality in Studio.

Here are the various states:

Stopped Started Starting up (isLoading) Adding Site (isAddingSite)
image image image image

A couple of notes:

  • The "Open in..." options respect the user preferences
  • "Edit site..." will switch to the Settings tab of the correct site and then open up the "Edit site" modal
  • Theoretically, everything should work regardless of operating system, but I do not have a Windows machine to test

Here's a quick video of this feature in action:

studio-context-menu.mp4

Testing Instructions

  • Add a new site if none exist
  • Open the context menu and try all the options

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@ndiego ndiego self-assigned this Sep 19, 2025
@ndiego ndiego requested review from sejas and bcotrim September 19, 2025 14:02
Copy link
Member

@sejas sejas left a comment

Choose a reason for hiding this comment

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

Great work Nick! 🎉
Thanks for adding the site context menu.
I've pushed a commit fixing the tests. I'll take a closer look next week, but feature wise, everything worked smoothly.

One suggestion, what do you think if we leave open site and open wp-admin enabled for stopped sites too?
We could start the site before opening the browser.

Screenshot 2025-09-19 at 20 40 01

@ndiego
Copy link
Contributor Author

ndiego commented Sep 20, 2025

One suggestion, what do you think if we leave open site and open wp-admin enabled for stopped sites too?
We could start the site before opening the browser.

@sejas, good call. I was just following the original design, but the other "Open site" and "WP admin" links in the app start up the site if it has not already been started.

I updated the functionality in d1fa0db

@ndiego ndiego requested a review from sejas September 20, 2025 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants