Skip to content

Studio: Remove ability to dismiss the warning when pushing to a production site - #1168

Merged
katinthehatsite merged 1 commit into
trunkfrom
fix/remove-option-to-dismiss-push-warning
Apr 7, 2025
Merged

Studio: Remove ability to dismiss the warning when pushing to a production site#1168
katinthehatsite merged 1 commit into
trunkfrom
fix/remove-option-to-dismiss-push-warning

Conversation

@katinthehatsite

@katinthehatsite katinthehatsite commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

Related issues

Closes STU-322

Proposed Changes

This PR allows ensures that the user can not dismiss the warning to not show again when they are trying to push to a production site. It should be possible though to dismiss the warning when pushing to a staging site.

Before After

Testing Instructions

You might also need to clear your local storage in the Application tab in the Chrome dev tools if you previously dismissed this warning to test the changes on this branch.

  • Pull the changes from this branch
  • Start the app with npm start
  • Navigate to the Sync tab
  • Ensure that you have a WP.com site connected that has both production and staging sites
  • Click on Push by a production site
  • Observe that the warning about your site being overwritten can not be dismissed
  • Click on Push by a staging site
  • Observe that you can dismiss the warning to not show again

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@katinthehatsite katinthehatsite self-assigned this Apr 7, 2025
@katinthehatsite
katinthehatsite requested a review from a team April 7, 2025 08:29

@ivan-ottinger ivan-ottinger 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 proposed change looks good and works as expected. 👍🏼

The confirmation checkbox is no longer rendered when pushing to a production WPCOM site.

The users will be now asked to confirm the production push action even if they have disabled the modal from displaying previously.

@katinthehatsite
katinthehatsite merged commit c9a2742 into trunk Apr 7, 2025
@katinthehatsite
katinthehatsite deleted the fix/remove-option-to-dismiss-push-warning branch April 7, 2025 10:52
@wojtekn

wojtekn commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

Looks good.

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

Labels

None yet

3 participants