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

Upload Plugins: Fix Back Button Infinite Loop #87436

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

Aurorum
Copy link
Contributor

@Aurorum Aurorum commented Feb 13, 2024

Proposed Changes

If you currently upload a plugin and there's an error (eg. uploading a ZIP file that contains no plugin), the "Back" button creates an infinite loop because it returns you to that error, and the new upload never finishes. You're forced to restart Calypso.

Screenshot 2024-02-13 at 22 54 11

I think it makes more sense to send folks to the Plugins page, since that's the only screen where they can access the "Upload plugins" button anyway.

Testing Instructions

Go to My Sites > Plugins, and click "Upload plugin" (top right corner). Confirm the "Back" button works, including in the scenario I described above.

Screenshot 2024-02-13 at 22 55 51

cc @lupus2k, @DustyReagan

@bluefuton bluefuton added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Feb 13, 2024
@sixhours sixhours self-requested a review February 22, 2024 14:58
@sixhours
Copy link
Contributor

I think this is a solid change and it's working well! Can you give it a rebase and I'll trigger the tests? I think the PR is old enough that it's not showing up in TeamCity. 🙃

@Aurorum
Copy link
Contributor Author

Aurorum commented Feb 22, 2024

Done! Thanks for taking a look @sixhours! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OSS Citizen [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants