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

Only show the view content button with a valid link #2561

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

dotNomad
Copy link
Collaborator

This PR changes the behavior around the "View Content" button to only show it if we have a URL to go to. Previously we checked if the deployment wasn't a pre-deployment, but a failed deployment will not have a valid ID or links.

Intent

Resolves #2373

Type of Change

    • Bug Fix
    • New Feature
    • Breaking Change
    • Documentation
    • Refactor
    • Tooling

User Impact

If an error occurs during the deployment that causes the deployment to no longer be a pre-deployment, but still doesn't have an ID the "View Content" button no longer is shown.

Copy link
Collaborator

@marcosnav marcosnav left a comment

Choose a reason for hiding this comment

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

🎉

@marcosnav
Copy link
Collaborator

Verification screenshots

Previously
Screen Shot 2025-01-28 at 16 11 20

Now - no button
Screen Shot 2025-01-28 at 16 07 50

@dotNomad dotNomad merged commit 1744de3 into main Jan 28, 2025
13 checks passed
@dotNomad dotNomad deleted the dotnomad/content-check branch January 28, 2025 22:17
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.

If a deployment fails before we can create anything on Connect, we still display an active View Content button
2 participants