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

Rip out the downloadArchive job, and replace it with text instructions #360

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

micahflee
Copy link
Contributor

@micahflee micahflee commented Jan 6, 2025

Fixes #359

Trying to download the archive within the webview is fine a lot of the time, but when it's not it can be very confusing. If it doesn't download for any reason (like an error message or redirection on X's side), the user interface still says "Downloading archive" in the status component (because that's the step it's on) and it's not clear what the user should be doing.

I recently helped a celebrity with 2M followers on X try to download his archive, and it just wouldn't work for him. During the step to prove your identity, it told him he had to contact X support, and there was a link that he couldn't click within Cyd because it was set to target="_blank", which Cyd ignores.

This PR bypasses all of these issues, and simplifies the app a little, by replacing the automatic stuff with some simple instructions:

Screenshot 2025-01-06 at 2 49 14 PM

</p>
<ul class="x-archive-steps">
<li>
<strong>Visit <a href="#" @click="openURL('https://x.com/settings/download_your_data')">
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: Probably should be a <button> instead of a <a> since we are adding onclick function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I'm using <a> tags as buttons in various places, mostly so I could get the bootstrap link styles look right. Maybe we should go clean that up, but let's do it a separate PR.

Copy link
Contributor

@SaptakS SaptakS left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@micahflee micahflee merged commit 9544226 into main Jan 7, 2025
1 check passed
@micahflee micahflee deleted the 359-export-x-archive-instructions branch January 7, 2025 20:48
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.

Exporting X archive should give instructions instead of automating in the browser
2 participants