Skip to content

Add copy site to site context menu#2528

Merged
sejas merged 26 commits intotrunkfrom
stu-7-copy-site
Feb 9, 2026
Merged

Add copy site to site context menu#2528
sejas merged 26 commits intotrunkfrom
stu-7-copy-site

Conversation

@sejas
Copy link
Copy Markdown
Member

@sejas sejas commented Feb 3, 2026

Related issues

Proposed Changes

This PR was an iteration over #2107 created by @ndiego.

  • Add Copy site… to site context menu, and in settings menu. Useful feature to quickly duplicate an entire site.
  • Simplify the logic to generate names.
  • It doesn't duplicate custom domain options.
Screenshot 2026-02-05 at 15 15 19 Screenshot 2026-02-05 at 15 15 11

Testing Instructions

  • Run npm start to launch the app
  • Right-click on an existing site in the sidebar
  • Click "Copy site…"
  • Observe the site is created and it shows a progress
  • Confirm you can start the site correctly
copy-site.mp4

Pre-merge Checklist

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

@sejas sejas self-assigned this Feb 3, 2026
@wojtekn
Copy link
Copy Markdown
Contributor

wojtekn commented Feb 4, 2026

We could auto-start such a site to make it consistent with the 'Add site' flow and generate a thumbnail. What do you think?

@sejas sejas marked this pull request as ready for review February 4, 2026 23:17
@wpmobilebot
Copy link
Copy Markdown
Collaborator

wpmobilebot commented Feb 5, 2026

📊 Performance Test Results

Comparing 8d5fee0 vs trunk

site-editor

Metric trunk 8d5fee0 Diff Change
load 2713.00 ms 2723.00 ms +10.00 ms 🔴 0.4%

site-startup

Metric trunk 8d5fee0 Diff Change
siteCreation 7089.00 ms 7089.00 ms 0.00 ms ⚪ 0.0%
siteStartup 3929.00 ms 3928.00 ms -1.00 ms 🟢 -0.0%

Results are median values from multiple test runs.

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

@sejas sejas requested a review from a team February 5, 2026 15:08
@sejas
Copy link
Copy Markdown
Member Author

sejas commented Feb 5, 2026

@wojtekn , now the site starts and generates the thumbnail as expected.
I didn't implement the custom domain, and SSL configuration, as it might require manual steps. The user can configure those form the Site settings tab.

Copy link
Copy Markdown
Contributor

@wojtekn wojtekn left a comment

Choose a reason for hiding this comment

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

Works great.

@sejas sejas merged commit a9cedcf into trunk Feb 9, 2026
9 checks passed
@sejas sejas deleted the stu-7-copy-site branch February 9, 2026 16:47
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.

Feature Request: Add action to duplicate a site

3 participants