-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile] Fix ungroup functionality in WarningMaxDepthExceeded
component
#56445
Conversation
Size Change: 0 B Total Size: 1.7 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to follow the testing instructions successfully for all scenarios. Thanks for addressing this! 🚀
Thanks for addressing this. 👏🏻 Given the PR was approved and merged, I only briefly reviewed. One question: Are we able to cover this bug fix with an automated test? In general, I think it is a good practice to always include a test alongside a production bug fix. |
I completely agree, I thought of adding tests but prioritized addressing the issue to have it on time for the release. I'll work on adding integration tests for the mentioned cases, thanks for the reminder 🙇 ! |
Prioritizing shipping the fix quickly makes total sense. Thank you for intending to follow up. |
What?
When rendering content with deeply nested structures, prevent presenting the option to ungroup the block in cases where it can't be applied.
Why?
Fixes #55738.
How?
Update the
WarningMaxDepthExceeded
component by incorporating the logic related to the Group/Ungroup buttons (used in the block options) to determine whether to use the Ungroup action and update the message displayed within the warning.Testing Instructions
Can be ungrouped and edited with UBE
Click here to display the HTML code
Can only be edited with UBE
Click here to display the HTML code
Can only be ungrouped
Click here to display the HTML code
Can only be edited via browser (no options offered)
Click here to display the HTML code
Testing Instructions for Keyboard
N/A
Screenshots or screencast