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

fix(preview): notify parent from iframe when preview is not available #8778

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

luvkapur
Copy link
Member

@luvkapur luvkapur commented Apr 11, 2024

This PR addresses a bug where the preview loader would continue to display indefinitely in scenarios where the preview is not found. Previously, the system failed to notify the preview loader upon the iframe's completion of the mounting process, leading to situations where users would not receive feedback that the preview is unavailable. With the proposed changes, the system now correctly signals the preview loader upon iframe mount, even in cases where the preview content is missing, ensuring that the loader is dismissed and users are informed of the unavailability of the preview.

Pending CR: https://bit.cloud/teambit/ui-foundation/~change-requests/notify-parent

Screen.Recording.2024-04-11.at.3.39.11.PM.mov

@GiladShoham GiladShoham merged commit 775dcba into master Apr 15, 2024
11 checks passed
@GiladShoham GiladShoham deleted the no-preview-notify branch April 15, 2024 13:50
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