RTC: Fix button flickering on retry dialog#77234
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: -224 B (0%) Total Size: 7.74 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Flaky tests detected in d8d6f11. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24253852412
|
What?
Small fix for an issue that causes the disconnect dialog buttons to briefly flicker when "Retry" is clicked:
After the fix, the layout is stabilized:
Why?
Avoid an annoying layout flicker when retrying.
How?
The retry button rendering is gated on
manualRetry, which checks for the connection'scanManuallyRetryvalue. During theconnectingstatuscanManuallyRetryis briefly not present, which caused the button to disappear.The changes in this PR add
isManualRetryAvailable, which essentially works the same but ignores theconnectingstate so the button stays in place.Testing Instructions
Use of AI Tools
Used: Claude
For: Implementation