Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Studio: Remove connect site button when already exists a Sync connection #754

Merged

Conversation

katinthehatsite
Copy link
Contributor

@katinthehatsite katinthehatsite commented Dec 19, 2024

Related issues

Closes https://github.com/Automattic/dotcom-forge/issues/10158

Proposed Changes

This PR removes the Connect button on the Sync screen when there is a connection already present.

Screenshot 2024-12-19 at 12 02 25 PM

Testing Instructions

  • Pull the changes from this branch
  • Start Studio with npm start
  • Navigate to a Studio site that has no sites connected
  • Confirm that you can see Connect site button
  • Connect a site
  • Confirm that once a site is connected, there is no more Connect site button present on the Sync screen

Please note that this PR does not do any cleanup on the logic for connecting multiple sites to a local site. As per this comment, we will create a separate logic to do this cleanup.

Pre-merge Checklist

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

@katinthehatsite katinthehatsite requested a review from a team December 19, 2024 17:07
@katinthehatsite katinthehatsite self-assigned this Dec 19, 2024
Copy link
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 as expected. The code change looks clear.

@wojtekn wojtekn merged commit 7fd9d4e into trunk Dec 20, 2024
7 checks passed
@wojtekn wojtekn deleted the fix/remove-connect-site-button-for-existing-connections branch December 20, 2024 08:13
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